From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39848 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: luatex feature question/request Date: Fri, 04 Apr 2008 22:07:09 +0200 Message-ID: <47F68A6D.2000302@wxs.nl> References: <20080404050924.GA21356@atos.labs.wmid.amu.edu.pl> <47F5DDDF.9040304@wxs.nl> <47F5E7D3.407@elvenkind.com> <47F5EC67.9020903@elvenkind.com> <20080404192659.GA5994@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207339757 16981 80.91.229.12 (4 Apr 2008 20:09:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 20:09:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 04 22:09:50 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1JhsEP-0003im-Qe for gctc-ntg-context-518@m.gmane.org; Fri, 04 Apr 2008 22:09:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1044F1FB49; Fri, 4 Apr 2008 22:08:59 +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 18738-04-6; Fri, 4 Apr 2008 22:08:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E88F1FB33; Fri, 4 Apr 2008 22:08:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 150FE1FB30 for ; Fri, 4 Apr 2008 22:08:10 +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 18805-03-7 for ; Fri, 4 Apr 2008 22:07:34 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 865E31FB33 for ; Fri, 4 Apr 2008 22:07:33 +0200 (CEST) Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 10616 for ; Fri, 04 Apr 2008 22:07:33 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:39848 Archived-At: Aditya Mahajan wrote: >> Perhaps this one could be already useable for the OP: >> >> function add_ties(line) >> line = line:gsub('( %a) ', '%1~') >> line = line:gsub('^(%a) ', '%1~') >> line = line:gsub('( %a)$', '%1~%%') >> return line >> end >> >> Not working: $a = b + c$. > > How about substituting with a macro \nonbreakbablespace (instead of ~) > and redefining \nonbreakablespace to \relax using \everymathematics or > \mathortext? and then ending up with the same mess as usual ... exceptions, exceptions, exceptions ... just think of boxed text inside math which then needs to have it enabled again really, node lists is the way to go (although i admit that currently i do not handle math (also because it's a big todo in luatex) 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________