看板 IME 關於我們 聯絡資訊
Download: http://code.google.com/p/fastmem7/downloads/list 鯨魚輸入法 http://www.geocities.com/mycj3/whale.html 自己當倉頡:打造自己的輸入法 http://blog.xuite.net.tw/emisjerry/tech/48589 [PDF] My CJ IME http://blog.roodo.com/emisjerry/9802543c.pdf 通用輸入法編輯工具 uimetool "C:\Program Files\Windows NT\Accessories\Uimetool.exe" UTF-16LE (header 8 bytes 0x00, 4 bytes key + 2 bytes word) 5 bit * 5 鯨魚輸入法 00 00 10 00 日 a 00 00 10 00 曰 a 00 80 10 00 昌 aa 0*8 0001-0000 1000-0000 0*8 1+0000 1+ => aa 00 80 10 00 昍 aa 00 84 10 00 晶 aaa 0*8 0001-0000 1000-0100 0*8 00 98 10 00 暻 0001-0000 1001-1000 0*8 1 0000+10011+00000 1+00001+00110+=> aaf 00 a0 10 00 暘 1-0000 1010-0000 1+00001+01000+ => aah 00 b5 10 00 暘 1-0000 1011-0101 1+00001+01101+01000 => aamh WhalePTR.TBL index 8 bytes. (4 bytes key, 4 bytes offset) header 0x0 end 0xffffffff(key) 0x6a4c 0x6a4c * 2 + 2 = 54426 (file size of WhalePHR.TBL) WhalePHR.TBL words UTF16LE (end 0xffff) 1. Show key and word in hex. gcc -fpack-struct -o printmycj.bin printmycj.c ./printmycj.bin Whale.TBL | more size of WORD is 6 65E5 1 0 0 0 0 A 66F0 1 0 0 0 0 A 660C 1 1 0 0 0 A A 660D 1 1 0 0 0 A A 6676 1 1 1 0 0 A A A 66BB 1 1 6 0 0 A A F http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=65e5 日 => A http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=66f0 曰 => A http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=66bb 暻 => AAF 2. word data. gcc -fpack-struct -o printmycjtxt.bin printmycjtxt.c ./printmycjtxt.bin Whale.TBL iconv -c -f utf16le -t big5 mycjutf16.txt | more A 日 A 曰 AA 昌 AA 昍 AAA 晶 AAF 暻 ... AA, 暍 ... ACS 昐 ACSH 昐 AC;M 謈 AC, 暡 AD 閑 3. 詞庫 gcc -fpack-struct -o printmycjphtxt.bin printmycjphtxt.c ./printmycjphtxt.bin iconv -c -f utf16le -t big5 mycjphutf16.txt | more AAAA 暗暗 AAAO 間歇 AABT 晶體 AADR 晶格 AAEF 暗淡 ... 4. cat mycjutf16.txt mycjphutf16.txt > hiscj.txt insert BOM (by madedit) 5. 加入 key 的定義. /S A日月金木水火土竹戈十大中一弓人心手口尸廿山女田糸卜魚 /S [左 /S ]右 /S ,羊 /S ;蟲 合併成 yourcj.txt 6. 用 uimetool 從 yourcj.txt 造出 hiscj.IME 7. 修改圖檔、訊息。 cd c:\windows\system32 copy hiscj.IME hiscj.TBL hiscjPHR.TBL hiscjPTR.TBL c:\temp cd c:\temp 從 Whale.IME 取出 whale.bmp, whale.ico, 放進 hiscj.IME, 自行修改顯示的字串。 (by XN Resource editor) copy hiscj.IME hiscj.TBL hiscjPHR.TBL hiscjPTR.TBL c:\windows\system32 0. 手動安裝到自己的其他電腦。 copy hiscj.IME hiscj.TBL hiscjPHR.TBL hiscjPTR.TBL c:\windows\system32 import hiscj.reg 可以參考: 輸入法安裝制作原理 http://forum.slime.com.tw/thread76911.html 或 《華通通用輸入法安裝程式產生器》工具程式 V6.0 http://input.foruto.com/cccl/cccl_ImeBuilder4.htm Editor http://madedit.sourceforge.net XN Resource Editor Version 3.0.0.1 http://www.wilsonc.demon.co.uk/delphi.htm http://www.wilsonc.demon.co.uk/d10resourceeditor.htm author: 031415092605 (fastmem7 at gmail dot com) date: 2008-06-06 license: BSDL -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.192.198.24