On Sun, Jan 23, 2005 at 11:45:47PM +0100, Jens Seidel wrote:
> On Sun, Jan 23, 2005 at 10:44:31PM +0100, Osamu Aoki wrote:
> > Also last minutes check whether we can enable Korean PDF/PS? (Jens?
> > Any good idea?)
>
> Korean works nice (but not perfect since English strings such as
> "Chapter" are still used) using fixlatex from DDP.
First I got impressed with apt-howto.ko.pdf. When it comes to parse
sgml in korean, the job is not trivial because it requires three or
more steps to parse and get done.
What means "works nice"? I can't read korean in
http://www.debian.org/doc/manuals/apt-howto/apt-howto.ko.pdf.
You mean parsing is successful?
Is this font problem sort of?
>
> I started today to prepare a debiandoc-sgml patch and was surprised
> how easy it is. Currently the attached patch does not work for zh_TW
> but I know how to fix this.
>
> Please note that there is currently already another Korean document in
> DDP:
> http://www.debian.org/doc/manuals/apt-howto/apt-howto.ko.pdf
> The file above looks ugly, don't know why. I was able to create this
> document on my Woody and Sarge system. Maybe the required packages
> hlatex and hlatex-fonts-base where installed on www-master after
> the build occurred and one needs just to touch the apt-howto.ko.sgml file
> to force a new rebuild?
>
> The current patch can be found as attachment.
> I will improve and finish it this week.
>
> Jens
> Nur in debiandoc-sgml-1.1.84.neu: build-stamp.
> Nur in debiandoc-sgml-1.1.84.neu/debian: debiandoc-sgml.
> Nur in debiandoc-sgml-1.1.84.neu/debian: debiandoc-sgml.postinst.debhelper.
> Nur in debiandoc-sgml-1.1.84.neu/debian: debiandoc-sgml.postrm.debhelper.
> Nur in debiandoc-sgml-1.1.84.neu/debian: debiandoc-sgml.prerm.debhelper.
> Nur in debiandoc-sgml-1.1.84.neu/debian: debiandoc-sgml.substvars.
> Nur in debiandoc-sgml-1.1.84.neu/debian: files.
> Nur in debiandoc-sgml-1.1.84.neu/debian: tmp.
> Nur in debiandoc-sgml-1.1.84.neu: install-stamp.
> Nur in debiandoc-sgml-1.1.84.neu: Todo.
> Nur in debiandoc-sgml-1.1.84.neu/tools/bin: debiandoc2html.
> Nur in debiandoc-sgml-1.1.84.neu/tools/bin: debiandoc2latex.
> Nur in debiandoc-sgml-1.1.84.neu/tools/bin: debiandoc2texinfo.
> Nur in debiandoc-sgml-1.1.84.neu/tools/bin: debiandoc2text.
> Nur in debiandoc-sgml-1.1.84.neu/tools/bin: debiandoc2textov.
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Format/LaTeX.pm debiandoc-sgml-1.1.84.neu/tools/lib/Format/LaTeX.pm
> --- debiandoc-sgml-1.1.84/tools/lib/Format/LaTeX.pm 2004-04-27 03:09:18.000000000 +0200
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Format/LaTeX.pm 2005-01-23 22:45:59.000000000 +0100
> @@ -65,19 +65,22 @@
> ## ----------------------------------------------------------------------
> sub _output_start_book
> {
> - output( "\\documentclass[11pt,$locale{ 'babel' }]{book}\n" );
> + if (length( $locale{ 'babel' } )) {
> + output( "\\documentclass[11pt,$locale{ 'babel' }]{book}\n" );
> + } else {
> + output( "\\documentclass[11pt]{book}\n" );
> + }
> output( "\n" );
> - output( "\\usepackage[$locale{ 'inputenc' }]{inputenc}\n" )
> + output( "\\usepackage[$locale{ 'inputenc' }]{inputenc}\n\n" )
> if length( $locale{ 'inputenc' } );
> - output( "\n" );
> output( "\\usepackage[T1]{fontenc}\n" );
> output( "\n" );
> output( "\\usepackage{pifont}\n" );
> output( "\\usepackage{textcomp}\n" );
> output( "\\usepackage{wasysym}\n" );
> output( "\n" );
> - output( "\\usepackage{babel}\n" );
> - output( "\n" );
> + output( "\\usepackage{babel}\n\n" )
> + if length( $locale{ 'babel' } );
> output( "\\usepackage{helvet}\n" );
> output( "\\usepackage{palatino}\n" );
> output( "\n" );
> @@ -123,7 +126,7 @@
> output( "\\ifx\\pdfoutput\\undefined\n" );
> output( "\\usepackage[hypertex,colorlinks=true]{hyperref}\n" );
> output( "\\else\n" );
> - output( "\\usepackage[pdftex,colorlinks=true]{hyperref}\n" );
> + output( "\\usepackage[pdftex,colorlinks=true$locale{ 'pdfhyperref' }]{hyperref}\n" );
> output( "\\fi\n" );
> output( "\n" );
> output( "\\parindent=0pt\n" );
> @@ -134,11 +137,14 @@
> output( "\n" );
> output( "\\sloppy\n" );
> output( "\n" );
> + output( "$locale{ 'before begin document' }\n" );
> output( "\\begin{document}\n" );
> + output( "$locale{ 'after begin document' }\n" );
> }
> sub _output_end_book
> {
> output( "\n" );
> + output( "$locale{ 'before end document' }\n" );
> output( "\\end{document}\n");
> output( "\n" );
> }
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/HTML debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/HTML
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/HTML 2002-12-29 06:35:07.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/HTML 2005-01-23 21:14:44.000000000 +0100
> @@ -7,7 +7,7 @@
> %locale = (
> 'charset' => 'iso-8859-1',
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/LaTeX 2002-12-29 06:35:07.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/LaTeX 2005-01-23 21:15:19.000000000 +0100
> @@ -8,7 +8,7 @@
> 'babel' => 'german',
> 'inputenc' => 'latin1',
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> );
>
> ## ----------------------------------------------------------------------
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/Text debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/Text
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/Text 2002-12-29 06:35:07.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/Text 2005-01-23 21:15:53.000000000 +0100
> @@ -6,7 +6,7 @@
> ## ----------------------------------------------------------------------
> %locale = (
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/TextOV debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/TextOV
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-1/TextOV 2002-12-29 06:35:07.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-1/TextOV 2005-01-23 21:16:26.000000000 +0100
> @@ -6,7 +6,7 @@
> ## ----------------------------------------------------------------------
> %locale = (
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/HTML debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/HTML
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/HTML 2004-01-03 02:04:21.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/HTML 2005-01-23 21:17:07.000000000 +0100
> @@ -7,7 +7,7 @@
> %locale = (
> 'charset' => 'iso-8859-15',
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/LaTeX 2004-01-03 02:04:21.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/LaTeX 2005-01-23 21:17:19.000000000 +0100
> @@ -8,7 +8,7 @@
> 'babel' => 'german',
> 'inputenc' => 'latin9',
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> );
>
> ## ----------------------------------------------------------------------
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/Text debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/Text
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/Text 2004-01-03 02:04:22.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/Text 2005-01-23 21:17:34.000000000 +0100
> @@ -6,7 +6,7 @@
> ## ----------------------------------------------------------------------
> %locale = (
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/TextOV debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/TextOV
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/de_DE.ISO8859-15/TextOV 2004-01-03 02:04:22.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/de_DE.ISO8859-15/TextOV 2005-01-23 21:17:58.000000000 +0100
> @@ -6,7 +6,7 @@
> ## ----------------------------------------------------------------------
> %locale = (
> 'abstract' => 'Zusammenfassung',
> - 'copyright notice' => 'Copyright Hinweis',
> + 'copyright notice' => 'Copyright-Hinweis',
> 'contents' => 'Inhalt',
> 'chapter' => sub { return "Kapitel $_[0]" },
> 'appendix' => sub { return "Anhang $_[0]" },
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/ja_JP.eucJP/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/ja_JP.eucJP/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/ja_JP.eucJP/LaTeX 2002-12-29 06:35:08.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/ja_JP.eucJP/LaTeX 2005-01-23 23:09:59.000000000 +0100
> @@ -5,10 +5,37 @@
>
> ## ----------------------------------------------------------------------
> %locale = (
> - 'babel' => 'japanese',
> + 'babel' => '',
> 'inputenc' => '',
> 'abstract' => '³????×',
> 'copyright notice' => '??øº????????œŒ??',
> + 'pdfhyperref' => ',CJKbookmarks',
> + 'before begin document' => '\\usepackage{CJK}',
> + 'after begin document' => '\\begin{CJK}{JIS}{song}
> +\\renewcommand{\\vpageref}[1]{on page \\pageref{#1}}
> +\\def\\prefacename{Ͽ}
> +\\def\\refname{???? ????}
> +\\def\\abstractname{³?? ??×}
> +\\def\\bibname{??²¹??????????}
> +\\def\\chaptername{????}
> +\\def\\appendixname{???? ??¿}
> +\\def\\contentsname{???? Œ¡}
> +\\def\\listfigurename{¿Þ ???? Œ¡}
> +\\def\\listtablename{??œ ???? Œ¡}
> +\\def\\indexname{º÷ °??}
> +\\def\\figurename{¿Þ}
> +\\def\\tablename{??œ}
> +\\def\\partname{????}
> +\\def\\enclname{encl}
> +\\def\\ccname{cc}
> +\\def\\headtoname{ۯ}
> +\\def\\pagename{????}
> +\\def\\seename{??²????}
> +\\def\\alsoname{??²????}
> +\\def\\proofname{????????}
> +\\def\\glossaryname{????????œ??}',
> + 'before end document' => '\\clearpage
> +\\end{CJK}'
> );
>
> ## ----------------------------------------------------------------------
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/ko_KR.eucKR/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/ko_KR.eucKR/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/ko_KR.eucKR/LaTeX 2002-12-29 06:35:08.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/ko_KR.eucKR/LaTeX 2005-01-23 23:18:23.000000000 +0100
> @@ -5,10 +5,12 @@
>
> ## ----------------------------------------------------------------------
> %locale = (
> - 'babel' => 'korean',
> - 'inputenc' => 'euc-kr',
> + 'babel' => '',
> + 'inputenc' => '',
> 'abstract' => '¿??????',
> 'copyright notice' => '????????±??',
> + 'pdfhyperref' => ',CJKbookmarks',
> + 'before begin document' => '\\usepackage{hfont}'
> );
>
> ## ----------------------------------------------------------------------
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/zh_CN.GB2312/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/zh_CN.GB2312/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/zh_CN.GB2312/LaTeX 2002-12-29 06:35:08.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/zh_CN.GB2312/LaTeX 2005-01-23 22:46:59.000000000 +0100
> @@ -5,10 +5,15 @@
>
> ## ----------------------------------------------------------------------
> %locale = (
> - 'babel' => 'chinese',
> - 'inputenc' => 'gb2312',
> + 'babel' => '',
> + 'inputenc' => '',
> 'abstract' => '??ª??ª',
> 'copyright notice' => '°æ??????????÷',
> + 'pdfhyperref' => ',CJKbookmarks',
> + 'before begin document' => '\\usepackage{CJK}',
> + 'after begin document' => '\\begin{CJK}{GB}{kai}',
> + 'before end document' => '\\clearpage
> +\\end{CJK}'
> );
>
> ## ----------------------------------------------------------------------
> diff -aur debiandoc-sgml-1.1.84/tools/lib/Locale/zh_TW.Big5/LaTeX debiandoc-sgml-1.1.84.neu/tools/lib/Locale/zh_TW.Big5/LaTeX
> --- debiandoc-sgml-1.1.84/tools/lib/Locale/zh_TW.Big5/LaTeX 2002-12-29 06:35:08.000000000 +0100
> +++ debiandoc-sgml-1.1.84.neu/tools/lib/Locale/zh_TW.Big5/LaTeX 2005-01-23 22:46:42.000000000 +0100
> @@ -5,10 +5,15 @@
>
> ## ----------------------------------------------------------------------
> %locale = (
> - 'babel' => 'chinese',
> - 'inputenc' => 'big5',
> + 'babel' => '',
> + 'inputenc' => '',
> 'abstract' => 'ºKn',
> 'copyright notice' => 'ª????v??n????',
> + 'pdfhyperref' => ',CJKbookmarks',
> + 'before begin document' => '\\usepackage{CJK}',
> + 'after begin document' => '\\begin{CJK}{Bg5}{kai}',
> + 'before end document' => '\\clearpage
> +\\end{CJK}'
> );
>
> ## ----------------------------------------------------------------------
--
--
Yooseong Yang <yooseong@debian.org>
Debian(-KR) Developer
<http://www.debian.org> <http://www.debian.or.kr>
<http://master.debian.or.kr/~yooseong>
------------------------------------------------
CCs of replies from mailing lists are encouraged
Attachment:
signature.asc
Description: Digital signature