Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying kanji/kana in X



Mike Fabian <mfabian@example.com> writes:

> If you have a fairly new xterm, which already has the option -u8, you
> can use it do display Japanese texts in UTF-8. Japanese texts in other
> encodings (euc-jp for example) can be displayed in an UTF-8 capable
> xterm by piping through "iconv" or by viewing them with "lv", which
> can convert the output to UTF-8:
> 
>    lv -Iej -Ou8 yuki.euc

I forgot to mention that you have to start xterm with the appropriate unicode font
which contains Japanese. It works well with the following font, which
is already part of XFree86 4.0.2:

    mfabian@example.com:~$ cat bin/utf8xterm
    export LC_ALL=ja_JP.UTF-8
    export LESSCHARSET=utf-8
    xterm -u8 -fn "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1" -e bash 
this font has cousins for wide characters:

-misc-fixed-medium-r-normal-ja-18-120-100-100-c-180-iso10646-1
-misc-fixed-medium-r-normal-ko-18-120-100-100-c-180-iso10646-1

which are automatically used as needed if you start xterm with the
matching single width font as shown above.

-- 
Mike Fabian   <mfabian@example.com>


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links