* index "compress" option / collapsing of page numbers @ 2019-04-02 9:54 Henning Hraban Ramm 2019-04-02 16:53 ` Hans Hagen 0 siblings, 1 reply; 8+ messages in thread From: Henning Hraban Ramm @ 2019-04-02 9:54 UTC (permalink / raw) To: mailing list for ConTeXt users Ahoi, with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. Is it possible to configure it that way? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-02 9:54 index "compress" option / collapsing of page numbers Henning Hraban Ramm @ 2019-04-02 16:53 ` Hans Hagen 2019-04-03 8:56 ` Henning Hraban Ramm 0 siblings, 1 reply; 8+ messages in thread From: Hans Hagen @ 2019-04-02 16:53 UTC (permalink / raw) To: mailing list for ConTeXt users On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: > Ahoi, > > with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. > > But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. > > Is it possible to configure it that way? it should not be too hard to program but, it being german problem: - you have to come up with an example - wolfgang has to come up with a proper keyword (compress=?) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-02 16:53 ` Hans Hagen @ 2019-04-03 8:56 ` Henning Hraban Ramm 2019-04-03 9:25 ` Ulrike Fischer ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Henning Hraban Ramm @ 2019-04-03 8:56 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2019-04-02 um 18:53 schrieb Hans Hagen <j.hagen@xs4all.nl>: > On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: >> Ahoi, >> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. >> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. >> Is it possible to configure it that way? > it should not be too hard to program but, it being german problem: > > - you have to come up with an example > - wolfgang has to come up with a proper keyword (compress=?) > Thank you – it’s not only a German habit, even if we pronounce it “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was usual in mediaeval Latin. So, this is at least used in English, German, Norwegian and Swedish, as far as I could find. In French they seem to use “sq.” and “sqq.” (sequens). https://de.wiktionary.org/wiki/ff. https://en.wiktionary.org/wiki/ff. https://fr.wiktionary.org/wiki/sq. I suggest the following setup options: compress = no —> don’t collapse (as now) compress = yes —> always use – (as now) compresssymbols={\,f.,\,ff.} (or how can you setup a list?) compress = symbols —> use first symbol for one other page, second for more pages if there’s only one symbol, more than one sequential page should use – (like “yes”) Is this feasible? As far as I see, we need this only for index entries, i.e. \setupregister, since there’s no command like \at for more than one page anyway; or is there a need to collapse pages in bibliographies? Test case: \usemodule[visual] \setuppapersize[A6] \setupregister[index][ compress=yes, %compresssymbols={\,f.,\,ff.}, %compress=symbols, ] \starttext \placeindex\index{nonsense} \page \strut\index{something}\page \strut\index{something}\page \dorecurse{7}{ \fakewords{10}{100}\index{something}\par \fakewords{20}{200}\index{other}\par \fakewords{10}{100}\index{something}\par } \index{finis} % not flushed? \stoptext Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-03 8:56 ` Henning Hraban Ramm @ 2019-04-03 9:25 ` Ulrike Fischer 2019-04-03 9:41 ` Thomas A. Schmitz 2019-04-03 11:30 ` Hans Hagen 2 siblings, 0 replies; 8+ messages in thread From: Ulrike Fischer @ 2019-04-03 9:25 UTC (permalink / raw) To: ntg-context Am Wed, 3 Apr 2019 10:56:21 +0200 schrieb Henning Hraban Ramm: > or is there a need to collapse pages in bibliographies? there can be such page ranges with ff both in the bibliography and the citation. But normally you input them hard coded as you know it in advance (in biblatex as 1\psq or 1\psqq). But biblatex has options to recreate them on-the-fly for backref lists in the bib (and could use the code in more places if needed). -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-03 8:56 ` Henning Hraban Ramm 2019-04-03 9:25 ` Ulrike Fischer @ 2019-04-03 9:41 ` Thomas A. Schmitz 2019-04-03 9:50 ` Herbert Voss 2019-04-03 11:30 ` Hans Hagen 2 siblings, 1 reply; 8+ messages in thread From: Thomas A. Schmitz @ 2019-04-03 9:41 UTC (permalink / raw) To: mailing list for ConTeXt users > On 3. Apr 2019, at 10:56, Henning Hraban Ramm <texml@fiee.net> wrote: > > Thank you – it’s not only a German habit, even if we pronounce it “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was usual in mediaeval Latin. > So, this is at least used in English, German, Norwegian and Swedish, as far as I could find. In French they seem to use “sq.” and “sqq.” (sequens). I’m not sure the abbreviation for “folio” has anything to do with our German “folgende”; if you have a link for this, I would like to know. And for the record: “ff.” for page ranges is now discouraged in most scholarly publications; journals and publishers now say f. for x - x+1, or exact page numbers. Thomas ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-03 9:41 ` Thomas A. Schmitz @ 2019-04-03 9:50 ` Herbert Voss 0 siblings, 0 replies; 8+ messages in thread From: Herbert Voss @ 2019-04-03 9:50 UTC (permalink / raw) To: ntg-context Am 03.04.19 um 11:41 schrieb Thomas A. Schmitz: > > >> On 3. Apr 2019, at 10:56, Henning Hraban Ramm <texml@fiee.net> wrote: >> >> Thank you – it’s not only a German habit, even if we pronounce it “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was usual in mediaeval Latin. >> So, this is at least used in English, German, Norwegian and Swedish, as far as I could find. In French they seem to use “sq.” and “sqq.” (sequens). > > I’m not sure the abbreviation for “folio” has anything to do with our German “folgende”; if you have a link for this, I would like to know. And for the record: “ff.” for page ranges is now discouraged in most scholarly publications; journals and publishers now say f. for x - x+1, or exact page numbers. it has nothing do do with "folgende", but it is often used because it means nearly the same. folium = { de = {”f”, ”ff”}, en = {”f”, ”ff”}, fr = {”\,sq”,”\,sqq”}, jp = {”シンボル”,”番号”}, } Herbert ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-03 8:56 ` Henning Hraban Ramm 2019-04-03 9:25 ` Ulrike Fischer 2019-04-03 9:41 ` Thomas A. Schmitz @ 2019-04-03 11:30 ` Hans Hagen 2019-04-03 12:54 ` Henning Hraban Ramm 2 siblings, 1 reply; 8+ messages in thread From: Hans Hagen @ 2019-04-03 11:30 UTC (permalink / raw) To: mailing list for ConTeXt users, Henning Hraban Ramm On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote: > Am 2019-04-02 um 18:53 schrieb Hans Hagen <j.hagen@xs4all.nl>: > >> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: >>> Ahoi, >>> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. >>> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. >>> Is it possible to configure it that way? >> it should not be too hard to program but, it being german problem: >> >> - you have to come up with an example >> - wolfgang has to come up with a proper keyword (compress=?) >> > > Thank you – it’s not only a German habit, even if we pronounce it “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was usual in mediaeval Latin. > So, this is at least used in English, German, Norwegian and Swedish, as far as I could find. In French they seem to use “sq.” and “sqq.” (sequens). > > https://de.wiktionary.org/wiki/ff. > https://en.wiktionary.org/wiki/ff. > https://fr.wiktionary.org/wiki/sq. > > I suggest the following setup options: > > compress = no —> don’t collapse (as now) > compress = yes —> always use – (as now) > > compresssymbols={\,f.,\,ff.} (or how can you setup a list?) > compress = symbols —> use first symbol for one other page, second for more pages > if there’s only one symbol, more than one sequential page should use – (like “yes”) > > Is this feasible? i'll add \setuplabeltext % predefined [en] [following:singular=f., following:plural=ff.] \setupregister[index][compress=text] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index "compress" option / collapsing of page numbers 2019-04-03 11:30 ` Hans Hagen @ 2019-04-03 12:54 ` Henning Hraban Ramm 0 siblings, 0 replies; 8+ messages in thread From: Henning Hraban Ramm @ 2019-04-03 12:54 UTC (permalink / raw) To: mailing list for ConTeXt users Am 2019-04-03 um 13:30 schrieb Hans Hagen <j.hagen@xs4all.nl>: > On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote: >> Am 2019-04-02 um 18:53 schrieb Hans Hagen <j.hagen@xs4all.nl>: >>> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: >>>> Ahoi, >>>> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. >>>> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. >>>> Is it possible to configure it that way? >>> it should not be too hard to program but, it being german problem: >>> >>> - you have to come up with an example >>> - wolfgang has to come up with a proper keyword (compress=?) >>> >> Thank you – it’s not only a German habit, even if we pronounce it “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was usual in mediaeval Latin. >> So, this is at least used in English, German, Norwegian and Swedish, as far as I could find. In French they seem to use “sq.” and “sqq.” (sequens). >> https://de.wiktionary.org/wiki/ff. >> https://en.wiktionary.org/wiki/ff. >> https://fr.wiktionary.org/wiki/sq. >> I suggest the following setup options: >> compress = no —> don’t collapse (as now) >> compress = yes —> always use – (as now) >> compresssymbols={\,f.,\,ff.} (or how can you setup a list?) >> compress = symbols —> use first symbol for one other page, second for more pages >> if there’s only one symbol, more than one sequential page should use – (like “yes”) >> Is this feasible? > > i'll add > > \setuplabeltext % predefined > [en] > [following:singular=f., > following:plural=ff.] > > \setupregister[index][compress=text] Great! Thank you! I’ll document it. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-04-03 12:54 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-04-02 9:54 index "compress" option / collapsing of page numbers Henning Hraban Ramm 2019-04-02 16:53 ` Hans Hagen 2019-04-03 8:56 ` Henning Hraban Ramm 2019-04-03 9:25 ` Ulrike Fischer 2019-04-03 9:41 ` Thomas A. Schmitz 2019-04-03 9:50 ` Herbert Voss 2019-04-03 11:30 ` Hans Hagen 2019-04-03 12:54 ` Henning Hraban Ramm
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).