|
@@ -100,11 +100,15 @@ $p
|
|
|
grep "Simplified Chinese" stylesheets/lfs-xsl/lfs-l10n.xml ||
|
|
|
patch -N -p1 -i ../patches/lfs-l10n.xml.patch
|
|
|
|
|
|
+# Opts in the xsl specifying fonts
|
|
|
cp -v ../zh_CN-fonts.xsl stylesheets/lfs-xsl/pdf/
|
|
|
-
|
|
|
grep zh_CN-fonts stylesheets/lfs-xsl/pdf.xsl ||
|
|
|
sed '/<\/xsl:stylesheet>/i <xsl:include href="pdf/zh_CN-fonts.xsl"/>' \
|
|
|
-i stylesheets/lfs-xsl/pdf.xsl
|
|
|
|
|
|
+# Copy fonts to tmp dir, and let fop to use our custom config
|
|
|
grep '\-c fop.xml' Makefile ||
|
|
|
sed 's|fop -q|& -c ../fop.xml|' -i Makefile
|
|
|
+
|
|
|
+grep 'RENDERTMP)/fonts' Makefile ||
|
|
|
+ sed '/fop -q/i \\tmkdir -pv $(RENDERTMP)/fonts; cp -v ../fonts/* $(RENDERTMP)/fonts' -i Makefile
|