From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39285 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-inifile, my first experience with lua Date: Mon, 25 Feb 2008 17:46:20 -0500 (EST) Message-ID: References: <20080225220112.GA1981@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-145138083-1203979464=:21092" X-Trace: ger.gmane.org 1203979566 12308 80.91.229.12 (25 Feb 2008 22:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 22:46:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 25 23:46:30 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 1JTm5b-0008DB-P6 for gctc-ntg-context-518@m.gmane.org; Mon, 25 Feb 2008 23:46:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79B9E1FB5B; Mon, 25 Feb 2008 23:45:54 +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 30208-05-2; Mon, 25 Feb 2008 23:45:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 106571FB49; Mon, 25 Feb 2008 23:45:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F0741FB49 for ; Mon, 25 Feb 2008 23:45:40 +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 01027-01-3 for ; Mon, 25 Feb 2008 23:45:34 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id 3AD971FADF for ; Mon, 25 Feb 2008 23:45:33 +0100 (CET) Original-Received: FROM adi-laptop.local (cpe-65-185-20-71.cinci.res.rr.com [65.185.20.71]) BY skycaptain.mr.itd.umich.edu ID 47C3450A.96508.9700 ; 25 Feb 2008 17:45:31 -0500 In-Reply-To: <20080225220112.GA1981@gaston.couberia.bzh> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) Content-ID: 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:39285 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-145138083-1203979464=:21092 Content-Type: TEXT/PLAIN; FORMAT=flowed; CHARSET=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: Hi Peter, On Mon, 25 Feb 2008, Peter M=FCnster wrote: > Hello, > > Hey, it's really fun to code in lua: pattern matching, easy table > manipulation and so on, I should have learned it earlier! Looks interesting. > Since it's my first experience with lua, I would like to ask you for > comments on the t-inifile.tex module, attached to this message. > > I tried to implement a demo-mode, but there are two small problems: > - I don't know how to use \savebuffer, all line-endings disappear in the > saved file You can do something like \startbuffer[thewho] contents of the ini file \stopbuffer This will create a file \jobname-thewho.tmp which you can then read. Aditya --8323329-145138083-1203979464=:21092 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323329-145138083-1203979464=:21092--