From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47088 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: lua questions Date: Thu, 29 Jan 2009 13:35:53 +0100 Message-ID: <3729DF83-96F9-4602-ACDA-3CBC38FFF9E5@uni-bonn.de> References: <8FF223F7-EFDC-43BD-8765-CBB15A03DBAD@uni-bonn.de> <4979A64B.1080906@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233232838 22850 80.91.229.12 (29 Jan 2009 12:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 12:40:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 29 13:41:48 2009 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 1LSWDD-00046i-Ku for gctc-ntg-context-518@m.gmane.org; Thu, 29 Jan 2009 13:41:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 168C01FD06; Thu, 29 Jan 2009 13:39:56 +0100 (CET) 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 31579-04-5; Thu, 29 Jan 2009 13:38:00 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 480321FCD7; Thu, 29 Jan 2009 13:37:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3BD361FCA0 for ; Thu, 29 Jan 2009 13:37:20 +0100 (CET) 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 01824-02 for ; Thu, 29 Jan 2009 13:36:12 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 3DE441FC20 for ; Thu, 29 Jan 2009 13:36:08 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0TCZxTP027093 for ; Thu, 29 Jan 2009 13:36:07 +0100 Original-Received: from [87.178.85.5] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.0.14) with ESMTPA id 10891449 for ntg-context@ntg.nl; Thu, 29 Jan 2009 13:35:59 +0100 In-Reply-To: <4979A64B.1080906@wxs.nl> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 172243272 - 778d6c6c8e33 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47088 Archived-At: On Jan 23, 2009, at 12:13 PM, Hans Hagen wrote: > Thomas A. Schmitz wrote: >> it uses the syntax lpeg.Ca which my lpeg doesn't recognize and >> which I can't find in the lpeg manual. [useful information snipped] > > just run such script using > > mtxrun --script yourscript.lua > > as luatex (texlua) has the latest lpeg built in) > Just one remark: my lpeg is /* ** $Id: lpeg.c,v 1.98 2008/10/11 20:20:43 roberto Exp $ and doesn't have the lpeg.Ca pattern. The lpeg that comes with luatex is /* ** $Id: lpeg.c,v 1.86 2008/03/07 17:20:19 roberto Exp $ so it's older, and it does have the lpeg.Ca pattern accumulator. And can I ask one more question about lpeg? Suppose I have the string "{\em This string is \quotation{heavily} emphasized.}" and want to transform that into something like "\color[red]{This string is \quotation{heavily} emphasized.}" How would I go about this using lpeg? I must use a lpeg.V somewhere, but I can't figure out where and how. Thanks, and all best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________