From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39822 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: luatex feature question/request Date: Fri, 04 Apr 2008 10:33:23 +0200 Message-ID: <47F5E7D3.407@elvenkind.com> References: <20080404050924.GA21356@atos.labs.wmid.amu.edu.pl> <47F5DDDF.9040304@wxs.nl> 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 1207298090 27982 80.91.229.12 (4 Apr 2008 08:34:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 08:34:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 04 10:35:21 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 1JhhOJ-0002MS-IT for gctc-ntg-context-518@m.gmane.org; Fri, 04 Apr 2008 10:35:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B533B1FC1A; Fri, 4 Apr 2008 10:34:40 +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 19506-01; Fri, 4 Apr 2008 10:33:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A2B61FBFD; Fri, 4 Apr 2008 10:33:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB8881FBFD for ; Fri, 4 Apr 2008 10:33:56 +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 17221-01-11 for ; Fri, 4 Apr 2008 10:33:23 +0200 (CEST) Original-Received: from tullamore.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id 8D5CA1FB38 for ; Fri, 4 Apr 2008 10:33:23 +0200 (CEST) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by tullamore.elvenkind.com (Postfix) with ESMTP id 5A8553050282 for ; Fri, 4 Apr 2008 10:33:23 +0200 (CEST) User-Agent: Thunderbird 2.0.0.0 (X11/20070522) In-Reply-To: <47F5DDDF.9040304@wxs.nl> 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:39822 Archived-At: Hans Hagen wrote: > Marcin Borkowski wrote: >> Hello! >> >> I was just wondering, whether something like this is possible in luatex >> - and if not, if it might be implemented;). I'd like to be able to >> transform somehow the input right *before* TeX sees it. What I mean is >> e.g. a transformation using regexps. Application I have in mind is as >> follows: in Polish, there are a few prepositions which are one-letter >> words; it's a bad custom to leave them hanging at the end of a line. >> Such an option could automatically put ties (~) instead of spaces after >> them - a feature sometimes requested by Polish TeX users. > > input parsing is not needed here, it's easier to to do this on the node > list; remind me in a few months (it's rather trivial to implmenent since > the infrastructure is already in mkiv) Hans is right, the node list should be altered instead of the input, because you can never be sure that "\TEX\ i \METAFONT\" is not hidden inside a definition somewhere. There actually is a way to modify the input lines just before they are parsed by luatex, but that is really only suitable for converting 8-bit encodings to utf-8. (I was going to post an example abusing that method, but there are way many things that can go wrong, so I changed my mind) Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________