[Bug 1073247] Re: a2x: pdf output fails with german umlauts in labels

Guenther Montag 1073247 at bugs.launchpad.net
Fri Nov 23 11:40:54 UTC 2012


Hallo Oliver,

das sieht ganz gut aus.

Am 23.11.2012 09:04, schrieb Oliver Burtchen:
> At least on Ubuntu 12.04 it seems there are two Problems involved:
>
> 1. asciidoc does not convert german-umlauts in xref-labels for the
> xml-output. A workaround is to manually give plain ascii xref-labels
> if a header contains german umlauts and you need the xreference.
> Otherwise just ignore them.

Wie soll ich die innerhalb des automatischen a2x-Prozesses händisch 
setzen, ohne dass sie immer wieder überschrieben werden?

> 2. texlive is not installed with utf-support by default, so pdflatex
> are unable to parse the generated output from asciidoc. On Ubuntu you
> have to install the cyrillic-texlive package, which includes utf8
> support.
>
> sudo apt-get install texlive-lang-cyrillic
>
> Now you have to tell asciidoc and dblatex to use it
>
> a2x -a encoding=utf-8 -a lang=de --dblatex-opts='-P
> latex.encoding=utf8 -P latex.unicode.use=1' -v test.asciidoc

Lässt sich das in einer config-Datei von a2x als default festlegen?

> This works well with umlauts, but probably fails with the german
> sharp s (ß). So you have to set manual xrefs here, even if you don't
> use them.

Wie soll das Problem gelöst werden, damit eine automatische Generierung 
möglich wird? Bei manueller Nacharbeit muss ich wohl nach jeder Änderung 
am asciidoc-Dokument die Labels ändern. Das ist so nicht praktikabel.

Gruß
   Günther

-- 
Guenther Montag
g at montag.de - (01 51) 50 99 33 22 - 14059 Berlin - Neufertstr. 10

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to asciidoc in Ubuntu.
https://bugs.launchpad.net/bugs/1073247

Title:
  a2x: pdf output fails with german umlauts in labels

Status in “asciidoc” package in Ubuntu:
  New

Bug description:
  Description:	Ubuntu 12.10
  Release:	12.10

  asciidoc:
    Installiert: 8.6.7-1
    Kandidat:    8.6.7-1
    Versionstabelle:
   *** 8.6.7-1 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
          100 /var/lib/dpkg/status

  Using german umlauts in headers or labels makes a2x -f pdf
  test.asciidoc fail. test.asciidoc is written in UTF-8.

  ...
  pdflatex -interaction=batchmode test.tex
  pdflatex failed
  test.aux:25: Missing \endcsname inserted.
  test.aux:25: leading text: ...ne erste �berschrift\relax }{section.1}{}}
  test.aux:30: Missing \endcsname inserted.
  test.aux:30: leading text: ...1}{1}{\refname \relax }{subsection.2.1}{}}
  Unexpected error occured
  Error: pdflatex compilation failed

  a2x: ERROR: "dblatex" -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty"  -V  "/home/guenther/fh/3.Sem/wiw464_PLM/Winkelmann/test.xml" returned non-zero exit status 1
  ...

  Trying the same with tex output (a2x -f tex test.asciidoc) shows, that
  umlauts in labels are not converted to latin1.

  The bug seems to be known in Debian:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622359#10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/asciidoc/+bug/1073247/+subscriptions




More information about the foundations-bugs mailing list