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

Re: debiandoc-sgml can build ps/pdf files for CJK :-)



Hi Osamu and others,

I will try to improve support for Asian languages (CJK) such as Chinese, 
Japanese and others. But there is one minor problem: I do not speak and 
understand these! OK, nevertheless I'm able to recognize latex errors and 
I'm trying to fix these.

On Monday, 21. July 2003 00:58, Osamu Aoki wrote:
> On Sun, Jul 20, 2003 at 05:04:11PM -0500, Ardo van Rangelrooij wrote:
> > Any specific instructions about additional packages needed, special
> > setups, etc.  If so, we might want to add this to e.g. the README in
> > the package.
>
> Actually, your latex source output routine needs to be changed. We
> fixed this in the following manner.
>
> 1.  Copy debiandoc2latex{pdf|ps} locally.  Add few lines to enable
>     running simple script on created tex files before building ps|pdf
>     files.
> 2.  Change Makefile to use local hacked version of
>     debiandoc2latex{pdf|ps}
> 3.  Change to source is done by bin/fixlatex for simplicity (If you
>     adopt this kind of output for tex source codes, I know you do it
>     differently to impliment.)

As long as CJK support is unstable I suggest to move as much as possible 
of our bin/fixlatex script to an included .tex file. This is not 
necessary but I think this LaTeX macro file is easier to read than a 
shell script (your mileage may vary).
By adapting this file it's possible to modify LaTeX, to add translations 
of fundamental strings such as Chapter, Table of Contents, ...

Is there really no Chinese, Japenese, ... LaTeX style file available 
which does this for us (babel has no such support)?

> 4.  Add few new dependencies.
>
> Build-Depends-Indep: debhelper (>> 3.0.0), debiandoc-sgml(>= 1.1.67),
> tetex-bin, tetex-extra, w3m (>= 0.3) | w3m-ssl (>= 0.3) | w3mmee (>=
> 0.3), cjk-latex, freetype1-tools, tfm-arphic-bsmi00lp,
> tfm-arphic-bkai00mp, tfm-arphic-gbsn00lp, tfm-arphic-gkai00mp,
> hbf-jfs56, hbf-cns40-b5, hbf-kanji48

There are also other solutions (totally untested):

multex-base, multex-bin: Mulilingual text processing including Chinese,  
Japanese and Korean

latex-ucs: Support for using UTF-8 input encoding in LaTeX documents

> Here some more issues:
>
> Jens also told me that "It was also necessary to remove the "hyperref"
> package for dvi and ps targets (it's supported in Woody) in addition to
> pdf. ".

Yes and this is ugly. I will try to improve hyperref support so that we 
can use links in .pdf and .dvi (does .ps support these references?).

This package can be used for .dvi and .ps files in Woody (but not in Sid).

> It is impressive for me to see Chinese displayed on my X with xpdf or
> gv.

Please note that Woody's xpdf seems to be unable to display CJK.

Jens



Reply to: