From: Jirka Kosek Date: Thu, 15 Nov 2001 19:34:59 +0000 (+0000) Subject: When passivetex.extensions=1 character ​ is inserted between all occurences... X-Git-Tag: release/1.79.1~6^2~6120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6828c44731c3bcd7b9efa9a6bad938db0ac2d01d;p=docbook-dsssl When passivetex.extensions=1 character ​ is inserted between all occurences of --. This stops TeX ligature mechanism which converted all -- to endash and --- to emdash (this is ill especially in source code listings containing XML comments or decrementation operator). Performance cost of evaluating condition for each text node is under 5 %. This shouldn't annoy anyone. --- diff --git a/xsl/fo/docbook.xsl b/xsl/fo/docbook.xsl index 1cdf05b4b..91ce4d22b 100644 --- a/xsl/fo/docbook.xsl +++ b/xsl/fo/docbook.xsl @@ -65,6 +65,7 @@ + @@ -89,10 +90,6 @@ - - - - Making diff --git a/xsl/fo/passivetex.xsl b/xsl/fo/passivetex.xsl new file mode 100644 index 000000000..a8e14bfb8 --- /dev/null +++ b/xsl/fo/passivetex.xsl @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +