From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22215 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: bug with active :!;? Date: Wed, 31 Aug 2005 09:38:50 +0200 Message-ID: <43155E8A.60606@wxs.nl> References: <20050826100117.GA27668@blackowl.org> <4312E88B.1050805@wxs.nl> <20050829132001.GA1758@blackowl.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040709030101040709020708" X-Trace: sea.gmane.org 1125474211 21560 80.91.229.2 (31 Aug 2005 07:43:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 07:43:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 09:43:20 2005 Return-path: 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 1EANEu-0007Mc-HW for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 09:42:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DF5E12817; Wed, 31 Aug 2005 09:42:32 +0200 (CEST) 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 30379-04; Wed, 31 Aug 2005 09:42:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD1F812814; Wed, 31 Aug 2005 09:38:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7727012814 for ; Wed, 31 Aug 2005 09:38:43 +0200 (CEST) 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 30381-02 for ; Wed, 31 Aug 2005 09:38:42 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id CCEAF1280D for ; Wed, 31 Aug 2005 09:38:42 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j7V7ce2i016255; Wed, 31 Aug 2005 09:38:40 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 2E0811940E; Wed, 31 Aug 2005 08:47:42 +0200 (CEST) Original-Received: from [10.100.1.15] (unknown [10.100.1.15]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2B0AC17AF8; Wed, 31 Aug 2005 06:47:41 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users , tacoh In-Reply-To: <20050829132001.GA1758@blackowl.org> X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on mailrelay02 X-Virus-Status: Clean 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22215 Archived-At: This is a multi-part message in MIME format. --------------040709030101040709020708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit BILLET Olivier wrote: >By the way, does this include the possibility to treat the character in >different ways depending on the current mode (math/text)? >Because, in the current setting, if you request for 3cm before `:' and >then define a mathematical function $f : R \to Z$ you'll end up with a >huuuge space between f and : which you certainly isn't what you want. > > see attached file; taco may know other tricks (i remember that there is some mechanism in tex for active char treatment in math mode) Hans ----------------------------------------------------------------- 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 ----------------------------------------------------------------- --------------040709030101040709020708 Content-Type: application/x-tex; name="enco-ffr.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="enco-ffr.tex" %D \module %D [ file=enco-ffr, %D version=2002.05.07, %D title=\CONTEXT\ Encoding Macros, %D subtitle=French Input Filter, %D author=Hans Hagen, %D date=\currentdate, %D copyright=Hans Hagen] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. % \definehspace[fr][:][.25em] % \definehspace[fr][;][.25em] % \definehspace[fr][!][.25em] % \definehspace[fr][?][.25em] \enablemode[activecolon] \usemodule[tryout] % for the moment \unprotect \startlanguagespecifics[\s!fr] \defineactivecharacter : {\mathortext{:}{\directdiscretionary{:}}} \defineactivecharacter ; {\mathortext{;}{\directdiscretionary{;}}} \defineactivecharacter ! {\mathortext{!}{\directdiscretionary{!}}} \defineactivecharacter ? {\mathortext{?}{\directdiscretionary{?}}} \stoplanguagespecifics % maybe tricky due to possible name clashes: % % \def\ieme {\highordinalstr{e}} % \def\iemes{\highordinalstr{es}} % \def\ier {\highordinalstr{er}} % \def\iers {\highordinalstr{ers}} % \def\iere {\highordinalstr{re}} % \def\ieres{\highordinalstr{res}} \protect \endinput --------------040709030101040709020708 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------040709030101040709020708--