Bug 1105260 - dblatex cannot generate PDF containing Greek alphabet
Summary: dblatex cannot generate PDF containing Greek alphabet
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dblatex
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael J Gruber
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-05 17:11 UTC by Jonathan Wakely
Modified: 2014-06-17 23:28 UTC (History)
5 users (show)

Fixed In Version: dblatex-0.3.5-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-17 23:28:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jonathan Wakely 2014-06-05 17:11:46 UTC
Description of problem:

A DocBook document using characters such as uppercase Theta cannot be processed by dblatex

Version-Release number of selected component (if applicable):

dblatex-0.3.4-8.fc20.noarch

How reproducible:

Always

Steps to Reproduce:

1. Create a file, greek.xml, with this content:

<?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 Theta    "&#920;">
]
>
<book>
  <chapter id="chapter">
    <title>Chapter</title>
    <para>
      &Theta; &Theta; pumpkin eater.
    </para>
  </chapter>
</book>

2. Run 'dblatex --pdf greek.xml'
3. Open greek.pdf

Actual results:

Warnings during compilation and the PDF says "&#x398; &#x398; pumpkin eater."


$ dblatex --pdf greek.xml
Build the book set list...
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.3.4)
===================================================
Missing character &#x398;
Missing character &#x398;
Build greek.pdf
'greek.pdf' successfully built


Expected results:

A nice PDF with Greek letters in.


Other Greek letters cause dblatex to fail and produce no output at all, e.g. lowercase theta:

<?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 Theta    "&#920;">
<!ENTITY theta    "&#952;">
]
>
<chapter id="chapter">
  <title>Chapter</title>
  <para>
    &Theta; &theta; pumpkin eater.
  </para>
</chapter>

$ dblatex --pdf greek.xml
Build the book set list...
Build the listings...
XSLT stylesheets DocBook - LaTeX 2e (0.3.4)
===================================================
Warning: the root element is not an article nor a book
Warning: chapter(chapter) wrapped with book
Missing character &#x398;
Build greek.pdf
pdflatex failed
greek.tex:60: Undefined control sequence \texttheta.
greek.tex:60: leading text:      \&\#x398; \texttheta
Unexpected error occured
Error: pdflatex compilation failed



Additional info:

I found the solution at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720624 and that's been fixed upstream in dblatex 0.3.5, which is now in rawhide.

Could the patch to unient.py be backported to Fedora 20?

Comment 1 Michael J Gruber 2014-06-06 07:39:42 UTC
So, to spare others from having to read the full report until the end to grasp the essential peace of information:

- There is a bug in dblatex 0.3.4 which, unsurprisingly, shows up in Fedora's 0.3.4 package.
- dblatex 0.3.5 (upstream) has a fix and is merely a bug fix release.
- dblatex 0.3.5 is in Fedora rawhide but not in Fedora 20.

I will push dblatex 0.3.5 to Fedora 20 as a bugfix update.

Comment 2 Fedora Update System 2014-06-06 08:11:31 UTC
dblatex-0.3.5-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dblatex-0.3.5-1.fc20

Comment 3 Fedora Update System 2014-06-10 03:08:31 UTC
Package dblatex-0.3.5-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dblatex-0.3.5-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7200/dblatex-0.3.5-1.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-06-17 23:28:29 UTC
dblatex-0.3.5-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.