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:
Pierre Labastie 2024-01-27 17:28:43 +01:00
parent b6dd23c76b
commit b8d33a557b
5 changed files with 7 additions and 9 deletions

View File

@ -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"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl"
@ -7,8 +7,7 @@
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
<xsl:variable name="newline">
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
</xsl:variable>
<xsl:template match="/">

View File

@ -53,8 +53,8 @@
We have expanded the support to several inline tags.
See pdf/lfs-mixed.xsl.
Note: the argument in select= is a zero-width space
(unicode 200b, encoded in utf-8)-->
<xsl:param name="ulink.hyphenate" select="''"/>
(unicode 200b)-->
<xsl:param name="ulink.hyphenate" select="'&#x200B;'"/>
<!-- List of characters to allow ulink URLs, and supported inline tags,
to be automatically hyphenated on.

View File

@ -18,6 +18,7 @@
<!-- Generate DocBook instance with correct DOCTYPE -->
<xsl:output method="xml"
encoding="UTF-8"
doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>

View File

@ -31,8 +31,7 @@
</xsl:call-template>
<!-- Add a newline -->
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
</xsl:if>
</xsl:template>

View File

@ -28,8 +28,7 @@
<xsl:value-of select="@url"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
</xsl:if>
</xsl:template>