Issue 19525 - Chinese in menu bar not displayed in zh-tw
Summary: Chinese in menu bar not displayed in zh-tw
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: OOo 1.1
Assignee: stephan_schaefer
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 14:00 UTC by pplwong
Modified: 2003-10-16 13:59 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
By default (62.00 KB, image/png)
2003-09-13 14:02 UTC, pplwong
no flags Details
ScreenShot of exchanging font (74.87 KB, image/png)
2003-09-13 14:07 UTC, pplwong
no flags Details
After replacing font (60.13 KB, image/png)
2003-09-13 14:08 UTC, pplwong
no flags Details
1.1RC5 preview in Win2K (68.81 KB, image/jpeg)
2003-09-17 04:03 UTC, stevenshiau
no flags Details
Updated VCL.xcu (242.45 KB, application/octet-stream)
2003-09-18 14:12 UTC, stephan_schaefer
no flags Details
screenshot of missing Chiense character in menu in a hybrid windows environment (129.83 KB, image/gif)
2003-09-19 06:35 UTC, shelandy
no flags Details
fonts list for W2K (Traditional Chinese). (5.08 KB, patch)
2003-09-19 06:48 UTC, stevenshiau
no flags Details | Diff
fonts list provided by Shelandy (6.41 KB, text/plain)
2003-09-19 07:39 UTC, khirano
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pplwong 2003-09-13 14:00:23 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.
Comment 1 pplwong 2003-09-13 14:02:44 UTC
Created attachment 9268 [details]
By default
Comment 2 pplwong 2003-09-13 14:07:38 UTC
Created attachment 9269 [details]
ScreenShot of exchanging font
Comment 3 pplwong 2003-09-13 14:08:42 UTC
Created attachment 9270 [details]
After replacing font
Comment 4 pplwong 2003-09-13 14:09:52 UTC
Please look at the red-circled sections.
Those are the "focus" of each image.
After font replacement, the words are displayed correctly.
Comment 5 khirano 2003-09-13 17:11:58 UTC
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.
Comment 6 pplwong 2003-09-13 17:58:55 UTC
Let's try PMingLiu for zh-tw.
Comment 7 stevenshiau 2003-09-17 04:03:48 UTC
Created attachment 9392 [details]
1.1RC5 preview in Win2K
Comment 8 stevenshiau 2003-09-17 04:05:09 UTC
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.
Comment 9 Martin Hollmichel 2003-09-18 10:26:07 UTC
reassigned.
Comment 10 stephan_schaefer 2003-09-18 11:01:06 UTC
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.
Comment 11 stephan_schaefer 2003-09-18 11:04:30 UTC
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.

Comment 12 pplwong 2003-09-18 14:06:51 UTC
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...
Comment 13 stephan_schaefer 2003-09-18 14:12:38 UTC
Created attachment 9456 [details]
Updated VCL.xcu
Comment 14 stephan_schaefer 2003-09-18 14:16:23 UTC
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...


Comment 15 khirano 2003-09-18 14:56:03 UTC
<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 ?
Comment 16 stephan_schaefer 2003-09-18 15:02:39 UTC
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 ?
Comment 17 pplwong 2003-09-18 16:19:51 UTC
After applying the updated file. The UI fonts are OK for me now. zh-tw
Chinese XP.  =)
Comment 18 shelandy 2003-09-19 06:35:27 UTC
Created attachment 9469 [details]
screenshot of missing Chiense character in menu in a hybrid windows environment
Comment 19 shelandy 2003-09-19 06:39:20 UTC
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
Comment 20 stevenshiau 2003-09-19 06:46:58 UTC
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)
Comment 21 stevenshiau 2003-09-19 06:48:17 UTC
Created attachment 9471 [details]
fonts list for W2K (Traditional Chinese).
Comment 22 khirano 2003-09-19 07:39:28 UTC
Created attachment 9473 [details]
fonts list provided by Shelandy
Comment 23 khirano 2003-09-19 09:29:38 UTC
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?
Comment 24 stephan_schaefer 2003-09-19 10:02:35 UTC
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!
Comment 25 khirano 2003-09-19 13:08:18 UTC
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! 
Comment 26 stephan_schaefer 2003-10-16 13:59:44 UTC
Closing.