From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59304 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Re: Script to automatically generate typescripts Date: Fri, 04 Jun 2010 18:05:02 +0200 Message-ID: <4C09242E.30201@uni-ulm.de> References: <4C07DD9B.7090508@uni-ulm.de> <4C08BB4A.3060408@wxs.nl> <4C08CCEB.5020002@uni-ulm.de> <20100604111645.GA11674@khaled-laptop> 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 1275667525 22748 80.91.229.12 (4 Jun 2010 16:05:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 16:05:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 04 18:05:24 2010 connect(): No such file or directory 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 1OKZOc-0004jg-B1 for gctc-ntg-context-518@m.gmane.org; Fri, 04 Jun 2010 18:05:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20ACFC9C88; Fri, 4 Jun 2010 18:05:21 +0200 (CEST) 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 d8GomAgTZScA; Fri, 4 Jun 2010 18:05:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3203FC9C89; Fri, 4 Jun 2010 18:05:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B121CC9C89 for ; Fri, 4 Jun 2010 18:05:16 +0200 (CEST) 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 J18vjrQ+fHeN for ; Fri, 4 Jun 2010 18:05:14 +0200 (CEST) Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by balder.ntg.nl (Postfix) with ESMTP id 0AE5CC9C88 for ; Fri, 4 Jun 2010 18:05:14 +0200 (CEST) Original-Received: from [192.168.178.46] (p4FEC5202.dip.t-dialin.net [79.236.82.2]) (authenticated bits=0) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o54G5CZ9027702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 4 Jun 2010 18:05:12 +0200 (MEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: <20100604111645.GA11674@khaled-laptop> X-DCC-sonic.net-Metrics: poseidon 1156; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new 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:59304 Archived-At: On 04/06/2010 13:16, Khaled Hosny wrote: > On Fri, Jun 04, 2010 at 12:29:32PM +0200, luigi scarso wrote: >> On Fri, Jun 4, 2010 at 12:21 PM, Mojca Miklavec >> wrote: >>> On Fri, Jun 4, 2010 at 11:52, Michael Murphy wrote: >>>> >>>> As I said, it started out as a private project, but just wanted to see if >>>> others found it useful. >>> >>> What about presenting your work at the ConTeXt conference and in MAPS magazine? >>> >>> You'll be able to meet the biggest ConTeXt gurus there, learn a lot >>> from them, Luigi will give you a short lesson on "Why I switched from >>> Python to Lua" >> "Because it's better >> That's all folks -- free time now" >> >> The best presentation ever, even better than Taco's one at last eurotex meeting. >> >> I switched from python to Lua x context, this is true; >> I'm still using it for other tasks, particularly Plone, >> and sometimes sagemath. >> It's not a bad language at all. > > When it comes to writing non-luatex code, I'll pick python anytime of > the day, a light language with almost no standard library is not what > one always need. > Oh God, I really didn't want to generate all this fuss, it's really a _very_ primitive script. If I have more time, I'll certainly look into Lua, but I chose Python because: a. it handles complicated string operations, io, regex, etc right out of the box, all of which were needed. b. I'm slightly above noob level with python, as opposed to almost every other language (except Fortran, which was not exactly a front-runner) c. I'm rather more than ignorant about almost every other font tool out there I just reckoned that there has got to be a good way of automatically writing those long, complicated typescripts. I did start such a thing in emacs, but then realised that its not a very portable solution (although I do have a whole bunch of macros for converting LaTeX and AMSmath code into ConTeXt if anyone is interested). -- Michael Murphy ___________________________________________________________________________________ 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 ___________________________________________________________________________________