upup CJK

Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

upup CJK

#1 Post by shinobar »

I am trying to support CJK on upup-476.
And now upup CJK is open for testing!
Feed back wanted.

Visit my site and find all the pet's you need for CJK enable on upup-476.
http://122.102.213.192/puppy/upup/
Last edited by shinobar on Tue 16 Jun 2009, 11:05, edited 3 times in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

utf8 mount and bugfix around locale

#2 Post by shinobar »

First of all we have to fix bugs around locale on upup-476.
... /usr/sbin/chooselocale, /usr/bin/xwin
Reffer the Bugs section.

upup-476 uses '*.utf8' as the locale whereas most of current distr's use '*.UTF-8'.
Well, it is not a bug, but can be a trouble in using some X based programs.
... /usr/sbin/chooselocale, /etc/rc.country

Second: mounting vfat and iso9660 with 'utf8' option.
... /usr/sbin/pmount, /usr/local/bin/driveall, /usr/local/apps/pnethoot/func_mount

On mounting vfat, upup sees keymap and changes the codepage and iocharset options.
It is quit nonsense.

For example, 'us' keyboads never mean they speak english.
Many japanese user use 'us' keyboard with their pc and use japanese for their file names.
Don't you know we can type japanese charactors using 'us' keyboard?
if upup wants to choice codepage etc., better to look up the LANG environment instead of keymap.

But this time, i left these codes. 'utf8' option not add in case one of the next.
uk|us(default: codepage=437, iocharset=iso8859-1)
de|be|br|dk|es|fi|fr|it|no|se|pt(codepage=850,iocharset=iso8859-1)
slovene|croat|hu101|hu|cz-lat2|pl|ro_win(codepage=852,iocharset=iso8859-2)

If you use one of the above keyboard and still like to mount with utf8 option,
write 'utf8' on the file /etc/codepage.
Attachments
utf8_mount-upup476-1.pet
enabling utf8 mount options and bugfix around locale
Apply only to upup-476
(22.15 KiB) Downloaded 1007 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

utf8 mounting of the boot partision

#3 Post by shinobar »

You still encounter the boot partision(/mnt/home) is mounted without utf8 option.
I had to rewrite init script in initial ram disk.
As for ntfs, original init ram disk uses old version of ntfs-3g that cannnot treat utf8.
I replaced the ntfs-3g to newer version of 2009.4.4 that is utf8 ready.

Visit next url of my site(temporal).
Download 'initrd-upup476_utf8-1.gz', rename to 'initrd.gz'
and replace the upup-476's original.
http://122.102.213.192/puppy/upup/

if you do not like utf8 option with this initrd, type 'pkeys=us' as the boot option.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Insalling SCIM

#4 Post by shinobar »

Now we can install SCIM from ububtu jaunty package.
http://packages.ubuntu.com/en/jaunty/scim
You also need libscim8c2a and scim-gtk2-immodule.
scim-bridge is troublesome, so i did not use it.

I installed them and cut it down to be slim.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

To enable each language

#5 Post by shinobar »

We can install SCIM related packages from ububtu jaunty.
scim-hangul for korean, scim-pinyin or scim-chewing for chinese.
also scim-tables* are usable.

ko_KR.UTF-8 and zh_CN.UTF-8 locale has problem beacuse some files lack in upup-476.
/usr/share/i18n/locales/tanslit_hangul
/usr/share/i18n/locales/iso14651_tl_pinyin
I brought them from ubuntu.

As for japanese, needs scim-anthy. But anthy package of ubuntu did not work.
I installed anthy-9100h.patch13Bptn23.2009527.alt-depgraph-090525-i686.pet
himajin made.
http://nami4.dyndns.org/p_blog/

Japanese fonts are available from IPA.
http://ossipedia.ipa.go.jp/ipafont/
Or, see the topic:
http://www.murga-linux.com/puppy/viewtopic.php?t=43400

I installed them and cut them down to be slim.
Visit my site and find all the pet's you need for CJK enable on upup-476.
http://122.102.213.192/puppy/upup/
Last edited by shinobar on Sun 28 Jun 2009, 20:12, edited 1 time in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Setting up

