From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59370 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Lua in LuaLaTeX is diferent?? Date: Sun, 06 Jun 2010 13:13:24 +0200 Message-ID: <4C0B82D4.50703@wxs.nl> References: <4C0AB151.4060808@gyza.cz> 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 1275822817 10129 80.91.229.12 (6 Jun 2010 11:13:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Jun 2010 11:13:37 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 06 13:13:36 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 1OLDnK-00086U-VB for gctc-ntg-context-518@m.gmane.org; Sun, 06 Jun 2010 13:13:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C6C62C9CC3; Sun, 6 Jun 2010 13:13:34 +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 K-DiCs5ExL13; Sun, 6 Jun 2010 13:13:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC7CEC9C01; Sun, 6 Jun 2010 13:13:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96B41C9C01 for ; Sun, 6 Jun 2010 13:13:30 +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 gvwDl7-iEQ13 for ; Sun, 6 Jun 2010 13:13:28 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 6AB50C9BAE for ; Sun, 6 Jun 2010 13:13:28 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.3e) with ESMTP id 540-1713362 for multiple; Sun, 06 Jun 2010 13:13:19 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <4C0AB151.4060808@gyza.cz> X-Authenticated-User: hagen@controller-9 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:59370 Archived-At: 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 ___________________________________________________________________________________