diff options
-rw-r--r-- | build/README | 10 | ||||
-rwxr-xr-x | build/buildone.sh | 16 | ||||
-rw-r--r-- | build/templates/header.ko.tex | 104 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/control | 4 |
5 files changed, 132 insertions, 8 deletions
diff --git a/build/README b/build/README index c01f8fb51..16c28bb75 100644 --- a/build/README +++ b/build/README @@ -9,10 +9,9 @@ The currently supported document types are: - ps - txt -Note: Building pdf and ps versions of the manual for Japanese and Greek is - not supported at the moment. - Reason is that we have not yet figured out how to use the required - fonts in the build process. +Note: Building pdf and ps versions of the manual is not supported for some + languages. Reason is that we have not yet figured out how to use the + required fonts in the build process. 1. Requirements: @@ -25,6 +24,9 @@ pdf, ps : openjade, jadetex, docbook-dsssl pdf : gs-common txt : w3m +For some languages additional packages are needed to build pdf: +ko : latex-hangul-ucs-hlatex + Note: It's not possible to build the documentation on Woody as packages are required that are not available for Woody. Note: jadetex depends on tetex-bin which unfortunately depends on some X libs, diff --git a/build/buildone.sh b/build/buildone.sh index 4f40eaa46..19ba3e8b7 100755 --- a/build/buildone.sh +++ b/build/buildone.sh @@ -192,6 +192,18 @@ create_dvi () { $tempdir/install.${language}.profiled.xml RET=$?; [ $RET -ne 0 ] && return $RET + # some languages need additional macro + case "$language" in + ko) + mv $tempdir/install.${language}.tex \ + $tempdir/install.${language}.orig.tex + cat templates/header.${language}.tex \ + $tempdir/install.${language}.orig.tex \ + > $tempdir/install.${language}.tex + rm $tempdir/install.${language}.orig.tex + ;; + esac + echo "Info: creating temporary .dvi file..." # Next we use jadetex to generate a .dvi file @@ -261,9 +273,9 @@ BUILD_OK="" BUILD_FAIL="" for format in $formats ; do case "$language" in - el|ja|ko|vi|zh_CN|zh_TW) + el|ja|vi|zh_CN|zh_TW) if [ "$format" = "pdf" -o "$format" = "ps" ] ; then - echo "Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese, Korean and Vietnamese" + echo "Warning: pdf and ps formats are currently not supported for Chinese, Greek, Japanese and Vietnamese" BUILD_SKIP="$BUILD_SKIP $format" continue fi diff --git a/build/templates/header.ko.tex b/build/templates/header.ko.tex new file mode 100644 index 000000000..b0820722c --- /dev/null +++ b/build/templates/header.ko.tex @@ -0,0 +1,104 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% hangul typesetting along with jadetex +%%% +%%% (C) 2005 Dohyun Kim <nomosnomos@gmail.com> +%%% +%%% This program is free software; you can redistribute it and/or modify +%%% it under the terms of version 2 of the GNU General Public License as +%%% published by the Free Software Foundation. +%%% +%%% This program is distributed in the hope that it will be useful, but +%%% WITHOUT ANY WARRANTY; without even the implied warranty of +%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%%% General Public License for more details. +%%% +%%% You should have received a copy of the GNU General Public License +%%% along with this program; if not, write to the Free Software +%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 +%%% USA +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\hangulfontnormal{unwmj} +\def\hangulfontbold{unwmjb} +\def\hangulfonttitlenormal{unwgt} +\def\hangulfonttitlebold{unwgtb} +\def\chaptername{Chapter} +\let\ucshanguljadetex@character@orig\Character +\def\Character#1{% + \expandafter\ifx\csname!#1\endcsname\relax + \hangulunichar{#1}% + \else + \ucshanguljadetex@character@orig{#1}% + \fi} +\edef\ucshanguljadetex@f@series{\f@series}% +\def\hangulunichar#1{% + \begingroup + \edef\temp@f@series{\f@series}% + \ifx\temp@f@series\ucshanguljadetex@f@series + \ifx\ProcessingMode{book-title-verso-mode} + \let\myhangulfont\hangulfonttitlenormal + \else + \let\myhangulfont\hangulfontnormal + \fi + \else + \ifx\ProcessingMode{book-title-verso-mode} + \let\myhangulfont\hangulfonttitlebold + \else + \let\myhangulfont\hangulfontbold + \fi + \fi + \count2=#1 % \count2 = "AC01 + \divide\count2 256 % \count2 = "AC + \count4\count2 % \count4 = "AC + \divide\count2 16 % \count2 = "A ; determined + \count255\count2 % \count255 = "A + \multiply\count255 16 % \count255 = "A0 + \advance\count4 -\count255 % \count4 = "C ; determined + \edef\mymyfont{\myhangulfont + \ifcase\count2 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or + 8\or 9\or a\or b\or c\or d\or e\or f\fi + \ifcase\count4 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or + 8\or 9\or a\or b\or c\or d\or e\or f\fi}% + \font\myfont\mymyfont\space at \f@size pt\relax + % calculate hangul char number + \count2=#1 % \count2 = "AC01 + \count255\count2 % \count255 = "AC01 + \divide\count255 256 % \count255 = "AC + \multiply\count255 256 % \count255 = "AC00 + \advance\count2 -\count255 % \count2 = "1 ; determined + \breakbeforehangulchar{#1}% allow linebreak before hangul chars + \myfont\char\count2 % print character + \hangulspacefactor{#1}% insert hangul spacefactor + \endgroup + \futurelet\nextglyph\breakbeforeasciioparen% allowbreak before ascii OP ( +} +% disallow linebreak after OP +\sfcode`\(=998 +\sfcode`\`=998 +\sfcode`\[=998 +\def\breakbeforehangulchar#1{% + \ifnum#1> 13311 + \ifnum#1< 64255 + \ifhmode + \ifdim\lastskip=0pt + \ifnum\spacefactor>998 + \ifnum\spacefactor=1001 + \discretionary{}{}{\kern-.085em}% + \else + \allowbreak + \fi\fi\fi\fi\fi\fi +} +\def\hangulspacefactor#1{% + \ifnum#1>13311 + \ifnum#1<64255 \spacefactor=1001 \else% hangul, hanja + \ifnum#1=65288 \spacefactor=998 \else% ( + \ifnum#1=65308 \spacefactor=998 \else% < + \ifnum#1=65339 \spacefactor=998 \else% [ + \ifnum#1=65371 \spacefactor=998 % { + \fi\fi\fi\fi\fi\else + \ifnum#1>12295 + \ifnum#1<12316 % 〈〉《》「」 etc + \ifodd#1 \else \spacefactor=998 \fi% 〈《「『【 etc + \fi\fi\fi +} +\def\breakbeforeasciioparen{\ifx (\nextglyph\allowbreak\fi} +\linespread{1.3} diff --git a/debian/changelog b/debian/changelog index 9158692d9..4ecc575b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -29,7 +29,11 @@ installation-guide (2006xxxx) UNRELEASED; urgency=low * Update preseeding docs to document listing more than one disk for partman-auto/disk and grub-installer/bootdev - -- Joey Hess <joeyh@debian.org> Thu, 17 Aug 2006 18:34:51 -0400 + [ Changwoo Ryu ] + * Add support for Korean PDF output. Requires latex-hangul-ucs-hlatex. + Closes: #381657. + + -- Frans Pop <fjp@debian.org> Sun, 20 Aug 2006 20:40:49 +0200 installation-guide (20060726) unstable; urgency=low diff --git a/debian/control b/debian/control index 22bb82285..1046c6e82 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian Install System Team <debian-boot@lists.debian.org> Uploaders: Joey Hess <joeyh@debian.org>, Frans Pop <fjp@debian.org> Standards-Version: 3.6.2 -Build-Depends: debhelper (>= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common +Build-Depends: debhelper (>= 4), docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, jadetex, openjade | openjade1.3, docbook-dsssl, gs-common, latex-hangul-ucs-hlatex # This comment can also be used to generate a Build-Depends line, by # running the debian/genbuilddeps program. So put each build dep on its # own line, prefixed by " - " and to comment out a build dep, start the @@ -31,6 +31,8 @@ Build-Depends: debhelper (>= 4), docbook, docbook-xml, docbook-xsl, xsltproc, ga # Used for producing pdf and ps files. # - gs-common # For pdfs. +# - latex-hangul-ucs-hlatex +# For Korean pdf Package: installation-guide-alpha Architecture: all |