[xml/sgml-pkgs] Bug#718562: xmlto: Looses norwegian ø (oslash) in text output

Petter Reinholdtsen pere at hungry.com
Fri Aug 2 09:44:26 UTC 2013


Package: xmlto
Version: 0.0.25-2

I discovered this problem while trying to typeset a Norwegian
translation of the Free Culture book using docbook.  The problem is
that the bookinfo subtitle looses the Norwegian character ø
disappears.

The following docbook fragment demonstrate the problem.

<?xml version='1.0' encoding='UTF-8' ?>
<?xml-stylesheet href="docbook-css-0.4/driver.css" type="text/css" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
<book id="index" lang="nb">
<bookinfo>
 <title>Book title</title>

 <subtitle>There is a missing letter here.  The norwegian 'ø'
 (oslash), just disappears.  The norwegian characters 'æ' (aelig), 'å'
 (aring), and the capital letters 'Ø', 'Æ' and 'Å' do show
 up.</subtitle>

</bookinfo>
<dedication>
<title></title>
<para>bla bla
</para>
</dedication>
</book>

When I generate a text version using 'LC_ALL=nb_NO.UTF-8 xmlto txt
missing-subtitle-chars.xml', I end up with this output:


Book title

There is a missing letter here. The norwegian ' ' (oslash), just disappears.
The norwegian characters 'æ' (aelig), 'å' (aring), and the capital letters 'Ø',
'Æ' and 'Å'.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

bla bla


Notice how the ø is turned into a space in the text output.

Happy hacking
Petter Reinholdtsen

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages xmlto depends on:
ii  debianutils    4.3.2
ii  docbook-xml    4.5-7.2
ii  docbook-xsl    1.76.1+dfsg-1
ii  libc6          2.13-38
ii  libxml2-utils  2.8.0+dfsg1-7+nmu1
ii  sgml-base      1.26+nmu4
ii  xsltproc       1.1.26-14.1

Versions of packages xmlto recommends:
ii  dblatex         0.3.4-2
ii  fop             1:1.0.dfsg2-6
ii  libpaper-utils  1.1.24+nmu2
ii  zip             3.0-6

Versions of packages xmlto suggests:
ii  links   2.7-1
ii  w3m     0.5.3-8
pn  xmltex  <none>

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list