Your message dated Wed, 07 Apr 2010 14:16:36 +0200
with message-id <[email protected]>
has caused the   report #576217,
regarding dblatex: endless loop on German document and UTF-8
to be marked as having been forwarded to the upstream software
author(s) Benoit Guillon <[email protected]>

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
576217: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576217
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Hi Benoît,

I want to inform you of dblatex Debian BTS report #576217 [1], which
describes 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

The problem is as follows:

pdflatex creates .aux and .toc files that toggle between two states,
thus dblatex won't detect a stable result and will trigger pdflatex
again and again…

The toggling is caused by warnings in the .aux and .toc files like
[Pleaseinsert\PrerenderUnicode {ü}intopreamble] at every second pdflatex
run.

Attached is a minimal TeX example [2] that demonstrates the toc
alternation, enabling the commented line resolves the problem.  The
problem affects TeX Live 2009 as well as TeX Live 2007.

Attached is a hotfix [3] that works for german umlauts (I plan to
include this in Debian release 0.3-1 after further tests and unless you
suggest a better solution), however every non-ASCII character provokes
the problem, thus a fundamental solution must take another approach.

[1] http://bugs.debian.org/576217
[2] 
\documentclass{report}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
%\PrerenderUnicode{äöüÄÜÖß}
\begin{document}
\tableofcontents
\chapter{Special german characters: äöüÄÜÖß}
\end{document}
[3] 
Author: Andreas Hoenen <[email protected]>
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
@@ -217,6 +217,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>
Regards, Andreas
-- 
Andreas Hoenen <[email protected]>
GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE

Attachment: pgpSanWHULIWX.pgp
Description: PGP signature


--- End Message ---

Reply via email to