Package: dblatex Version: 0.3.4-2 Severity: normal Tags: patch The following simple docbook example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <!ENTITY Alpha "Α"> <!ENTITY Beta "Β"> <!ENTITY Gamma "Γ"> <!ENTITY Delta "Δ"> <!ENTITY Epsilon "Ε"> <!ENTITY Zeta "Ζ"> <!ENTITY Eta "Η"> <!ENTITY Theta "Θ"> <!ENTITY Iota "Ι"> <!ENTITY Kappa "Κ"> <!ENTITY Lambda "Λ"> <!ENTITY Mu "Μ"> <!ENTITY Nu "Ν"> <!ENTITY Xi "Ξ"> <!ENTITY Omicron "Ο"> <!ENTITY Pi "Π"> <!ENTITY Rho "Ρ"> <!ENTITY Sigma "Σ"> <!ENTITY Tau "Τ"> <!ENTITY Upsilon "Υ"> <!ENTITY Phi "Φ"> <!ENTITY Chi "Χ"> <!ENTITY Psi "Ψ"> <!ENTITY Omega "Ω"> <!ENTITY alpha "α"> <!ENTITY beta "β"> <!ENTITY gamma "γ"> <!ENTITY delta "δ"> <!ENTITY epsilon "ε"> <!ENTITY zeta "ζ"> <!ENTITY eta "η"> <!ENTITY theta "θ"> <!ENTITY iota "ι"> <!ENTITY kappa "κ"> <!ENTITY lambda "λ"> <!ENTITY mu "μ"> <!ENTITY nu "ν"> <!ENTITY xi "ξ"> <!ENTITY omicron "ο"> <!ENTITY pi "π"> <!ENTITY rho "ρ"> <!ENTITY varsigma "ς"> <!ENTITY sigma "σ"> <!ENTITY tau "τ"> <!ENTITY upsilon "υ"> <!ENTITY phi "φ"> <!ENTITY chi "χ"> <!ENTITY psi "ψ"> <!ENTITY omega "ω"> ] > <book id="simple_book"> <bookinfo> <title>A Simple Book Example</title> </bookinfo> <chapter id="simple_chapter"> <title>A Simple Chapter Example</title> <para> Is a Greek upper-case alphabet = Α, Β, Γ, Δ, Ε, Ζ, Η, Θ Ι, Κ, Λ, Μ, Ν, Ξ, Ο, Π, Ρ, Σ, Τ, Υ, Φ, Χ, Ψ, and Ω rendered correctly? </para> <para> Is a Greek lower-case alphabet = α, β, γ, δ, ε, ζ, η, θ, ι, κ, λ, μ, ν, ξ, ο, π, ρ, σ, τ, υ, φ, χ, ψ, and ω rendered correctly? </para> <para> Is a Greek lower-case alpha = α rendered correctly? </para> </chapter> </book> produces the following issues when running xmlto -vv --with-dblatex dvi simple_docbook.xml Source format: docbook / root element: nodes: Format script: /usr/share/xmlto/format/docbook/dvi "/usr/bin/xmllint" --noout --nonet --xinclude --postvalid --noent "/home/software/plplot_svn/HEAD/build_dir/doc/docbook/src/simple_docbook.xml" Convert to dvi Build the book set list... xsltproc -o /tmp/tmpphmGZ1/doclist.txt --xinclude --xincludestyle doclist.xsl /home/software/plplot_svn/HEAD/plplot_allura/doc/docbook/src/simple_docbook.xml Build the listings... xsltproc -o /tmp/tmpphmGZ1/listings.xml --xinclude --xincludestyle --param current.dir '/home/software/plplot_svn/HEAD/plplot_allura/doc/docbook/src' /usr/share/dblatex/xsl/common/mklistings.xsl /home/software/plplot_svn/HEAD/plplot_allura/doc/docbook/src/simple_docbook.xml xsltproc -o simple_docbook.rtex --xinclude --xincludestyle --param current.dir '/home/software/plplot_svn/HEAD/plplot_allura/doc/docbook/src' --param listings.xml '/tmp/tmpphmGZ1/listings.xml' /tmp/tmpphmGZ1/custom.xsl /home/software/plplot_svn/HEAD/plplot_allura/doc/docbook/src/simple_docbook.xml XSLT stylesheets DocBook - LaTeX 2e (0.3.4-2) =================================================== Build simple_docbook.dvi no support found for ifthen no support found for ifxetex no support found for fontspec no support found for xltxtra no support found for fontenc no support found for inputenc no support found for fancybox built-in module makeidx registered no support found for docbook building additional files... checking if compiling is necessary... the output file doesn't exist latex -interaction=batchmode simple_docbook.tex latex failed simple_docbook.tex:61: Undefined control sequence \Epsilon. simple_docbook.tex:61: leading text: ...\ensuremath{\Delta}, \ensuremath{\Epsilon} simple_docbook.tex:61: Undefined control sequence \Tau. simple_docbook.tex:61: leading text: ...1;, \ensuremath{\Sigma}, \ensuremath{\Tau} simple_docbook.tex:64: Undefined control sequence \texttheta. simple_docbook.tex:64: leading text: ...math{\zeta}, \ensuremath{\eta}, \texttheta Unexpected error occured Error: latex compilation failed Missing character Α Missing character Β Missing character Ζ Missing character Η Missing character Θ Missing character Ι Missing character Κ Missing character Μ Missing character Ν Missing character Ξ Missing character Ο Missing character Ρ Missing character Χ Missing character Ψ Missing character Ω If the patch that I will attach shortly is applied to /usr/share/pyshared/dbtexmf/dblatex/unient.py, then these issues are solved (no undefined control sequences and no Missing characters) and good looking dvi results (as viewed by xdvi) are obtained for the upper and lower-case Greek alphabet. -- System Information: Debian Release: 7.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dblatex depends on: ii docbook-xml 4.5-7.2 ii python 2.7.3-4 ii python-apt 0.8.8.2 ii texlive 2012.20120611-5 ii texlive-bibtex-extra 2012.20120611-2 ii texlive-extra-utils 2012.20120611-2 ii texlive-latex-extra 2012.20120611-2 ii texlive-math-extra 2012.20120611-2 ii xsltproc 1.1.26-14.1 Versions of packages dblatex recommends: ii libxml2-utils 2.8.0+dfsg1-7+nmu1 Versions of packages dblatex suggests: pn docbook <none> ii ghostscript 9.05~dfsg-6.3 ii gv [pdf-viewer] 1:3.7.3-1 ii imagemagick 8:6.7.7.10-5 pn latex-cjk-all <none> ii lmodern 2.004.2-1 ii okular [pdf-viewer] 4:4.8.4-3+b1 ii opensp 1.5.2-10 ii texlive-lang-cyrillic 2012.20120611-2 ii texlive-xetex 2012.20120611-5 pn transfig <none> -- no debconf information
--- unient.py.orig 2012-06-02 16:43:42.000000000 -0700 +++ unient.py 2013-08-23 19:26:24.190156880 -0700 @@ -170,15 +170,30 @@ 0x00389: r"\'{H}", # GREEK CAPITAL LETTER ETA WITH TONOS 0x0038A: r"\'{}{I}", # GREEK CAPITAL LETTER IOTA WITH TONOS 0x0038C: r"\'{}O", # GREEK CAPITAL LETTER OMICRON WITH TONOS +0x00391: r"{A}", # GREEK CAPITAL LETTER Alpha +0x00392: r"{B}", # GREEK CAPITAL LETTER Beta 0x00393: r"\ensuremath{\Gamma}", # GREEK CAPITAL LETTER GAMMA 0x00394: r"\ensuremath{\Delta}", # GREEK CAPITAL LETTER DELTA -0x00395: r"\ensuremath{\Epsilon}", # GREEK CAPITAL LETTER EPSILON +0x00395: r"{E}", # GREEK CAPITAL LETTER EPSILON +0x00396: r"{Z}", # GREEK CAPITAL LETTER ZETA +0x00397: r"{H}", # GREEK CAPITAL LETTER ETA +0x00398: r"\ensuremath{\Theta}", # GREEK CAPITAL LETTER THETA +0x00399: r"{I}", # GREEK CAPITAL LETTER IOTA +0x0039A: r"{K}", # GREEK CAPITAL LETTER KAPPA 0x0039B: r"\ensuremath{\Lambda}", # GREEK CAPITAL LETTER LAMDA +0x0039C: r"{M}", # GREEK CAPITAL LETTER MU +0x0039D: r"{N}", # GREEK CAPITAL LETTER NU +0x0039E: r"\ensuremath{\Xi}", # GREEK CAPITAL LETTER XI +0x0039F: r"{O}", # GREEK CAPITAL LETTER OMICRON 0x003A0: r"\ensuremath{\Pi}", # GREEK CAPITAL LETTER PI +0x003A1: r"{P}", # GREEK CAPITAL LETTER RHO 0x003A3: r"\ensuremath{\Sigma}", # GREEK CAPITAL LETTER SIGMA -0x003A4: r"\ensuremath{\Tau}", # GREEK CAPITAL LETTER TAU +0x003A4: r"{T}", # GREEK CAPITAL LETTER TAU 0x003A5: r"\ensuremath{\Upsilon}", # GREEK CAPITAL LETTER UPSILON 0x003A6: r"\ensuremath{\Phi}", # GREEK CAPITAL LETTER PHI +0x003A7: r"{X}", # GREEK CAPITAL LETTER CHI +0x003A8: r"\ensuremath{\Psi}", # GREEK CAPITAL LETTER PSI +0x003A9: r"\ensuremath{\Omega}", # GREEK CAPITAL LETTER OMEGA 0x003AC: r"\'{\ensuremath{\alpha}}", # GREEK SMALL LETTER ALPHA WITH TONOS 0x003AD: r"\ensuremath{\acute{\epsilon}}", # GREEK SMALL LETTER EPSILON WITH TONOS 0x003AE: r"\ensuremath{\acute{\eta}}", # GREEK SMALL LETTER ETA WITH TONOS @@ -191,7 +206,7 @@ 0x003B5: r"\ensuremath{\epsilon}", # GREEK SMALL LETTER EPSILON 0x003B6: r"\ensuremath{\zeta}", # GREEK SMALL LETTER ZETA 0x003B7: r"\ensuremath{\eta}", # GREEK SMALL LETTER ETA -0x003B8: r"\texttheta{}", # GREEK SMALL LETTER THETA +0x003B8: r"\ensuremath{\theta}", # GREEK SMALL LETTER THETA 0x003B9: r"\ensuremath{\iota}", # GREEK SMALL LETTER IOTA 0x003BA: r"\ensuremath{\kappa}", # GREEK SMALL LETTER KAPPA 0x003BB: r"\ensuremath{\lambda}", # GREEK SMALL LETTER LAMDA