ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Acidrums4 <acidrums4@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt: Page numbering in words for spanish
Date: Wed, 21 Nov 2012 19:03:32 -0500	[thread overview]
Message-ID: <4142391.gLamjLfzC3@localhost> (raw)
In-Reply-To: <CAF=dkzxCBDCvhPvwczv4aQ66qgX92r13MLpLAC-uJjxoBcQjzA@mail.gmail.com>

> 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 command 
worked. But when I tried the minimal ConTeXt example you gave, it claims with 
the following:

=== Beginning of output ===

! LuaTeX error <main ctx instance>:1: attempt to call field 'verbose' (a nil 
value)
stack traceback:
        <main ctx instance>: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}
                       
?

=== End of output ===

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ón' -- should that be 'cien millón', or 'ciento millón'? -> 
It should be 'cien millones'. 'Millones', plural for 'Millón'. Maybe it should 
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 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
___________________________________________________________________________________


  reply	other threads:[~2012-11-22  0:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21  9:08 Acidrums4
2012-11-21 10:26 ` Hans Hagen
2012-11-21 11:25   ` Sietse Brouwer
2012-11-21 11:52     ` Hans Hagen
2012-11-21 12:28       ` Sietse Brouwer
2012-11-21 21:05     ` Acidrums4
2012-11-21 23:47       ` Sietse Brouwer
2012-11-22  0:03         ` Acidrums4 [this message]
2012-11-22 10:55           ` Mojca Miklavec
2012-11-22 12:11             ` Sietse Brouwer
2012-11-23 20:50             ` Marcin Borkowski
2012-11-23 22:46               ` Hans Hagen
2012-11-23 23:09                 ` Alan BRASLAU
2012-11-22 10:04         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4142391.gLamjLfzC3@localhost \
    --to=acidrums4@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).