Add Korean language support to the doc build system. Modified version
of that supplied in the PR. PR: 202699 Submitted by: Hoyoung Kim <trig4800@gmail.com> Approved by: doceng (implicit) Differential Revision: https://reviews.freebsd.org/D3520
This commit is contained in:
parent
ae70c68f32
commit
3eb170849f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47333
5 changed files with 105 additions and 13 deletions
ko_KR.UTF-8/share/xml
|
@ -6,7 +6,8 @@
|
|||
The FreeBSD Korean Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
Original revision: r43181
|
||||
Original revision: r47317
|
||||
from The FreeBSD Japanese Documentation Project
|
||||
-->
|
||||
|
||||
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
|
||||
|
@ -21,20 +22,19 @@
|
|||
<system
|
||||
systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-epub.xsl"
|
||||
uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
|
||||
<system
|
||||
systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-fo.xsl"
|
||||
uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
|
||||
<system
|
||||
systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-dblatex.xsl"
|
||||
uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
|
||||
<system
|
||||
systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-xhtml.xsl"
|
||||
uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
|
||||
|
||||
<public
|
||||
publicId="-//FreeBSD//ENTITIES FreeBSD Language Specific Entities//EN"
|
||||
<public publicId="-//FreeBSD//ENTITIES FreeBSD Language Specific Entities//EN"
|
||||
uri="l10n.ent" />
|
||||
<public
|
||||
publicId="-//FreeBSD//ENTITIES DocBook FreeBSD Entity Set//EN"
|
||||
uri="entities.ent" />
|
||||
<public
|
||||
publicId="-//FreeBSD//ENTITIES FreeBSD Release L10N Entities//EN"
|
||||
uri="release.l10n.ent" />
|
||||
<public
|
||||
publicId="-//FreeBSD//ENTITIES HTML FreeBSD Navigation Bar L10N Entities//EN"
|
||||
uri="navibar.l10n.ent" />
|
||||
<public
|
||||
publicId="-//FreeBSD//ENTITIES HTML FreeBSD Header L10N Entities//EN"
|
||||
uri="header.l10n.ent" />
|
||||
</catalog>
|
||||
|
|
22
ko_KR.UTF-8/share/xml/freebsd-dblatex.xsl
Normal file
22
ko_KR.UTF-8/share/xml/freebsd-dblatex.xsl
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version='1.0'?>
|
||||
|
||||
<!--
|
||||
The FreeBSD Korean Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
Original revision: r47317
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version='1.0'>
|
||||
|
||||
<xsl:param name="xetex.font">
|
||||
<xsl:text>\setmainfont{NanumMyeongjo}
|
||||
</xsl:text>
|
||||
<xsl:text>\setsansfont{NanumGothic}
|
||||
</xsl:text>
|
||||
<xsl:text>\setmonofont{DejaVu Sans Mono}
|
||||
</xsl:text>
|
||||
</xsl:param>
|
||||
|
||||
</xsl:stylesheet>
|
46
ko_KR.UTF-8/share/xml/freebsd-fo.xsl
Normal file
46
ko_KR.UTF-8/share/xml/freebsd-fo.xsl
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?xml version='1.0'?>
|
||||
|
||||
<!--
|
||||
The FreeBSD Korean Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
Original revision: r47317
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version='1.0'
|
||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
||||
exclude-result-prefixes="#default">
|
||||
|
||||
<!-- Pull in the CJK-specific stylesheet -->
|
||||
<xsl:import href="http://www.FreeBSD.org/XML/share/xml/freebsd-fo-cjk.xsl"/>
|
||||
|
||||
<!--
|
||||
Korean-SPECIFIC PARAMETERS
|
||||
-->
|
||||
|
||||
<!-- Base fonts -->
|
||||
<xsl:param name="body.font.family">NanumMyeongjo, Gentium Plus</xsl:param>
|
||||
<xsl:param name="sans.font.family">NanumGothic, Droid Sans</xsl:param>
|
||||
<xsl:param name="title.font.family">NanumGothic, Droid Sans</xsl:param>
|
||||
|
||||
<!-- Slightly reduce header font-size to make headers fit -->
|
||||
<xsl:attribute-set name="header.content.properties">
|
||||
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
||||
<xsl:attribute name="font-family">
|
||||
<xsl:value-of select="$body.fontset"></xsl:value-of>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="margin-left">
|
||||
<xsl:value-of select="$title.margin.left"></xsl:value-of>
|
||||
</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
|
||||
<!-- Increase inline monospace fonts to better fit the Korean font-size -->
|
||||
<xsl:attribute-set name="monospace.properties">
|
||||
<xsl:attribute name="font-family">
|
||||
<xsl:value-of select="$monospace.font.family"></xsl:value-of>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
|
||||
</xsl:stylesheet>
|
24
ko_KR.UTF-8/share/xml/freebsd-xhtml.xsl
Normal file
24
ko_KR.UTF-8/share/xml/freebsd-xhtml.xsl
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
|
||||
<!--
|
||||
The FreeBSD Korean Documentation Project
|
||||
|
||||
$FreeBSD$
|
||||
Original revision: r47317
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version='1.0'
|
||||
xmlns="http://www.w3.org/TR/xhtml1/transitional"
|
||||
exclude-result-prefixes="#default">
|
||||
|
||||
<xsl:template name="user.footer.navigation">
|
||||
<p align="center"><small>모든 FreeBSD 문서는
|
||||
<a href="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>
|
||||
에서 다운로드받으실 수 있습니다.</small></p>
|
||||
<p align="center"><small><a href="http://ftp.freebsd.org/pub/FreeBSD/doc/ko_KR.UTF-8/">문서</a>를 읽고 궁금한
|
||||
사항이 있으면 <<a href="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>로
|
||||
질문을 보내 주세요.<br/>이 문서에 대한 질문은 <<a
|
||||
href="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>로 보내 주세요.</small></p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -15,7 +15,7 @@
|
|||
<!ENTITY doc.html.charset "utf-8">
|
||||
|
||||
<!ENTITY doc.langcode.en "ko_KR.UTF-8">
|
||||
<!ENTITY doc.langcode "&doc.langcode.en;">
|
||||
<!ENTITY doc.langcode "&doc.langcode.ko;">
|
||||
|
||||
<!-- PUBLIC "-//FreeBSD//ENTITIES FreeBSD L10N Entities//EN" -->
|
||||
|
||||
|
|
Loading…
Reference in a new issue