From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79436 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 19:03:32 -0500 Message-ID: <4142391.gLamjLfzC3@localhost> References: <1410329.t7YnaHOuHa@localhost> <1793278.fUTKdMQn8X@localhost> 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 1353542790 26150 80.91.229.3 (22 Nov 2012 00:06:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2012 00:06:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 22 01:06:42 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 1TbKJT-0001Lm-Eu for gctc-ntg-context-518@m.gmane.org; Thu, 22 Nov 2012 01:06:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 97A24102D5; Thu, 22 Nov 2012 01:06:28 +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 r3Y8+BetTOxs; Thu, 22 Nov 2012 01:06:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 726811023A; Thu, 22 Nov 2012 01:06:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9ABC1023A for ; Thu, 22 Nov 2012 01:06:25 +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 kR1AJZWjDTnS for ; Thu, 22 Nov 2012 01:06:24 +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 CE51C1021C for ; Thu, 22 Nov 2012 01:06:24 +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 qAM06N26007890 for ; Thu, 22 Nov 2012 01:06:24 +0100 Original-Received: by mail-ye0-f169.google.com with SMTP id j12so1077027yeg.14 for ; Wed, 21 Nov 2012 16:06:23 -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=xU/7pIHw9w/b8bLqvNigYA0ARXE7Mdl8IfxrJyyntVQ=; b=Jb5IwFKIwj/zlexBBmm8/V7119GhcuUd3EbaJ0FUbsutTD8C7dnkQJKiVI1IYABMQk rZ3Kxz0ntQQpsij0XrJtTM95dfenuYPn1og7kgTfBQfHHbvtjEVuUSgQ2xhFxfWsehtc D32skMKjMz3zu9HMZltS82fqEoWm/wGtH1b8RwCe0qZxxo4EJy4FHAmIqiSkea1G4AIy zrmn22M9qzRMyKHUcxJZKo1AG3mbNDA/3pg33dCwKrrjKnTOg0H6yxXFxof/CM6kq6Ao Dm49TjMc+KihgK9Q0tZumF2e7doR57oSghxOd4it0tkK+YfguxPFGALSrEPDZasXfv0S bzhw== Original-Received: by 10.236.151.99 with SMTP id a63mr20586908yhk.120.1353542783133; Wed, 21 Nov 2012 16:06:23 -0800 (PST) Original-Received: from localhost.localnet ([186.28.196.192]) by mx.google.com with ESMTPS id v4sm1647821ank.9.2012.11.21.16.06.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 16:06:22 -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.0001 (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: 0VIqo6nJt - 39d4757c9f81 - 20121122 (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:79436 Archived-At: > Acidrums: if you put this in core-con.lua, replacing everything > between the commands.ordinal and converters.verbose function > definitions, then run context --make cont-en, does the output look > okay to you? Also: thank you for the day and month tables! > Cheers, > Sietse Just pasted the code you gave after commands.ordinal (there's no = converters.verbose in my core-con.lua) and the context --make cont-en comma= nd = worked. But when I tried the minimal ConTeXt example you gave, it claims wi= th = the following: =3D=3D=3D Beginning of output =3D=3D=3D ! LuaTeX error
:1: attempt to call field 'verbose' (a ni= l = value) stack traceback:
:1: in main chunk. system > tex > error on line 7 in file prueba2.tex: LuaTeX error = ... 1 \starttext 2 \def\vbes#1% 3 {#1\crlf 4 \ctxcommand{verbose(#1, "spanish")}} 5 = 6 \obeylines 7 >> \vbes{11111111} 8 \vbes{2221101} 9 \vbes{1111} 10 \vbes{1218} 11 \vbes{1234} 12 \vbes{12345} 13 \vbes{12345678900000} 14 \stopcode \ctxcommand ...\directlua \zerocount {commands.#1} = l.7 \vbes{11111111} = ? =3D=3D=3D End of output =3D=3D=3D For the bugs you're talking about, I would say this: * 100 before 'mil' should be 'cien mil' -> Yes, it should be like that. * 100 on its own should be 'cien' -> Same thing here. * 100 before 'mill=F3n' -- should that be 'cien mill=F3n', or 'ciento mill= =F3n'? -> = It should be 'cien millones'. 'Millones', plural for 'Mill=F3n'. Maybe it s= hould = be a variable for plurals for millions (the only plural used for numbers in = spanish). * what are the rules for e.g. '1001' -- should that be 'mil y una'? -> It = should be 'mil uno' (just put the '1' word after the '1000' word). And should 1004 also be mil y cuatro? -> Like before, it should be 'mil = cuatro': the '4' word after the '1000' word. Thank you, you're so gentle! ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________