enumeration with the Spanish alphabet
Hans, enumerating using the Spanish alphabet lacks a letter between n and o, the ñ. Here is the small sample that shows the missing letter: \mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext 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 Ñ). This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49). Many thanks for your help, Pablo -- http://www.ousia.tk
On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
Hans,
enumerating using the Spanish alphabet lacks a letter between n and o, the ñ.
Here is the small sample that shows the missing letter:
\mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext
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 Ñ).
This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49).
Many thanks for your help,
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 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 -----------------------------------------------------------------
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
On 11/11/2014 6:40 PM, Pablo Rodriguez wrote:
Hans,
enumerating using the Spanish alphabet lacks a letter between n and o, the ñ.
Here is the small sample that shows the missing letter:
\mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext
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 Ñ).
This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49).
in next beta \mainlanguage[es] \startitemize[a] % spanish conversion \dorecurse{30}{\item \recurselevel} \stopitemize \startitemize[alphabetic] % default conversioon \dorecurse{30}{\item \recurselevel} \stopitemize 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 -----------------------------------------------------------------
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 Many thanks again for your help, Pablo -- http://www.ousia.tk
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
Many thanks again for your help,
Pablo
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Am 12.11.2014 um 18:18 schrieb Hans Hagen
: 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
On 11/12/2014 06:40 PM, Wolfgang Schuster wrote:
Am 12.11.2014 um 18:18 schrieb Hans Hagen:
you can try spanishnumerals
This won’t work unless you change (are you serious with these names)
Many thanks for your reply, Wolfgang. Spanish and spanish seems to work. The same rules for Slovenian and slovenian. The issue is that for both Slovenian and Spanish have titles numbered with their own alphabets, but bookmarks appear in the common international alphabet. I’m afraid this may be inconsistent. \mainlanguage[sl] \setupinteraction[state=start] \placebookmarks[section] \definestructureconversionset[sectionnumbers] [0,n,a][n] \setupheads[sectionconversionset=sectionnumbers] \setuplist[section][alternative=d] \starttext \placelist[section][criterium=all] \dorecurse{20}{\section{section}} \es\setupheadnumber[section][0] \dorecurse{20}{\section{section}} \stoptext Hans, how about enabling the Slovenian/Spanish numbering by default (in A/a or Characters) and leaving the international alphabet when specifically requested (with alphabetic)? This would be also consistent with ennumeration in lists. Many thanks for your help, Pablo -- http://www.ousia.tk
On 11/12/2014 6:40 PM, Wolfgang Schuster wrote:
Am 12.11.2014 um 18:18 schrieb Hans Hagen
mailto: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]
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 -----------------------------------------------------------------
On 11/12/2014 09:35 PM, Hans Hagen wrote:
[...] 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
Many thanks for the fix, Hans. Pablo -- http://www.ousia.tk
On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:
On 11/12/2014 09:35 PM, Hans Hagen wrote:
[...] 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
Many thanks for the fix, Hans.
It's more a new feature than a fix .. so that means that you have to wikify it Hans
On 11/14/2014 12:28 AM, Hans Hagen wrote:
On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:
Many thanks for the fix, Hans.
It's more a new feature than a fix .. so that means that you have to wikify it
Hans, I have wikified it for http://wiki.contextgarden.net/Enumerations: When the selected language is Slovenian or Spanish, items are numbered using their proper alphabets (the Slovenian enumeration includes č, š and ž; the Spanish enumeration includes ñ). You can change to the international enumeration with alphabetic, Alphabetic. With \definestructureconversionset, the options seem to be the following: a uses ñ in text, TOC, but not in bookmarks. alphabetic uses ñ in text, but not in TOC or in bookmarks. characters uses ñ in text, TOC and bookmarks. (It doesn’t seem to work in Slovenian [no č in bookmarks].) Wouldn’t it be possible that the each conversion set uses the same letter series in all text, TOC and bookmarks? (Sorry, but I’m afraid that the current behavior is not consistent.) I’m happy to wikify also title numbering, but first I would like to be sure that I’m not missing anything. Many thanks for your help again, Pablo -- http://www.ousia.tk
On 11/15/2014 11:36 AM, Pablo Rodriguez wrote:
On 11/14/2014 12:28 AM, Hans Hagen wrote:
On 11/13/2014 7:39 PM, Pablo Rodriguez wrote:
Many thanks for the fix, Hans.
It's more a new feature than a fix .. so that means that you have to wikify it
Hans,
I have wikified it for http://wiki.contextgarden.net/Enumerations:
When the selected language is Slovenian or Spanish, items are numbered using their proper alphabets (the Slovenian enumeration includes č, š and ž; the Spanish enumeration includes ñ). You can change to the international enumeration with alphabetic, Alphabetic.
With \definestructureconversionset, the options seem to be the following:
a uses ñ in text, TOC, but not in bookmarks.
alphabetic uses ñ in text, but not in TOC or in bookmarks.
characters uses ñ in text, TOC and bookmarks. (It doesn’t seem to work in Slovenian [no č in bookmarks].)
Wouldn’t it be possible that the each conversion set uses the same letter series in all text, TOC and bookmarks? (Sorry, but I’m afraid that the current behavior is not consistent.)
I’m happy to wikify also title numbering, but first I would like to be sure that I’m not missing anything.
Many thanks for your help again,
first make an example showing this so that we can see what is wrong 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 -----------------------------------------------------------------
On 11/17/2014 07:06 PM, Hans Hagen wrote:
On 11/15/2014 11:36 AM, Pablo Rodriguez wrote:
[...] I’m happy to wikify also title numbering, but first I would like to be sure that I’m not missing anything.
first make an example showing this so that we can see what is wrong
Hans, here you have the samples for Slovenian: \mainlanguage[sl] \definestructureconversionset[sectionnumbers] [characters,a,alphabetic][n] \setupinteraction[state=start] \placebookmarks[part,chapter,section] [part,chapter,section] \setupinteractionscreen[option=bookmark] \setupheads[sectionconversionset=sectionnumbers] \setuphead[part][placehead=yes, page=] \setuphead[chapter][page=] \starttext \dorecurse{5}{\part{Part \recurselevel}} \dorecurse{5}{\chapter{Chapter \recurselevel}} \dorecurse{5}{\section{Section \recurselevel}} \startitemize[a, packed][start=3] \dorecurse{3}{\item test\endgraf} \stopitemize \stoptext and Spanish: \mainlanguage[es] \definestructureconversionset[sectionnumbers] [characters,a,alphabetic][n] \setupinteraction[state=start] \placebookmarks[part,chapter,section] [part,chapter,section] \setupinteractionscreen[option=bookmark] \setupheads[sectionconversionset=sectionnumbers] \setuphead[part][placehead=yes, page=] \setuphead[chapter][page=] \starttext \setupheadnumber[part][13] \setupheadnumber[chapter][13] \setupheadnumber[section][13] \dorecurse{3}{\part{Part \recurselevel}} \dorecurse{3}{\chapter{Chapter \recurselevel}} \dorecurse{3}{\section{Section \recurselevel}} \startitemize[a, packed][start=3] \dorecurse{3}{\item test\endgraf} \stopitemize \stoptext Their behaviors aren’t exactly the same. This is the reason I send two samples. Many thanks for your help, Pablo -- http://www.ousia.tk
On 11/12/2014 06:18 PM, Hans Hagen wrote:
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
I’m afraid it is not implemented for bookmarks.
you can try spanishnumerals
I don’t know whether this is related to what Wolfgang reported, but using latest beta (2014.11.12 18:16) bookmark numbering doesn’t seem to work at all: \setupinteraction[state=start] \definestructureconversionset[sectionnumbers] [R,n,a][n] \setupheads[sectionconversionset=sectionnumbers] \placebookmarks[all] \starttext \part{part} \chapter{chapter} \section{section} \stoptext Am I missing something or is this a bug? Pablo -- http://www.ousia.tk
On 11/12/2014 07:00 PM, Pablo Rodriguez wrote:
I don’t know whether this is related to what Wolfgang reported, but using latest beta (2014.11.12 18:16) bookmark numbering doesn’t seem to work at all:
\setupinteraction[state=start] \definestructureconversionset[sectionnumbers] [R,n,a][n] \setupheads[sectionconversionset=sectionnumbers] \placebookmarks[all] \starttext \part{part} \chapter{chapter} \section{section} \stoptext
I noticed that I misplaced \placebookmarks. Sorry for the mistake, Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster