Help - Search - Members - Calendar
Full Version: Scim-pinyin And Fonts
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
martint
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
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.
martint
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
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. smile.gif
ZDevil
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. smile.gif
ShiroiKuma
QUOTE(martint @ Dec 8 2005, 05:22 PM)
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
fp-cache -fv

Run AbiWord and it'll see them now.
martint
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
QUOTE(martint @ Dec 8 2005, 04:44 PM)
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?
ZDevil
QUOTE(ShiroiKuma @ Dec 25 2005, 03:27 PM)
QUOTE(martint @ Dec 8 2005, 04:44 PM)
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?
*



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
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.
martint
QUOTE(ShiroiKuma @ Dec 25 2005, 05:27 AM)
QUOTE(martint @ Dec 8 2005, 04:44 PM)
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?
*




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
QUOTE(martint @ Dec 29 2005, 11:05 PM)
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...
*

Yes it works this way in GTK2 apps. But it still doesn't work in Qt apps, like Konqueror, Kdepim etc.
ZDevil
QUOTE(ShiroiKuma @ Dec 30 2005, 11:45 AM)
Yes it works this way in GTK2 apps. But it still doesn't work in Qt apps, like Konqueror, Kdepim etc.
*


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... dry.gif
ShiroiKuma
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...
ZDevil
Right. The solution is (supposed to be) always there. Really look forward to trying your KDE image! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.