File: 20_endless_processing_loop.patch

package info (click to toggle)
dblatex 0.3.4-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 12,004 kB
  • sloc: xml: 100,126; python: 5,478; makefile: 137; sh: 70
file content (20 lines) | stat: -rw-r--r-- 840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Andreas Hoenen <andreas@hoenen-terstappen.de>
Description: Hotfix for BTS report #576217:
Avoid pdflatex runs repeating ad infinitum in case of:
- <book> document with german umlauts in headings
- dblatex processing options:
  * latex.encoding=utf8
  * latex.unicode.use=1
Please note that this patch only resolves the special case reported to BTS,
a fundamental solution must take into account also other non-ASCII characters,
e.g. î, …
--- a/xsl/lang.xsl
+++ b/xsl/lang.xsl
@@ -223,6 +223,7 @@
     <xsl:text>\usepackage[T2A,T2D,T1]{fontenc}&#10;</xsl:text>
     <xsl:text>\usepackage{ucs}&#10;</xsl:text>
     <xsl:text>\usepackage[utf8x]{inputenc}&#10;</xsl:text>
+    <xsl:text>\PrerenderUnicode{äöüÄÜÖß}&#10;</xsl:text>
     <xsl:text>\def\hyperparamadd{unicode=true}&#10;</xsl:text>
   </xsl:when>
   </xsl:choose>