View previous topic :: View next topic |
Author |
Message |
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Feb 25, 2011 2:13 pm Post subject: howto display chinese fonts in rox? |
|
|
got my system localized so it can display chinese fonts,
but not in rox though.
chinese filenames are displayed in some gibber
dunno where to change this?
cheers! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Feb 25, 2011 2:32 pm Post subject: |
|
|
lo-jay wrote: | got my system localized so it can display chinese fonts |
Elaborate, please. That has just too many meanings. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Feb 25, 2011 2:39 pm Post subject: |
|
|
~.xinitrc
Code: | export LANG=en_US.UTF-8
#eingefügt für fcitx 04202011
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
exec /usr/bin/xmodmap /home/jan/.Xmodmap &
exec startfluxbox
|
Code: | $ emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i3_CPU_M_370_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 25 Feb 2011 04:00:01 +0000
app-shells/bash: 4.1_p9
dev-lang/python: 2.6.6-r1, 3.1.2-r4
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de zh_CN"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de zh_CN" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
cheers again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Feb 25, 2011 3:18 pm Post subject: |
|
|
Given your xinitrc, wasn't LANG=de_DE.UTF-8 enough ?
Usually, it's just 'UTF-8' part that matters.
What does 'ls -b' print for that pdf file ? |
|
Back to top |
|
|
pingufunkybeat l33t
Joined: 01 Dec 2004 Posts: 610
|
Posted: Fri Feb 25, 2011 3:29 pm Post subject: |
|
|
Add "cjk" to your USE flags. It can't hurt, and is needed for some apps.
Does Rox only mangle filenames, or does it fail at displaying Chinese characters in general? Can you try changing the menus to Chinese and seeing if that works?
Also, try changing the display font in rox to a unicode font -- perhaps font substitution is broken. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Feb 25, 2011 3:49 pm Post subject: |
|
|
yes, chinese characters are generally not displayed.
and how and where do i change the fonts in rox?
thanks again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Feb 25, 2011 4:03 pm Post subject: |
|
|
rox is pygtk, so as long as a truetype font is there, it should find it.
Again about 'ls -b'. |
|
Back to top |
|
|
pingufunkybeat l33t
Joined: 01 Dec 2004 Posts: 610
|
Posted: Fri Feb 25, 2011 4:05 pm Post subject: |
|
|
I've never used Rox, so I don't know where it is, but there must be a setting to change the display font. GTK itself has no problems displaying Chinese.
Try picking a Chinese font or a unicode font and see if things change. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Feb 25, 2011 4:37 pm Post subject: |
|
|
Code: | ls -b /home/user/STUFF/O-R/IT×ʲú¹ÜÀíÖƶÈ.pdf
/home/user/STUFF/O-R/IT×ʲú¹ÜÀíÖƶÈ.pdf |
cheers! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Feb 25, 2011 4:46 pm Post subject: |
|
|
Sorry, that was meant to be 'LC_ALL=C ls -b' - I want to see the numbers, mangled name isn't really helpful.
Though if you could also paste how the name should look like, it would make things faster. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Feb 25, 2011 5:20 pm Post subject: |
|
|
Quote: | nano -w /etc/env.d/02locale |
Code: |
LANG="de_DE.UTF-8"
LC_COLLATE="C"
|
that's what you mean?
IT脳脢虏煤鹿脺脌铆脰脝露脠.pdf
Quote: | IT\303\227\303\212\302\262\303\272\302\271\303\234\303\200\303\255\303\226\303\206\302\266\303\210.pdf
|
thanks! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Fri Feb 25, 2011 5:53 pm Post subject: |
|
|
OK, your problem is something different than what you think.
That file was created in gbk/gb18030 encoding, you need something like convmv to rename it into utf8. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Sat Feb 26, 2011 8:46 am Post subject: |
|
|
well, that does not seem to be the prob:
Code: | convmv -f iso-8859-7 -t utf8 -r --notest --replace /home/jan/STUFF/O-R
Skipping, already UTF-8: /home/user/STUFF/O-R/IT×ʲú¹ÜÀíÖƶÈ.pdf
Ready!
|
cheers! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Feb 26, 2011 12:12 pm Post subject: |
|
|
1. that encoding autodetection often gives wrong results
2. last time I checked iso-8859-7!=gb18030 |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Sat Feb 26, 2011 1:19 pm Post subject: |
|
|
sorry, i seem kinda lost here -
which would be the correct parameters?
Code: | onvmv -f gb18030 -t utf8 -r --notest --replace /home/jan/STUFF/O-R
wrong/unknown "from" encoding!
|
thanks again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Feb 26, 2011 1:44 pm Post subject: |
|
|
Seems that the list of convmv is shorter than glibc's.
Go with gbk and use '--nosmart'. |
|
Back to top |
|
|
|