Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acroread menus & interface are all little squares
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
beijingjj
Apprentice
Apprentice


Joined: 01 Jul 2006
Posts: 212

PostPosted: Sat May 17, 2008 11:27 am    Post subject: acroread menus & interface are all little squares Reply with quote

I did a new install of gentoo recently. Since I occasionally like to type Chinese I tried setting my locales at the beginning of the install. Although it's changed slightly since then, this is what I have for /etc/locale.gen:
Code:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
zh_CN GB2312

and
Code:

 # locale -a
C
en_US
en_US.utf8
POSIX
zh_CN
zh_CN.utf8
zh_TW.utf8

I don't know if this is relevant but I also have this line in my make.conf:
Code:
LINGUAS="en zh_CN"


Anyhow, my acroread interface (all the menus, etc) are little squared instead of letters. I somehow suspect my attempt at making a Chinese-friendly system. It's frustrating because I can't read any of the menus and if I want to save a file the save as... dialog and all the filenames it lists are also little squares, making it impossible to navigate.

Does anyone have any idea what could be causing this? It's only in acroread so far that I've seen.
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Sat May 17, 2008 7:23 pm    Post subject: Reply with quote

You have no chinese fonts? merge wqy-bitmapfont please.
Back to top
View user's profile Send private message
beijingjj
Apprentice
Apprentice


Joined: 01 Jul 2006
Posts: 212

PostPosted: Sat May 17, 2008 11:44 pm    Post subject: Reply with quote

Halahad wrote:
You have no chinese fonts? merge wqy-bitmapfont please.


I believe I already installed Chinese fonts, and I just installed the one you suggested above. I also reinstalled acroread just incase. Still got little squares... :(
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Sun May 18, 2008 10:08 am    Post subject: Reply with quote

Just emerge the font is not enough. Issue the following command in your root terminal
Code:

cd /etc/fonts/conf.d
ln -sfv ../conf.avail/85-wqy-bitmapsong.conf ./

restart your X, that will be done.

[/code] Can you speak chinese? My english is not good.
Back to top
View user's profile Send private message
beijingjj
Apprentice
Apprentice


Joined: 01 Jul 2006
Posts: 212

PostPosted: Sun May 18, 2008 11:46 am    Post subject: Reply with quote

I tried that and restarted but still little squares...

You can type Chinese if you prefer, it will be good practice for me. :)
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Mon May 19, 2008 4:45 am    Post subject: Reply with quote

能把你当前使用的locale贴出来吗?使用哪种DE/WM?(gnome/kde/fvwm/)用firefox浏览中文网页是中文是否能正常显示?USE FLAG中是否开启了cjk?

acroread界面乱码可能因为Linguas中定义了zh_CN,如果您无须阅读中文pdf文档可以尝试使用LINGUAS="en" emerge acroread.


Last edited by Halahad on Mon May 19, 2008 9:24 am; edited 1 time in total
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Mon May 19, 2008 6:07 am    Post subject: Reply with quote

Post your /etc/env.d/02locale and emerge --info


Which wm are you using? gnome or kde?
Back to top
View user's profile Send private message
beijingjj
Apprentice
Apprentice


Joined: 01 Jul 2006
Posts: 212

PostPosted: Sun Jun 15, 2008 11:28 pm    Post subject: Reply with quote

sorry for the huge delay in replying. To answer:

I am using xfce4. I use seamonkey (but acroread has little squares even when launched by itself). I enabled the CJK USE flag. Chinese sometimes displays normally, sometimes, as in your post above, some characters display in a different font. For example "chang2 shi4" displays in a strange almost italic looking font, whereas "shi3 yong4" displays normally.

