Jermin
2011-Apr-16 06:32 UTC
[Wine] Chinese character is not shown properly for some programs
Just dived into linux recently and spent a whole day on trying geing chinese programs working properly in wine. The situation is that some chinese programs (like eMule) display Chinese character very nicely while some others can not. Here is the screenshot: [Image: http://www.jg300.com/www/Screenshot-dzh.png ] What I have done: 1. apt-get ttf-wqy-microhei 2. Copy the downloaded font to .wine/drive_c/windows/fonts 3. Edit ~/.wine/system.reg: a. Change the value of all the items under [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] to "WenQuanYi Micro Hei" b. Include following items under [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink]: "Batang"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "BatangChe"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Dotum"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "DotumChe"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Gulim"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "GulimChe"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Gungsuh"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "GungsuhChe"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Lucida Sans Unicode"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Malgun Gothic"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Malgun Gothic Bold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Meiryo"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Meiryo Bold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Meiryo UI"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Meiryo UI Bold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Microsoft JhengHei"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Microsoft JhengHei Bold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Microsoft Sans Serif"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Microsoft YaHei"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Microsoft YaHei Bold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MingLiU"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MingLiU-ExtB"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MingLiU_HKSCS"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MingLiU_HKSCS-ExtB"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS Gothic"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS Mincho"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS PGothic"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS PGothic MC"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS PMincho"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "MS UI Gothic"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "NSimSun"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "PMingLiU"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "PMingLiU-ExtB"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Segoe Media Center"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Segoe Media Center Light"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Segoe Media Center Semibold"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "Segoe UI"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "SimSun"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" "SimSun-ExtB"=str(7):"wqy-microhei.ttc,WenQuanYi Micro Hei\0" In terminal, use LANG="zh_CN.utf8" wine gfhf_dzh.exe to open the installer.eMule doesn't need to do this. Openning directly is OK. And Chinese characters are displaying nicely. The problematic installer can be downloadedhttp://www.gfhfzq.com.cn/files/download/gfhf_dzh.exe flash_player_ax should be installed for above program to work properly: http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe Wine package used: wine_1.3.17-0mcr80+1_i386.deb Wine-gecko package used: wine-gecko_1.3.17+1.2.0_i386.deb Besides, Chinese character in some programs are showing as blank squares. How can I make them display correctly?
KenSharp
2011-Apr-16 07:55 UTC
[Wine] Re: Chinese character is not shown properly for some programs
Jermin wrote:> What I have done: > 1. apt-get ttf-wqy-microhei > 2. Copy the downloaded font to .wine/drive_c/windows/fonts > 3. Edit ~/.wine/system.reg: > a. Change the value of all the items...http://code.google.com/p/winetricks/wiki/Installing