![]() ![]() |
Jan 2 2006, 08:28 AM
Post
#1
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
problem:
can't see chinese(in utf-8) content and filename in gtk applications (xmms) but can see them properly in qt applications (justreader) and gtk2 (gvim) environment: SL6000L, running pdaxrom 1.1.0beta1, installed firefly ttf font(utf-8), and firefly(iso10646), taipei(big5) pcf font installed locale: glibc-locale-zh-hk.utf-8, glibc-locale-zh-tw.utf-8 LC_CTYPE=zh_TW.UTF-8 LC_COLLATE=zh_TW.UTF-8 .gtkrc: set to firefly iso10646 font detail description: I think it's a gtk problem, since when I was using xmms playlist to add song, the chinese utf-8 filename can't display properly. Although i still can add those files into playlist, the playlist also can't display them correctly. I've tried to set .gtkrc and xmms to use iso10646 and big5 font, no luck! However when using JustReader2, which is a QT apps, with setting to use the utf-8 ttf font, i can browse the chinese file (utf-8), and can read the content (ebook, big5). I've also succeed to browse the chinese file in KDE using the default file manager. So is it a GTK+ problem? Any workaround? Or is there any QT based mp3 player? |
|
|
|
Jan 2 2006, 08:38 AM
Post
#2
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
QUOTE(eddiectc @ Jan 2 2006, 05:28 PM) problem: can't see chinese(in utf-8) content and filename in gtk applications (xmms) but can see them properly in qt applications (justreader) environment: SL6000L, running pdaxrom 1.1.0beta1, installed firefly ttf font, and firefly, taipei pcf font LC_CTYPE=zh_TW.utf-8 LC_COLLATE=zh_TW.utf-8 .gtkrc: set to firefly iso10646 font detail description: I think it's a gtk problem, since when I was using xmms playlist to add song, the chinese utf-8 filename can't display properly. Although i still can add those files into playlist, the playlist also can't display them correctly. I've tried to set .gtkrc and xmms to use iso10646 and big5 font, no luck! However when using JustReader2, which is a QT apps, with setting to use the utf-8 ttf font, i can browse the chinese file (utf-8), and can read the content (ebook, big5). I've also succeed to browse the chinese file in KDE using the default file manager. So is it a GTK+ problem? Any workaround? Or is there any QT based mp3 player? It seems you didn't install the Chinese locale from the feed. Have you done this? |
|
|
|
Jan 2 2006, 08:39 AM
Post
#3
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
|
|
|
|
Jan 2 2006, 08:44 AM
Post
#4
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
The two variables should be
CODE LC_CTYPE=zh_TW.UTF-8 not utf-8, it's case-sensitive.
LC_COLLATE=zh_TW.UTF-8 |
|
|
|
Jan 2 2006, 08:50 AM
Post
#5
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
|
|
|
|
Jan 2 2006, 09:01 AM
Post
#6
|
|
|
Group: Members Posts: 902 Joined: 22-May 04 Member No.: 3,385 |
Try the following and see if it works
CODE LC_ALL=zh_TW.UTF-8
LANG=zh_TW.UTF-8 |
|
|
|
Jan 2 2006, 09:07 AM
Post
#7
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
|
|
|
|
Jan 2 2006, 02:15 PM
Post
#8
|
|
|
Group: Members Posts: 143 Joined: 22-April 04 From: Melbourne, Australia Member No.: 2,964 |
XMMS is a gtk 1.2 application (not GTK 2.0). GTK 1.2 don't use TTF.
You need to install Chinese pcf fonts and select the font in the preference of XMMS in order to display the Chinese characters. |
|
|
|
Jan 2 2006, 05:28 PM
Post
#9
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
QUOTE(cs_jacky @ Jan 2 2006, 10:15 PM) XMMS is a gtk 1.2 application (not GTK 2.0). GTK 1.2 don't use TTF. You need to install Chinese pcf fonts and select the font in the preference of XMMS in order to display the Chinese characters. yes, I did. I have installed chinese and utf-8 pcf fonts, but it just didn't work. the "browse file" widget can't show the utf-8 filename properly, i think it's not related to xmms but gtk+1.2. |
|
|
|
Jan 3 2006, 06:33 AM
Post
#10
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
I think GTK2 applications work find with utf-8 encoding & truetype font.
So is there any GTK2 based mp3 player for Z? i just can find one, but not yet port to Z... http://bmpx.beep-media-player.org |
|
|
|
Jan 3 2006, 06:37 AM
Post
#11
|
|
![]() Group: Members Posts: 1,099 Joined: 17-December 03 From: Athens, Greece Member No.: 1,210 |
Where are your files stored? on a fat partition?
maybe this partition should be remounted with iocharset=utf8? |
|
|
|
Jan 3 2006, 07:02 AM
Post
#12
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
|
|
|
|
Jan 3 2006, 02:52 PM
Post
#13
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
QUOTE(eddiectc @ Jan 3 2006, 04:33 PM) I think GTK2 applications work find with utf-8 encoding & truetype font. So is there any GTK2 based mp3 player for Z? i just can find one, but not yet port to Z... http://bmpx.beep-media-player.org It may not be possible to port it to pdaX for now, as it has very high requirement such as kernel > 2.6 and GTK+ > 2.8 That's why I have to compiled quite a number of GTK2 apps for my own use. |
|
|
|
Jan 3 2006, 10:28 PM
Post
#14
|
|
|
Group: Members Posts: 46 Joined: 18-October 04 Member No.: 5,088 |
QUOTE(ZDevil @ Jan 3 2006, 10:52 PM) It may not be possible to port it to pdaX for now, as it has very high requirement such as kernel > 2.6 and GTK+ > 2.8 That's why I have to compiled quite a number of GTK2 apps for my own use. um...so it seems impossible to make gtk work with utf-8 encoding... I'm now finding gtk2 or qt based mp3 player for Z, any suggestion? |
|
|
|
Jan 10 2006, 04:45 AM
Post
#15
|
|
|
Group: Members Posts: 143 Joined: 22-April 04 From: Melbourne, Australia Member No.: 2,964 |
I tried to compile beep-media-player (Gtk2 XMMS like player).
However, it don't use integer based decoder (MAD and tremor to decode MP3 and OGG). There are plugin for XMMS to use MAD and termor. However, I can't find one. After googling, it seems that there are MAD plugin for beep-media-player but I can't find the project website and the source code. Anyone know how to get it? Thanks. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 01:41 AM |