#6 Post by shinobar »

  1. Install upup-476
  2. Optionally replace initrd.gz to 'initrd-upup476_utf8-1.gz'(rename to 'initrd.gz').
  3. bootup upup-476
    You may need to edit xorg.conf, 'Option "XkbModel" "pc102"' to be proper for your keyboard.
  4. Install CJK support pet's
    • utf8_mount-upup476-1.pet
    • scim-1.4.7-0.476.0.1.pet
    • lang_support_??-upup476-0.1.pet ... you can install all 3
  5. Menu > Desktop > Chooselocale
    Once select 'en_US' as dummy
  6. Restart X
  7. Again, Menu > Desktop > Chooselocale
    Now select your locale ex. 'ko_KR'
    ensure 'UTF-8' encoding checked on
  8. Restart X
  9. Start up 'browse' or 'edit'
  10. Press [Ctrl] + [Space], then SCIM shall be usable.
Last edited by shinobar on Tue 16 Jun 2009, 05:21, edited 1 time in total.

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#7 Post by puppyiso »

This is the most exciting post I hae ever seen in this entire forum.

I am Korean living in China and chatting with Japanese friends all the time.

I must try this after work.

Great work!!! Thank you.

John S

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#8 Post by shinobar »

Thanks for reply, puppyiso.
Hangul font is thanks to your information.
You must be the best tester. Waiting for your report...

User avatar
himajin
Posts: 54
Joined: Tue 08 Jul 2008, 08:35
Location: JAPAN
Contact:

#9 Post by himajin »

Hi shinobar.
i did not made anthy. Pack it for puppy.that is only I did.


User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Thanks to you

#10 Post by shinobar »

Hi, himajin!
Most of the basis is from your work. Thanks!

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#11 Post by puppyiso »

It is very strange.

None of the downloaded pets can be installed.

What should I do?

John
Attachments
why.png
(107.44 KiB) Downloaded 1093 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#12 Post by shinobar »

hi, puppyiso

Try to change the directory name not use blanks.
'/inux/Upup cjk' --> '/linux/Upup_cjk'

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#13 Post by puppyiso »

By changing the folder name works but the Krean typig is very wrong.
It is not 2 sets but something else.

See the image.

I checked the SCIM setup. However, I do't see any change.
Attachments
why 2.png
(71.81 KiB) Downloaded 1096 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#14 Post by shinobar »

puppyiso wrote:By changing the folder name works but the Krean typig is very wrong.
It is not 2 sets but something else.
Left-click the scim panel then you can choice one of the 3 ways of korean input method.
Attachments
hangul.png
(58.88 KiB) Downloaded 2280 times

linus1972
Posts: 91
Joined: Thu 18 Jun 2009, 00:12
Contact:

#15 Post by linus1972 »

Hello, just wondering 'cause I didn't read whole post, is your puppy
avail in english too?
I hope so....
Thanks

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#16 Post by puppyiso »

When I booted again this morning, the screen was black and no icons.

I tried left click and choosing different options but I see no difference.

I even installed the other scim related pets from "41 language " post. But it only disabled scim.

I am thinking that either changing initrd.gz or editing xorg config. I now have to go to other city and there is no computer of my own. I can browse the internet but not allowed to do anything else.

I will try playing with upup ko locale again sometime later.

John

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#17 Post by shinobar »

puppyiso wrote:When I booted again this morning, the screen was black and no icons.
Menu > Shutdown > Restart X server

puppyiso, what type of keyboad you use?

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

upup CJK with other LANG

#18 Post by shinobar »

linus1972 wrote:is your puppy avail in english too?
upup CJK yes.

any locale your LANG is, you can read CJK(chinese, japanese, korean).

if you like to input CJK with other LANG, you must use UTF-8 encoding.
for exple. 'en_US.UTF-8'.
and you have to modify one configuration.
add the 2 letter code of your LANG for expl. 'en' at
/usr/lib/gtk-2.0/2.10.0/immodule-files.d/scim-gtk2-immodule.immodules
"/usr/lib/gtk-2.0/2.10.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh:en"

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#19 Post by puppyiso »

I use regular keyboard with US keymap.

It is dead at the grub stage but alive when I have to either input passwords or choose options during boots.

When I removed some pet files, the screen came back with icons. I now think that's because I restarted x

Everything is OK exept the typed Korean looked very funny.

eg;

Correct : 한글
Last edited by puppyiso on Thu 25 Jun 2009, 01:53, edited 1 time in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#20 Post by shinobar »

[quote="puppyiso"]Korean letters are combinations of 3 letter sets, like consonant+vowel+the third letter.

ㅎ +

Post Reply