mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
rendering: some utf-8 fixes
Reinstate some character entities Have some stylesheets output UTF-8 Part of a patch by Boian Berberov
This commit is contained in:
parent
b6dd23c76b
commit
b8d33a557b
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:exsl="http://exslt.org/common"
|
xmlns:exsl="http://exslt.org/common"
|
||||||
extension-element-prefixes="exsl"
|
extension-element-prefixes="exsl"
|
||||||
@ -7,8 +7,7 @@
|
|||||||
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
||||||
|
|
||||||
<xsl:variable name="newline">
|
<xsl:variable name="newline">
|
||||||
<xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:text>
|
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -53,8 +53,8 @@
|
|||||||
We have expanded the support to several inline tags.
|
We have expanded the support to several inline tags.
|
||||||
See pdf/lfs-mixed.xsl.
|
See pdf/lfs-mixed.xsl.
|
||||||
Note: the argument in select= is a zero-width space
|
Note: the argument in select= is a zero-width space
|
||||||
(unicode 200b, encoded in utf-8)-->
|
(unicode 200b)-->
|
||||||
<xsl:param name="ulink.hyphenate" select="''"/>
|
<xsl:param name="ulink.hyphenate" select="'​'"/>
|
||||||
|
|
||||||
<!-- List of characters to allow ulink URLs, and supported inline tags,
|
<!-- List of characters to allow ulink URLs, and supported inline tags,
|
||||||
to be automatically hyphenated on.
|
to be automatically hyphenated on.
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
<!-- Generate DocBook instance with correct DOCTYPE -->
|
<!-- Generate DocBook instance with correct DOCTYPE -->
|
||||||
<xsl:output method="xml"
|
<xsl:output method="xml"
|
||||||
|
encoding="UTF-8"
|
||||||
doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
|
doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
|
||||||
doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
|
doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
|
||||||
|
|
||||||
|
@ -31,8 +31,7 @@
|
|||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<!-- Add a newline -->
|
<!-- Add a newline -->
|
||||||
<xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:text>
|
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
<xsl:value-of select="@url"/>
|
<xsl:value-of select="@url"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
<xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:text>
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user