Replace some utf-8 encoded chars with char entities

It has been said that some chars were not readable as utf-8.
This commit is contained in:
Pierre Labastie 2024-01-23 09:32:33 +01:00
parent a38df1ea10
commit 2a2f7d9ba6
4 changed files with 9 additions and 14 deletions

View File

@ -62,21 +62,17 @@
</xsl:template>
<xsl:template match="userinput">
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:if test=".//replaceable">
<xsl:text># This block must be edited to suit your needs.</xsl:text>
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:apply-templates/>
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:if test=".//replaceable">
<xsl:text># End of editable block.</xsl:text>
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:text>&#xA;</xsl:text>
</xsl:template>
<xsl:template match="replaceable">

View File

@ -52,8 +52,8 @@
<!-- Allow URLs to be automatically hyphenated.
We have expanded the support to several inline tags.
See pdf/lfs-mixed.xsl. The character in the
select attribute is a zero width space, encoded in utf-8-->
<xsl:param name="ulink.hyphenate" select="''"/>
select attribute is a zero width space -->
<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

@ -295,8 +295,8 @@
</xsl:when>
<xsl:when test="$numcols &gt; 3">
<!-- the character in the <td> element is a non breaking space
(unicode A0), encoded in utf-8 -->
<td> </td>
(unicode A0) -->
<td>&#xA0;</td>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>

View File

@ -107,8 +107,7 @@ exit</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="$patch.name"/>
<xsl:text> .
</xsl:text>
<xsl:text> .&#xA;</xsl:text>
</xsl:if>
</xsl:template>