From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36723 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: waiting for mswincontext / injecting Date: Sat, 22 Sep 2007 12:34:10 +0200 Message-ID: <46F4EFA2.7010300@wxs.nl> References: <20070919164032.193dbd41.schuster.wolfgang@googlemail.com> <46F13619.6030609@wxs.nl> <20070919192254.1e1fe351.schuster.wolfgang@googlemail.com> <46F163C6.1030703@wxs.nl> <6faad9f00709191131m3b4b075ak6581d7e3135b3012@mail.gmail.com> <46F17651.5080004@wxs.nl> <46F21A40.70204@elvenkind.com> <6faad9f00709200618h1077af37q4abb381040e98afb@mail.gmail.com> <20070920202228.571ed808.schuster.wolfgang@googlemail.com> <6faad9f00709201321p6f7f397cu99401d29578d494e@mail.gmail.com> <46F2DAE4.4030601@wxs.nl> <20070921093738.72d4ab06.schuster.wolfgang@googlemail.com> <46F3BBC1.2030102@wxs.nl> <20070921201551.9fffa564.schuster.wolfgang@googlemail.com> 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: sea.gmane.org 1190457286 9560 80.91.229.12 (22 Sep 2007 10:34:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2007 10:34:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 22 12:34:41 2007 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 1IZ2Jt-0005Yd-6M for gctc-ntg-context-518@m.gmane.org; Sat, 22 Sep 2007 12:34:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAC611FA5F; Sat, 22 Sep 2007 12:34: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 00537-01-6; Sat, 22 Sep 2007 12:34:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F70E20404; Sat, 22 Sep 2007 12:34:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9910720404 for ; Sat, 22 Sep 2007 12:34:14 +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 00537-01-5 for ; Sat, 22 Sep 2007 12:34:11 +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 1F24F203FD for ; Sat, 22 Sep 2007 12:34:11 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 15398 for ; Sat, 22 Sep 2007 12:34:10 +0200 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <20070921201551.9fffa564.schuster.wolfgang@googlemail.com> 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:36723 Archived-At: Wolfgang Schuster wrote: > Version 0.997 of XeTeX introduced a new concept to assign every > character a class value. You can define rules what should happen if you > switch for example from class 1 to class 2 and another one if you do > the same in reverse order. The commands for this action are saved in > token register and came into action if this class switch appear in the > document. ok, i remember jonathan talking about it at bachotek > the unicode-letters file from XeTeX define a class for quotation, > punctutation ... in CJK and another one for the other CJK characters > and define spacing and linebreaking between normal characters and > punctuation now by the class number (you did something similiar in your > chinese module but used active characters instead). the problem with such mechanisms is limited options for lookahead and look back > The XeTeX reference manual has a simple example of this concept on page > 10 and 11. > > http://tug.ctan.org/info/xetexref/XeTeX-reference.pdf > > can't this be done in LuaTeX with nodes (or what you mentioned for > your color modell) or something similar. injecting tokens into the nodelist is no option, since at that stage tokenization already has been done; so it should happen earlier, during tokenization, which can be kind of messy, because even then we're talking of a\beta c -> a\char[beta]c (no further expansion) -> inject expanded stuff before, after each chartoken or \char token -> convert tokens to nodes sure, i can implement such an injector (since it's tokens, it should haven in the input stream somehow, operating on node lists is kind of messy in that case because tokens need to be expanded) but we're not going to use that method in mkiv. It's one of those areas where xetex and luatex support differs a lot. > but I am too lazy to rename files or create them always by hand with > every update ... that's what scripting is fore, after all, format generation in tex engines is not automated at all (one has to manage moving fmt files to the right place anyway) 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 ___________________________________________________________________________________