Here's my emerge --info:
Code:
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz
Timestamp of tree: Sun, 15 Jun 2008 23:02:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en zh_CN"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/liquidx /usr/portage/local/layman/sectools"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi alsa amd64 audiofile berkdb bindist bzip2 cardbus cdaudio cdda cjk cli cpudetection cpufreq cracklib crypt css cups dbus dri dv dvb dvd dvdr dvdread enblend encode ffmpeg flac flash flashsupport fortran gcj gdbm gimp gpm gtk hal iconv idea immqt-bc ipod ipv6 ipw4965 irda irmc isdnlog jabber jingle jpeg live lm_sensors md5sum midi mmx mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer msn mudflap multilib ncurses nforce2 nls nptl nptlonly nsplugin ntfs ogg opengl openmp openssh openssl pam pcre perl pmu png pppd python qt-static qt3 qt3support qt4 quicktime radio rar readline realmedia reflection rtsp scanner scim sdl seamonkey session sift spl sse sse2 ssl startup-notification tcpd threads truetype type1 unicode usb userlocales v4l wifi wireshark x264 xanim xfce xinerama xorg xosd xprint xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh_CN" LIRC_DEVICES="serial sir" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

and my /etc/env.d/02locale:
Code:
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

I recall slowly removing anything Chinese to see if that would help. It didn't.

Thanks for any suggestions!
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Mon Jun 16, 2008 1:09 pm    Post subject: Reply with quote

I'd like to know which Chinese font is used when seamonky is running and your personal fontconfig settings.
Code:

$cat "/proc/$(ps -A | grep seamonkey | awk '{print $1}')/maps" | grep fonts
b183e000-b1861000 r-xp 00000000 fe:01 85730      /usr/share/fonts/corefonts/verdana.ttf
b18d6000-b1b00000 r-xp 00000000 fe:01 175836    /usr/share/fonts/wqy-bitmapfont/wenquanyi_10pt.pcf
b1cf5000-b1cf9000 r-xp 00000000 fe:01 78263      /usr/share/fonts/75dpi/helvR12.pcf.gz
b2cdb000-b2cdf000 r-xp 00000000 fe:01 78029      /usr/share/fonts/75dpi/helvB10.pcf.gz
b2cdf000-b2cf0000 r-xp 00000000 fe:01 183997     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b3602000-b3606000 r-xp 00000000 fe:01 77577      /usr/share/fonts/75dpi/courR12.pcf.gz
b3672000-b3676000 r-xp 00000000 fe:01 78072      /usr/share/fonts/75dpi/helvR10.pcf.gz


Code:

% eselect fontconfig list | grep '\*'
Available fontconfig .conf files ( * is enabled ):
  [8]   20-fix-globaladvance.conf *
  [11]  20-unhint-small-vera.conf *
  [16]  30-metric-aliases.conf *
  [17]  30-urw-aliases.conf *
  [20]  40-nonlatin.conf *
  [23]  44-wqy-zenhei.conf *
  [24]  45-latin.conf *
  [25]  49-sansserif.conf *
  [26]  50-user.conf *
  [27]  51-local.conf *
  [29]  60-latin.conf *
  [32]  65-fonts-persian.conf *
  [34]  65-nonlatin.conf *
  [35]  69-unifont.conf *
  [39]  80-delicious.conf *
  [40]  85-wqy-bitmapsong.conf *
  [41]  90-synthetic.conf *
  [40]  85-wqy-bitmapsong.conf *
  [41]  90-synthetic.conf *

As you can see, wqy-bitmapsong/wqy-zenhei is used to display Chinese characters on my seamonkey session, I have no special settings for seamonkey.

PS:
1. Enable cjk and unicode USE FLAGs.
2. Have some high quality (and free) Chinese fonts and appropriate fontconfig settings
3. Enable freetype font engine in /etc/X11/xorg.conf
4 And finally my favorite Chinese Input method.
That's all for me to have a working Chinese Linux/Freebsd box.
Back to top
View user's profile Send private message
beijingjj
Apprentice
Apprentice


Joined: 01 Jul 2006
Posts: 212

