Re: [I18n]Displaying chinese in an xterm

2002-08-14 Thread Markus Kuhn

Jungshik Shin wrote on 2002-08-06 15:05 UTC:
   You can use one of 18pixel iso10646-1 bitmap fonts included in XF86
 4.x with more CJK characters than 13pixel font:
 
 -misc-fixed-medium-r-normal-ko-18-120-100-100-c-180-iso10646-1
 -misc-fixed-medium-r-normal-ja-18-120-100-100-c-180-iso10646-1
 
 However, I believe neither of them has the full coverage of GB 2312.

From README in http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz

   12x13ja.bdf:

 Covers all CP1252, CP437, JIS X 0208, and Hangul characters, and
 a few more. This font is primarily intended to provide Japanese
 full-width Hiragana, Katakana, and Kanji for applications that
 take the remaining (halfwidth) characters from 6x13.bdf. Might
 in the future be extended to cover TARGET2 if there is sufficient
 interest in using it as a stand-alone fixed-width font without
 6x13. The Greek lowercase characters in it are still a bit ugly
 and will need some work.

  18x18ja.bdf:

 Covers all JIS X 0208, JIS X 0212, GB 2312-80, KS X 1001:1992,
 ISO 8859-1,2,3,4,5,7,9,10,15, CP437, CP850 and CP1252 characters,
 plus a few more, where priority was given to Japanese han style
 variants. This font should have everything needed to cover the
 full ISO-2022-JP-2 (RFC 1554) repertoire. This font is primarily
 intended to provide Japanese full-width Hiragana, Katakana, and
 Kanji for applications that take the remaining (halfwidth)
 characters from 9x18.bdf.

  18x18ko.bdf:

 Covers the same repertoire as 18x18ja plus full coverage of all
 Hangul syllables and priority was given to Hanja glyphs in the
 unified CJK area as they are used for writing Korean.

What admittedly is still missing is an 18x18zh.bdf font that gives
priority to Chinese style variants, but GB 2312 is certainly covered by
both 18x18 fonts.

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: http://www.cl.cam.ac.uk/~mgk25/

___
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n



Re: [I18n]Displaying chinese in an xterm

2002-08-03 Thread Juliusz Chroboczek

BB  xterm -u8 -fn \
BB  -misc-fixed-medium-r-normal--16-120-75-75-c-0-unicode-0 \
BB  -e luit -g2 'GB 2312'

BB  the xterm will display chinese but the xterm is somewhat insane.
BB  the text is spread out to a follows

BB   should be:-test
BB   is   :-t  e   s  t

That typically happens when you use fonts that have f*cked up metrics.
As Tomohiro suggested, please use correct fonts.

Juliusz

___
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n



Re: [I18n]Displaying chinese in an xterm

2002-08-01 Thread Bruce M Beach

On Tue, 16 Jul 2002, Tomohiro KUBOTA wrote:

 Hi,

 At Tue, 16 Jul 2002 11:17:00 + (UTC),
 Bruce M Beach wrote:

  For several days I have been trying to get chinese(mainland GB2312 zh_CN)
  to come up in an xterm, .

 I am now working on writing a patch for xterm to support multibyte
 encodings such as GB23.

 The patch for xterm:
 http://www.xfree86.org/pipermail/i18n/2002-June/003265.html

 I have XFree86 version 4.2 and tried to apply your patch
 but the code in xc/programs/xterm bears no resemblance
 to your patch. I couldn't even apply the patch by hand.
 Are you using a different source tree or are there other
 patches involved.

 I downloaded some fonts from somewhere and If I try

 xterm -u8 -fn \
 -misc-fixed-medium-r-normal--16-120-75-75-c-0-unicode-0 \
 -e luit -g2 'GB 2312'


 the xterm will display chinese but the xterm is somewhat insane.
 the text is spread out to a follows

  should be:-test
  is   :-t  e   s  t

 Please note that the patch uses UTF-8 mode internally and use
 luit to convert UTF-8 and other encodings (GB2312 in your case).
 Thus you will need *-iso10646-1 fonts.

   Where can I find these fonts? Are the part of the x-distribution
   4.2 and if so what are there names?

   Rxvt (version 2.7 series)

I tried rxvt. If I try
   export LC_CTYPE=zh_CN.gbk
   rxvt
I will get chinese displayed ok. If I try

  rxvt -km gb

I get an error message
   rxvt: no similar multichar font: encoding GB; size 14
and I don't know what its looking for with no chinese.

Bruce


___
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n



Re: [I18n]Displaying chinese in an xterm

2002-07-15 Thread Tomohiro KUBOTA

Hi,

At Tue, 16 Jul 2002 11:17:00 + (UTC),
Bruce M Beach wrote:

 For several days I have been trying to get chinese(mainland GB2312 zh_CN)
 to come up in an xterm, but am not having any luck.

So far, xterm does not support GB2312 nor other multibyte encodings
(other than UTF-8).

I am now working on writing a patch for xterm to support multibyte
encodings such as GB2312, Big5, EUC-JP, EUC-KR, GBK, and Shift_JIS.
The patch also supports TIS620 Thai (which is 8bit and needs combining
characters).  Also, xterm will follow LC_CTYPE locale to determine
encoding.  I have almost finished writing the patch.

The patch needs a program 'luit' which is found in XFree86 version 4.2.

The patch for xterm:
http://www.xfree86.org/pipermail/i18n/2002-June/003265.html

You may want to apply the following patch for luit to support GBK
and Shift_JIS:
http://www.xfree86.org/pipermail/i18n/2002-July/003304.html

Please note that the patch uses UTF-8 mode internally and use
luit to convert UTF-8 and other encodings (GB2312 in your case).
Thus you will need *-iso10646-1 fonts.

Invoke the patched version of xterm in zh_CN.GB2312 locale and
xterm will use GB2312.  


There are also several terminal emulators which are sensible to
LC_CTYPE locale.
  Rxvt (version 2.7 series)
  Eterm  (version 0.9.2 series)
  mlterm

---
Tomohiro KUBOTA [EMAIL PROTECTED]
http://www.debian.or.jp/~kubota/
Introduction to I18N  http://www.debian.org/doc/manuals/intro-i18n/
___
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n