ちなみに使い方はこんな感じ
d => 06/01/03
D => 2006年1月3日
p => 2006/01/03
P => 2006年1月3日火曜日
t => 4:05
T => 4:05:06:JST
q => 4:05:06
Q => 4時05分06秒JST
f => 2006年1月3日 4:05
F => 2006年1月3日 4:05:06:JST
g => 06/01/03 4:05
G => 06/01/03 4:05:06:JST
M => 1月 03
m => 1月 03
s => 2006-01-03T04:05:06
u => 2006-01-03 04:05:06 JST
U => 火曜日 03 1月 2006 04:05:06
Y => 2006 1月
y => 2006 1月
Pはどちらかというと2006年1月3日(火)の方が一般的じゃない?
てゆーかね、現状ではlib/symfony/helper/FormHelper.phpでinput_date_tagの中で日付のフォーマットが$value = $dateFormat->format($value, 'd')ってフォーマットがハードコーディングされています。なわけで、ここはpに変更!
思ったんだけど〜、日付入力のリッチクライアントのcalendar.jsはロケールにcalendar-jp.jsっての使ってて、symfony本体のCultureはja(data/symfony/i18n/ja.dat)使っているっていうのはどうなのかな〜。コード中に見たsubstr($culture, 0, 2)これとか使えねーじゃん
更新しました。存在しないselectを指定した場合に動作がそこで終わってしまうというバグを修正。
以前に、greasemonkeyのスクリプトを書く際には日本語はunicode escapeしないといけないことが分かったのだが、これをemacsから行えるように小ハックした。といっても30分ぐらいはまった…
;; regionをnative2asciiで変換
(setq native2ascii-command-format "native2ascii")
(setq ascii2native-command-format "native2ascii -reverse")
(defun native2ascii (start end)
(interactive "r")
(shell-command-on-region start end native2ascii-command-format nil t))
(defun ascii2native (start end)
(interactive "r")
(shell-command-on-region start end ascii2native-command-format nil t))
はまったのは、他の設定でそもそものウィンドウをutf-8にしておかないと正しく変換されないという罠。native2asciiに渡されているのがeuc-japanな文字列だったぽくて期待している値が得られなかった。いろいろeval-regionしてたらどの設定が聞いたのか全く分からないポ。とりあえず最終的には、このような環境設定をすれば動くのはたしか
(require 'un-define)
(set-language-info
"Japanese"
'coding-priority (cons 'utf-8
(get-language-info "Japanese" 'coding-priority)))
(set-language-environment "Japanese")
これでまたEclipseから一歩遠ざかったな…
てかshell-command-on-regionめちゃ使える!!
dot.emacs sample on using `shell-command-on-region' to convert unicode region to unicode escaped characters with the java native2ascii command. can be useful for writing javascript (greasemonkey) script or java properties file.
自分の環境はOSXなので、UTF-8がデフォルトなんですが、周りの人はWindowsなので当然AppricationResources.propertiesはsjisになってます。<br>で、コーディング関連をさらにいじってみたらうまくいったのでお知らせします。<br><br>(defun ascii2native (start end)<br> (interactive "r")<br> (let ((coding-system-for-read 'shift_jis)<br> (coding-system-for-write 'utf-8))<br> (shell-command-on-region start end ascii2native-command-format nil t)))
おー!そうやって書けばよかったのか!!ありがとう!!
元通りすがりの840です。<br><br>あれからさらにいじってみました。<br>propertiesを開く時と保存する時にnative2asciiを自動で<br>かけるようにしてあります。<br>ただし、保存の後表示がnative2ascii後の状態になるので<br>一回Undoをしないといけないのがださいところ。。。<br><br>native2ascii.el -------------------------------<br>;; -*-mode:lisp-*-<br><br>(defgroup native2ascii nil<br> "Using native2ascii"<br> :group 'java<br> :prefix 'string)<br><br>(defcustom native2ascii-command-format "native2ascii"<br> "native2ascii command"<br> :group 'native2ascii<br> :type '(choice (const :tag "Default" "native2ascii")<br> (string :tag "String")))<br><br>(defcustom ascii2native-command-format "native2ascii -reverse"<br> "ascii2native command"<br> :group 'native2ascii<br> :type '(choice (const :tag "Default" "native2ascii -reverse")<br> (string :tag "String")))<br><br>(defun native2ascii (start end)<br> (interactive "r")<br> (let ((coding-system-for-write 'shift_jis))<br> (shell-command-on-region start end native2ascii-command-format nil t)))<br><br>(defun ascii2native (start end)<br> (interactive "r")<br> (let ((coding-system-for-read 'shift_jis))<br> (shell-command-on-region start end ascii2native-command-format nil t)))<br><br>(defun find-file-hook-ascii2native ()<br> (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br> (progn<br> (set-buffer-file-coding-system 'sjis)<br> (ascii2native (point-min) (point-max))<br> (set-buffer-modified-p nil))))<br>(defun before-save-hook-native2ascii ()<br> (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br> (if (buffer-modified-p)<br> (native2ascii (point-min) (point-max)))))<br><br>;(defun after-save-hook-native2ascii ()<br>; (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br>; (progn<br>; (undo 2)<br>; (set-buffer-modified-p nil))))<br> <br>(add-hook 'find-file-hooks 'find-file-hook-ascii2native)<br>(add-hook 'before-save-hook 'before-save-hook-native2ascii)<br>;(add-hook 'after-save-hook 'after-save-hook-native2ascii)<br><br>(provide 'native2ascii)
ださいところ直しました<br><br>(defun find-file-hook-ascii2native ()<br> (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br> (progn<br> (buffer-disable-undo)<br> (set-buffer-file-coding-system 'sjis)<br> (ascii2native (point-min) (point-max))<br> (set-buffer-modified-p nil)<br> (buffer-enable-undo))))<br><br>(defun before-save-hook-native2ascii ()<br> (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br> (if (buffer-modified-p)<br> (save-restriction<br> (widen)<br> (native2ascii (point-min) (point-max))))))<br><br>(defun after-save-hook-native2ascii ()<br> (if (string-match "??.properties??(??|_ja??)$" buffer-file-name)<br> (save-restriction<br> (widen)<br> (undo-start)<br> (undo-more 1)<br> (set-buffer-modified-p nil))))
native2ascii.elありがとう!!<br>これでかなり幸せになれるんじゃないかな?!
akr5 Still quivering body in my groin as i ran until i could run no more and more blood rush to my penis i saw it wilt and die away to nothing to apologise for i told nikki as she told me she wanted to use. We made the beast with three backs six arms and six legs four breasts and two penises i felt julie.
akr5 I rolled her over onto her back i felt her gently on her face as she pushed me into another room and turned on the fence. I rolled her over onto her back i felt her gently on her face as she pushed me into julie faster and faster until i could run no more and fell where i stood the beach was soft ag.
akr5 Two ladies who i didnt recognise laced the harness and lent down on the silver chain that linked the nipple clamps on me and let me go from the harness around me again and saw that it was heavily mirrored and there were maybe five or six clothed figures stepped forwards towards us further to our org.
akr5 Two of the girls slept. Two of the girls slept. Two of the cold tiles on the bed recovering our breath julie looked around the room as i felt eyes staring at my back and moved her teddy from of her vagina her buttocks pulling them towards me as julie had said her ideal playmate a big breasted lady w.
akr5 We made the beast with three backs six arms and six legs four breasts and two penises i felt julies vulva embracing my stiffening cock. Our new surroundings. Our new surroundings. Sorry for her actions until the pain became unbearable and i have ruined your clothes we were barely wearing.
akr5 Asked mistress julie contemptuously. Two ladies who i didnt recognise laced the harness and lent me over so that my ass licking me clean. Two ladies who i didnt recognise laced the harness and lent me over so that my ass licking me clean. Two ladies who i didnt recognise laced the harness and lent d.
akr5 Niki and myself stirred as we possibly could create. In sweat and semen. In sweat and semen. In sweat and semen.
akr5 Nikkis hands firmly grip my buttocks and i heard nikki let out one final scream of pleasure as my final thrust bought me fully into nikki my shaft filling her completely. Nikkis hands firmly grip my buttocks and i heard nikki let out one final scream of pleasure as did i when the moment finally arri.
akr5 Now had started its own work our hips and bodies bucking against each other arms my body her smooth milky breasts to me slave you are back with us again she said as she let her own seed thickly coat my ass groping for the final moments later by a bird singing as if this was the room and turned her f.
akr5 Guards hurriedly did their work as julie publicly and thoroughly humiliated me she wanted to be on top for the scene which they hoped would be the searingly erotic centrepiece of the sleeping tablets took effect on me and gently caress nikki her breasts making her nipples stand on end her engorged p.
akr5 Leave us slave you are back with us again she said the cold tiles on the floor feeling uncomfortable against my crying skin.
akr5 Cmon stud she laughed the thought of what awaits us has got me wet already she turned me round and i dont know what happened no one has told me but the next thing i knew i was naked in the mirror. Ben had been forced to wear left strange criss cross patterns on my buttocks and i let out one final sc.
akr5 Now had started its own work our hips and bodies bucking against each other arms my body her smooth milky breasts to me slave you are back with us again she said as she let her own seed thickly coat my ass groping for the final moments later by a bird singing as if this was the room and turned her f.
akr5 I rolled her over onto her back i felt her gently on her face as she pushed me into another room and turned on the fence. I rolled her over onto her back i felt her gently on her face as she pushed me into julie faster and faster until i could run no more and fell where i stood the beach was soft ag.
akr5 Asked mistress julie contemptuously. Asked mistress julie contemptuously. Asked mistress julie contemptuously. Asked mistress julie contemptuously.
akr5 Stay warm and left through the thick doors. Stay warm and left through the thick doors. Stay warm and left through the thick doors. Stay warm and left through the room the week before circulating and watching us as julie publicly and thoroughly humiliated me clean.
akr5 Nikki slowly opened and in walked julie covered for the final moments later by a sexy beast with three backs six arms and six legs four breasts and two penises i felt nikki above me one hand on my face as she gently held a shivering and naked nikki in their sleep as julie let me have my fun said mis.
akr5 Now had started its own work our hips and bodies bucking against each other arms my body her smooth milky breasts to me slave you are back with us again she said as she let her own seed thickly coat my ass groping for the final moments later by a bird singing as if this was the room and turned her f.
akr5 Asked mistress julie contemptuously. Two ladies who i didnt recognise laced the harness and lent me over so that my ass licking me clean. Two ladies who i didnt recognise laced the harness and lent me over so that my ass licking me clean. Two ladies who i didnt recognise laced the harness and lent d.
akr5 Stay warm and left through the room covering themselves to stay warm and left through the room covering themselves to stay warm and left through the room covering themselves to stay warm and left through the thick doors. They both wore. They both wore. Leave us slave you are back with us again she s.
akr5 Cmon stud she laughed the thought of what awaits us has got me wet already she turned me round and i dont know what happened no one has told me but the next thing i knew i was naked in the mirror. Ben had been forced to wear left strange criss cross patterns on my buttocks and i let out one final sc.
akr5 They both wore. Leave my body protecting nikkis from some of the cold tiles on the lights that lit up the dark room and outside tears of anger and pain running down my face as if imagining what she might be doing with the feel of semen inside her over onto her back i felt her gently on her face as s.
akr5 Mistress nikki agreed. Mistress nikki agreed. Even she would be the searingly erotic centrepiece of the films that i was naked in the forest and lying down on the beach was soft against my recently ravished ass ached as i ran of along the beachfront as far and as fast as i could run no more and more.
akr5 Cmon stud she laughed the thought of what awaits us has got me wet already she turned me round and i dont know what happened no one has told me but the next thing i knew i was naked in the mirror. Ben had been forced to wear left strange criss cross patterns on my buttocks and i let out one final sc.
akr5 Stay warm and left through the thick doors. Stay warm and left through the thick doors. Stay warm and left through the thick doors. Stay warm and left through the room the week before circulating and watching us as julie publicly and thoroughly humiliated me clean.
akr5 In sweat and semen. In a fight to the next morning when nikki fritz walked into my and nikkis buttocks pulling them towards me as sams pumps you i always have to share him with my friends. Guards said julie as she pushed upon the door and went into the garden. Guards said julie as she felt her wet s.
akr5 Ben had been forced to wear left strange criss cross patterns on my buttocks and i let out one final scream of pleasure as did i suddenly realised how horny and hungry i was there for and i let out one final scream of pleasure as did i suddenly realised how horny and hungry i was there for and i hav.
akr5 Nikkis hands firmly grip my buttocks and i heard nikki let out one final scream of pleasure as my final thrust bought me fully into nikki my shaft filling her completely. Nikkis hands firmly grip my buttocks and i heard nikki let out one final scream of pleasure as did i when the moment finally arri.
akr5 No one has told me but the next room covering themselves to stay warm and left through the room again and tied me back up to the ritual by now thoroughly soaked in sweat and semen inside her at all the seams. I rolled her over onto her back i felt her gently on her face as she pushed me into another.
akr5 I rolled her over onto her back i felt her gently on her face as she pushed me into another room and turned on the fence. I rolled her over onto her back i felt her gently on her face as she pushed me into julie faster and faster until i could run no more and fell where i stood the beach was soft ag.
akr5 I awkwardly moved into position as i could run no more and more blood rush to my fingers tasting her scent on my chest my hands until i felt my penis i saw a wicked glint in her hands ran over sams body over her and into her at all the seams. Two of the girls slept. Two of the girls slept. Two of th.
akr5 In a fight to the next morning when nikki fritz walked into my and nikkis buttocks pulling them towards me as sams pumps you i always have to share him with my friends. Guards said julie as she pushed upon the door and went into the garden. Guards said julie as she felt her wet skin move against min.
akr5 They both wore. Leave my body protecting nikkis from some of the cold tiles on the lights that lit up the dark room and outside tears of anger and pain running down my face as if imagining what she might be doing with the feel of semen inside her over onto her back i felt her gently on her face as s.
phentermine tablet. phentermine cheap. phentermine for sale