PostPosted: Mon Jun 16, 2008 10:54 pm    Post subject: Reply with quote

Code:
$ cat "/proc/$(ps -A | grep seamonkey | awk '{print $1}')/maps" | grep fonts
7f40e65b1000-7f40e6a1d000 r--p 00000000 08:03 260288                     /usr/share/fonts/arphicfonts/gkai00mp.ttf
7f40e6a1d000-7f40e71e7000 r--p 00000000 08:03 301512                     /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
7f40ea382000-7f40ea3c8000 r--p 00000000 08:03 193782                     /usr/share/fonts/corefonts/arialbd.ttf
7f40ea73b000-7f40ea75d000 r--p 00000000 08:03 193808                     /usr/share/fonts/corefonts/verdanab.ttf
7f40ea75d000-7f40ea77c000 r--p 00000000 08:03 193804                     /usr/share/fonts/corefonts/trebucbd.ttf
7f40ea9e0000-7f40eaa03000 r--p 00000000 08:03 193807                     /usr/share/fonts/corefonts/verdana.ttf
7f40eaa03000-7f40eaa14000 r--p 00000000 08:03 363271                     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
7f40f1fed000-7f40f1ff1000 r--p 00000000 08:03 197203                     /usr/share/fonts/100dpi/courR10.pcf.gz
7f40f1ff1000-7f40f1ff5000 r--p 00000000 08:03 197258                     /usr/share/fonts/100dpi/timB12.pcf.gz
7f40f32b3000-7f40f32b8000 r--p 00000000 08:03 197276                     /usr/share/fonts/100dpi/timR12.pcf.gz

Code:
eselect fontconfig list | grep '\*'media-fonts/wqy-zenhei
Available fontconfig .conf files ( * is enabled ):
  [8]   20-fix-globaladvance.conf *
  [9]   20-unhint-small-vera.conf *
  [11]  30-metric-aliases.conf *
  [12]  30-urw-aliases.conf *
  [13]  40-nonlatin.conf *
  [14]  45-latin.conf *
  [15]  49-sansserif.conf *
  [16]  50-user.conf *
  [17]  51-local.conf *
  [19]  60-latin.conf *
  [21]  65-fonts-persian.conf *
  [22]  65-nonlatin.conf *
  [23]  69-unifont.conf *
  [26]  80-delicious.conf *
  [27]  85-wqy-bitmapsong.conf *
  [28]  90-synthetic.conf *


Looks like I don't have zenhei and am emerging now. But originally my post was about acroread menus displaying all little squares, not seamonkey...?
Back to top
View user's profile Send private message
Halahad
n00b
n00b


Joined: 15 Mar 2005
Posts: 57
Location: Shanghai, PRC

PostPosted: Tue Jun 17, 2008 7:28 am    Post subject: Reply with quote

If you can read chinese, please have a look at this Howto.

http://zh.gentoo-wiki.com/index.php?title=HOWTO_%E8%AE%BE%E5%AE%9A%E5%AD%97%E4%BD%93&variant=zh-cn

您的GTK程序似乎并沒有按照85-wqy-bitmapsong.conf 指定的順序,做相应的字体替换规则,(否则程序都会使用为wqy-bitmapsong,来显示汉字,效果会非常的好.而不是arphicfonts/kochi-substitute)就这一点来说是相当奇怪的。有没有自定义的字体设置文件比如说/etc/fonts/local.conf或者~/.fontconfig ?


(据我所知acroread也是gtk+2程序,我个人并不使用它,而是用xpdf或者evince作为替代,我会尝试安装acroread和您的locale设置)。

如果您有时间,可以登录irc.freenode.net上的#gentoo-cn频道,相信在那里您会得到更多的帮助.
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 244
Location: Hangzhou, China

PostPosted: Tue Jun 17, 2008 8:34 am    Post subject: Reply with quote

maybe you need LC_CTYPE="zh_CN.utf8"
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum