Package: dblatex
Version: 1.12.4.2~dfsg-1+b14

Hi.  I am not sure if this is really a dblatex or a pandoc problem, but
start with dblatex as that is the program outputting the error message.

When I start with a markdown page with a non-ascii character in a title,
dblatex refuses to process the docbook generated from the page using
pandoc.  The generated docbook file is UTF-8, as is the original
markdown file.  Here is an example file that demonstrate the problem:

Demonstrate pandoc/dblatex problem with markdown
================================================

This markdown dokument demonstrate a problem with pandoc/dblatex.

To demonstrate the problem, process it like this:

```
pandoc -t docbook -f markdown+inline_notes -o bad-title.xml bad-title.md 
dblatex bad-title.xml 
```

It is tested with pandoc version 0.3.5-2 and dblatex version
1.12.4.2~dfsg-1+b14.

Ártica
------

The problem is the Á in Ártica, which is causing dblatex to reject the
XML file like this.

```
Build the book set list...
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.3.5-2)
===================================================
Warning: the root element is not an article nor a book
Warning: sect1(demonstrate-pandocmarkdown-problem) wrapped with article
Build bad-title.pdf
pdflatex failed
bad-title.aux:26: Missing \endcsname inserted.
bad-title.aux:26: leading text: ...rtica}{{1.1}{1}{�rtica}{subsection.1.1}{}}

A possible reason for transformation failure is invalid DocBook
(as reported by xmllint)

Error: pdflatex compilation failed
```

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to