ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: enumeration with the Spanish alphabet
Date: Tue, 11 Nov 2014 22:28:36 +0100	[thread overview]
Message-ID: <54627F84.9040700@gmx.es> (raw)
In-Reply-To: <5462547E.3000808@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

On 11/11/2014 07:25 PM, Hans Hagen wrote:
> On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> enumerating using the Spanish alphabet lacks a letter between n and o,
>> the ñ.
>> [...]
> 
> see core-con.lua ... we can add a spanish number sequence there ... and 
> also some entries in core-con.mkiv ... (look at slovenian for instance)
> 
> then send me patches

I replicated the two Slovenian ocurrences and adapted it to the Spanish
language. (I also corrected a typo.)


Pablo
-- 
http://www.ousia.tk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: spanish-numerals.diff --]
[-- Type: text/x-patch; name="spanish-numerals.diff", Size: 1338 bytes --]

--- ctxbase/core-con.lua	2014-09-10 23:13:00.000000000 +0200
+++ core-con.lua	2014-11-11 21:20:07.704095640 +0100
@@ -60,6 +60,14 @@
         0x006F, 0x0070, 0x0072, 0x0073, 0x0161,
         0x0074, 0x0075, 0x0076, 0x007A, 0x017E
     },
+    ['spanish'] = {
+        0x0061, 0x0062, 0x0063, 0x0064, 0x0065,
+        0x0066, 0x0067, 0x0068, 0x0069, 0x006A,
+        0x006B, 0x006C, 0x006D, 0x006E, 0x00F1,
+        0x006F, 0x0070, 0x0071, 0x0072, 0x0073,
+        0x0074, 0x0075, 0x0076, 0x0077, 0x0078,
+        0x0079, 0x007A
+    },
     ['greek'] = { -- this should be the lowercase table
      -- 0x0391, 0x0392, 0x0393, 0x0394, 0x0395,
      -- 0x0396, 0x0397, 0x0398, 0x0399, 0x039A,
@@ -131,6 +139,7 @@
 counters['gr']                   = counters['greek']
 counters['g']                    = counters['greek']
 counters['sl']                   = counters['slovenian']
+counters['es']                   = counters['spanish']
 counters['kr']                   = counters['korean']
 counters['kr-p']                 = counters['korean-parent']
 counters['kr-c']                 = counters['korean-circle']
@@ -893,7 +902,7 @@
       [900] = "novecientos",
      [1000] = "mil",
    [1000^2] = "millón",
-   [1000^3] = "mil millónes",
+   [1000^3] = "mil millones",
    [1000^4] = "billón",
 }
 

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2014-11-11 21:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-11 17:40 Pablo Rodriguez
2014-11-11 18:25 ` Hans Hagen
2014-11-11 21:28   ` Pablo Rodriguez [this message]
2014-11-12  0:38 ` Hans Hagen
2014-11-12 15:23   ` Pablo Rodriguez
2014-11-12 17:18     ` Hans Hagen
2014-11-12 17:40       ` Wolfgang Schuster
2014-11-12 18:40         ` Pablo Rodriguez
2014-11-12 20:35         ` Hans Hagen
2014-11-13 18:39           ` Pablo Rodriguez
2014-11-13 23:28             ` Hans Hagen
2014-11-15 10:36               ` Pablo Rodriguez
2014-11-17 18:06                 ` Hans Hagen
2014-11-17 18:46                   ` Pablo Rodriguez
2014-11-12 18:00       ` Pablo Rodriguez
2014-11-12 18:11         ` Pablo Rodriguez

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=54627F84.9040700@gmx.es \
    --to=oinos@gmx.es \
    --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).