From owner-freebsd-doc@FreeBSD.ORG Fri Dec 19 03:45:41 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8F8D16A4CE for ; Fri, 19 Dec 2003 03:45:41 -0800 (PST) Received: from smtp.eos.ocn.ne.jp (eos.ocn.ne.jp [211.6.83.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 948D443D46 for ; Fri, 19 Dec 2003 03:45:39 -0800 (PST) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p19213-adsao12honb4-acca.tokyo.ocn.ne.jp [219.165.47.213]) by smtp.eos.ocn.ne.jp (Postfix) with ESMTP id 37F4738E; Fri, 19 Dec 2003 20:45:37 +0900 (JST) Received: from localhost (alph.allbsd.org [192.168.0.10]) by delta.allbsd.org (8.12.9p2/8.12.9) with ESMTP id hBJBjBAB010173; Fri, 19 Dec 2003 20:45:12 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Fri, 19 Dec 2003 20:43:08 +0900 (JST) Message-Id: <20031219.204308.35475294.hrs@eos.ocn.ne.jp> To: martin@sumuk.de, horcicka@freebsd.cz From: Hiroki Sato In-Reply-To: <20031218.093648.106310964.hrs@eos.ocn.ne.jp> <20031218010852.A44498@sumuk.de> References: <20031215174940.B38847@www.freebsd.cz> <20031218010852.A44498@sumuk.de> <20031218.093648.106310964.hrs@eos.ocn.ne.jp> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Dec_19_20:43:09_2003_119)--" Content-Transfer-Encoding: 7bit cc: freebsd-doc@FreeBSD.org Subject: Re: Problems with mirrors.xml and advisories.xml X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 11:45:41 -0000 ----Next_Part(Fri_Dec_19_20:43:09_2003_119)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Martin Heinen wrote in <20031218010852.A44498@sumuk.de>: martin> I encountered the same problem when sorting by martin> translated country names. Attached is a simple martin> test case: Running =BBxsltproc sort.xsl names.xml=AB martin> will produce the following list: Please try the attached stylesheet? This includes a quick hack to fix the sort order based on the order of accent marks in Unicode code map. I do not know if this is a reasonable order or not because my knowledge of languages spoken in European countries is very limited. The mechanism used in the quick hack is that accent marks in a target string are replaced with alphabets included in US-ASCII, and the set o= f strings are sorted based on the replaced string first, and on the original string after that. = However, in German ordering, "a:" (a with umlaut) is just after "a", but in Swedish ordering, "a:" is after "z", to the best of my memory... So if customizing a sort table used in the quick hack can solve the problem, I will commit this with the necessary customization layer. Or if the problem cannot be solved with such simple hack, I will take another approach to specify the sort order manually. Any comments are welcome. Especially I would like to know the situati= on of languages using their own character set such as Russian and Chinese= .= -- | Hiroki SATO ----Next_Part(Fri_Dec_19_20:43:09_2003_119)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sort.xsl" ÀÁÂÃÄÅÆĀ Ç Ð ÈÉÊËĒ ÌÍÎÏĪ Ñ ÒÓÔÕÖØŌŒ ÙÚÛÜŪ Ý àáâãäåæā ç èéêëē ìíîïī ñ òóôõöøōœ ß ùúûüū ýÿ AAAAAAAA C D EEEEE IIIII N OOOOOOOOO UUUUU Y aaaaaaaa c eeeee iiiii n oooooooo s uuuuu yy ----Next_Part(Fri_Dec_19_20:43:09_2003_119)----