[xml/sgml-pkgs] Bug#796871: dbtoepub: Incorrect index ordering for Norwegian ( Bokmål and Nynorsk)
Petter Reinholdtsen
pere at hungry.com
Tue Aug 25 08:02:57 UTC 2015
Package: dbtoepub
Version: 0+svn9150-2
The index ordering for the language codes nb and nn are incorrect when
building a book using dbtoepub. The example docbook file should produce
an index ordering like this:
A
Alle inne, test
B
Bare tull, test
Æ
Ærlig talt, test
Ø
Øvrigheten, test
Å
Åndalsnes, test
Instead it is producing this ordering for nb, nn and no:
Symboler
Ærlig talt, test
A
Alle inne, test
Åndalsnes, test
B
Bare tull, test
O
Øvrigheten, test
There are three errors here. First of all, Æ is not a symbol, it is a
letter ordered between Ø and Å. Second, Å and Ø is not variations of A
and O, but separate letters in the Norwegian languages, ordered ÆØÅ
after Z in the Norwegian alphabet.
This is the test document I am using:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<book lang="nb">
<bookinfo>
<title>Example demonstrating wrong nb indexterm sorting</title>
</bookinfo>
<preface>
<title>test</title>
<indexterm><primary>Alle inne</primary></indexterm>
<para>test "polarity"</para>
<indexterm><primary>Ærlig talt</primary></indexterm>
<indexterm><primary>Øvrigheten</primary></indexterm>
<indexterm><primary>Åndalsnes</primary></indexterm>
<para>text is good</para>
<indexterm><primary>Bare tull</primary></indexterm>
<para>text is great</para>
</preface>
<index></index>
</book>
--
Happy hacking
Petter Reinholdtsen
More information about the debian-xml-sgml-pkgs
mailing list