[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:

  Alle inne, test

  Bare tull, test

  Ærlig talt, test

  Øvrigheten, test

  Åndalsnes, test

Instead it is producing this ordering for nb, nn and no:

  Ærlig talt, test

  Alle inne, test
  Åndalsnes, test

  Bare tull, test

  Ø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"
<book lang="nb">
    <title>Example demonstrating wrong nb indexterm sorting</title>
<indexterm><primary>Alle inne</primary></indexterm>
<para>test "polarity"</para>
<indexterm><primary>Ærlig talt</primary></indexterm>
<para>text is good</para>
<indexterm><primary>Bare tull</primary></indexterm>
<para>text is great</para>

Happy hacking
Petter Reinholdtsen

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