[NTG-context] enumeration with the Spanish alphabet

Hans Hagen pragma at wxs.nl
Wed Nov 12 21:35:56 CET 2014


On 11/12/2014 6:40 PM, Wolfgang Schuster wrote:
>
>> Am 12.11.2014 um 18:18 schrieb Hans Hagen <pragma at wxs.nl
>> <mailto:pragma at 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]
>

well, kind of a joke these names ... fo rtesting .. i'll comment them

> to
>
>     \defineconversion [spanishnumerals]      [\spanishnumerals]
>
>     \defineconversion [Spanishnumerals]      [\Spanishnumerals]
>

ah, it should be spanishcharacters

>
> 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")}}

as we have already

\def\spanishcharacters  #1{\ctxcommand{alphabetic(\number#1,"es")}}
\def\spanishCharacters  #1{\ctxcommand{Alphabetic(\number#1,"es")}}

> and the following line in core-con.la
>
>     counters['spanishnumerals']      = counters['spanish']

before we do that ... are we going to use 'numerals' or 'characters' for 
it ... I just copied some slovenian .. okay, I'll go for numerals in the 
next upload

bookmarks will work also then

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list