diff options
author | Changwoo Ryu <cwryu@debian.org> | 2019-05-29 19:18:39 +0000 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2019-05-29 19:18:39 +0000 |
commit | 2997e95b7bc6d21897afead9d364d06a4e24de5c (patch) | |
tree | 48b1408bca56e32b30d95c44e696c4263a299ef4 | |
parent | 12bb6426a79986b343c76159ae935799132c172e (diff) | |
download | installation-guide-2997e95b7bc6d21897afead9d364d06a4e24de5c.zip |
Improve Korean pdf
- Use space between words. Korean text has word spacing unlike Chinese or
Japanese.
- Use better shaped Nanum fonts instead of Wqy Micro Hei.
- Use 1.5x line spacing; it is hard to read Korean text with normal line
spacing.
-rw-r--r-- | build/stylesheets/dblatex.xsl | 15 | ||||
-rw-r--r-- | debian/control | 7 |
2 files changed, 14 insertions, 8 deletions
diff --git a/build/stylesheets/dblatex.xsl b/build/stylesheets/dblatex.xsl index a16797c24..e59a1464b 100644 --- a/build/stylesheets/dblatex.xsl +++ b/build/stylesheets/dblatex.xsl @@ -16,12 +16,15 @@ </xsl:when> <xsl:when test="contains(/book/@lang,'ko')"> <xsl:text>\usepackage{xeCJK} </xsl:text> - <xsl:text>\setCJKmainfont{WenQuanYi Micro Hei} </xsl:text> - <xsl:text>\setCJKsansfont{WenQuanYi Micro Hei} </xsl:text> - <xsl:text>\setCJKmonofont{WenQuanYi Micro Hei Mono} </xsl:text> - <xsl:text>\setmainfont{WenQuanYi Micro Hei} </xsl:text> - <xsl:text>\setsansfont{WenQuanYi Micro Hei} </xsl:text> - <xsl:text>\setmonofont{WenQuanYi Micro Hei Mono} </xsl:text> + <xsl:text>\xeCJKsetup{CJKspace=true,CJKmath=true,CJKecglue={}} </xsl:text> + <xsl:text>\usepackage{setspace} </xsl:text> + <xsl:text>\onehalfspacing </xsl:text> + <xsl:text>\setCJKmainfont{나눔명조} </xsl:text> + <xsl:text>\setCJKsansfont{나눔고딕} </xsl:text> + <xsl:text>\setCJKmonofont{나눔고딕코딩} </xsl:text> + <xsl:text>\setmainfont{나눔명조} </xsl:text> + <xsl:text>\setsansfont{나눔고딕} </xsl:text> + <xsl:text>\setmonofont{나눔고딕코딩} </xsl:text> </xsl:when> <xsl:when test="contains(/book/@lang,'zh')"> <xsl:text>\usepackage{xeCJK} </xsl:text> diff --git a/debian/control b/debian/control index cdf10cfa9..c80fa1950 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 4.1.4 Vcs-Git: https://salsa.debian.org/installer-team/installation-guide.git Vcs-Browser: https://salsa.debian.org/installer-team/installation-guide Build-Depends: debhelper (>= 6) -Build-Depends-Indep: docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, dblatex, docbook-dsssl, ghostscript, texlive-xetex, lmodern, texlive-lang-cyrillic, texlive-lang-czechslovak, texlive-lang-european, texlive-lang-french, texlive-lang-german, texlive-lang-greek, texlive-lang-italian, texlive-lang-other, texlive-lang-portuguese, texlive-lang-spanish, fonts-wqy-microhei, fonts-vlgothic, fonts-freefont-ttf +Build-Depends-Indep: docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml-parser-perl, w3m, poxml, dblatex, docbook-dsssl, ghostscript, texlive-xetex, lmodern, texlive-lang-cyrillic, texlive-lang-czechslovak, texlive-lang-european, texlive-lang-french, texlive-lang-german, texlive-lang-greek, texlive-lang-italian, texlive-lang-other, texlive-lang-portuguese, texlive-lang-spanish, fonts-wqy-microhei, fonts-vlgothic, fonts-nanum, fonts-nanum-coding, fonts-freefont-ttf # This comment can also be used to generate a Build-Depends-Indep 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 line @@ -53,9 +53,12 @@ Build-Depends-Indep: docbook, docbook-xml, docbook-xsl, xsltproc, gawk, libhtml- # All texlive-lang-* packages provide hyphenation and other # language-specific support. # - fonts-wqy-microhei -# Font for Korean and Chinese pdf. +# Font for Chinese pdf. # - fonts-vlgothic # Font for Japanese pdf. +# - fonts-nanum +# - fonts-nanum-coding +# Font for Korean pdf. # - fonts-freefont-ttf Package: installation-guide-amd64 |