Page 1 of 1

Menu in Puppy not Show Unicode Font ! (Solved)

Posted: Fri 05 Aug 2005, 08:47
by Hacao
Hi !

How to show correct unicode string as "Việt Nam" in MENU (start)!
(default: not Unicode)

How to set default Unicode Font Coding (not add Font Unicode)?

Thanks,

unicode in .fvwm95

Posted: Fri 05 Aug 2005, 09:41
by Kark
I had to change the encoding to iso-8859-1 to show Norwegian characters right. I opened the .fvwm95rc file and did my changes, and when closing I simply chose to save as Iso-8859-1. I saw that unicode was also an option, but I don't know if it will work.

bon chance

Kark


I tried it, I could save as utf-8, but the charactrs didn't show correctly in the menu......

Posted: Sat 06 Aug 2005, 02:14
by Guest
Thank you for your help !

I have some question other,

I thinks that, Puppy not support for Unicode UTF-8. If I need UTF-8 for show & typing Vietnamese, Where I must beginning ?

locale ---> C (not Unicode)
localedef ---> not working ! (even in bash)

How to set locale Unicode ?

I can request PUPPY teams help for locale Unicode ?

Thanks,

Posted: Sat 06 Aug 2005, 14:58
by Flash
I don't know if this helps, but doopdoop posted this, telling how he replaced standard fonts with unicode fonts.

Posted: Sun 07 Aug 2005, 16:54
by puppian
localedef doesn't come with puppy.

however, I found that it is included in the glibc package here:
http://rpmseek.com/rpm/glibc-2.3.2-14md ... 0:0:914910

more info from this post:
http://www.murga.org/%7Epuppy/viewtopic.php?p=8420#8420

after installing it you will get localedef when typed in bash (but i don't know how to use it) :oops:

Fonts Unicode !

Posted: Mon 08 Aug 2005, 03:50
by Hacao
Hi !

To show Vietnamese web, I only copy all font Unicode (Arial, tahoma, times new,...) to HOME/.fonts and that worked well ! :)

about "localedef" file i copy from VECTOR 5 and it worked !

localedef, i using for locale en_US.UTF-8 before i install Unikey (key board for Vietnamese need en_US.UTF-8 )

Now, I not yet finish lacale to en_US.UTF-8 !

HOW DO IT WITH VECTOR !? --> OK !

------------------------------------------------------

I success in Vector 5 show & typing Vietnamese

1) locale to en_US.UTF-8

$ locale (show LANG=en_US)
$ su
# mcedit /etc/profile.d/lang.sh (or editor other)

- Add # (comment) before "export LANG=en_US"
- Remove # (uncomment) before "export LANG=en_US.UTF-8"
- F2 to saved , F10 to quit

# locale or $ locale (show LANG=en_US.UTF-8)

2) make link en_US.UTF-8 to /usr/share/locale

$ su
# mkdir /usr/share/locale/en_US.UTF-8
# localedef -v -c -i en_US -f UTF-8 /usr/share/locale/en_US.UTF-8
# cd /usr/lib/locale
# ln -s /usr/share/locale/en_US.UTF-8 en_US.UTF-8

3. setup .bashrc or .bash_profile

$ mcedit /home/hacao/.bash_profile (hacao is my account)
Add three row:

export XMODIFIERS="@im=unikey"
export GTK_IM_MODULE="xim"
export LANG=en_US.UTF-8


- Press F2 to saved, F10 to quit.

- Logout or reboot PC

- Check it again:

$ echo $LANG (show en_US.UTF-8 is OK!)
$ echo $XMODIFIERS (show @im=unikey is OK !)
$ echo $GTK_IM_MODULE (show xim is OK!)


4. Setup Unikey (typing Vietnamese)

- Download from http://unikey.sourceforge.net/linux.php
- Unpack to /home/hacao/addon
i have folder: /home/hacao/addon/x-unikey-0.9.2

$ cd /home/hacao/addon/x-unikey-0.9.2
$ ./configure
$ make
$ su
# make install

That all !


I type "unikey" in Xterm to run Vietnamese typing !

$unikey

and open a editor to enjoy ! :)

$mcedit (or editor other)


success !


P/S: I'm not yet success with PUPPY 1.04!

Posted: Mon 08 Aug 2005, 03:54
by Bancobusto
Hacao, I'm happy that you got most of it figured out! :D

Posted: Mon 08 Aug 2005, 04:48
by Lobster
Someone please add this to a wiki page or create anew one for it - important? I think so . . .