From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16767 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: placeformula with active colon Date: Tue, 26 Oct 2004 12:54:45 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <417E2CF5.6050608@wxs.nl> References: <1098737590.328.5.camel@tempete.lac.qc.ca> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098788113 18461 80.91.229.6 (26 Oct 2004 10:55:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 10:55:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 26 12:54:57 2004 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 1CMOye-0008Pg-00 for ; Tue, 26 Oct 2004 12:54:56 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 309D01277E; Tue, 26 Oct 2004 12:54:56 +0200 (CEST) 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 17789-05; Tue, 26 Oct 2004 12:54:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97C5812778; Tue, 26 Oct 2004 12:54:51 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C00512772 for ; Tue, 26 Oct 2004 12:54:49 +0200 (CEST) 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 17676-06 for ; Tue, 26 Oct 2004 12:54:48 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 78DFA1276D for ; Tue, 26 Oct 2004 12:54:48 +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 i9QAskBk019614 for ; Tue, 26 Oct 2004 12:54:46 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 37DED2C0B9; Tue, 26 Oct 2004 12:54:47 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id F3D8C182F7 for ; Tue, 26 Oct 2004 10:54:45 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <1098737590.328.5.camel@tempete.lac.qc.ca> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16767 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16767 David Munger wrote: > Hello, > > > Making the colon active results in errors when using colons in formula > labels. Example: > > \useencoding[ffr] > \mainlanguage [fr] > \starttext > \placeformula[eq:foo] > \startformula > a = 0 > \stopformula > \stoptext In your cont-new.tex, add: \unprotect \unexpanded\def\directdiscretionary#1% {\convertargument#1\to\discretionarytoken \let\textmodediscretionary\compoundhyphen \expandafter\ifx\csname\@tmd@\string#1\endcsname\relax \prewordbreak \discretionary{\hbox{#1}}{}{\hbox{#1}}% \allowbreak\postwordbreak \else \csname\@tmd@\string#1\endcsname \fi} \protect (or in supp-lan.tex, add the \unexpanded and recompile a format) 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 -----------------------------------------------------------------