From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86722 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \setupnotation[footnote][numberconversion=numerals] in latest beta Date: Wed, 19 Mar 2014 22:12:27 +0100 Message-ID: <8947BEBF-1526-4EAC-BD9A-5F90E2D65077@gmail.com> References: <532A0643.7000200@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395263563 20571 80.91.229.3 (19 Mar 2014 21:12:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 21:12:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 19 22:12:54 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 1WQNnB-0004op-NP for gctc-ntg-context-518@m.gmane.org; Wed, 19 Mar 2014 22:12:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1376D101F0; Wed, 19 Mar 2014 22:12:53 +0100 (CET) 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 Il9I21aVOnFW; Wed, 19 Mar 2014 22:12:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 87C12101EB; Wed, 19 Mar 2014 22:12:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55A94101EB for ; Wed, 19 Mar 2014 22:12:50 +0100 (CET) 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 x8S46lWDxRNs for ; Wed, 19 Mar 2014 22:12:49 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 7F309101E1 for ; Wed, 19 Mar 2014 22:12:49 +0100 (CET) Original-Received: from mail-bk0-x235.google.com (mail-bk0-x235.google.com [IPv6:2a00:1450:4008:c01::235]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2JLCceM021530 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 19 Mar 2014 22:12:48 +0100 Original-Received: by mail-bk0-f53.google.com with SMTP id r7so3285bkg.26 for ; Wed, 19 Mar 2014 14:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=9oehoN/ObNM6se3iJpJ8ExGWGhj1RWBJO5hrvzoN09g=; b=yxk6fUT2Fs+aWYke8xltP40XRGQQ+YHE3e0G0mKXOBGzlXKZ7nVOeR6od9/gvs5E3t iH4gvyxYxZHFZcOANZd3T+kq3dhMAQ53GTo5p27JujEuL3ZN7gsNpGoIDvi+yxA0M8dv w+N1oSHKj8mNNtpbi67LaBwGWMVNUM+6O98ec1GuUF1R5C6yiq45dwRCyo758qeAGY8X gk8K97WI9bgoWzjnoFG1935HDXVHA6nlvHdLNpndgP/5S1S8F//PZAyjy1oTgPVKvP+R aJ5eOUWu2XUG6ZgYyApAPUZww6MFJNtWvvgz0VEjU+ipupZIJMBfCGA9JyJZmiUNcSaa yfsw== X-Received: by 10.204.168.206 with SMTP id v14mr21419474bky.26.1395263558022; Wed, 19 Mar 2014 14:12:38 -0700 (PDT) Original-Received: from keima.localdomain (x2f21b7b.dyn.telefonica.de. [2.242.27.123]) by mx.google.com with ESMTPSA id ci7sm110075bkc.0.2014.03.19.14.12.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 14:12:37 -0700 (PDT) In-Reply-To: <532A0643.7000200@gmx.es> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LDxcCua - 9b7851e49de4 - 20140319 (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:86722 Archived-At: Am 19.03.2014 um 22:04 schrieb Pablo Rodriguez : > Dear list, > > I have the following sample that I cannot compile with latest beta: > > \setupnotation[footnote][numberconversion=numerals] > > \starttext > Text\footnote{Text.}. > \stoptext > > numberconversion=numerals seems to be the problematic part. > > Has this option been changed or is it a bug? There is a typo in strc-doc.lua (missing c in front of tx_convertnumber): local function process(index,numbers,ownnumbers,criterium,separatorset,conversion,conversionset,index,entry,result,preceding,done) -- todo: too much (100 steps) local number = numbers and (numbers[index] or 0) local ownnumber = ownnumbers and ownnumbers[index] or "" if number > criterium or (ownnumber ~= "") then local block = (entry.block ~= "" and entry.block) or sections.currentblock() -- added if preceding then local separator = sets.get("structure:separators",block,separatorset,preceding,".") if separator then if result then result[#result+1] = strippedprocessor(separator) else applyprocessor(separator) end end preceding = false end if result then if ownnumber ~= "" then result[#result+1] = ownnumber elseif conversion and conversion ~= "" then -- traditional (e.g. used in itemgroups) .. inherited! result[#result+1] = converters.convert(conversion,number) else local theconversion = sets.get("structure:conversions",block,conversionset,index,"numbers") result[#result+1] = converters.convert(theconversion,number) end else if ownnumber ~= "" then applyprocessor(ownnumber) elseif conversion and conversion ~= "" then -- traditional (e.g. used in itemgroups) - tx_convertnumber(conversion,number) + ctx_convertnumber(conversion,number) else local theconversion = sets.get("structure:conversions",block,conversionset,index,"numbers") local data = startapplyprocessor(theconversion) ctx_convertnumber(data or "numbers",number) stopapplyprocessor() end end return index, true else return preceding or false, done end end Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________