Firefoxããè¾æ¸.appã使ã
binWord/blogããã¨ããã§ã
ã£ã¦è¨äºãå¹´æ«ã«è©±é¡ã ã£ãã®ã§ãããã¿ã¼ããã«ããã®ä½æ¥ã¨ãããã¨ããããæãã¤ãã¦ãªãã£ãï¼GUIãã¼ã«ãåºããã¨ãæå¾ ãã¦ãã®ãããï¼ã
å
é±ãããããã£ã¬ã³ã¸ãã¦ã¿ãã
binWord/blogããã¨ããã«æ¸ããã¦ããéãã ãã©ãããããããï¼æ¸ãã¦ããã¾ãã
- Xcodeãã¤ã³ã¹ãã¼ã«ãã¦ãã
- ã/Developer/Exmaples/Dictionary Development Kit/project_templatesããã©ã«ãããã¹ã¯ãããã«ã³ãã¼
- DiDi Dictionary Viewerã®ããã¼ã«ï¼è±è¾éã¾ã¨ãã¦å¤æããé¸ã³ãè±è¾éãå¤æãã
- å¤æãã¦åºæ¥ããã¡ã¤ã«ããproject_templatesããã©ã«ãã«å ¥ãã
- ãbinWord/blog: Leopardã®ãè¾æ¸ãã¢ããªã§ãè±è¾éãã使ãããããeiji_conv007.zipãããã¦ã³ãã¼ããã
- ãeiji_conv007.zipãã解åããåºæ¥ããã©ã«ããeiji_conv007ãã®ä¸èº«ããproject_templatesããã©ã«ãå ã«ä¸æ¸ãä¿åãã
- ã¢ããªã±ã¼ã·ã§ã³ï¼ã¦ã¼ãã£ãªãã£ã¼ãã©ã«ãå ã®ãã¿ã¼ããã«ããèµ·åãã
- ã¿ã¼ããã«ã§ãcd /Users/ã¦ã¼ã¶å/Desktop/project_templates/ãã¨å ¥åããããªã¿ã¼ã³ããã¼ï¼ã¦ã¼ã¶åã¯åã æ¸ãæãã¦ãã ããï¼
- ããã«ãruby -Ks ryaku_conv.rb < RYAKU98.txt > Ryaku.txtãã¨å ¥åããããªã¿ã¼ã³ããã¼
- ããã«ãruby -Ks cat.rb EIJIRO98.txt Ryaku.txt > Eijiro.txtãã¨å ¥åããããªã¿ã¼ã³ããã¼ï¼è±è¾éã¨ç¥èªéã®ãã¡ã¤ã«ãé£çµãã¦ãEijiro.txtãã¨ãããã¡ã¤ã«ãçæï¼
- æå¾ã«ãruby eiji_conv.rb < Eijiro.txt > MyDictionary.xml ; make ; make installãã¨å ¥åããããªã¿ã¼ã³ããã¼
ããã§ãã~/Library/Dictionaries/è±è¾é.dictionaryããåºæ¥ä¸ããã¾ãã
è¦ãç®ã調ç¯ããå ´åã¯ãã~/Library/Dictionaries/è±è¾é.dictionary/Contents/DefaultStyle.cssããä¿®æ£ããã°ãªãã±ã¤ã§ãã
ã¡ãã£ã¨åç½®ããé·ããªã£ããã©ããããããFirefoxã®ã話ã
Firefoxããããµã¼ãã¹ã«ã¢ã¯ã»ã¹åºæ¥ãã°ãè¾æ¸.appãç°¡åã«ä½¿ããã®ã ãã©ããããã¯ãããªãã
ã§ãé³¥ç£ä¿è·åºããã¨ãã§å
¬éããã¦ããuserChrome.jsç¨ã®ã¹ã¯ãªããã使ã£ã¦ã¿ãã
ããã¯ã¨ã£ã¦ã便å©ï¼
使ãæ¹ã¯ãuserChrome.jsãã¤ã³ã¹ãã¼ã«ã
åãã¼ã¸ã®ãSub-Script/XUL LoaderãããuserChrome.jsãã¨ãã¦ã
~/Library/Application Support/Firefox/Profiles/xxx.default/chrome/
ã«ä¿åããï¼xxx.defaultãã©ã«ãã¯ãåã
ã®ãã®ï¼ã
é³¥ç£ä¿è·åºããã¨ãã§å
¬éããã¦ãããlookupindictionary.uc.jsãããchromeããã©ã«ãã«å
¥ããã
userChrome.jsã«ã¤ãã¦ã¯ã
ãèªãã¨ããã§ãããã
ããã¨ãbinWord/blogããã¨ããã§ããJSActionsãã使ç¨ããæ¹æ³ãç´¹ä»ããã¦ãã¾ããã