Author Topic: Scim-pinyin And Fonts  (Read 6571 times)

martint

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scim-pinyin And Fonts
« on: December 08, 2005, 10:44:40 am »
Hi,

I have installed scim and scim-pinyin from the RC12 feed on my c760.

I have also installed chinese font to /usr/X11R6/lib/X11/fonts/TTF.

When I enter Chinese using SCIM (either trad or simplified) characters appear correctly in the candidate selection area (and elsewhere in the SCIM interface), but when I confirm my selection (by pressing space) the characters entered in the application (e.g. SciTE or AbiWord) become unreadable.

Do I need to tell individual apps to use the Chinese font?  I can't see an obvious way to do this within SciTE; it should be simple in AbiWord, but my Chinese font is not listed under Format | Font - do I need to register it somehow?

Any help gratefully received - I know others have sorted what must be a trivial problem!

Thanks,
m

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #1 on: December 08, 2005, 11:11:00 am »
1. How do you install the chinese fonts?  Make sure that it is UTF8 truetype font.
2. AFAIK SciTE does not support chinese display, while Abiword can.  Also try out leafpad, a fast and lightweight notepad.
3. Usually you have to specify the fonts inside the particular programs.  
It looks like that your font file has some problem.  Try another chinese truetype font files and see if that helps.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

martint

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scim-pinyin And Fonts
« Reply #2 on: December 08, 2005, 11:22:44 am »
Thanks for this ZDevil.

To install the font I just copied it from another machine and dropped it in the dir mentioned below - then restarted X.

The font seems to be working - before I installed it even those characters within the SCIM interface were not displayed properly - now these are displayed fine - the problems when input selections are confirmed...but I will try another Chinese TT font as you suggest.

Does anyone know how I can make AbiWord see the Chinese font so I can select it? (at the moment only those installed by default are visible (Lucida Console, Times New Roman, Verdana)

Thanks again,
m

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #3 on: December 08, 2005, 11:34:56 am »
So far I have tried Arial Unicode MS and AP NL New Song (aka the 'firefly' fonts).  Both work.  Other unicode chinese fonts will also be fine in principle.  If your font is ok then Abiword must be able to see it.  Hope this helps.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #4 on: December 08, 2005, 11:41:26 am »
Also you can try fc-cache -f -v to update the font cache, and then fc-list to check all the working fonts in your machine.  If you install a font but can't fc-list it then the font may be not working.
« Last Edit: December 08, 2005, 11:41:49 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Scim-pinyin And Fonts
« Reply #5 on: December 08, 2005, 11:54:44 am »
Quote
Does anyone know how I can make AbiWord see the Chinese font so I can select it? (at the moment only those installed by default are visible (Lucida Console, Times New Roman, Verdana)
Exit AbiWord. In a terminal, run the following
Code: [Select]
fp-cache -fvRun AbiWord and it'll see them now.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

martint

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scim-pinyin And Fonts
« Reply #6 on: December 08, 2005, 11:59:56 am »
Thanks for help - I installed the Firefly font (http://www.study-area.org/apt/firefly-font/fireflysung-1.3.0.tar.gz) and ran fc-cache -fv and AbiWord is  handling Chinese fine!

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Scim-pinyin And Fonts
« Reply #7 on: December 25, 2005, 08:27:23 am »
Quote
I have installed scim and scim-pinyin from the RC12 feed on my c760.
martint, can you tell me exactly what your config is so that you got scim working? I can't get it to enter anything.

Did you install any other package besides scim and scim-pinyin? Which variables do you export when running X?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #8 on: December 26, 2005, 08:27:57 am »
Quote
Quote
I have installed scim and scim-pinyin from the RC12 feed on my c760.
martint, can you tell me exactly what your config is so that you got scim working? I can't get it to enter anything.

Did you install any other package besides scim and scim-pinyin? Which variables do you export when running X?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108441\"][{POST_SNAPBACK}][/a][/div]

I did the following:
-- Install scim_1.4.0-1_armv5tel.ipk and scim-tables_0.5.3-1_armv5tel.ipk (I don't use pinyin so I do not installe scim-pinyin).  
-- And then run this in the terminal:
Code: [Select]
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
And then scim will load automatically with gtk apps.  
Run scim-setup either from the terminal or by right-clicking the scim tool bar to get into the configuration screen to tune the setting to suit you need.

Hope this helps.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

martint

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scim-pinyin And Fonts
« Reply #9 on: December 29, 2005, 05:05:11 pm »
Quote
Quote
I have installed scim and scim-pinyin from the RC12 feed on my c760.
martint, can you tell me exactly what your config is so that you got scim working? I can't get it to enter anything.

Did you install any other package besides scim and scim-pinyin? Which variables do you export when running X?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108441\"][{POST_SNAPBACK}][/a][/div]


Hi - just to confirm, these are the only two pkgs I installed - and ran the command suggested by ZDevil:
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules

As far as I recall, that's all I did...

Cheers,
m

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Scim-pinyin And Fonts
« Reply #10 on: December 30, 2005, 04:45:00 am »
Quote
Hi - just to confirm, these are the only two pkgs I installed - and ran the command suggested by ZDevil:
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules

As far as I recall, that's all I did...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108859\"][{POST_SNAPBACK}][/a][/div]
Yes it works this way in GTK2 apps. But it still doesn't work in Qt apps, like Konqueror, Kdepim etc.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #11 on: December 30, 2005, 06:52:40 am »
Quote
Yes it works this way in GTK2 apps. But it still doesn't work in Qt apps, like Konqueror, Kdepim etc.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108916\"][{POST_SNAPBACK}][/a][/div]

Yes ... it's a pity and the usability of the existing QT apps on pdaX for CJK users has been discounted mainly for this reason...  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Scim-pinyin And Fonts
« Reply #12 on: December 30, 2005, 12:47:07 pm »
There is hope I think with skim - this is the scim for kde.

Tried to compile it for kde 3.5 on the Z, but am missing the kde headers and includes, so wasn't successful. But we should try this...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Scim-pinyin And Fonts
« Reply #13 on: December 30, 2005, 01:20:01 pm »
Right.  The solution is (supposed to be) always there.  Really look forward to trying your KDE image!

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]