一発日本語化

色々なROMを試したりするのに、日本語化の手間がバカにならなくなってきました。というわけで、キーボードのレジストリ当て、日本語化、妄想ATOK、MeiryoKe、フォントキャッシュ、ディスクキャッシュを設定できるようにCABを組んでみました。CABそのものを公開するのは、なにかと問題ありなので作成用ファイルだけです。

作成にはmakecab.exe、cabwiz.exe、cabwiz.ddfが必要です。フォントはMeiryoKeで、EM・ONEからATOK関係ファイルを、Def_SIP_Hermes.cabからATOKPSIP.DLLをひっぱって*1きました。レジストリ設定は、LetsJapanNo6やCustomizerのページを参考にさせていただきました。日本語のレジストリが通らないので、日本語のレジストリはpost.xmlに記述してあります。材料を同じディレクトリに放り込んで、

cabwiz KaiserJapan.inf /postxml post.xml

で、KaiserJapan.cabが出来上がります。副作用として、今までおかしくなっていたTahomaがちゃんと表示されるようになりました。

KaiserJapan.inf

[Version]
Signature = "$Windows NT$"
Provider = "%Vender_Name%"
CESignature = "$Windows CE$"
[Strings]
Vender_Name = chai
App_Name = KaiserJapan
[CEStrings]
AppName = %App_Name%
InstallDir = %CE1%\%AppName%
[CEDevice]
VersionMin = 0
VersionMax = 32767.0
ProcessorType = 2577
[DefaultInstall]
CopyFiles = Files.All
CEShortcuts =
AddReg = RegSettings.All
[SourceDisksNames]
1 = , "All files", ,
[SourceDisksFiles]
meiryokegothic.ttc = 1
wince.nls = 1
ATOK.HTM = 1
ATOKIMM.DLL = 1
ATOKP.CPL = 1
ATOKP.DIC = 1
ATOKPCE.DLL = 1
ATOKPFI.DIC = 1
ATOKPRE.DAT = 1
ATOKPSIP.DLL = 1
ATOKPTE.EXE = 1
ATOKPTKJ.DIC = 1
ATOKPTMP.DAT = 1
ATOKPUT.EXE = 1
ATOKPW.DLL = 1
ATOK_B_BS.BMP = 1
ATOK_B_ENTER.BMP = 1
ATOK_B_FORMEDIT.BMP = 1
ATOK_B_MENU.BMP = 1
ATOK_B_PANEL.BMP = 1
ATOK_B_PANEL2.BMP = 1
ATOK_B_PANEL3.BMP = 1
ATOK_B_PANEL4.BMP = 1
ATOK_E_SUISOKU.BMP = 1
ATOK_FL.TXT = 1
ATOK_P_CODE.BMP = 1
ATOK_P_FORM.BMP = 1
ATOK_P_TEGAKI.BMP = 1
atok_suisoku.bmp = 1
atokrc.dll = 1
ATOKSTAT.DAT = 1
;ConnSBM
WIFIwake.exe = 1
Out.xml = 1
[DestinationDirs]
Files.All = 0, %CE2%
[Files.All]
MeiryoKeGothic.ttc, , , 1
wince.nls, , , 1
;ATOK
ATOK.HTM,,,1
ATOKIMM.DLL,,,1
ATOKP.CPL,,,1
ATOKP.DIC,,,1
ATOKPCE.DLL,,,1
ATOKPFI.DIC,,,1
ATOKPRE.DAT,,,1
ATOKPSIP.DLL,,,1
ATOKPTE.EXE,,,1
ATOKPTKJ.DIC,,,1
ATOKPTMP.DAT,,,1
ATOKPUT.EXE,,,1
ATOKPW.DLL,,,1
ATOK_B_BS.BMP,,,1
ATOK_B_ENTER.BMP,,,1
ATOK_B_FORMEDIT.BMP,,,1
ATOK_B_MENU.BMP,,,1
ATOK_B_PANEL.BMP,,,1
ATOK_B_PANEL2.BMP,,,1
ATOK_B_PANEL3.BMP,,,1
ATOK_B_PANEL4.BMP,,,1
ATOK_E_SUISOKU.BMP,,,1
ATOK_FL.TXT,,,1
ATOK_P_CODE.BMP,,,1
ATOK_P_FORM.BMP,,,1
ATOK_P_TEGAKI.BMP,,,1
atok_suisoku.bmp,,,1
atokrc.dll,,,1
ATOKSTAT.DAT,,,1
WIFIwake.exe,,,1
Out.xml,,,1
[Shortcuts.All]
[RegSettings.All]
;ROOT, SubKey, Name, Type, Value
;FLG_ADDREG_NOCLOBBER		0x00000002
;FLG_ADDREG_TYPE_SZ		0x00000000
;FLG_ADDREG_TYPE_MULTI_SZ	0x00010000
;FLG_ADDREG_TYPE_BINARY		0x00000001
;FLG_ADDREG_TYPE_DWORD		0x00010001
;NLS
HKLM, Software\Microsoft\International, ACP, 0x00010001, 932
HKLM, Software\Microsoft\International, LCID, 0x00010001, 1041
HKLM, nls, DefaultLCID, 0x00010001, 1041
HKLM, nls, SystemLCID, 0x00010001, 1041
HKLM, nls, DefaultACP, 0x00010001, 932
HKLM, nls, DefaultOCP, 0x00010001, 932
HKLM, nls, LegacyLocaleMode, 0x00010001, 1
;Fonts
HKLM, Software\Microsoft\FontLink\SkipTable, Tahoma, 0, "005c,00a5,007e,0391-03c9,2026,2116,221a,25a0-25ff"
HKLM, Software\Microsoft\FontLink\SkipTable, Courier New, 0, "005c"
HKLM, Software\Microsoft\FontLink\SystemLink, MS PGothic, 0, "\Windows\MeiryoKeGothic.ttc,MeiryoKe_PGothic"
HKLM, Software\Microsoft\FontLink\SystemLink, MS Gothic, 0, "\Windows\MeiryoKeGothic.ttc,MeiryoKe_Gothic"
HKLM, Software\Microsoft\FontLink\SystemLink, MS UI Gothic, 0, "\Windows\MeiryoKeGothic.ttc,MeiryoKe_UIGothic"
HKLM, Software\Microsoft\FontLink\SystemLink, Courier New, 0, "\Windows\MeiryoKeGothic.ttc,MeiryoKe_UIGothic"
HKLM, Software\Microsoft\FontLink\SystemLink, Tahoma, 0, "\Windows\MeiryoKeGothic.ttc,MeiryoKe_UIGothic"
;Keyboard
HKCU, keyboard layout\Preload,,0, e0010411
HKCU, keyboard layout\Preload\1,,0, e0010411
HKLM, System\CurrentControlSet\Control\Layouts\e0010411, Keyboard Layout, 0, 00000409
HKLM, System\CurrentControlSet\Control\Layouts\e0010411\1, Keyboard Layout, 0, 00000409
HKLM, System\GDI, DisableFarEastWordBreak, 0x00010001, 0
;GDI
HKLM, System\GDI\ClearTypeSettings, OffOnRotation, 0x00010001, 0
HKLM, System\GDI\GLYPHCACHE, limit, 0x00010001, 0x00800000
;FileCache
HKLM, System\StorageManager\Filters\fsreplxfilt, ReplStoreCacheSize, 0x00010001, 0x00004000
HKLM, System\StorageManager\FATFS, CacheSize, 0x00010001, 0x00004000
HKLM, System\StorageManager\FATFS, EnableCache, 0x00010001, 1
;ATOK
;HKCR, CLSID\{6F725483-642C-11d5-8205-0800460222F0}, ,0, "文字一覧"
HKCR, CLSID\{6F725483-642C-11d5-8205-0800460222F0}, CodeType, 0x00010001, 2
HKCR, CLSID\{6F725483-642C-11d5-8205-0800460222F0}\IsSIPInputMethod,, 0, 1
HKCR, CLSID\{6F725483-642C-11d5-8205-0800460222F0}\InprocServer32,, 0, "\Windows\ATOKPSIP.DLL"
HKCR, CLSID\{6F725483-642C-11d5-8205-0800460222F0}\DefaultIcon, , 0, "\Windows\ATOKPSIP.DLL,0"
;HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}, , 0, "定型文"
HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}, DataPath, 0, "\Windows\ATOKPTMP.DAT"
HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}, EditorPath, 0, "\Windows\ATOKPTE.EXE"
HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}\IsSIPInputMethod, , 0,1
HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}\InprocServer32], , 0, "\Windows\ATOKPSIP.DLL"
HKCR, CLSID\{6F725484-642C-11d5-8205-0800460222F0}\DefaultIcon, , 0, "\Windows\ATOKPSIP.DLL,0"
;HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, , 0, "手書き"
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, CandDisp, 0x00010001, 1
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, DTrmDelay, 0x00010001, 0x00001388
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, RecgDelay, 0x00010001, 0x000001f4
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, HalfMode, 0x00010001, 0
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}, RecgType, 0x00010001, 1
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}\IsSIPInputMethod, , 0, 1
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}\InprocServer32, , 0, "\Windows\ATOKPSIP.DLL"
HKCR, CLSID\{6F725485-642C-11d5-8205-0800460222F0}\DefaultIcon, , 0, "\Windows\ATOKPSIP.DLL,0"
;HKCR, CLSID\{6F725481-642C-11d5-8205-0800460222F0}, , 0, "ひらがな/カタカナ"
HKCR, CLSID\{6F725481-642C-11d5-8205-0800460222F0}, PanelType, 0x00010001, 0x00010002
HKCR, CLSID\{6F725481-642C-11d5-8205-0800460222F0}\IsSIPInputMethod, , 0, 1
HKCR, CLSID\{6F725481-642C-11d5-8205-0800460222F0}\InprocServer32, , 0, "\Windows\ATOKPSIP.DLL"
HKCR, CLSID\{6F725481-642C-11d5-8205-0800460222F0}\DefaultIcon, , 0, "\Windows\ATOKPSIP.DLL,0"
;HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}, , 0, "英数字"
HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}, HalfMode, 0x00010001, 4
HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}, InputMode, 0x00010001, 1
HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}\IsSIPInputMethod, , 0, 1
HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}\InprocServer32, , 0, "\Windows\ATOKPSIP.DLL"
HKCR, CLSID\{6F725480-642C-11d5-8205-0800460222F0}\DefaultIcon, , 0, "\Windows\ATOKPSIP.DLL,0"
HKLM, System\CurrentControlSet\Control\Layouts\e0010411, "Ime File", 0, atokimm.dll
HKCU, Software\JustSystem\ATOKIMM, IMEFILE, 0, atokpw.dll
HKCU, Software\JustSystem\ATOKIMM\UPDATE, Count, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM, LastUpdate, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM, PATH, 0, \Windows
HKCU, Software\JustSystem\ATOKM, Critical, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, Confirm, 0x00010001, 3
HKCU, Software\JustSystem\ATOKM\Config, KanaCand, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, HZConvKigou, 0x00010000, 01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,00,00,00,00,00
HKCU, Software\JustSystem\ATOKM\Config, HZConvD, 0x00010001, 6
HKCU, Software\JustSystem\ATOKM\Config, HZConvM, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, KConvD, 0x00010001, 13
HKCU, Software\JustSystem\ATOKM\Config, KConvM, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, Recover, 0x00010001, 1
HKCU, Software\JustSystem\ATOKM\Config, AddCand, 0x00010001, 0x1f
HKCU, Software\JustSystem\ATOKM\Config, RecReplace, 0x00010001, 0x0f
HKCU, Software\JustSystem\ATOKM\Config, RecKana, 0x00010001, 7
HKCU, Software\JustSystem\ATOKM\Config, RecRoma, 0x00010001, 7
HKCU, Software\JustSystem\ATOKM\Config, Rec, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, SpaceKey, 0x00010001, 0x1b
HKCU, Software\JustSystem\ATOKM\Config, SystemDic, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, Kutouten, 0x00010001, 15
HKCU, Software\JustSystem\ATOKM\Config, Code, 0x00010001, 1
HKCU, Software\JustSystem\ATOKM\Config, Okuri, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, GakuType, 0x00010001, 15
HKCU, Software\JustSystem\ATOKM\Config, AutoAdd, 0x00010001, 14
HKCU, Software\JustSystem\ATOKM\Config, Learn, 0x00010001, 1
HKCU, Software\JustSystem\ATOKM\Config, TransM, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, InputT, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Config, InputM, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\PresetDIC, 5, 0
HKCU, Software\JustSystem\ATOKM\PresetDIC, 4, 0
HKCU, Software\JustSystem\ATOKM\PresetDIC, 3, 0
HKCU, Software\JustSystem\ATOKM\PresetDIC, 2, 0
HKCU, Software\JustSystem\ATOKM\PresetDIC, 1, 0, \Windows\ATOKPRE.DAT
HKCU, Software\JustSystem\ATOKM\UserDIC, 5, 0
HKCU, Software\JustSystem\ATOKM\UserDIC, 4, 0
HKCU, Software\JustSystem\ATOKM\UserDIC, 3, 0
HKCU, Software\JustSystem\ATOKM\UserDIC, 2, 0
HKCU, Software\JustSystem\ATOKM\UserDIC, 1, 0, \Windows\ATOKPYOU.DIC
HKCU, Software\JustSystem\ATOKM\UI, ConjeLevel, 0x00010001, 3
HKCU, Software\JustSystem\ATOKM\UI, ConjeValid, 0x00010001, 1
HKCU, Software\JustSystem\ATOKM\UI, DecHist, 0, \Windows\ATOKPDEC.DAT
HKCU, Software\JustSystem\ATOKM\UI, ConvCount, 0x00010001, 2
HKCU, Software\JustSystem\ATOKM\UI, KanaUnlock, 0x00010001, 0x15
HKCU, Software\JustSystem\ATOKM\UI, KanaLock, 0x00010001, 0x15
HKCU, Software\JustSystem\ATOKM\UI, Timer, 0x00010001, 0x7d0
HKCU, Software\JustSystem\ATOKM\UI, CandPageSize, 0x00010001, 5
HKCU, Software\JustSystem\ATOKM\UI, BKCTarKotei, 0x00010001, 0xff
HKCU, Software\JustSystem\ATOKM\UI, BKCKoteiCs, 0x00010001, 0xff
HKCU, Software\JustSystem\ATOKM\UI, BKCKotei, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, BKCCs, 0x00010001, 0x00ff0000
HKCU, Software\JustSystem\ATOKM\UI, TXCTarKotei, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, TXCKoteiCs, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, TXCKotei, 0x00010001, 0x0ff
HKCU, Software\JustSystem\ATOKM\UI, TXCCs, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, BKCTarNotConv, 0x00010001, 0x00ff0000
HKCU, Software\JustSystem\ATOKM\UI, BKCConv, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, BKCTarConv, 0x00010001, 0x00ffff00
HKCU, Software\JustSystem\ATOKM\UI, BKCInput, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, TXCTarNotConv, 0x00010001, 0x00ffffff
HKCU, Software\JustSystem\ATOKM\UI, TXCConv, 0x00010001, 0x00ff0000
HKCU, Software\JustSystem\ATOKM\UI, TXCTarConv, 0x00010001, 0x00000000
HKCU, Software\JustSystem\ATOKM\UI, TXCInput, 0x00010001, 0x00ff0000
HKCU, Software\JustSystem\ATOKM\UI, Limit, 0x00010001, 4
HKCU, Software\JustSystem\ATOKM\UI, DUT, 0, \Windows\ATOKPUT.EXE
HKCU, Software\JustSystem\ATOKM\DIC, 5, 0
HKCU, Software\JustSystem\ATOKM\DIC, 4, 0
HKCU, Software\JustSystem\ATOKM\DIC, 3, 0, \Windows\ATOKPFI.DIC
HKCU, Software\JustSystem\ATOKM\DIC, 2, 0, \Windows\ATOKPTKJ.DIC
HKCU, Software\JustSystem\ATOKM\DIC, 1, 0, \Windows\ATOKP.DIC
HKCU, Software\JustSystem\ATOKM\Style, SpaceType, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Style, Index, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Style, ShiftAZ, 0x00010001, 0
HKCU, Software\JustSystem\ATOKM\Style, S04, 0, \Windows\ATOK_VJE.TBL
HKCU, Software\JustSystem\ATOKM\Style, S03, 0, \Windows\ATOK_WXG.TBL
HKCU, Software\JustSystem\ATOKM\Style, S02, 0, \Windows\ATOK_MSI.TBL
HKCU, Software\JustSystem\ATOKM\Style, S01, 0, \Windows\ATOK_PN.TBL
HKCU, Software\JustSystem\ATOKM\Style, Count, 0x00010001, 4
;HKCU, ControlPanel\Sip, DefaultIm, 0, {6F725480-642C-11d5-8205-0800460222F0}
HKCU, ControlPanel\Sip, SuggWords, 0x00010001, 1
HKCU, ControlPanel\Sip, SuggChars, 0x00010001, 2
HKCU, ControlPanel\Sip, AllowChange, 0x00010001, 1
HKCU, ControlPanel\Sip, SuggWeight, 0x00010001, 0
HKCU, ControlPanel\Sip, SuggSpace, 0x00010001, 1
HKCU, ControlPanel\Sip, SuggSpell, 0x00010001, 1
HKCU, ControlPanel\Sip, SuggContDictCount, 0x00010001, 0x001f
HKCU, ControlPanel\Sip, SuggWordLenMin, 0x00010001, 0x004
HKCU, ControlPanel\Sip, SuggDynWordBon, 0x00010001, 0x00c
HKCU, ControlPanel\Sip, SuggOneCharPen, 0x00010001, 0x005
HKCU, ControlPanel\Sip, SuggTwoCharPen, 0x00010001, 0x001
HKCU, ControlPanel\Sip, SuggCorrPen, 0x00010001, 0x001e
HKCU, ControlPanel\Sip, SuggMapBon, 0x00010001, 0x000f
HKCU, ControlPanel\Sip, SuggPrevPen, 0x00010001, 0x000f
HKCU, ControlPanel\Sip, SuggTypedBon, 0x00010001, 0x004
HKCU, ControlPanel\Sip, SuggAutoCorr, 0x00010001, 0x001
HKCU, ControlPanel\Sip, DragStyle, 0x00010001, 0
HKCU, ControlPanel\Sip, MenuBarHeight, 0x00010001, 0x001a

post.xml(UTF-8)

<characteristic type="Registry">
<characteristic type="HKCR\CLSID\{6F725483-642C-11d5-8205-0800460222F0}" translation="install">
<parm name="" value="文字一覧" datatype="string" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKCR\CLSID\{6F725484-642C-11d5-8205-0800460222F0}" translation="install">
<parm name="" value="定型文" datatype="string" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKCR\CLSID\{6F725485-642C-11d5-8205-0800460222F0}" translation="install">
<parm name="" value="手書き" datatype="string" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKCR\CLSID\{6F725481-642C-11d5-8205-0800460222F0}" translation="install">
<parm name="" value="ひらがな/カタカナ" datatype="string" />
</characteristic>
</characteristic>
<characteristic type="Registry">
<characteristic type="HKCR\CLSID\{6F725480-642C-11d5-8205-0800460222F0}" translation="install">
<parm name="" value="英数字" datatype="string" />
</characteristic>
</characteristic>

*1:ATOKPSIP.DLLは、そのままだとインストール後にリセットする前にデフォルトSIPを変更しないと、起動しなくなります

広告

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中