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>
<xsl:template match="userinput"> <xsl:template match="userinput">
<xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:text>
<xsl:if test=".//replaceable"> <xsl:if test=".//replaceable">
<xsl:text># This block must be edited to suit your needs.</xsl:text> <xsl:text># This block must be edited to suit your needs.</xsl:text>
</xsl:if> </xsl:if>
<xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:text>
<xsl:apply-templates/> <xsl:apply-templates/>
<xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:text>
<xsl:if test=".//replaceable"> <xsl:if test=".//replaceable">
<xsl:text># End of editable block.</xsl:text> <xsl:text># End of editable block.</xsl:text>
</xsl:if> </xsl:if>
<xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="replaceable"> <xsl:template match="replaceable">

View File

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

View File

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

View File

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