unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Comparing non-English strings for sorting
@ 2009-02-10  6:31 spamfilteraccount
  2009-02-10 10:47 ` spamfilteraccount
  0 siblings, 1 reply; 3+ messages in thread
From: spamfilteraccount @ 2009-02-10  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I see Emacs doesn't have builtin support for sorting non-Engish (UTF,
Unicode) strings in proper order.

Has anyone written a comparison function which can handle sorting such
strings if the character order is provided?

For example, in my case I'd supply the Hungarian alphabetical order as
a string ("aábcdeéfghijklmnoóöőpqrstuúüűxyvz") and the string
comparison function would use the character positions in this string
when comparing two strings do determine which is the lesser.

It couldn't handle all kinds of Unicode strings, of course, but it
would be an adequately simple solution for most of the Western
languages.

Someone may have already written this for some package, only I don't
know where to look. Any pointers?



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

end of thread, other threads:[~2009-02-12 23:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10  6:31 Comparing non-English strings for sorting spamfilteraccount
2009-02-10 10:47 ` spamfilteraccount
2009-02-12 23:57   ` Thien-Thi Nguyen

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 read-only IMAP folder(s) and NNTP newsgroup(s).