From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17978 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: cz support Date: Tue, 25 Jan 2005 20:54:33 +0100 Message-ID: <41F6A3F9.1040704@wxs.nl> References: <41F580A3.90203@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106729812 31228 80.91.229.6 (26 Jan 2005 08:56:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2005 08:56:52 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 26 09:56:45 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ctiyj-0001qX-00 for ; Wed, 26 Jan 2005 09:56:45 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7AA17127A1; Wed, 26 Jan 2005 09:56:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06688-08; Wed, 26 Jan 2005 09:56:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7B2BE127C1; Wed, 26 Jan 2005 09:33:13 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40267127C0 for ; Wed, 26 Jan 2005 09:33:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06063-08-2 for ; Wed, 26 Jan 2005 09:33:11 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 93690127BE for ; Wed, 26 Jan 2005 09:33:11 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j0Q8X4Kk027741; Wed, 26 Jan 2005 09:33:04 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D63841A211; Wed, 26 Jan 2005 09:25:38 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id E4E441A212; Wed, 26 Jan 2005 08:25:35 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users , Adam Lindsay In-Reply-To: <41F580A3.90203@seznam.cz> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17978 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17978 Vit Zyka wrote: > Hallo Hans and other ConTeXters, > > I have started to collect and clean up Czech ConTeXt localization. And I > have discovered that Tomas Hudec includeded Czech (non-trivial) sorting > rules into texutils.pl (calling czsort.pl from Jan Pazdziora). > Unfortunately it was not incorporated into official ConTeXt disribution. > > Hans, what is your prefereble solution in case of local sorting rules? I > know, there is \definesortkey, but this mechanism is insufficient for > Czech. I think that calling external Perl sorting routine is a suitable > solution. If so, it can be incorporated into current version? Files are > attached. in order to do that: - the pm code should move into texutil - we should find a way to hook the switch into texexec now, apart from such an effort, i think we should rethink sorting; - no funny encodings which demands the sorter to be encoding aware - no locale dependencies - readable sorting code -) steps: - write named glyphs to the output: - no longer use direct code in definecommand and defineaccent, i.e. - define the fallbacks as 'definecharacter ones' the last two steps actually come first (since adam l. is quite fluent in the character names and such, i guess that the both of us need to look into that and do that in 'one move'); after that i can rewrite the sort/index code to become aware of named glyphs and languages, and we can then plug in language specific sorting rules [taking care of xml at teh same time] [it's worth considering to drop the non etex code] named glyphs are not so much a problem, but we need to clean up the fallback encoding defs a bit in order to prevent funny expansion \def\literateencodedtokens {% \let\dohandleaccent \keephandleaccent % \let\dohandlecommand \keephandlecommand \let\dohandlecharacter\keephandlecharacter} \def\convertmeaning#1\to % watch the double expansion ! {\bgroup \honorunexpanded %\dontexpandencoding % new \literateencodedtokens % newer \xdef\@@globalexpanded{#1}% \xdef\@@globalexpanded{\@@globalexpanded}% \egroup \convertcommand\@@globalexpanded\to} \protect \enableencoding[texnansi] \setupregister[index][keyexpansion=yes] \starttext \defineactivecharacter * {\eacute} test \index{test \eacute * \'e test} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------