ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sorting languages
@ 2017-03-20 21:28 Pablo Rodriguez
  2017-03-20 21:45 ` Pablo Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Pablo Rodriguez @ 2017-03-20 21:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans,

in the ouput at http://www.ousia.tk/grc-order.pdf, you can see that the
vocabulary list, in both Spanish and ancient Greek are wrong sorted.

After that, I discovered sort-lan.lua. There must be something else
interferring in the sorting, because I read this list in the linked
document: κατὰ, ἐκλαλεῖσθαι, κοινώσεσθαι, κρίσιν, κρίσιν, ἐκτὸς,
ἐκχωρήσω, ἐλευθέρων, λιθιῶντας (it isn’t following the order in
sort-lan.lua).

I have two improvements. One is for the Spanish sort order. Accents
don’t change sorting order:

    orders = {
        "a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
        "k", "l", "m", "n", "ñ", "o", "p", "q", "r", "s",
        "t", "u", "v", "w", "x", "y", "z",
    }

Diacritics don‘t affect to Greek alphabetic sorting. This sort order
makes more sense:

    orders = {
        "α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ",
        "λ", "μ", "ν", "ξ", "ο", "π", "ρ", "σ", "σ", "τ",
        "υ", "φ", "χ", "ψ", "ω",
    },

Could those be added to ConTeXt?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-21 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-20 21:28 sorting languages Pablo Rodriguez
2017-03-20 21:45 ` Pablo Rodriguez
2017-03-21 10:08   ` Hans Hagen
2017-03-21 17:19     ` Pablo Rodriguez
2017-03-21 17:44       ` Wolfgang Schuster
2017-03-21 17:59         ` Pablo Rodriguez
2017-03-21 17:48       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).