From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36725 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: waiting for mswincontext / injecting Date: Sun, 23 Sep 2007 13:52:05 +0200 Message-ID: <20070923135205.e1b8d8db.schuster.wolfgang@googlemail.com> 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> <46F4EFA2.7010300@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: sea.gmane.org 1190548452 24718 80.91.229.12 (23 Sep 2007 11:54:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2007 11:54:12 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 23 13:54:06 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 1IZQ2I-0004W3-Lt for gctc-ntg-context-518@m.gmane.org; Sun, 23 Sep 2007 13:54:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C7991FFE9; Sun, 23 Sep 2007 13:54:01 +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 15843-08-5; Sun, 23 Sep 2007 13:53:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBA451FF36; Sun, 23 Sep 2007 13:53:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1153E1FF1D for ; Sun, 23 Sep 2007 13:53:30 +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 15843-08-4 for ; Sun, 23 Sep 2007 13:52:51 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with ESMTP id 9226E1FDFD for ; Sun, 23 Sep 2007 13:52:15 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id h2so713171ugf for ; Sun, 23 Sep 2007 04:52:15 -0700 (PDT) Original-Received: by 10.66.239.16 with SMTP id m16mr6588204ugh.1190548335028; Sun, 23 Sep 2007 04:52:15 -0700 (PDT) Original-Received: from eve ( [89.51.234.65]) by mx.google.com with ESMTPS id 19sm6153280ugl.2007.09.23.04.52.10 (version=SSLv3 cipher=OTHER); Sun, 23 Sep 2007 04:52:13 -0700 (PDT) In-Reply-To: <46F4EFA2.7010300@wxs.nl> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.13; i686-pc-mingw32) 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:36725 Archived-At: On Sat, 22 Sep 2007 12:34:10 +0200 Hans Hagen wrote: > 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. this would be nice because many chinese and japanese fonts have very ugly characters for normal latin texts and would be nice to choose another font for them. The second point is some it often neccesary to choose differents fonts for arabic, greek ... and this method can used to switch to the corresponding font without inserting font switching commands in the text but handle this with character classes. > > 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) this mean is should learn a scripting language. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________