From: Osamu Aoki <[EMAIL PROTECTED]>

> On Thu, Nov 09, 2006 at 02:08:54PM +0100, Jens Seidel wrote:
> > On Thu, Nov 09, 2006 at 03:34:15AM +0100, Danai SAE-HAN wrote:
> > > Okay, I checked out the SGML-generated .tex file, and it seems very
> > > much that Perl or something else misinterprets some of the CJK
> > > characters.
> > > 
> > > The command I used to create the .tex file was:
> > > debiandoc2latex -l zh_TW.Big5 reference.zh-tw.sgml
> 
> Then debantex script from debiandoc-sgml was used.  This was I vaguely
> remenber for woody environment work around.

IC.


> > > Examples of these misinterpreted characters:
> > > 
> > > in titledoc.sgml: 程 -> 琵{
> > > 
> > > in preface.sgml:  開 -> 跚}
> > >                   閱 -> 閱textbackslash{}
> > >                   誤 -> 蓋textasciitilde{}
> > 
> > Misinterprets? I remember that this was intentional! Extract from
> > fixlatex script which is applied after the SGML/Perl magic:
> > 
> > ("zh_TW")
> >         perl -p \
> > -e 's/([\x80-\xff])\\textbackslash\{\}/$1\\/g;' \
> > -e 's/([\x80-\xff])\\textasciitilde\{\}/$1\~/g;' \
> > -e 's/([\x80-\xff])\\textasciicircum\{\}/$1\^/g;' \
> > -e 's/([\x80-\xff])\\\}/$1\}/g;' \
> > -e 's/([\x80-\xff])\\\{/$1\{/g;' \
> > -e 's/([\x80-\xff])\\\_/$1_/g;' <$1 |
> >         bg5conv >$2
> 
> This part is not used when building debian-reference.  Package special
> bin/fixlatex is used instead.  It will be nice to remove these old junk.

OIC.  Well, this will work, because Big5 uses {, } and \, and these
characters are already used by TeX.

After the Perl command in fixlatex is run, you can then latex $2,
i.e. "latex reference.zh-tw.cjk", without problems.

On Saturday I'll investigate the other languages, and also see if
switching to UTF-8 is an option.


> It seems to fail when it does not find required fonts.

Yup.  When it can't find a font, CJK will turn to the default font
defined as "song".  Since there is no such font in a font definition
file, it will try Roman fonts, and goes "habeebalula".

The three patches for ja, zh_TW and zh_CN should fix this issue.


Best regards



Danai SAE-HAN
韓達耐

-- 
題目:《懷澠池寄子瞻兄》
作者:蘇轍(1039-1112)

相攜話別鄭原上,共道長途怕雪泥。
歸騎還尋大梁陌,行人已度古崤西。
曾為縣吏民知否?舊宿僧房壁共題。
遙想獨游佳味少,無方騅馬但鳴嘶。

Reply via email to