Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51331 - Setting LANGUAGE="CHINTRAD" emerge openoffice does not display menu properly
Summary: Setting LANGUAGE="CHINTRAD" emerge openoffice does not display menu properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-17 17:52 UTC by wsk
Modified: 2005-01-22 08:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wsk 2004-05-17 17:52:34 UTC
According to the comments in the openoffice ebuild, by setting the env variable LANGUAGE=? will enable compiling openoffice with the specified language support.

So I did the following:
# LANGUAGE="CHINTRAD" emerge openoffice
This should provide traditional Chinese support in openoffice.

I logged in with the following env variables set:
LC_ALL=zh_TW.UTF-8
LC_CTYPE=zh_TW.UTF-8
LANG=zh_TW.UTF-8

Under gnome, most menus were displayed in traditional Chinese.

Upon loading oowriter, the menus displayed a lot of squared blocks instead of proper Chinese characters.

In /opt/OpenOffice.org/share/fonts/truetype, I only saw:
opens___.ttf
fonts.dir
fonts_dir.global

which leads me to believe that oowriter could not load any Chinese fonts for the menus.


Reproducible: Always
Steps to Reproduce:
1. LANGUAGE="CHINTRAD" emerge openoffice
2. Start any openoffice programs e.g. oowriter, oocalc
3. The menus show blocks of squares instead of traditional Chinese characters.



Expected Results:  
Any openoffice programs should show proper traditional Chinese characters if the
emerge is done with LANGUAGE="CHINTRAD".

The fix I used was:

# cd /opt/OpenOffice.org/share/fonts/truetype
# rm *
# ln -s /usr/share/fonts/ttf/chinese/hkscs/* .
# ln -s fonts.dir fonts_dir.global

Now starting any openoffice programs in any locale will display proper
traditional Chinese characters.

I think the ebuild should perform the following:
1. If LANGUAGE is set to CHINTRAD, check if any traditional Chinese truetype
fonts are installed.
2. If yes, create links in /opt/OpenOffice.org/share/fonts/truetype to add
traditional Chinese truetype fonts and modify fonts.dir and fonts_dir.global to
add these Chinese fonts.
3. If no, emerge any traditional Chinese truetype fonts as a dependency.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-30 06:20:08 UTC
Patch for bug #44944 (openoffice-bin) should solve 
this problem too, but I haven't tested (don't have time 
and space to compile OOo).
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-22 08:08:45 UTC
OOo now uses LINGUAS for localization, additionally the chinese translations now depend on arphicfonts, so this should be gone. Please reopen, if this problem persists