在英文系统中支持汉字 字体显示

just wrote myself, hope it helps.

simple tutorial to add Chinese support on English Windows Mobile 5.0™ devices
of course you can use "CE-Star" or "Monster Chinese" to solve the prob, but i'm talking about a way free of charge, may extend to other usages like add Japanese support to a French device, tested on my Dell Axim X51v. read below, if you do NOT wanna read my nonsense yak, go straight to part 3.

1st, the font.
the font in a WM5EN may not have Chinese font support, you must find a font that support Chinese characters like "simsun"/"simhei"/"youyuan", i prefer the font from "Windows Vista™" called "Microsoft YaHei", due to copyright prob, i can't provide the file here, go get it from Vista yourself then put the .ttf file in the /windows folder(not the /windows/fonts/ folder, i tried that folder but failed, damn strange, m$ store their fonts in /windows so why the fonts folder exist?) on your device.

then we need some registry edit, the default system font is "Tahoma" and hard coded in the resource so can't be altered, we must extend the "Tahoma" to support Chinese characters, i found an article on MSDN here, well this article is not that accurate, there is no need to extend fonts other than "Tahoma", and the "FontLinkMethods" seems no need to be set(at least i didn't set it on my x51v and the font link works, condition always varies, so you may check this if it doesn't work with out this value). so we need only two keys:
Quote:
HKEY_LOCAL_MACHINE/Software/Microsoft/FontLink/Sys temLink
Tahoma: REG_SZ Set to "//Windows//msyh.ttf,Microsoft. YaHei".
HKEY_LOCAL_MACHINE/Software/Microsoft/FontLink/Ski pTable
Tahoma : REG_SZ Set to "005c,00a5,007e,0391-03c9,2026,2116,221a,25a0-25ff".
you may change the value according to you font file name and font name. i recommend resco explorer with registry plugin to modify the registry, after a reset(i recommend the soft reset command in the menu of magic button other than the reset hole on the back, some say the reset hole will not flush the registry, well i'm not sure but in my practice magic button always flushes), you may see most programs works with Chinese well now, such as Chinese named files/folder in resco explorer.

2nd, the locale.
well, still some stupid non-pure-unicode programs works not well with Chinese, such as Total Commander, you need the Chinese code page, while in Windows XP, you can manually select code pages available on your system via control panel -> regional and language options -> advanced, but you can't do that in WM5, the code pages are hard coded in the rom, be precisely, the file "wince.nls" under /windows, this file decide how many code pages will be available on your device, as you know, to reserve spaces, English version of WM5 do not contain the Chinese code page. so we need a "wince.nls" file with Chinese code page support, and again due to f*cking copyright, i can't provide the file here, i got one from my friend's X51v Chinese version, or you can get one from the WM5 Chinese image freely available on microsoft.com, or build one by yourself using platform builder and CAUTION the wince.nls file from WM4 was not compatible even they share the same name.

and to replace the "wince.nls" file, i recommend resco explorer again, the default file explorer will refuse to replace the file. but if resco can't replaces the file, that was because a security setting, this security setting was set by manufacturers so can't be altered by end users as far as i know.

if you soft reset now, you may find the locale didn't change, still no Chinese code page selectable in regional and language options, that is because actually you didn't "replace" the wince.nls file, the original file is still in the ROM, your replaced one is in the so-called "persistent storage" while the system already loaded the one in the ROM, WM4 will load the new file while WM5 didn't, we must make the system reload the wince.nls file, i found a free tool named "reloadnls" written by ホーミン, you can download it from his/her weblog. it was a simple exe file, put it anywhere(i recommend /windows), and run it, nothing happened? no! go to your regional and language options again, you may see the Chinese code page is now selectable! make a shortcut to it under /windows/startup so the nls file is reloaded every time system starts.


3rd, have fun and the abstract.
copy the font/wince.nls/reloadnls.exe to /windows, when asked "overwrite?" answer yes, modify the font link registry, make a shortcut under /windows/startup to reloadnls.exe, run it once, set regional and language options to Chinese, restart. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值