From: Osamu Aoki <[EMAIL PROTECTED]>

> On Wed, Nov 08, 2006 at 07:27:09PM +0100, Danai SAE-HAN wrote:
> > It's created with bg5conv, which replaces all Big5 glyphs with control
> > sequences that TeX can read.  Nowadays you don't need this anymore:
> > the CJK package is smart enough to do all the stuff itself.
> 
> I am confised here.
> 
> You say sed replace ment is needed elsewhere but you say bg5conv is not
> needed.  I am confussed.  
> 
> So I should jusr remove bg5conv but keep sed?
> 
> I was creating Chinese without any sed script at one point.

Well, I can't get them to work through debian/rules either.  But I
found that there is a bin/fixlatex file as well as a
/usr/share/debiandoc-sgml/fixlatex file.  I tried changing things, but
it doesn't work.

Here's what debian/rules should actually do:

$ 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;' \
   <reference.zh-tw.tex-in | bg5conv  > reference.zh-tw.tex

$ latex reference.zh-tw.tex
(at least twice, to get the ToC e.a.)


There is a problem with pdflatex though.

  [11
  ! pdfTeX error (arithmetic): divided by zero.
  <to be read again>
                     \endgroup [EMAIL PROTECTED]@protect
  l.620 ^^?�^^?110^^?
                     
^^?�^^?67^^?^^?�^^?88^^?^^?�^^?77^^?^^?�^^?243^^?^^?�^^?1...

  !  ==> Fatal error occurred, the output PDF file is not finished!
  Transcript written on reference.zh-tw.log.

It seems that somewhere it sees an extra right accolade "}" but I
can't find it.  And why would latex work and pdflatex not?  Dunno
(yet).

What does work, is

  \usepackage[CJKbookmarks=true,dvipdfm]{hyperref}

with dvipdfmx.  Links work, but there are no fancy colours in evince.


BTW, when cleaning with fakeroot ./debian/rules clean,
"reference.zh-tw.tex-in" isn't removed.



Danai SAE-HAN
韓達耐

-- 
題目:《柳》
作者:寇准(961-1023)

曉帶輕煙間杏花,晚凝深翠拂平沙。
長條別有風流處,密映錢塘蘇小家。

Reply via email to