From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87092 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?St=E9phane_Goujet?= Newsgroups: gmane.comp.tex.context Subject: Re: Attributes Date: Wed, 23 Apr 2014 15:07:16 +0200 (CEST) Message-ID: References: <20140420131459.7c23b8af@cuisine.seix> <53565AFF.4070304@wxs.nl> <5357812B.7010605@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-784030090-1398258442=:19528" X-Trace: ger.gmane.org 1398258062 21063 80.91.229.3 (23 Apr 2014 13:01:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 13:01:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 23 15:00:56 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WcwnH-0000w0-Pl for gctc-ntg-context-518@m.gmane.org; Wed, 23 Apr 2014 15:00:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 504431023A for ; Wed, 23 Apr 2014 15:00: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 meWrbdJogjzJ for ; Wed, 23 Apr 2014 15:00:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 358B21024C for ; Wed, 23 Apr 2014 15:00:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E2DA101EA for ; Wed, 23 Apr 2014 15:00:47 +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 if6ABxJqohLS for ; Wed, 23 Apr 2014 15:00:45 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 75F1B101E6 for ; Wed, 23 Apr 2014 15:00:37 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp11.smtpout.orange.fr [80.12.242.133]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3ND0ZIA012550 for ; Wed, 23 Apr 2014 15:00:35 +0200 Original-Received: from [192.168.1.7] ([86.217.195.30]) by mwinf5d34 with ME id tR0U1n00J0fpbTJ03R0aGR; Wed, 23 Apr 2014 15:00:35 +0200 X-ME-Helo: [192.168.1.7] X-ME-Auth: c3RlcGhhbmUuZ291amV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 23 Apr 2014 15:00:35 +0200 X-ME-IP: 86.217.195.30 X-X-Sender: stephane@zbox.seix In-Reply-To: <5357812B.7010605@wxs.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=80.12.242.133; country=FR; latitude=48.8600; longitude=2.3500; http://maps.google.com/maps?q=48.8600,2.3500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLRp0zKb - 0866c6cd6a4b - 20140423 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:87092 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-784030090-1398258442=:19528 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On Wed, 23 Apr 2014, Hans Hagen wrote: > On 4/22/2014 8:10 PM, St=E9phane Goujet wrote: >> Please have a look at my example (it is a bit long because it show= s >> various possibilities) and its result. >> When I have not yet done a \defineattribute[myattr], >> node.has_attribute >> returns 0 when I thought it should return nil. >> When I do \defineattribute[...], every attribute seems to get the >> same number (1024), but now node.has_attribute returns nil ... > > change this is syst-ini.mkiv: > > \normalprotected\def\newattribute{\syst_basics_allocate\c_syst_last_all= ocated_attribute\attribute\attributedef\c_syst_max_allocated_register} Thank you, it seems to work much better ! There is still the problem that "node.has_attribute" does not return=20 "nil" when I expect it should, but that is luatex problem (a check=20 that a parameter is really an integer should be performed before calling=20 lua_tointeger), so I will change mailing-list in order to report it. Faithfully yours, St=E9phane Goujet. --8323328-784030090-1398258442=:19528 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-784030090-1398258442=:19528--