From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10259 Path: main.gmane.org!not-for-mail From: Mikael Persson Newsgroups: gmane.comp.tex.context Subject: Re: More in lang-ger.tex and a MetaPost problem Date: Wed, 8 Jan 2003 19:36:21 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20030108193621.53f3091d.mickep@math.chalmers.se> References: <20030108141559.11b771d8.md9per@mdstud.chalmers.se> <200301081251.42724.john@wexfordpress.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042131660 14231 80.91.224.249 (9 Jan 2003 17:01:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 17:01:00 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Wg37-0003hM-00 for ; Thu, 09 Jan 2003 18:00:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 7F86D10AF6; Thu, 9 Jan 2003 18:02:13 +0100 (MET) Original-Received: from glutus.hemmet.chalmers.se (glutus.hemmet.chalmers.se [193.11.248.2]) by ref.ntg.nl (Postfix) with ESMTP id 57D0F10AEF for ; Wed, 8 Jan 2003 19:33:52 +0100 (MET) Original-Received: by glutus.hemmet.chalmers.se (Postfix, from userid 8) id DAFC1A5B; Wed, 8 Jan 2003 19:33:55 +0100 (CET) X-Scanned-By: AMaViS (postfix) using CLAM (openantivirus DB) antivirus scanner at glutus.hemmet.chalmers.se. Original-Received: from lillpelle.hemmet.chalmers.se (lillpelle.hemmet.chalmers.se [193.11.249.165]) by glutus.hemmet.chalmers.se (Postfix) with SMTP id 0A6D7A0A for ; Wed, 8 Jan 2003 19:33:50 +0100 (CET) Original-To: ntg-context@ntg.nl In-Reply-To: <200301081251.42724.john@wexfordpress.com> X-Mailer: Sylpheed version 0.8.8claws (GTK+ 1.2.10; i386-redhat-linux-gnu) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10259 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10259 On Wed, 8 Jan 2003 12:51:42 +0000 John Culleton wrote: > On Wednesday 08 January 2003 13:15, Mikael Persson wrote: > > Hi, > > > > I added som changes in lang-ger.tex some week ago. As I mentioned I > > forgot one headtext in lang-ger.tex. > > > > \setupheadtext [\s!sv] [\v!inhoud=Inneh\aring l] should have one > > more l, that is: \setupheadtext [\s!sv] [\v!inhoud=Inneh\aring ll] > > > > I also read in lang-ger.tex that there are some \definesortkey's for > > the norwegian language. I don't know why they are commented out > > (obsolete?). I tried to uncomment them and make a register that > > contains these additional letters (\aa,\ae,\o) but they still end up > > before A in the index. > > > > If they are correct for the norwegian language, then the swedish > > counterparts should look like this: > > > > %% SWEDISH % % These three letters (in this order) are the % last > > in the swedish alphabet (and hence should % come after z in the > > latin alphabet). % I'm not sure about the syntax for % > > \definesortkey so I left some of it open ... % % > > \startlanguagespecifics[\s!sv] % % \definesortkey > > {\aring}{z}{b}{\aring} % \definesortkey {\Aring}{z}{b}{\Aring} % > > \definesortkey {\aumlaut}{z}{c}{\aumlaut} % \definesortkey > > {\Aumlaut}{z}{c}{\Aumlaut} % \definesortkey > > {\oumlaut}{z}{d}{\oumlaut} % \definesortkey > > {\Oumlaut}{z}{d}{\Oumlaut} % % \stoplanguagespecifics > > > > I also saw this with activecharacters... The swedish counterpart > > should here be: > > > > % \startencoding[texnansi] % \startlanguagespecifics[\s!sv]% % > > \defineactivecharacter å {\aring{}} % \defineactivecharacter Å > > {\Aring{}} % \defineactivecharacter ä {\aumlaut{}} % > > \defineactivecharacter Ä {\Aumlaut{}} % \defineactivecharacter ö > > {\oumlaut{}} % \defineactivecharacter Ö {\Oumlaut{}} % > > \stoplanguagespecifics % \stopencoding > > > > At last, some questions: > > > > 1) How should I do to get Å,Ä,Ö last in the index? > > > For what purpose do you seek a new sort order? If for an index then > Xindy has some superior tools for accomplishing this. But how to use > Xindy in a Context run? I used the sort macro package from the TeXsis > macros. The particular file is called index.tex. There are some name > conflicts between this package and Context so I modified some names in > the macro package, e.g., index becomes indexx. Then one can embed the > commands in your pdfetex or Context file, run Context, run a couple of > programs from the Xindy suite (one to convert from makeindex format > and then Xindy itself) and rerun Context to produce the index in the > proper place. > > If Context can be made to do this with equal or greater facility then > there is no problem. But if not, Xindy was designed specifically to > handle indexes with various alphabets; indeed the tutorial deals with > accented words and the Hungarian "Ny" which is sorted as a separate > letter. All the situations you describe above are easily handled. > > HTH > -- > > John Culleton > Able Indexers and Typesetters > Rowse Reviews > Culleton Editorial Services > http://wexfordpress.com > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context Thanks for your answer John! I want to be able to sort the swedish letters, å,ä and ö. (the order is ... u,v,x,y,z,å,ä,ö). When I add words now that begin with those letters they end up before all other letters. Example. Adding zebra, åsna, älg and ödla gives something like ödla älg åsna Z zebra while I want it to be Z zebra Å åsna Ä älg Ö ödla ============ I have used xindy in LaTeX and liked it alot. Do I read your text correct between the lines when I read that ConTeXt uses makeindex as default but there is a way to use xindy instead to sort things? Or does ConTeXt sort things in another way? Regards, Micke P