From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24143 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: An idea Date: Mon, 5 Dec 2005 20:27:01 +0100 Message-ID: <6faad9f00512051127r63c8ed7dl4583909580e9bacc@mail.gmail.com> References: <20051201162914.GA14497@fly.srk.fer.hr> <20051202165636.GA8858@puritan.petwork> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133810966 26599 80.91.229.2 (5 Dec 2005 19:29:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 19:29:26 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 05 20:29:23 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjLzT-0006ZK-7Y for gctc-ntg-context-518@m.gmane.org; Mon, 05 Dec 2005 20:27:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3D0A1283E; Mon, 5 Dec 2005 20:27:08 +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 21207-07-10; Mon, 5 Dec 2005 20:27:04 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE36D12821; Mon, 5 Dec 2005 20:27:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5295E12821 for ; Mon, 5 Dec 2005 20:27:03 +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 21207-07-9 for ; Mon, 5 Dec 2005 20:27:02 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by ronja.ntg.nl (Postfix) with ESMTP id 48C941281F for ; Mon, 5 Dec 2005 20:27:01 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id m18so47245nfc for ; Mon, 05 Dec 2005 11:27:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CidR47aHCs5YWtaw9LiMpnrgHbQZuoRxL6UaVNe1YPkC8qqvkYIRq9TlyYj57xz5PcQQKVDP6dXHkB5YkaxXHdSm6ZtIRtL0IH9hetacO6aLvZCQMCbkO1zH2rCSVHoQ54LBuFIXL6jvNwDsAPIJP9llKZ7YJS/sZk1aJ4UF4lk= Original-Received: by 10.48.245.7 with SMTP id s7mr1026279nfh; Mon, 05 Dec 2005 11:27:01 -0800 (PST) Original-Received: by 10.48.223.20 with HTTP; Mon, 5 Dec 2005 11:27:01 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <20051202165636.GA8858@puritan.petwork> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24143 Archived-At: Nikolai Weibull wrote: > We were planning on using Vim for preprocessing things like this instead > of hacking TeX to do the lexing. I think Mojca (?) had some ideas for > this and perhaps even a simple implementation, and given that there is > now structured support for preprocessing in texexec I think that this > can be done quite easily. A lot easier than writing something in TeX. Well, a while ago I experimented a bit with 2context.vim: http://pub.mojca.org/tex/vim/fromlgrind/, but this is surely less that Nikolai did with his last attachment (I didn't check it yet): I only changed two or three lines in 2html.vim, which was enough to output ConTeXt code out of any source file supported by vim. The produced PDFs on the page mentioned above are a bit faked, but just the ConTeXt part of it, since I didn't know how to make the \highlight[Statement]{content} highlighted in the proper way and I didn't know how to send the data to vim and then get them back. Mojca