Re: [NTG-context] Repeat second-level registers within index
On Tue, Oct 8, 2013 at 2:57 PM, Hans Hagen wrote: > fixed in upload > > Thanks so much! mathew -- http://www.pobox.com/~meta/> ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
On 10/8/2013 8:39 PM, mathew wrote: OK, I've reduced my observed problems with index generation to a simple test case: \starttext \placeindex \page \index{one}whatever % Shows up [1] \index{one+sub}whatever % Shows up correctly as sub-entry \index{two}whatever % Shows up [2] \index{one}whatever % Skipped because duplicate of [1] \index{two}whatever % Shows up as a duplicate of [2] \index{three}whatever % Doesn't show up at all \stoptext So, both duplicate entries and missing entries. It could be that having a mixture of 1-level and 2-level index entries isn't supported, but it *used* to work... Unfortunately I hadn't updated my ConTeXt install in months, so I can't tell when it broke. it's a side effect of another fix that itself made me share some local tables but that itself interfered with delayed injection of code fixed in upload 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 - ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
OK, I've reduced my observed problems with index generation to a simple test case: \starttext \placeindex \page \index{one}whatever % Shows up [1] \index{one+sub}whatever % Shows up correctly as sub-entry \index{two}whatever % Shows up [2] \index{one}whatever % Skipped because duplicate of [1] \index{two}whatever % Shows up as a duplicate of [2] \index{three}whatever % Doesn't show up at all \stoptext So, both duplicate entries and missing entries. It could be that having a mixture of 1-level and 2-level index entries isn't supported, but it *used* to work... Unfortunately I hadn't updated my ConTeXt install in months, so I can't tell when it broke. mathew ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
I'm wondering if the changes for second level index generation are the reason why I'm now getting bogus duplicate first level index entries? e.g. e-mail addresses 3 e-mail addresses 4 e-mail addresses 4, 4 4 4 4 e-mail addresses 3 and so on. Clean install of ConTeXt standalone, about 30 minutes ago. mathew ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
Thank you! Warm regards. On Sun, Sep 29, 2013 at 1:05 AM, Hans Hagen wrote: > On 9/28/2013 12:27 AM, Thangalin wrote: >> >> Thank you, Hans. >> >> The error still seems to be present. >> >> Out of curiosity, what does "max 4" mean? Does it limit the index >> nesting levels? > > > indeed > >> For my project, I require 5 nesting levels -- is that possible? > > > sure, i'll jump the max to 5 (but then also have to optimize a bit as it can > become inefficient for simple indices) > > - > 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 > - > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
On 9/28/2013 12:27 AM, Thangalin wrote: Thank you, Hans. The error still seems to be present. Out of curiosity, what does "max 4" mean? Does it limit the index nesting levels? indeed For my project, I require 5 nesting levels -- is that possible? sure, i'll jump the max to 5 (but then also have to optimize a bit as it can become inefficient for simple indices) - 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 - ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
Hi, I did not. I have since run *context --make* and the second-level registers are working. Thank you. ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
On Fri, 27 Sep 2013, Thangalin wrote: Hi, I changed lines 695 in bin/context/tex/texmf-context/tex/context/base/strc-reg.lua to the above. Did you regenerate the format: context --make Aditya ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
Thank you, Hans. The error still seems to be present. Out of curiosity, what does "max 4" mean? Does it limit the index nesting levels? For my project, I require 5 nesting levels -- is that possible? Kind regards. strc-reg.lua Description: Binary data ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
Hi, I changed lines 695 in bin/context/tex/texmf-context/tex/context/base/strc-reg.lua to the above. I re-ran context against my test case and Philipp's example. Actual results: a foo 2 *aa 2 aaa 2 *bar 2 a foo 2 aa 2 Expected results: a foo 2 aa *foo 2 *aaa *foo 2 * bar 2 a foo 2 aa 2 Kindest regards. ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
On 9/26/2013 12:16 PM, Philipp Gesang wrote: · Hi, How do you prevent ConTeXt from hiding (collapsing?) duplicate level 2 index items? For example: \startitem 5 array \index{hedgehog+SECTION A}hedgehog \stopitem \startitem 7 army \index{herring+SECTION A}herring \stopitem \startitem 100 bloat \index{hippopotamuses+SECTION A}hippopotamuses \stopitem The text "SECTION A" will only appear once in the index, right after hedgehog. I would like it to appear once per index term, always. Confirmed. The subentries aren’t shown if: - entries that share a subentry (level 2) are indexed consecutively, and - these entries are different but belong in the same register section (same initial letter) Example: \starttext \placeindex \page \index{a+foo}whatever %% shows up \index{aa+foo} whatever %% doesn’t \index{aaa+foo} whatever %% doesn’t \index{+bar} whatever %% shows up \index{a+foo}whatever %% shows up \index{aa+foo} whatever %% doesn’t \stoptext If you s/bar/foo/ in the fourth invocation of \index, only the first entry (“a”) of the register will have the subentry “foo”. Change the initial letters of each entry and all subentries are printed. can you run tests with (line 695 in strc-reg): for i=1,4 do -- max 4 if list[i] then e[i] = list[i][1] end if e[i] ~= done[i] then if e[i] and e[i] ~= "" then done[i] = e[i] for j=i+1,4 do done[j] = false end if n == i then context.stopregisterentries() context.startregisterentries(n) else while n > i do n = n - 1 context.stopregisterentries() end while n < i do n = n + 1 context.startregisterentries(n) end end local internal = entry.references.internal or 0 local seeparent = entry.references.seeparent or "" local processor = entry.processors and entry.processors[1] or "" if metadata then context.registerentry(processor,internal,seeparent,function() helpers.title(e[i],metadata) end) else -- ? context.registerentry(processor,internal,seeindex,e[i]) end else done[i] = false for j=i,4 do done[j] = false end end end end - 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 - ___ 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 ___
Re: [NTG-context] Repeat second-level registers within index
· > Hi, > > How do you prevent ConTeXt from hiding (collapsing?) duplicate level 2 > index items? > > For example: > > \startitem > 5 array \index{hedgehog+SECTION A}hedgehog > \stopitem > \startitem > 7 army \index{herring+SECTION A}herring > \stopitem > \startitem > 100 bloat \index{hippopotamuses+SECTION A}hippopotamuses > \stopitem > > The text "SECTION A" will only appear once in the index, right after > hedgehog. I would like it to appear once per index term, always. Confirmed. The subentries aren’t shown if: - entries that share a subentry (level 2) are indexed consecutively, and - these entries are different but belong in the same register section (same initial letter) Example: \starttext \placeindex \page \index{a+foo}whatever %% shows up \index{aa+foo} whatever %% doesn’t \index{aaa+foo} whatever %% doesn’t \index{+bar} whatever %% shows up \index{a+foo}whatever %% shows up \index{aa+foo} whatever %% doesn’t \stoptext If you s/bar/foo/ in the fourth invocation of \index, only the first entry (“a”) of the register will have the subentry “foo”. Change the initial letters of each entry and all subentries are printed. Best regards, Philipp pgpO2v5kyEZvB.pgp Description: PGP signature ___ 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 ___