Page 1 of 2

upup CJK

Posted: Mon 15 Jun 2009, 11:28
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/

utf8 mount and bugfix around locale

Posted: Mon 15 Jun 2009, 16:01
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.

utf8 mounting of the boot partision

Posted: Tue 16 Jun 2009, 01:59
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.

Insalling SCIM

Posted: Tue 16 Jun 2009, 02:54
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.

To enable each language

Posted: Tue 16 Jun 2009, 03:15
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/

Setting up

Posted: Tue 16 Jun 2009, 04:33
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.

Posted: Tue 16 Jun 2009, 04:50
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

Posted: Tue 16 Jun 2009, 05:25
by shinobar
Thanks for reply, puppyiso.
Hangul font is thanks to your information.
You must be the best tester. Waiting for your report...

Posted: Tue 16 Jun 2009, 07:24
by himajin
Hi shinobar.
i did not made anthy. Pack it for puppy.that is only I did.


Thanks to you

Posted: Tue 16 Jun 2009, 11:12
by shinobar
Hi, himajin!
Most of the basis is from your work. Thanks!

Posted: Sun 21 Jun 2009, 14:17
by puppyiso
It is very strange.

None of the downloaded pets can be installed.

What should I do?

John

Posted: Sun 21 Jun 2009, 14:38
by shinobar
hi, puppyiso

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

Posted: Sun 21 Jun 2009, 15:28
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.

Posted: Sun 21 Jun 2009, 16:59
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.

Posted: Sun 21 Jun 2009, 17:16
by linus1972
Hello, just wondering 'cause I didn't read whole post, is your puppy
avail in english too?
I hope so....
Thanks

Posted: Mon 22 Jun 2009, 00:15
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

Posted: Mon 22 Jun 2009, 00:22
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?

upup CJK with other LANG

Posted: Mon 22 Jun 2009, 00:47
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"

Posted: Tue 23 Jun 2009, 13:11
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 : ν•œκΈ€

Posted: Tue 23 Jun 2009, 14:27
by shinobar
[quote="puppyiso"]Korean letters are combinations of 3 letter sets, like consonant+vowel+the third letter.

γ…Ž +