From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59389 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Lua in LuaLaTeX is diferent?? Date: Sun, 06 Jun 2010 20:24:43 +0200 Message-ID: <4C0BE7EB.8020105@gyza.cz> References: <4C0AB151.4060808@gyza.cz> <4C0B82D4.50703@wxs.nl> Reply-To: hajtmar@gyza.cz, 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 1275848700 22385 80.91.229.12 (6 Jun 2010 18:25:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Jun 2010 18:25:00 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 06 20:24:58 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 1OLKWm-0002km-7y for gctc-ntg-context-518@m.gmane.org; Sun, 06 Jun 2010 20:24:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32581C9CE1; Sun, 6 Jun 2010 20:24:55 +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 ELYKcGnEF5Qt; Sun, 6 Jun 2010 20:24:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4ED72C9CDA; Sun, 6 Jun 2010 20:24:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27CB9C9CDA for ; Sun, 6 Jun 2010 20:24:51 +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 b+69xTOjacJy for ; Sun, 6 Jun 2010 20:24:48 +0200 (CEST) Original-Received: from psi1.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by balder.ntg.nl (Postfix) with SMTP id 8B2DBC9CD4 for ; Sun, 6 Jun 2010 20:24:48 +0200 (CEST) Original-Received: (qmail 23386 invoked by uid 89); 6 Jun 2010 18:24:46 -0000 Original-Received: from unknown (HELO ?192.168.1.3?) (hajtmar@gyza.cz@88.103.230.14) by psi01 with ESMTPA; 6 Jun 2010 18:24:46 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 In-Reply-To: <4C0B82D4.50703@wxs.nl> 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:59389 Archived-At: Hi, Hans Thanks a lot for advice and inspiration. With your contribution of my applications running under LuaPlain well below LuaLaTeX :-). Application process CSV tables and allows you to easily print the data in CSV tables (mailmerges, cards, etc). Now I do not know whether somebody else will be interested in my application. ConTeXt uses the few people around me. Therefore, I try to modify it to LuaTeXu and LuaPlain. I think I'm just a lousy programmer, and therefore do not anticipate that the application could become a larger library, you could use others. Thanks again for your time and valuable advice Have a nice day Jaroslav Dne 6.6.2010 13:13, Hans Hagen napsal(a): > On 5-6-2010 10:19, Jaroslav Hajtmar wrote: >> Hi, >> I did a Lua application for ConTeXt, and now I wanted to adapt it to >> work even LuaLaTeX. >> On what needs to be careful? Compiling by LuaLaTeX specific messages >> appear as if the Lua in LuaLaTeX didnt know some Lua commands (i.e. >> split, find .... ). >> >> On what needs to be careful generaly when programming applications for >> LuaLaTeX? > > In context there is quite some lua code that can be used by users for > their applications. The l-*.lua files can considered to be more > general libraries and most ofthat is unlikely to change (extended for > sure). At some point I will make a manual for that. Of course you can > always load such modules using 'require'. > > Using other context lua code outside context is more tricky as it also > assumes the system to be designed in a certain way. I hope to have > much if that stable within the next few years. As long as one does not > mess with the namespaces not much harm can be done. > > I'm not following lualatex dev but i know that it uses some of the > font code. The reason that this code can be shared is that it's sort > of isolated and specific functionality needed is wrapped up in > *-dum.lua modules. Probbably some stripping down will happen to > prevent clashes etc. Here the reference is luatex-plain.tex (and > luatex-fonts.tex) in the context distribution. > > Also, the reverse is also tricky: lualatex speicific code is unlikely > to work in context. > > BTW, Sharing macro code between context and latex is non trivial > either as both are different systems and developed completely > independent. > > 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 ___________________________________________________________________________________