[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
Hi Wolfgang, powerful and elegant, as always! I think I have a solution with xml; I will have to test it more extensively with my complex real file; but here comes, also for Hraban (if it works in real life, I'll add it to the wiki...). Thanks a lot! Thomas \startbuffer[test]

[NTG-context] Re: more register questions!

2024-05-03 Thread Henning Hraban Ramm
Am 03.05.24 um 22:24 schrieb Thomas A. Schmitz: Hi Massi, yes, that was a very good idea! I can detect if the element occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being.

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
wrote: I did something like that, with a processor that added a "n" after the occurrence page number. Since you typeset XML, maybe you can detect that an index (register) reference happens inside a note from the DOM element you are typesetting. Then you use a command like thi

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
in the register would look like p. 100\high{20} to show that the term occurs in note 20 on p. 100. But if that's asking too much, I would be content with applying a processor (say, italic) to these register entries. From the looks of the tuc file, Context doesn't appear to "

[NTG-context] Re: more register questions!

2024-05-02 Thread mf
in the register would look like p. 100\high{20} to show that the term occurs in note 20 on p. 100. But if that's asking too much, I would be content with applying a processor (say, italic) to these register entries. From the looks of the tuc file, Context doesn't appear to "

[NTG-context] more register questions!

2024-05-02 Thread Thomas A. Schmitz
Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry in the register would look like p. 100\high{20

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Henning Hraban Ramm via ntg-context
Am 04.08.22 um 14:32 schrieb Hans Hagen via ntg-context: On 8/4/2022 10:22 AM, Max Chernoff via ntg-context wrote: * The flight would take 14 hours each way (biggest reason) * The flight would cost more than 2 months of rent Understandable – I won’t ever fly overseas for a conference. * It

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Hans Hagen via ntg-context
On 8/4/2022 10:22 AM, Max Chernoff via ntg-context wrote: Hi Hraban, but I’d like to know why you (esp. if you attended previous meetings) decided not to come: A not-useful answer: * The flight would take 14 hours each way (biggest reason) * The flight would cost more than 2 months of

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Hans Hagen via ntg-context
On 8/4/2022 8:48 AM, juh+ntg-context--- via ntg-context wrote: 1. I wasn't sure if I can follow the programe. Though I am not a bloody beginner, I am still at the basis of the learning curve. Many talks seems to be way above my understanding. (The same is true for the monthly video meetings.)

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Max Chernoff via ntg-context
Hi Hraban, > but I’d like to know why you (esp. if you attended > previous meetings) decided not to come: A not-useful answer: * The flight would take 14 hours each way (biggest reason)   * The flight would cost more than 2 months of rent * It would be a bad idea for me to miss a full week

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Henning Hraban Ramm via ntg-context
Hi JUH! Am 04.08.22 um 08:48 schrieb juh+ntg-context--- via ntg-context: Am 03.08.22 um 10:50 schrieb Henning Hraban Ramm via ntg-context: Taco convinced me not to cancel the meeting due to a lack of participants, but I’d like to know why you (esp. if you attended previous meetings) decided

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread juh+ntg-context--- via ntg-context
Dear Hraban, Am 03.08.22 um 10:50 schrieb Henning Hraban Ramm via ntg-context: Taco convinced me not to cancel the meeting due to a lack of participants, but I’d like to know why you (esp. if you attended previous meetings) decided not to come: short answer. The meeting is in the holidays

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-03 Thread Henning Hraban Ramm via ntg-context
Am 31.07.22 um 16:02 schrieb Henning Hraban Ramm via ntg-context: Hi folks & friends, I’d like to remind you to register for the current ConTeXt meeting (September 12–18 in Germany), we must close registration in about two weeks, and my list is still rather short. h

[NTG-context] ConTeXt meeting 2022 – please register!

2022-07-31 Thread Henning Hraban Ramm via ntg-context
Hi folks & friends, I’d like to remind you to register for the current ConTeXt meeting (September 12–18 in Germany), we must close registration in about two weeks, and my list is still rather short. https://meeting.contextgarden.net/2022/ If you registered early and got only an e

[NTG-context] ConTeXt meeting: register now!

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Hi everyone, the early bird period for meeting registration went by mostly unnoticed, and I simply forgot to remind everyone to register. So we’ll extend “early bird” to end of this week, i.e. 10th of July. https://meeting.contextgarden.net/2022/ If you tried to register while the form

Re: [NTG-context] sorting for particular sub entries to register

2022-02-01 Thread jbf via ntg-context
://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ Adam On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context wrote: Let me come back to the unresolved (for me) question of two situations in sub entries to a book index (register). Sub entries that have formatting or sub entries

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Robert via ntg-context
ls+tpecial]{animals+tpecial} >> >> \placeindex >> \stoptext >> >> See result in: https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ >> <https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ> >> >> Adam >> >> On Mon,

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
} \placeindex \stoptext See result in: https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ Adam On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context wrote: Let me come back to the unresolved (for me) question of two situations in sub entries to a book index (register). Sub entries

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Adam Reviczky via ntg-context
\stoptext See result in: https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ Adam On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context wrote: > Let me come back to the unresolved (for me) question of two situations in > sub entries to a book index (register). Sub entries that have form

[NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
Let me come back to the unresolved (for me) question of two situations in sub entries to a book index (register). Sub entries that have formatting or sub entries that are surrounded by quote marks (straight or curly, it makes no difference) do not appear in the correct alphabetical order

Re: [NTG-context] register for biblical citations

2021-04-17 Thread Hans Hagen
On 4/17/2021 7:04 AM, jbf wrote: necessarily understand the Lua code, but I did take the trouble to look As with many such features, indeed we use lua but most of the concepts originate in by now decades old mkii. These replacement tricks that can drive sorting actually come from there. But

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You will be happy to know that this works perfectly, and naturally I extended the pattern to cover another 30 books or so. I don't necessarily understand the Lua code, but I did take the trouble to look through sort-ini.lua to get some kind of idea of what was happening and basically to

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Okay, that's all clear enough. Thank you. I'll keep working at it. Julian On 16/4/21 11:08 pm, Hans Hagen wrote: On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
I did, actually. But maybe I can play with that a bit further. My first attempt at doing that was unsuccessful (when I got to 'z' I thought I might be able to then go 'za' etc). I'll keep playing, but Hans' luacode approach might ultimately be the solution for me. He's given me the principles;

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
You are correct on both counts; it is not quite random (just not what I was looking for ) and yes, the abbreviated book title needs to be in the mix as well, just in case it also ends up throwing things out. But, as you can see subsequently, each contribution is making things clearer (for me,

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 12:22 PM, jbf wrote: There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: You use a couple of chartacters that will be filtered (crlf and so). Try weird ones, like:

Re: [NTG-context] register for biblical citations

2021-04-16 Thread r . ermers
It seems that the items are actually not randomly listed. It appears to me that the list is sorted on the chapter number, and then the verse number. The abbreviated book title is not involved in this sorting order, which it should be. Robert > Op 16 apr. 2021, om 12:22 heeft jbf het

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Henning Hraban Ramm
> Am 16.04.2021 um 11:47 schrieb jbf : > > So, not sure where to go from here. Could I perhaps return to my earlier > question, which indicated that by using the keyword approach [a] [b] and so > on, as far as [z] I was at least getting a passable result, but how could I > continue past [z]?

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
There was no mention of the indicator anywhere in what I copied from your example. I did try indicator=no just now in case it should be made explicit: (\setupregister[bibcit][language=biblical,before=,indicator=no] but that makes no difference either. Same result. Seemingly random index.

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/16/2021 11:47 AM, jbf wrote: Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26

Re: [NTG-context] register for biblical citations

2021-04-16 Thread jbf
Hans, thanks for your ingenious solution but there is still a way to go I suspect! I implemented (copy-paste) precisely the solution offered and I get an index but with some strange results ! Notice that in my previous own solution (but only as far as 26 books!) I at least got an index in the

Re: [NTG-context] register for biblical citations

2021-04-16 Thread Hans Hagen
On 4/15/2021 11:28 AM, jbf wrote: My simple MWE: \defineregister[bibcit] \setupregister[bibcit][% indicator=no, before=] text... \bibcit[a]{Gen 3:6 (MAC) }Gen 3:6 (and so one for each Genesis reference, then moving on to Leviticus with [b] etc.) In other words, I have used the key

Re: [NTG-context] register for biblical citations

2021-04-15 Thread jbf
if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc. etc). I am not at all sure how to achieve this. best

Re: [NTG-context] register for biblical citations

2021-04-15 Thread Hans Hagen
On 4/14/2021 11:16 PM, jbf wrote: I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc

[NTG-context] register for biblical citations

2021-04-14 Thread jbf
I am wondering if anyone has had to set up a register (index) for biblical citations, where the order is not alphabetical but the order of the biblical books themselves, so, for example, citations from Genesis (e.g. Gen 1:1; Gen 6:4; Ex 15:2; Deut 12:8 etc. etc). I am not at all sure how

Re: [NTG-context] register entries in footnotes

2020-04-26 Thread Hans Hagen
On 4/26/2020 4:35 PM, Thomas A. Schmitz wrote: A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1]   \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a term in the

[NTG-context] register entries in footnotes

2020-04-26 Thread Thomas A. Schmitz
A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1] \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a term in the index: cat\index{cat}. This sentence also has an

Re: [NTG-context] place single entry of a register, or filtering the terms of a register

2019-10-25 Thread Hans Hagen
On 10/25/2019 3:09 PM, mf wrote: Hello list, is there a way to place only one single entry of a register, or a selection of entries? I looked into strc-reg.mkiv and strc-reg.lua and i would answer "no, it's not possible". I could hack strc-reg.lua and define a command to do that,

[NTG-context] place single entry of a register, or filtering the terms of a register

2019-10-25 Thread mf
Hello list, is there a way to place only one single entry of a register, or a selection of entries? I looked into strc-reg.mkiv and strc-reg.lua and i would answer "no, it's not possible". I could hack strc-reg.lua and define a command to do that, but maybe a better solution

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Hans Hagen
On 1/27/2019 7:15 PM, Rik Kabel wrote: That allows the compilation to complete, but method=three breaks other stuff. Try this: \starttext \setupdirections [bidi=on,method=three] \rightaligned{(( How is this?} \stoptext (I also see problems with boxes set in the margin where

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Rik Kabel
On 1/27/2019 12:07, Hans Hagen wrote: On 1/27/2019 12:59 AM, Rik Kabel wrote: Here is a much-closer-to minimal example.   \setupregister   [index] [maxwidth=4cm]   \setupdirections [bidi=on,method=two]   \starttext   .\index{Mairzy doats and dozy doats and liddle lamzy divey}   \placeindex   

Re: [NTG-context] Bidi-related register problem

2019-01-27 Thread Hans Hagen
On 1/27/2019 12:59 AM, Rik Kabel wrote: Here is a much-closer-to minimal example.  \setupregister   [index] [maxwidth=4cm]  \setupdirections [bidi=on,method=two]  \starttext  .\index{Mairzy doats and dozy doats and liddle lamzy divey}  \placeindex  \stoptext With the \setupdirections

Re: [NTG-context] Bidi-related register problem

2019-01-26 Thread Rik Kabel
And shorter still, isolating the problem to something in \limitatetext:  \setupdirections [bidi=on,method=two]  \starttext  \limitatetext {Mairzy doats and dozy doats and liddle lamzy divey} {4cm}  \stoptext -- Rik

Re: [NTG-context] Bidi-related register problem

2019-01-26 Thread Rik Kabel
Here is a much-closer-to minimal example.  \setupregister   [index] [maxwidth=4cm]  \setupdirections [bidi=on,method=two]  \starttext  .\index{Mairzy doats and dozy doats and liddle lamzy divey}  \placeindex  \stoptext With the \setupdirections line removed, all is well. However, that line is

[NTG-context] Bidi-related register problem

2019-01-24 Thread Rik Kabel
Recent betas have introduced a bidi-related problem with register processing. In the following example, compilation generates a recoverable error when register processing has to trim an entry to fit maxwidth. The error is: luatex warning  > node filter: error: ...eXt/tex/texmf-context/

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Wolfgang Schuster
Rik Kabel schrieb am 27.11.18 um 22:27: What is unexpected is that the space does not appear in the body (non-footnote) text of the second paragraph. The difference between handling in notes and in body text seems discordant. \startparagraph does *not* start a paragraph. In the two

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 16:12, Wolfgang Schuster wrote: The space after the register entry is only ignored when you put it before the start of a paragraph because ConTeXt saves the content and flushes it at the start of the next paragraph. When the register entry appear within in a paragraph or when TeX

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Wolfgang Schuster
The space after the register entry is only ignored when you put it before the start of a paragraph because ConTeXt saves the content and flushes it at the start of the next paragraph. When the register entry appear within in a paragraph or when TeX is in horizontal mode (like in your footnote

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 08:43, Rik Kabel wrote: On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1}

Re: [NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread Rik Kabel
On 11/27/2018 05:38, mf wrote: In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames]   \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames]  

[NTG-context] can \REGISTER[key]{term} modify typesetting (adding space)?

2018-11-27 Thread mf
In my setup, i have an index of names: \defineregister[Nome][...] The indexing of names can be toggled with a mode: --mode=AddNames The setup is something like this: \startmode[AddNames] \Name[key]{term}\xmlflush{#1} \stopmode \startnotmode[AddNames] \xmlflush{#1} \stopnotmode I noticed

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 4:15 PM Ulrike Fischer wrote: > Am Thu, 22 Nov 2018 14:46:57 +0100 schrieb luigi scarso: > > >> > >> A palette entry index value of 0x is a special case indicating > >> that the text foreground color (defined by a higher-level client) > >> should be used and

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread Ulrike Fischer
Am Thu, 22 Nov 2018 14:46:57 +0100 schrieb luigi scarso: >> >> A palette entry index value of 0x is a special case indicating >> that the text foreground color (defined by a higher-level client) >> should be used and shall not be treated as actual index into CPAL >> ColorRecord array. >>

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread Hans Hagen
On 11/22/2018 2:12 PM, Ulrike Fischer wrote: A palette entry index value of 0x is a special case indicating that the text foreground color (defined by a higher-level client) should be used and shall not be treated as actual index into CPAL ColorRecord array. unrelated ... 0x

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread luigi scarso
On Thu, Nov 22, 2018 at 2:13 PM Ulrike Fischer wrote: > Am Thu, 22 Nov 2018 13:50:08 +0100 schrieb Hans Hagen: > > >> When I use this definitions I still get partly blue glyphs with this > >> preamble. Don't you get them? > > > well, i don't know what to expect > > Khaled mentioned this link

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread Ulrike Fischer
Am Thu, 22 Nov 2018 13:50:08 +0100 schrieb Hans Hagen: >> When I use this definitions I still get partly blue glyphs with this >> preamble. Don't you get them? > well, i don't know what to expect Khaled mentioned this link which shows how (harfbuzz-based) browsers like firefox interpret the

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-22 Thread Hans Hagen
On 11/21/2018 9:04 PM, Ulrike Fischer wrote: Am Wed, 21 Nov 2018 20:37:29 +0100 schrieb luigi scarso: \definefontfeature[quran][mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, ccmp=yes,locl=yes,calt=yes, liga=yes,clig=yes,dlig=yes,rlig=yes,

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Ulrike Fischer
Am Wed, 21 Nov 2018 20:37:29 +0100 schrieb luigi scarso: > \definefontfeature[quran][mode=node,language=dflt,script=arab, > init=yes,medi=yes,fina=yes,isol=yes, >ccmp=yes,locl=yes,calt=yes, >liga=yes,clig=yes,dlig=yes,rlig=yes, >mark=yes,mkmk=yes,kern=yes,curs=yes, >

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread luigi scarso
On Wed, Nov 21, 2018 at 7:04 PM Ulrike Fischer wrote: > Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen: > > > I'm not sure what yoy mwan with 0x as that's intercepted > > With this example (font from > https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf) > > a part of

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Ulrike Fischer
Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen: > I'm not sure what yoy mwan with 0x as that's intercepted With this example (font from https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf) a part of the glyphs are in blue. Khaled claims that this is wrong, that the

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Hans Hagen
On 11/21/2018 1:37 PM, Ulrike Fischer wrote: Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." in context use the context interface (which uses a

Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Ulrike Fischer
Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: > Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." -- Ulrike Fischer http://www.troubleshooting-tex.de/

[NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

2018-11-21 Thread Ulrike Fischer
I tried to register a demo colorpalette: \starttext \directlua{fonts.handlers.otf.registerpalette("demo", { { g=1 }, %accents { b=1 }, %06dd { r=0.5, g=0.5, b=0.5 }, %unused? { g = 0.5, b=0, r=1 }, } )} blub \stoptext and got the error font-ocl.lua:76: attempt to call a nil va

Re: [NTG-context] Fwd: Custom sorting of "pseudo-language" in a register

2018-03-22 Thread Hans Hagen
On 3/22/2018 9:25 AM, luigi scarso wrote: -- Forwarded message -- From: John Grasty <johnpgra...@gmail.com> Date: Fri, Mar 16, 2018 at 4:15 PM Subject: [NTG-context] Custom sorting of "pseudo-language" in a register To: mailing list for ConTeXt users <ntg-cont

[NTG-context] Custom sorting of "pseudo-language" in a register

2018-03-16 Thread John Grasty
Lua LPEG to parse and normalize my citations so they are referenced in a uniform style. My problem comes in the register sorting. Hans, I saw where in the paste you have recommended a “pseudo-language” to implement a custom sort in such a situation. I have almost figured out how to accomplish

[NTG-context] register with section references (instead of pages)

2017-11-08 Thread Pablo Rodriguez
Dear list, I have this sample: \starttext \chapter{One} \index{one} \section{Two} \index{two} \subsection{Three} \index{three} \placeregister[index] \stoptext Is there any way to get section numbers in the index references instead of page numbers? I have

[NTG-context] ConTeXt meeting 2017 – register now!

2017-08-25 Thread Henning Hraban Ramm
Hi folks, don’t forget to register for ConTeXt meeting 2017 – it’s very soon! 11.–17. September in Germany, near Frankfurt http://meeting.contextgarden.net/2017/ Use the opportunity to get in contact with ConTeXt developers and users and hear about the bleeding edge of development! Of course

Re: [NTG-context] compressing register ranges

2017-06-16 Thread Florian Grammel
>> Using [compress=all] for registers yields somewhat puzzling results (1.0.4 >> (TeX Live 2017)). >> I would expect the register of the following code to become one single range >> "1--7", though context produces "1--2, 3--7". >> Is this the

Re: [NTG-context] compressing register ranges

2017-06-16 Thread Henning Hraban Ramm
Am 2017-06-16 um 17:42 schrieb Florian Grammel <florian.gram...@gmail.com>: > Using [compress=all] for registers yields somewhat puzzling results (1.0.4 > (TeX Live 2017)). > I would expect the register of the following code to become one single range > "1--7", thou

[NTG-context] compressing register ranges

2017-06-16 Thread Florian Grammel
Using [compress=all] for registers yields somewhat puzzling results (1.0.4 (TeX Live 2017)). I would expect the register of the following code to become one single range "1--7", though context produces "1--2, 3--7". Is this the expected behaviour? And if so: is there a

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
> > Now an alternative approach I thought, because the index I'm > > working on > > is a biographical index, I mean a index of cited people, with a > > biographical profile. So every entry is a few lines long. > > That's why I thought to index only the ids in the text and use a > > textcommand in

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Hans Hagen
On 1/14/2017 3:52 PM, MF wrote: Thank you, Hans. I had found a solution, then I saw your e-mail. Anyway I've learned a lot from it. My solution was something like this: function xml.functions.indexEntry(e) local animal = animals[e.at.idref] if animal then --[[

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Alan Braslau
dule as follows: \defineregister [indexofauthors] \definebtrxregister [authors] [field=author, register=indexofauthors, method=always, dataset=default, alternative=invertedshort] ... \placeregister [indexofauthors] [compress=yes] This will create an index of all \cited authors

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread MF
Thank you, Hans. I had found a solution, then I saw your e-mail. Anyway I've learned a lot from it. My solution was something like this: function xml.functions.indexEntry(e)  local animal = animals[e.at.idref]  if animal then  --[[  context.Animal (  { animal.key

Re: [NTG-context] index(register) from an XML source

2017-01-14 Thread Hans Hagen
On 1/13/2017 6:10 PM, MF wrote: Hello list, please see this: \startbuffer[test] In this page there is a cat, a dog and a horse. In this page there's only a fox terrier. In this page you find a persian cat and a

[NTG-context] index(register) from an XML source

2017-01-13 Thread MF
Hello list, please see this: \startbuffer[test]   In this page there is a cat,   a dog  and a horse.     In this page there's only a fox terrier.     In this page you find a persian cat  and a horse.     Cat Dog

Re: [NTG-context] index-register automatic sorting

2016-05-25 Thread luigi scarso
On Tue, May 24, 2016 at 6:13 PM, Manuel Conzelmann <manol...@online.de> wrote: > hi everybody, > > if i place a register at the end of my document its sorted by page numbers > and not alphabetically. someone has an idea how to achieve this (from A to > Z)? > > if it wou

[NTG-context] index-register automatic sorting

2016-05-25 Thread Manuel Conzelmann
hi everybody, if i place a register at the end of my document its sorted by page numbers and not alphabetically. someone has an idea how to achieve this (from A to Z)? if it would be sorted alphabetically there would be only one indicator per letter: A B C D E F G at the moment

[NTG-context] register sorting

2016-05-25 Thread Manuel Conzelmann
hi everybody, if i place a register at the end of my document its sorted by page numbers and not alphabetically. someone has an idea how to achieve this (from A to Z)? if it would be sorted alphabetically there would be only one indicator per letter: A B C D E F G at the moment

Re: [NTG-context] Sorting index register

2016-05-24 Thread Wolfgang Schuster
Manuel Conzelmann <mailto:conze...@hs-pforzheim.de> 24. Mai 2016 um 16:10 How can i sort the register alphabetically, so that all indexes are sorted under max. 26 entries (a-z) instead of the default behaviour: sorted alphabetically per page order? At the moment it looks like GATKABF i

[NTG-context] Sorting index register

2016-05-24 Thread Manuel Conzelmann
How can i sort the register alphabetically, so that all indexes are sorted under max. 26 entries (a-z) instead of the default behaviour: sorted alphabetically per page order? At the moment it looks like GATKABF instead of ABFGKT Thx! Am 24.05.2016 15:08 schrieb "Meer, Hans van der"

[NTG-context] Register sort method for unicode quotes

2015-10-05 Thread Rik Kabel
Is there a sort method that can be specified for register sorts that will ignore unicode quote marks (“‘’”) in the same way that primes ("') are ignored. This was asked in 2010 (http://www.mail-archive.com/ntg-context@ntg.nl/msg51348.html) and not answered. It is still a pr

[NTG-context] Question on register sort order and default method

2015-09-27 Thread Rik Kabel
Why does the sort order (for registers, lists of synonyms, and so on) differ when no method is specified compared to when method=default is specified? That is, should not the default method applied when no method is specified be that named ‘default’? \setupregister[index][n=1]

Re: [NTG-context] Register customization for backmatter page numbers

2015-08-01 Thread Pablo Rodriguez
entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution that does not require changing the register commands (\index

[NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
and find no way to mark index entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution that does not require changing the register

Re: [NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
at the defineconversionset and defineprocessor documentation and find no way to mark index entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution

[NTG-context] Register customization for backmatter page numbers

2015-07-31 Thread Rik
and defineprocessor documentation and find no way to mark index entries appropriately. Can anyone suggest a way to do this, or some other method? Perhaps a pagecommand that compares the register item real page number to the highest real page number of the body? I would prefer a solution that does

Re: [NTG-context] \seeindex and secondary index (register) levels

2014-03-19 Thread Hans Hagen
On 3/19/2014 1:11 AM, Rik Kabel wrote: How can I get \seeindex to refer to other than the top-level of an index entry? In the following MWE, I would like to link to /text+more/, not /text,/ and not /text+some/. That is, the highlight should include the name of the lower level(s). The actual link

Re: [NTG-context] \seeindex and secondary index (register) levels

2014-03-19 Thread Rik Kabel
On 2014-03-19 08:30, Hans Hagen wrote: On 3/19/2014 1:11 AM, Rik Kabel wrote: How can I get \seeindex to refer to other than the top-level of an index entry? In the following MWE, I would like to link to /text+more/, not /text,/ and not /text+some/. That is, the highlight should include the

Re: [NTG-context] Missinentries in index register

2014-03-19 Thread Hans Hagen
On 3/19/2014 4:50 PM, Rik Kabel wrote: Another index register buglet, possibly a regression. Two entries should be created, but only one appears. This does not occur with TL2013 context It does occur with the current (20140316) standalone beta. \starttext Why is there no AB entry

[NTG-context] Missinentries in index register

2014-03-19 Thread Rik Kabel
Another index register buglet, possibly a regression. Two entries should be created, but only one appears. This does not occur with TL2013 context It does occur with the current (20140316) standalone beta. \starttext Why is there no AB entry in this index with current beta

[NTG-context] Index register page entry numbers missing

2014-03-19 Thread Rik Kabel
In the following example, page number entries in the index are not displayed when a blank line is inserted in the text, but do appear without that blank. This happens with both the current 20140316 standalone beta and with TL2013. (I noticed this constructing MWEs for other index register

Re: [NTG-context] Index register page entry numbers missing

2014-03-19 Thread Hans Hagen
this constructing MWEs for other index register problems. It is likely not a problem in real life, but may provide insight into other issues.) \starttext Why do the entry page numbers disappear when a blank line follows this line, and reappear when the blank line is removed? (Current beta

[NTG-context] \seeindex and secondary index (register) levels

2014-03-18 Thread Rik Kabel
How can I get \seeindex to refer to other than the top-level of an index entry? In the following MWE, I would like to link to /text+more/, not /text,/ and not /text+some/. That is, the highlight should include the name of the lower level(s). The actual link should be to the page with the entry

[NTG-context] Regression in register processing in last beta

2014-03-16 Thread Jan Tosovsky
Dear All, I have to admit I use quite cumbersome code to get desired output, but while it was working in previous betas, now emergency stop is reported: 'Extra }, or forgotten \endgroup' Here is MWE: \setupalign[hz, hanging] \setupindenting[medium, yes] \setupnotation[footnote][align={hz,

Re: [NTG-context] Regression in register processing in last beta

2014-03-16 Thread Hans Hagen
On 3/16/2014 7:25 PM, Jan Tosovsky wrote: Dear All, I have to admit I use quite cumbersome code to get desired output, but while it was working in previous betas, now emergency stop is reported: 'Extra }, or forgotten \endgroup' Here is MWE: \setupalign[hz, hanging] \setupindenting[medium,

Re: [NTG-context] Regression in register processing in last beta

2014-03-16 Thread Jan Tosovsky
On 2014-03-16 Jan Tosovsky wrote: Dear All, I have to admit I use quite cumbersome code to get desired output, but while it was working in previous betas, now emergency stop is reported: 'Extra }, or forgotten \endgroup' Here is MWE: \setupalign[hz, hanging] \setupindenting[medium,

Re: [NTG-context] Regression in register processing in last beta

2014-03-16 Thread Jan Tosovsky
On 2014-03-16 Hans Hagen wrote: On 3/16/2014 7:25 PM, Jan Tosovsky wrote: Dear All, I have to admit I use quite cumbersome code to get desired output, but while it was working in previous betas, now emergency stop is reported: 'Extra }, or forgotten \endgroup' Here is MWE:

[NTG-context] Customize register format

2014-03-09 Thread Thangalin
Hi, I am trying to reproduce the following register layout: http://i.imgur.com/qXSK2VM.png Entries include a section name, page number, author, and author URL; the entries are formatted fairly differently from a standard index. So far I have: \setupinteraction[state=start,] \define\Punctuate

[NTG-context] register in xml

2013-06-11 Thread Thomas A. Schmitz
Hi, may I interest you in a rerun of a question I asked half a year ago? How do you do an index from xml? Here is my naive approach, which ends in all entries being filed under x, which is less than ideal. What would be the proper way of doing this? Thanks Thomas \starttext

  1   2   3   >