Thursday, January 31, 2013

讓 Google 拼音在 Word 裡打出的字不會變成 SimSun 字體

從這裡看到的:

http://www.chinese-forums.com/index.php?/topic/37431-solution-to-eliminating-the-default-simsun-font-in-ms-word-even-using-pinyin-ime/

If you type Chinese in MS Word 2003 using Pinyin IME, SimSun will always be the default font no matter what the current font is. Microsoft tried to be smart to set the font by detecting your IME. But I would rather use Microsoft JhengHei font in MS Word 200 by default.

The solution is to change the IME to a different language.

If you installed QQ pinyin, just search for "qqpinyin" in your registry. ( You can open it by "regedit.exe") Or you can search for "google pinyin" or something else. Then find

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0200804

The last  E0200804 may be different by your IME. But last four digits 0804 stands for Chinese(PRC). 0404 stands for Chinese(Taiwan). 0409 stands for English(US). Change 0804 to 0404 or 0409. It is also possible to let the IME belong to English category and you will find something very interesting in MS word when typing.

Log off and log on. Then add your IME from the control panel. Now the pinyin IME is under the Chinese(Taiwan) category or English(US)

If you use this pinyin IME in your word, SimSun will not automatically appear.



這裡也有提到:
http://www.mobile01.com/topicdetail.php?f=512&t=1598005

Friday, January 11, 2013

Linux kernel bigphysarea

最近在看怎麼在 Linux kernel 裡管理大塊的連續記憶體,查到這個:
http://lkml.indiana.edu/hypermail/linux/kernel/0503.2/0405.html

“We don't tend to change code for out-of-tree users, either.”

對呀,所有的這類的需求都是為了自家的 driver,你不放進 kernel 人家自然就不想支援。
附上找到的最近的 bigphysarea patch:
http://www.feise.com/~jfeise/Downloads/zr36120/