From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25176 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: mode dependend character handling Date: Sat, 14 Jan 2006 20:35:57 +0100 Message-ID: <6faad9f00601141135h7ef14048g57c526b049d2a539@mail.gmail.com> References: <2E198285-5441-4BCA-82A3-4D231FC8452B@fiee.net> <43BE8105.1020105@elvenkind.com> 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 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137267370 24256 80.91.229.2 (14 Jan 2006 19:36:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2006 19:36:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 14 20:36:08 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 1ExrC2-0001yt-VI for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jan 2006 20:36:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6307312833; Sat, 14 Jan 2006 20:36:06 +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 17627-01; Sat, 14 Jan 2006 20:36:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65654127A0; Sat, 14 Jan 2006 20:36:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3BED0127A0 for ; Sat, 14 Jan 2006 20:36:00 +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 17566-03 for ; Sat, 14 Jan 2006 20:35:59 +0100 (CET) Original-Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.199]) by ronja.ntg.nl (Postfix) with SMTP id 37D751279F for ; Sat, 14 Jan 2006 20:35:58 +0100 (CET) Original-Received: by uproxy.gmail.com with SMTP id m2so238623uge for ; Sat, 14 Jan 2006 11:35:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h8nigHSyui/1D/CU0hS3MJMVj65KYOMbZtWLo6pkj/Sct17XqE1F3owinVHsPNhF/trxBOTMlSQwp1ms6Cjt0ZPhTheimiaLn2vbVFXzx1TTbo6lupY5bDP94w6pzwXcKSryrUp3y1mLFpO6pnv9hhLQgMwoCJLbIVPNWqfLw/I= Original-Received: by 10.48.157.1 with SMTP id f1mr149674nfe; Sat, 14 Jan 2006 11:35:57 -0800 (PST) Original-Received: by 10.48.223.20 with HTTP; Sat, 14 Jan 2006 11:35:57 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: Content-Disposition: inline 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:25176 Archived-At: Henning Hraban Ramm wrote: > Mojca's proposal: > > > \startmode[swiss] > > \definecharacter ssharp {ss} > > \stopmode > > unfortunately doesn't work, at least not with utf regime and ec > encoding. Since Taco's proposal is OK, you don't need this, but I'll reply anyway. The problem is caused by "wrong order" of commands. If you load ec encoding AFTER this command, your new definition of ssharp will be overridden by the encoding definition again. Compare: \enableregime[utf] % may be whatever, no influence \startmode[swiss] \definecharacter ssharp {ss} \stopmode \usetypescript[modern][ec] % or texnansi \setupbodyfont[modern] \starttext Ma=DF Bier! % fails (prints =DF) \stoptext with: \usetypescript[modern][ec] % or texnansi \setupbodyfont[modern] \startmode[swiss] \definecharacter ssharp {ss} \stopmode \starttext Ma=DF Bier! % prints ss \stoptext (Since ec encoding is the default one on my system, I had to use texnansi in order to make the example fail.) If you use a slightly longer variant \startencoding[ec] \startmode[swiss] \definecharacter ssharp {ss} \stopmode \stopencoding than the order of commands doesn't matter any more (but then the automatic conversion will only work for the ec encoding). But now my question for Taco: why does your example work in both cases? Does \def have a higher priority than \definecharacter? Thanks, Mojca