Apache OpenOffice (AOO) Bugzilla – Issue 19525
Chinese in menu bar not displayed in zh-tw
Last modified: 2003-10-16 13:59:44 UTC
"Insert" is written in Chinese with two words. By default, the first word is not displayed. Only the last word is displayed. Please look at the attachment for details.
Created attachment 9268 [details] By default
Created attachment 9269 [details] ScreenShot of exchanging font
Created attachment 9270 [details] After replacing font
Please look at the red-circled sections. Those are the "focus" of each image. After font replacement, the words are displayed correctly.
I think this is a problem with officecfg/registry/data/org/openoffice/VCL.xcu. http://www.transwift.net/ooo/zh_ui_fonts.html Please take a look at 2) and 3) in the above page. With "UI_FIXED" or "UI_SANS" or both (I am not sure), giving SimSun for zh-CN and giving MingLiu or PMingLiu for zh-TW would be a solution.
Let's try PMingLiu for zh-tw.
Created attachment 9392 [details] 1.1RC5 preview in Win2K
Hi! For Traditional Chinese Windows 2000 version, I can NOT find the soui.ttf in my computer. I can see correct fonts during installation, but after that, the menu is all squares when I use it (see attached)... So should I wait for the issue 19525 to be solved ? Thanks.
reassigned.
Paul Wong, please remove the font replacement you did and edit the file: <installdir>\share\registry\data\org\openoffice\VCL.xcu Go to the node name="zh-tw" and look up the field UI_SANS. Please move PMingLiU before Lucida Sans Unicode and restart OOo. If it does not help please move Arial Unicode MS behind PMingLiU and restart OOo. Tell me the results. Additionally please attach the output of a dir command in your font directory.
stevenshiau, please edit the file: <installdir>\share\registry\data\org\openoffice\VCL.xcu Go to the node name="zh-tw" and look up the field UI_SANS. Please move PMingLiU before Lucida Sans Unicode and restart OOo. Tell me the results. Additionally please attach the output of a dir command in your font directory.
I encountered a bit problem when changing the file. When I use notepad to save (with or without changing anything in the file), OOo crash when it opens. When I change the file with wordpad, it warns that saving it as pure text format will remove all styles after saving it. After saving the file (without changing anything as you said), OOo says something like "Java Access Bridge 1.0.3 is needed for Help Support, press OK to cancel the Help Support and continue, or press cancel to close the program.". After pressing OK, I discover that the UI font errors are gone even though I haven't change anything. I'm not sure how to change this file without changing its format or crashing OOo...
Created attachment 9456 [details] Updated VCL.xcu
I just attached a changed VCL.xcu to this issue. Please remove your OOo installation and make new installation. Thus we are sure that nothing has changed. Start the new installtion and verify the toolbar problem exists. Shut OOo down. Make sure the quickstarter is NOT running anymore !!! Copy the attached VCL.xcu over the original one - you can also make a backup before. Now, everything should be fine...
<node oor:name="zh-cn" oor:op="replace"> <prop oor:name="UI_SANS" oor:type="xs:string" oor:op="replace"> <value>Andale Sans UI;ZYSong18030;AR PL SungtiL GB;AR PL KaitiM GB;SimSun;Arial Unicode MS;Fangsong;Hei;Song;Kai;Ming;gnu-unifont;Interface User;WarpSans;Geneva;Tahoma;MS Sans Serif;Helv;Dialog;Albany;Lucida;Helvetica;Charcoal;Chicago;Arial;Helmet;Interface System;Sans Serif</value> <node oor:name="zh-tw" oor:op="replace"> <prop oor:name="UI_SANS" oor:type="xs:string" oor:op="replace"> <value>Andale Sans UI;AR PL Mingti2L Big5;AR PL KaitiM Big5;PMingLiU;MingLiU;Kai;Arial Unicode MS;Ming;gnu-unifont;Interface User;WarpSans;Geneva;Tahoma;MS Sans Serif;Helv;Dialog;Albany;Lucida;Helvetica;Charcoal;Chicago;Arial;Helmet;Interface System;Sans Serif</value> Wow! Look at this (from changed VCL.xcu)! Looks good! Thanks Stephan. So you mean that Lucida Sans Unicode was doing something wrong? Will this changed VCL.xcu be committed to OpenOffice_1_1 ?
khirano, Lucida Sans Unicode, despite its name, does not contain useful chinese glyphs as it seems. It's only few hundered KB so probably not useful at all. The other thing was to move Arial Unicode MS farther behind to make sure the platform's optimal font (PMingLiU) is preferred. So could you actually reproduce Paul Wong's problem and verify that my latest patch fixed it ?
After applying the updated file. The UI fonts are OK for me now. zh-tw Chinese XP. =)
Created attachment 9469 [details] screenshot of missing Chiense character in menu in a hybrid windows environment
I juest tried another machine, english Win2000 but set default language on traditional Chinese. No soui.ttf installed before. Installation: Good! running: few character missing, but not all of them, so apparently the UI has pointed to a Chinese font. But either an issue on translation, or missing character in a font mapping, Screenshot is on previous attachment (id=9469) the replacement of (id=9456) Updated VCL.xcu won't help
I tried VCL.xcu on my w2k (Traditional Chinese) machine, downloaded XCL.xcu from http://www.openoffice.org/issues/showattachment.cgi?attach_id=9456&file=VCL.xcu replaced the old one in C:\Program Files\OpenOffice.org1.1.0\share\registry\data\org\openoffice\VCL.xcu it works for me. The menu is right! No more square! Cool! That's nice. Fonts list of my machine is attached. (font_list_W2K_TW.txt)
Created attachment 9471 [details] fonts list for W2K (Traditional Chinese).
Created attachment 9473 [details] fonts list provided by Shelandy
http://www.openoffice.org/issues/showattachment.cgi?attach_id=9469 Hi Stephan, If you kindly look at the above screenshot, can you guess what font is used as UI for menu?
khirano, I don't know what's the reason for this behaviour. May be it has to do with the installation on an english system ? The font list looks good, so I assume PMingLiU was chosen, perhaps shelandy can do a font replacement in Tools->Options->Font and replace (always) Andale Sans UI with PMingLiU. If this does not cure the problem it must be platform dependent. Anyway, I consider this bug fixed and made the changes permanent as we're running fine on native chinese systems. Further enhancements cannot be done in a 1.1 time frame. So if the problem persists, write a new issue with target 1.1.1. Thanks!
Thanks Stephan, I really appreciate your efforts. And let me express my thanks for the reporter and our Chinese friends' contribution here to solve the question. Again Thanks!
Closing.