Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
combining japanese and german or french characters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Languages
View previous topic :: View next topic  
Author Message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Mon Jun 02, 2003 6:40 pm    Post subject: combining japanese and german or french characters Reply with quote

I'll write this in english so more people have access to it. I seem to remember reading a long time ago that pango would make Gnome UTF8 or Unicode-capable. I am looking for the possibility of using Japanese side-by-side with German or even French in Gnome, i.e. enabling display of Japanese chars like あ or 東京 together with European chars like ß ä or ü.
I was using this in my Sessions/Gnome file:

export XMODIFIERS="@im=kinput2"
export LANGUAGE=en_GB
export LANG=ja_JP.eucJP
export LC_ALL=ja_JP.eucJP
kinput2 -canna &

How do you guys suggest I do to improve the display of German chars? Right now typing ä in Balsa returns nothing at all, and in emails I receive those chars are either garbled or just not displayed. But Japanese is perfectly fine, but for one thing, that date, time and system messages are in Japanese, whereas I'd rather have that in English, but it's a detail.
Any ideas?
I tried defining a ja_JP.utf-8 locale, but Xlib didn't like it, maybe it needs being rebuilt.

Thanx

Micky
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
erwan
Apprentice
Apprentice


Joined: 01 Jun 2003
Posts: 150
Location: Tokyo

PostPosted: Fri Jun 06, 2003 6:46 am    Post subject: Reply with quote

I am French living in Japan so I know well this problem ! Actually, you're right, thanks to pango Gnome is now the best way to combine non-ascii languages.

In email, it is a different problem ; since there are several encoding, usually western Europe encoding or eucJP, sjis if you receive email from Japanese Windows users. It has no relation with your locale, it just depends on your mailer - most of them try an automatic detection and allow user to select it by hand when it fails.

For unicode, you have to add nls in USE and rebuild at least you glibc. Then you have to generate locale:

localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8

Switch to unicode will help you especially to input German and Japanese on the same session.
_________________
See me on Jabber: erwan@im.loisant.org
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Sun Jun 08, 2003 4:42 pm    Post subject: Reply with quote

I suspected as much.
Hm so you're telling me I should persist in that direction, UTF-8 does actually work that way if I do it right?
Will keep trying then :)
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Tue Jun 17, 2003 6:39 pm    Post subject: Reply with quote

Mister Frenchman, j'espere que vous pourrez m'aider :)

I defined a ja_JP.UTF-8 locale as follows:

localedef -v -c -i ja_JP -f UTF-8 ja_JP.UTF-8

using it for LC_ALL and then launching balsa, it *almost* works !!
öäü mix very well with japanese chars.
The last thing missing is ß
That seems like no locale can do it unless it a german locale...
If you have any ideas, they are most welcome. I'll keep trying, will post my results if any.

Micky
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Jun 18, 2003 10:05 am    Post subject: Reply with quote

Is that a German/Central European sharp S or a Greek beta?
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Wed Jun 18, 2003 10:33 am    Post subject: Reply with quote

it's the german sharp S... any experience with that?
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Thu Jun 19, 2003 8:19 am    Post subject: Reply with quote

None, but I do know that from time to time, if you specify LANG="..." or LC_CTYPE="...", a different font with the glyphs that are neccessary for that language is loaded instead. Perhaps the font that is being used does not have the sharp-S and the renderer can't be bothered to find one that does.
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Thu Jun 19, 2003 10:53 am    Post subject: Reply with quote

good one, mister, thanx. I'll have a look, if I don't post again (for those who stumble upon this while searching the fora), it means he was right :)
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
erwan
Apprentice
Apprentice


Joined: 01 Jun 2003
Posts: 150
Location: Tokyo

PostPosted: Fri Jun 20, 2003 2:36 pm    Post subject: Reply with quote

For display use gtk2 applications is the best. Pango can choose the right font according the language and you can mix é, ß, 愛.
_________________
See me on Jabber: erwan@im.loisant.org
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Fri Jun 20, 2003 3:50 pm    Post subject: Reply with quote

Hmm close, very close...
So all of my gtk2 apps can now display ß ü and 国際関係 together, which is wicked.
Except for the only app that matters, i.e. Balsa :(
Funny, I'd understand it doesn't work when using ISO-2022-JP, but when using UTF-8....
It mostly works, I only miss the ß, which is displayed as a blank space. The same font in gedit can display all of the above without a flaw.
Maybe I'll enquire on the balsa list if I can figure out why.

Micky
_________________
l€€t = (1+1) * 3 * 3 * 37 = The prime factorization of The Beast
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Languages 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