From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79429 Path: news.gmane.org!not-for-mail From: Acidrums4 Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt: Page numbering in words for spanish Date: Wed, 21 Nov 2012 16:05:07 -0500 Message-ID: <1793278.fUTKdMQn8X@localhost> References: <1410329.t7YnaHOuHa@localhost> <50ACAC69.9060603@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353532083 4259 80.91.229.3 (21 Nov 2012 21:08:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 21:08:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 21 22:08:15 2012 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 1TbHWo-0007Mn-UM for gctc-ntg-context-518@m.gmane.org; Wed, 21 Nov 2012 22:08:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71F07103FB; Wed, 21 Nov 2012 22:08:04 +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 6xB2AmD4LpZt; Wed, 21 Nov 2012 22:08:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 55592103EE; Wed, 21 Nov 2012 22:08:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E497103EE for ; Wed, 21 Nov 2012 22:08:00 +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 cFM7iE4l3uo5 for ; Wed, 21 Nov 2012 22:07:59 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E1788103E9 for ; Wed, 21 Nov 2012 22:07:59 +0100 (CET) Original-Received: from mail-ye0-f169.google.com (mail-ye0-f169.google.com [209.85.213.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qALL7wBD017105 for ; Wed, 21 Nov 2012 22:07:58 +0100 Original-Received: by mail-ye0-f169.google.com with SMTP id j12so1050224yeg.14 for ; Wed, 21 Nov 2012 13:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:content-type; bh=tuDPjr5cC/4aRh88FyEIEu+YAwWRWdr8TnjEDOb29ng=; b=yie9AMLi5WUUDMPOcNqY9+CpR5SL6AT5uCxdRdthOyrRanl1wPEVX2mjoIndGFRFVz 0vg+htEWX0bnQiFALe0qmpYwpGYF/7zJMcVEgnj0Msnj0pY9xS5ugER9qTunU0EMrpP1 hciKL0z3IOPLOBYWOKWz+60MIPpa1IqwCnDDzr5hP+Hf6M4zYx5pLfyoZLmPIBnJfBS0 biIBUZGb3qH6rYssmj2fU+Vw87ykkfGyxnWDyvJWv8AskbwTRdN9aSm4+ZyHayMTnJZc h9vqdNCUtVcaLdAl0a44cIivME2gxM3oYJg0r19+mFTOeVmYj1JRFSF+ZHjiIFYT9A2T LbzQ== Original-Received: by 10.101.130.24 with SMTP id h24mr5657149ann.70.1353532077932; Wed, 21 Nov 2012 13:07:57 -0800 (PST) Original-Received: from localhost.localnet ([186.28.196.192]) by mx.google.com with ESMTPS id s30sm500939yhl.21.2012.11.21.13.07.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 13:07:57 -0800 (PST) User-Agent: KMail/4.9.3 (Linux/3.6.6-gentoo; KDE/4.9.3; i686; ; ) In-Reply-To: X-Bayes-Prob: 0.0004 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VIql7WK1 - fb5d1e340537 - 20121121 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:79429 Archived-At: I Sietse, I tried the procedure you described without success. I'm using = ConTeXt 2011 (I know, it's not the latest and etc, but I got to work with t= his = version because compatibility with my work and I have some troubles with = projects). I pasted the code you wrote at the end of core-con.lua and ran = 'context --make cont-en'. But I got the following: =3D=3D=3D Begining of the output =3D=3D=3D <+ /usr/share/texmf-dist/tex/context/base/core-con.lua> ! LuaTeX error /usr/share/texmf-dist/tex/context/base/core-con.lua:924: = attempt to index global 'verbose' (a nil value) stack traceback: /usr/share/texmf-dist/tex/context/base/core-con.lua:924: in main ch= unk /usr/share/texmf-dist/tex/context/base/luat-cod.lua:42: in function = 'registercode'
:1: in main chunk. system > tex > error on line 16 in file /usr/share/texmf- dist/tex/context/base/context.mkiv: LuaTeX error ... 6 %D author=3DHans Hagen, 7 %D date=3D\currentdate, 8 %D copyright=3D{PRAGMA / Hans Hagen \& Ton Otten}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 = 14 \catcode`\{=3D1 \catcode`\}=3D2 \catcode`\#=3D6 15 = 16 >> %D From the next string (which is set by the script that assembles t= he 17 %D distribution) later on we will calculate a number that can be used 18 %D by use modules to identify the feature level. Starting with versi= on 19 %D 2004.8.30 the low level interface is english. Watch out and adapt 20 %D your styles an modules. 21 = 22 \edef\contextformat {\jobname} 23 \edef\contextversion{2011.05.18 18:04} 24 = 25 %D For those who want to use this: 26 = \registerctxluafile ...ua.registercode("#1","#2")} = l.16 \registerctxluafile{core-con}{1.001} = ? =3D=3D=3D End of the output =3D=3D=3D Any clue about this? Thanks! PD.: Here is the correct translation of the 'words' array (and as a gift fo= r = your effort on this, a translation for 'days' and 'months' arrays): local words =3D { [0] =3D "cero", [1] =3D "uno", [2] =3D "dos", [3] =3D "tres", [4] =3D "cuatro", [5] =3D "cinco", [6] =3D "seis", [7] =3D "siete", [8] =3D "ocho", [9] =3D "nueve", [10] =3D "diez", [11] =3D "once", [12] =3D "doce", [13] =3D "trece", [14] =3D "catorce", [15] =3D "quince", [16] =3D "sixteen", [17] =3D "seventeen", [18] =3D "eighteen", [19] =3D "nineteen", [20] =3D "veinte", [30] =3D "treinta", [40] =3D "cuarenta", [50] =3D "cincuenta", [60] =3D "sesenta", [70] =3D "setenta", [80] =3D "ochenta", [90] =3D "noventa", [100] =3D "cien", [1000] =3D "mil", [1000^2] =3D "mill=F3n", [1000^3] =3D "mil millones", [1000^4] =3D "bill=F3n", } local days =3D { -- not variables.sunday "domingo", "lunes", "martes", "mi=E9rcoles", "jueves", "viernes", "s=E1bado", } local months =3D { -- not variables.januari "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", } On Mi=E9 21 Nov 2012 12:25:03 pm Sietse Brouwer escribi=F3: > I worked up the code below, > put it in core-con.lua, > and recompiled ConTeXt with `context --make cont-en`. > It gives the following output. Does it look correct? ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________