Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Re: help w/japanese
- Date: Fri, 17 May 2002 10:52:48 +0200
- From: Mike Fabian <mfabian@example.com>
- Subject: [tlug] Re: help w/japanese
- References: <20020517111304.GA5803@example.com><877km3qrtp.fsf@example.com><20020517152811.GA6684@example.com>
- User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Common Lisp,i386-suse-linux)
Jack Morgan <yojack@example.com> writes: > On Fri, May 17, 2002 at 02:14:10PM +0900, Stephen J. Turnbull wrote: >> >>>>> "Jack" == Jack Morgan <yojack@example.com> writes: >> >> Jack> I'm having trouble getting japanese to display in an >> Jack> xterm/mlterm. >> >> xterm don't do Japanese. It will do UTF-8, which may be good enough. >> See below. mlterm I don't know about. > > Kterm is best then for japanese? Not really, it is old and has many quirks. I don't use it much anymore, mlterm is my favorite terminal emulator now. >> Jack> I suspect it's a font issue bacuse even doing ls -al in >> Jack> mlterm displays "05-17" for month/day and not the kanji >> Jack> equivalent. >> >> Erh, if you think you need an explicit LANG for mutt, I would presume >> that means that mlterm was not executed with LANG set? What does echo >> $LANG tell you in a fresh mlterm? > > Mlterm echos nothing, but the above ja_JP.eucJP and ja_JP.utf8 did fix the > month/day to May 17 instead of 05-17. But that is not a fix, you said you want to see Japanese, not English. If you get 'May 17' you don't have set a Japanese locale. In a Japanese locale, you should get: mfabian@example.com:~$ date 金 5月 17 10:41:26 CEST 2002 mfabian@example.com:~$ ls -la .bashrc -rw-r--r-- 1 mfabian suse 1447 5月 14 04:43 .bashrc mfabian@example.com:~$ check the output of the 'locale' command in your mlterm, you should get something like mfabian@example.com:~$ locale LANG=ja_JP.UTF-8 LC_CTYPE="ja_JP.UTF-8" LC_NUMERIC="ja_JP.UTF-8" LC_TIME="ja_JP.UTF-8" LC_COLLATE=POSIX LC_MONETARY="ja_JP.UTF-8" LC_MESSAGES="ja_JP.UTF-8" LC_PAPER="ja_JP.UTF-8" LC_NAME="ja_JP.UTF-8" LC_ADDRESS="ja_JP.UTF-8" LC_TELEPHONE="ja_JP.UTF-8" LC_MEASUREMENT="ja_JP.UTF-8" LC_IDENTIFICATION="ja_JP.UTF-8" LC_ALL= mfabian@example.com:~$ or mfabian@example.com:~$ locale LANG=ja_JP.eucJP LC_CTYPE="ja_JP.eucJP" LC_NUMERIC="ja_JP.eucJP" LC_TIME="ja_JP.eucJP" LC_COLLATE=POSIX LC_MONETARY="ja_JP.eucJP" LC_MESSAGES="ja_JP.eucJP" LC_PAPER="ja_JP.eucJP" LC_NAME="ja_JP.eucJP" LC_ADDRESS="ja_JP.eucJP" LC_TELEPHONE="ja_JP.eucJP" LC_MEASUREMENT="ja_JP.eucJP" LC_IDENTIFICATION="ja_JP.eucJP" LC_ALL= mfabian@example.com:~$ depending on which locale you used when starting mlterm. >> Jack> I know I have fonts: >> >> Jack> # xlsfonts |grep jisx >> >> Jack> gives me the same output as Mike Fabian's page: >> >> For xterm, you also need a sane set of iso10646 fonts. I think the >> adobe and b&h fonts are irrelevant. I'm not sure which of the >> following do Japanese, probably unifont and fixed-*-ja. >> >> $ xlsfonts | fgrep iso10646 >> -gnu-unifont-medium-r-normal--0-0-75-75-c-0-iso10646-1 >> -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1 >> -misc-fixed-bold-r-normal--0-0-100-100-c-0-iso10646-1 >> -misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso10646-1 >> -misc-fixed-medium-o-normal--0-0-75-75-c-0-iso10646-1 >> -misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso10646-1 >> -misc-fixed-medium-r-normal--0-0-100-100-c-0-iso10646-1 >> -misc-fixed-medium-r-normal-ja-0-0-100-100-c-0-iso10646-1 >> -misc-fixed-medium-r-normal-ko-0-0-100-100-c-0-iso10646-1 >> -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso10646-1 >> -mutt-clearlyu alternate glyphs-medium-r-normal--0-0-100-100-p-0-iso10646-1 >> -mutt-clearlyu pua-medium-r-normal--0-0-100-100-p-0-iso10646-1 >> -mutt-clearlyu-medium-r-normal--0-0-100-100-p-0-iso10646-1 > > I have these except unifont. For mlterm you need to specify the fonts to use in a config file. There is no command line option for fonts (except size) and mlterm doesn't use X resources either. The system wide mlterm font config file is usually at /etc/X11/mlterm/font, but you can have your own in ~/.mlterm/font. I attach the /etc/X11/mlterm/font I currently use for SuSE Linux as an example. Using this config file, LANG=ja_JP.UTF-8 mlterm --fontsize=18 and LANG=ja_JP.eucJP mlterm --fontsize=16 should work out of the box because then fonts are used which are already part of the standard XFree86 distributions. For other sizes check whether you have the fonts specified in /etc/X11/mlterm/font.Attachment: font
Description: Binary data-- Mike Fabian <mfabian@example.com> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
- Follow-Ups:
- Re: [tlug] Re: help w/japanese
- From: Jack Morgan
- References:
- [tlug] help w/japanese
- From: Jack Morgan
- Re: [tlug] help w/japanese
- From: Stephen J. Turnbull
- Re: [tlug] help w/japanese
- From: Jack Morgan
Home | Main Index | Thread Index
- Prev by Date: [tlug] Re: help w/japanese
- Next by Date: Re: [tlug] help w/japanese
- Previous by thread: Re: [tlug] help w/japanese
- Next by thread: Re: [tlug] Re: help w/japanese
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links