> I'm finding it very difficult to get started with CJK to do a very
> simple thing.

Actually, the problem is not CJK itself but the setup of the necessary
fonts.

 I'm running it on Debian Squeeze and using latex or 
> lualatex.  At this point, all I need to do is to include a few
> Chinese pinyin characters in an article.

I can't comment on the available TeX support of Debian.  However, I
strongly recommend to directly use TeXLive which has ready-to-run
support of the CJK package (for plain LaTeX or pdflatex) with
essential, freely-available CJK fonts.

> I installed latex-cjk-chinese.  I gathered it requires in addition
> the installation of a suitable font.  I was told to install
> hbf-jfs56 to get bitmap fonts for simplified Chinese.  But I cannot
> find it.

On TeXLive, only a single bitmap font in HBF format is available (for
CNS encoding).  All other fonts are outline fonts in Type1 format.

> So I installed the Arphic fonts that are available for my
> distribution (latex-cjk-chinese-arphic-bkai00mp, etc).  For
> simplified fonts I suppose I should choose either SungtiL GB, KaitiM
> GB.  Where do I find out what their difference is?

You simply try them in your document and look :-) `sungti' and `kaiti'
are approximately equivalent to the normal and italic shape of a serif
font, respectively.

> Although the Chinese characters are shown in the CJK 
> arphic-sampler.tex when I compile with latex, when I add:
>  
>   \usepackage{luacode}   
>   \usepackage{fontspec}  
>   \usepackage{pinyin}    
>   \usepackage[USenglish]{babel} 
> 
> and try to compile with lualatex, the characters don't display.

Uh, oh, please contact a luatex mailing list for further assistance!
Since I don't have enough time to take part of luatex development,
unfortunately, I can't help.  Basically, CJK's font setup is not
suited for luatex (or XeTeX) since the need to split CJK fonts into a
bunch of subfonts has gone.  Luatex directly uses TrueType fonts, and
fontspec provides a uniform interface for it.  I'm quite sure that you
already find some information if you do some googling.

> How do I input chinese characters?  Do I need to install scim or is
> there some way to input their hex codes?

The easiest way is to use a Unicode aware editor like Emacs, then
selecting a CJK input method you are comfortable with.  SCIM does the
same on the X terminals.  Hex codes do work also, of course, but they
are quite inconvenient since you have to manually look up which CJK
character maps to which Unicode value.


    Werner

_______________________________________________
Cjk maillist  -  Cjk@ffii.org
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to