Re: Abiword0.7.12 unable to display Chinese on Mandrake7.2?


Subject: Re: Abiword0.7.12 unable to display Chinese on Mandrake7.2?
From: ha shao (hashao@chinese.com)
Date: Thu Jan 04 2001 - 20:56:23 CST


Please someone add this to Abiword's FAQ and Documentation?
Please................. Like I18N configuration or CJK display.

On Fri, Jan 05, 2001 at 08:16:46AM +0800, cxu1@china.com wrote:
> Sorry for the bothering, but I'm here asking for your help
> on Abiword 0.7.12, it just can't display Chinese on my
> Mandrake 7.2 . Could you give me any instructions ? In fact,
> abiword 0.7.11 and 0.7.10 are able to display under ZhXwin
> (which is based on Chinput), but 0.7.12 failed, though 0.7.12
> can input Chinese on ZhXwin (I saw the saved files had my
> input words.)
>
===========================================================

No, it does not. Abiword use X's font for display and type1 for printing.
It actually uses ttf for CJK printing thanks to hj's work on this part.

To display Chinese, you have to:
1) put a fonts.dir in your ${abisuite}/fonts/locale-spec/
 Where locale-spec is
   lang-territory.encoding or
   lang-territory or
   encoding

   Please note it uses '-' instead of underscore '_'.
   Debian's ${abisuite} is /usr/share/abisuite.

2) set your LANG environment to your preferred locale.
   If you want English menu, you can set LC_MESSAGES to C.
   This can be set manually or done inside your 'abiword'
   script which will call the actual binary.

3) sit back and enjoy.

The fonts.dir format is just like native X fonts.dir except
it has trailing numbers for font ascend, descend and width.

This is my GB2312/fonts.dir
==== cut ====
8
Song-Medium-GBK-H, -default-song-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Song-Medium-GBK-H, -default-song-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0, 880, 120, 1000
==== cut ====

This is my Big5/fonts.dir
==== cut ====
8
Ming-Medium-GBK-H, -default-ming-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Ming-Medium-GBK-H, -default-ming-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-r-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-medium-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
Kai-Medium, -default-kai-bold-i-normal--0-0-0-0-c-0-big5-0, 880, 120, 1000
==== cut ====

-- 
Best regard
hashao
-- 
Best regard
hashao



This archive was generated by hypermail 2b25 : Thu Jan 04 2001 - 20:54:31 CST