ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: enumeration with the Spanish alphabet
Date: Wed, 12 Nov 2014 18:40:16 +0100	[thread overview]
Message-ID: <679A55CA-2B5E-468B-8BF7-1202942BD090@gmail.com> (raw)
In-Reply-To: <54639661.5030404@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1578 bytes --]


> Am 12.11.2014 um 18:18 schrieb Hans Hagen <pragma@wxs.nl>:
> 
> On 11/12/2014 4:23 PM, Pablo Rodriguez wrote:
>> On 11/12/2014 01:38 AM, Hans Hagen wrote:
>>> On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
>>>> [...]
>>>> Instead of changing the default letter series, how about adding the ñ
>>>> (or Ñ) after n and before o (or after N and before O) in a new
>>>> enumeration series named ñ (and Ñ).
>>> 
>>> in next beta
>> 
>> Many thanks for your fast implementation, Hans.
>> 
>> I’m afraid it is not implemented for bookmarks.
>> 
>>     \mainlanguage[es]
>>     \setupinteraction[state=start]
>>     \placebookmarks[section]
>>     \definestructureconversionset[sectionnumbers]
>>         [0,n,characters][n]
>>     \setupheads[sectionconversionset=sectionnumbers]
>>     \starttext
>>     \dorecurse{20}{\section{section}}
>>     \stoptext
> 
> you can try spanishnumerals

This won’t work unless you change (are you serious with these names)

\defineconversion [ñ]                    [\spanishnumerals]
\defineconversion [Ñ]                    [\Spanishnumerals]

to

\defineconversion [spanishnumerals]      [\spanishnumerals]
\defineconversion [Spanishnumerals]      [\Spanishnumerals]


What’s missing as well are these two definitions in core-con.miv

\def\spanishnumerals   #1{\ctxcommand{alphabetic(\number#1,"spanish")}}
\def\Spanishnumerals   #1{\ctxcommand{Alphabetic(\number#1,"spanish")}}

and the following line in core-con.la

counters['spanishnumerals']      = counters['spanish']


Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3869 bytes --]

[-- Attachment #2: 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-12 17:40 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
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 [this message]
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=679A55CA-2B5E-468B-8BF7-1202942BD090@gmail.com \
    --to=schuster.wolfgang@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).