From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24980 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: mode dependend character handling Date: Fri, 06 Jan 2006 15:39:01 +0100 Message-ID: <43BE8105.1020105@elvenkind.com> References: <2E198285-5441-4BCA-82A3-4D231FC8452B@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1136558351 27541 80.91.229.2 (6 Jan 2006 14:39:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2006 14:39:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 06 15:39:09 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EuskG-0000v1-2P for gctc-ntg-context-518@m.gmane.org; Fri, 06 Jan 2006 15:39:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8C0F6127D2; Fri, 6 Jan 2006 15:39:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03785-03-2; Fri, 6 Jan 2006 15:39:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58AD0127E0; Fri, 6 Jan 2006 15:39:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2F7B127D2 for ; Fri, 6 Jan 2006 15:39:03 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03810-03-2 for ; Fri, 6 Jan 2006 15:39:02 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id A47A6127C7 for ; Fri, 6 Jan 2006 15:39:02 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 3C7F318200 for ; Fri, 6 Jan 2006 15:39:02 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31349-02 for ; Fri, 6 Jan 2006 15:39:02 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id E772810E07 for ; Fri, 6 Jan 2006 15:39:01 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <2E198285-5441-4BCA-82A3-4D231FC8452B@fiee.net> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24980 Archived-At: Henning Hraban Ramm wrote: > (This mail was rejected as spam in my first try, and the reject messag= e=20 > was catched by my spam filter...) No doubt that's why spam for medication is so popular: you need the medication to cope with the rest of the spam. > A happy new year! Likewise! > I'd like to typeset a text in both German and Swiss German orthography, > i.e. I'd like to expand "s (or the like) to =DF in German and ss in Sw= iss=20 > German mode, > or even better, automagically change =DF to ss in Swiss mode. The correct way would be to define swiss as a language, because then you can put a suitable redefinition inside the language specifics, but the following hack will work as well and is a lot faster to implement (please don't tell anyone I proposed this): \enableregime[il1] \let\normalssharp\ssharp \def\ssharp{\doifmodeelse{swiss}{ss}{\normalssharp}} \starttext {\enablemode[swiss] Gr=FC=DFlis} Gr=FC=DFlis \stoptext Cheers, Taco