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

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



On Mon, Jul 21, 2003 at 01:38:40AM +0200, Josip Rodin wrote:
> On Mon, Jul 21, 2003 at 12:58:17AM +0200, Osamu Aoki wrote:
> > Also Polish requested their quoting done nicely.  bin/fixhtml and
> > bin/fixtxt gives you what was going on. 
> > 
> >     ,,text to be quoted''  this is how they do it.
> 
> Croatian should have this as well, and presumably a few other related
> languages, too. I use „ and ” in HTML for that.

For ease of reading we decided to write SGML source as:
Dokument o nazwie: ,,&book-title;'' 

If we need to use '' in source which really needs to be '', we use 
'' for ''.

Then normal out put by debiandoc-sgml are fixed by:

For text, we convert it with:
perl -i -p -e 's/,,/"/g;' -e "s/''/\"/g;" $2

Dokument o nazwie: "Debian Reference" zawiera informacje

For HTML, we convert it with:
        for xx in *.html ;
        do
                perl -i -p -e 's/,,/„/g;' -e "s/''/”/g;" $xx
        done

Dokument o nazwie: „Debian Reference” zawiera

For Latex:
# use double quotes ,,text'', LaTeX: "`text"'
sed -e "s/\`\`/\"\`/g" -e "s/,,/\"\`/g" -e "s/''/\"'/g" > $file.tmp

> > I know the line for Build-Depends-Indep: is somewhat excessive but I am
> > ready for Japanese and Korean too.
> 
> > I think use of Unicode (that means move toward dookbook-xml tool) may be
> > the real solution.
> 
> It should be possible to use more default Unicode fonts. I'm not thrilled
> about having to download gobs of new fonts to get something I should
> already have. 

Do you get characters equivalent of „ ” in your latain-2 
encoding system in plain text or source code?  That was the issue.

> OTOH it's possible that e.g. the default Chinese font looks
> as crude as the default Latin font and is unsuitable for PDFs...

Actually, I thought Chinese font itself was nice in X on my unstable
system.

Character spacing especially nixed alphanumeric (Hankaku=haif-width)
fonts and fixed double width Chinese character were somewhat not perfect
but as good as MS-Words used to be in Windows 3.1 days.

One problem was current Chinese out put was justified to fit page width.
I much rather like left justified style in these fixed width fonts.
But this is my personal thing.

Osamu



Reply to: