From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82818 Path: news.gmane.org!not-for-mail From: "Lance Larsen" Newsgroups: gmane.comp.tex.context Subject: Re: How to hack the lua files Date: Fri, 7 Jun 2013 07:13:28 -0600 Message-ID: <51b1dc7a.caef440a.3a4a.ffffea86@mx.google.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370610827 12546 80.91.229.3 (7 Jun 2013 13:13:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 13:13:47 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 07 15:13:49 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UkwUG-0001Zp-T0 for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jun 2013 15:13:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30682101F9; Fri, 7 Jun 2013 15:13:48 +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 3cQ0oyhIKobY; Fri, 7 Jun 2013 15:13:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 570DC101EA; Fri, 7 Jun 2013 15:13:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C163101EA for ; Fri, 7 Jun 2013 15:13:44 +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 QwILPVfW2YKa for ; Fri, 7 Jun 2013 15:13:43 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 663AE101E9 for ; Fri, 7 Jun 2013 15:13:33 +0200 (CEST) Original-Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r57DDVTc002804 for ; Fri, 7 Jun 2013 15:13:32 +0200 Original-Received: by mail-pb0-f51.google.com with SMTP id um15so4665078pbc.38 for ; Fri, 07 Jun 2013 06:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=sjAlUO9Pa0xccCHM1SgE4DVfQz/Uk6qa9FE6Q6ODie4=; b=IqzEMySNmYpH9YB3A16PcLVYIRZ8vgxmimjQZBsIDixw5I7loiaYB9kQcQnP6y11kF zQVf9eHyVjhCh6siKoI1ayOaTZ314h6zZ4Gy091bCHjEJlA9O5A7RnYmFeT3ouC/GSEF wHkkaAMn/RzbswrVx8Wk6ZA+an9Gptlw+r/5k4Wp+b6eCUB7rF8KfbHoODmcE/1jAMtr ZPw8xk7QL5DCKFjJTTiyH67I6E9biURcDdkKBUipnrKbdsQK6m0GgukuJUXjLpVnl7Kf kDIle+ZZ7SmPtFnhrRGjkaW3aPWnZvwkq+rewdd/nEJVSZ5zb83ENuVnKVwq0jdYiwmD Rb2Q== X-Received: by 10.68.99.163 with SMTP id er3mr44084983pbb.36.1370610811498; Fri, 07 Jun 2013 06:13:31 -0700 (PDT) Original-Received: from CNU238C3KT (107-1-187-170-ip-static.hfc.comcastbusiness.net. [107.1.187.170]) by mx.google.com with ESMTPSA id vu10sm77550267pbc.27.2013.06.07.06.13.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 07 Jun 2013 06:13:30 -0700 (PDT) In-Reply-To: X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac5jUFqqTZJmGx0vRGm8vGKXzU0sEAAL5gJQ Content-Language: en-us X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c01::233; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JJpdwP2 - 13734aec98c8 - 20130607 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82818 Archived-At: Hans, Your reply below was very helpful. I looked at the context command line options and saw 'make'. After running this, the code changes took effect. Thankyou. I could still use help in identifying where equation numbers are defined in the code so that I can add a tracker. Do you have a suggestion of which function (or at least lua file) I should look in for this? I am also curious how hooks are defined, so that I can identify them in the code and see if there is one that would meek my purpose - also where the hook scripts are placed so that context can find them. Thanks again for the reply which got me over the first hurdle. -Lance ------------------------------ Message: 4 Date: Fri, 07 Jun 2013 09:25:36 +0200 From: Hans Hagen To: ntg-context@ntg.nl Subject: Re: [NTG-context] How to hack the lua files Message-ID: <51B18AF0.5010206@wxs.nl> Content-Type: text/plain; charset=windows-1252; format=flowed On 6/7/2013 1:20 AM, Lance Larsen wrote: > I have a version of context standalone installed, and I am trying to > add some functionality I need to strc-ref.lua. As a simple test to see > if modifying the file was working, I enabled the > ?structures.referencing.identifying? tracker and verified that I was > getting messages from this tracker in the log. I then modified the log > statement in strc-ref.lua and processed the document again. The > changes I made to the lua file did not seem to be active. I verified > that there is only one log statement that matches the output I am > seeing. Why would my lua code change not be active? Is the lua code > cached somehow? (I am running this from windows if that matters). > > The code I modified is under the path: > > context\tex\texmf-context\tex\context\base\ strc-ref.lua if you patch files that way you need to remake the format file I don't know what you patch, but changing something in a core file is no guarantee for the future. It's not a problem to add functionality (lots of hooks for that) but best do that in a local module that gets loaded at runtime then. 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 ___________________________________________________________________________________