From 61ab6ccb35c77dd326bceaa4c81d9c0a50ebbc1e Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Thu, 15 Nov 2001 19:34:59 +0000 Subject: [PATCH] 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. --- xsl/fo/docbook.xsl | 5 +---- xsl/fo/passivetex.xsl | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 xsl/fo/passivetex.xsl 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.50.1