From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Comparing non-English strings for sorting Date: Mon, 9 Feb 2009 22:31:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <290dbf13-a9d6-4c3a-a895-6bd895ab6c52@p37g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234280914 28667 80.91.229.12 (10 Feb 2009 15:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 15:48:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 16:49:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWurj-0000kD-Uo for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 16:49:40 +0100 Original-Received: from localhost ([127.0.0.1]:60210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWuqQ-0000gb-8X for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 10:48:18 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p37g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 81.183.147.204 Original-X-Trace: posting.google.com 1234247509 31995 127.0.0.1 (10 Feb 2009 06:31:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 10 Feb 2009 06:31:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p37g2000yqd.googlegroups.com; posting-host=81.183.147.204; posting-account=ksnUxwoAAAC32CfuC8oi8NKZxrTcNtdm User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.63 (Windows NT 5.1; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166715 X-Mailman-Approved-At: Tue, 10 Feb 2009 10:47:54 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62028 Archived-At: 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=E1bcde=E9fghijklmno=F3=F6=F5pqrstu=FA=FC=FBxyvz") and the stri= ng 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?