From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63950 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: new beta Date: Fri, 26 Nov 2010 21:49:28 +0100 Message-ID: <4CF01D58.4080105@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290804601 800 80.91.229.12 (26 Nov 2010 20:50:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 20:50:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 26 21:49:57 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PM5Ex-0002zP-OO for gctc-ntg-context-518@m.gmane.org; Fri, 26 Nov 2010 21:49:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87F4DCA890; Fri, 26 Nov 2010 21:49:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1FcrD-rnlHnv; Fri, 26 Nov 2010 21:49:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DC6ECA889; Fri, 26 Nov 2010 21:49:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 922A2CA889 for ; Fri, 26 Nov 2010 21:49:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ca8biwga1FJn for ; Fri, 26 Nov 2010 21:49:35 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 780DDCA881 for ; Fri, 26 Nov 2010 21:49:35 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAQKnYaa020630 for ; Fri, 26 Nov 2010 21:49:35 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 16808-1713362 for ; Fri, 26 Nov 2010 21:45:19 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 ThunderBrowse/3.3.3 X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DzUNyHK - 594fa98f7541 - 20101126 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63950 Archived-At: Hi, I uploaded a new beta. The most important issues are the following: (1) Table I fixed a few things and there is limit color support \VL[10] rule ten times wider than normal \VL[red] red rule \VL[red,10] both The same applies to \HL and \DL, but with \DL the first argument hs the number of spans, so we can have: \DL[2,red,10]. (2) Buffers and typing This whole bunch has been cleaned up and pretty printing has been redone. The \type command accepts an optional argument with settings. as does \starttyping, \typebuffer and \typefile (and the defined variants). The interface for defining visualizers might change a bit but I'm getting there. There is a chapter on it in the cld manual. In principle one can provide arbitrary manipulators, think of: \startluacode local function parser(s) local s = string.gsub(s,"show","demonstrate") local s = string.gsub(s,"'re"," are") context(s) end visualizers.register("MyThing", { parser = parser }) \stopluacode \starttyping[option=MyThing,color=darkred,style=] This is just some text to show what we can do with this mechanism. In spite of what you might think we're not bound to verbose text. \stoptyping \startbuffer[demo] This is just some text to show what we can do with this mechanism. In spite of what you might think we're not bound to verbose text. \stopbuffer \processbuffer[demo][option=MyThing] There are only a few visualizers built in: TEX, MP, LUA, XML and PARSED-XML. There is also PARSED-LUA but that's for Luigi and me to play with first. Colors and fonts might change and are set up differently now, see v-*.mkiv files. (3) MkVI (or: moving on) Say that you have a file test.mkvi that has the following code: \def\TestOne[#1]% {this is: #1} \def\TestTwo#some% {this is: #some} \def\TestThree[#whatever][#more]% {this is: #more and #whatever} \def\TestFour[#one]#two% {\def\TestFive[#alpha][#one]% {#one, #two, #alpha}} \starttexdefinition TestSix #oeps here: #oeps \stoptexdefinition \starttext \startlines \TestOne [one] \TestTwo {one} \TestThree[one][two] \TestFour [one]{two} \TestFive [one][two] \TestSix {one} \stoplines \stoptext This will work out ok, in spite of the not so texy hash usage. This is an experimental feature and only meant for developers to play with. % macros=mkvi as top line also works. Files like that are preprocessed before they are passed to tex. (I'm considering permitting spaces before and after #whatever in the definition line.) More preprocessor features might show up. Of course the limitation of 9 arguments still applies. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________