svn commit: r42350 - in projects/db5: ja_JP.eucJP/share/xsl share/mk
Gabor Kovesdan
gabor at FreeBSD.org
Sun Jul 21 14:50:29 UTC 2013
Author: gabor
Date: Sun Jul 21 14:50:28 2013
New Revision: 42350
URL: http://svnweb.freebsd.org/changeset/doc/42350
Log:
- Add dblatex customization for Japanese
Added:
projects/db5/ja_JP.eucJP/share/xsl/freebsd-dblatex.xsl (contents, props changed)
Modified:
projects/db5/share/mk/doc.docbook.mk
Added: projects/db5/ja_JP.eucJP/share/xsl/freebsd-dblatex.xsl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/db5/ja_JP.eucJP/share/xsl/freebsd-dblatex.xsl Sun Jul 21 14:50:28 2013 (r42350)
@@ -0,0 +1,20 @@
+<?xml version='1.0'?>
+
+<!-- $FreeBSD$ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+ <!-- Pull in the language-independent stylesheet -->
+ <xsl:import href="../../../share/xsl/freebsd-dblatex.xsl"/>
+
+ <xsl:param name="xetex.font">
+ <xsl:text>\setmainfont{IPAPMincho}
+ </xsl:text>
+ <xsl:text>\setsansfont{IPAPGothic}
+ </xsl:text>
+ <xsl:text>\setmonofont{DejaVu Sans Mono}
+ </xsl:text>
+ </xsl:param>
+
+</xsl:stylesheet>
Modified: projects/db5/share/mk/doc.docbook.mk
==============================================================================
--- projects/db5/share/mk/doc.docbook.mk Sun Jul 21 14:49:22 2013 (r42349)
+++ projects/db5/share/mk/doc.docbook.mk Sun Jul 21 14:50:28 2013 (r42350)
@@ -77,7 +77,12 @@ XSLTPROCOPTS?= --nonet
IMGDIR?= ${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T}
CALLOUTDIR= ${.CURDIR}/imagelib/callouts
-DBLATEXOPTS?= -I ${IMGDIR} -p ${DOC_PREFIX}/share/xsl/freebsd-dblatex.xsl -T simple -b xetex -d
+.if exists(${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-dblatex.xsl)
+XSLDBLATEX= ${DOC_PREFIX}/${LANGCODE}/share/xsl/freebsd-dblatex.xsl
+.else
+XSLDBLATEX= ${DOC_PREFIX}/share/xsl/freebsd-dblatex.xsl
+.endif
+DBLATEXOPTS?= -I ${IMGDIR} -p ${XSLDBLATEX} -T simple -b xetex -d
FOPOPTS?= -c ${DOC_PREFIX}/share/misc/fop.xconf
KNOWN_FORMATS= html html.tar html-split html-split.tar \
More information about the svn-doc-projects
mailing list