Dear list,

sorry for bothering again with this issue, but I need to have indices in
my documents.

I have the following sample:

    \mainlanguage[es]
    \setupregister[method=default]
    \starttext
    \startTEXpage[offset=1em]
    \index{ámame}\index{arisco}\index{ándrago}
    \index{antonia}\index{antón}
    \placeindex
    \stopTEXpage
    \stoptext

Word sorting is the following:

    antonia
    antón
    arisco
    ámame
    ándrago

Right word order is:

    ámame
    ándrago
    antón
    antonia
    arisco

In Spanish, as in other languages, an accented letter has no different
sorting that its unaccented counterpart.

I got the right word order adding these replacements in sort-lan.lua:

    replacements = {
        { "á", "a" }, { "é", "i"}, { "í", "i" }, { "ó", "o"},
        { "ú", "u" }, { "ü", "u" },
    },

Could anyone explain me whether this is the right way of doing it?

I mean, if this is the way, I have other two patches for other two
languages in which I have indices.

And if I’m wrong, I would like to know how to get right word sorting in
registers.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to