* Addition of authortitle sorttype for bibliographies @ 2021-09-19 18:02 Joey McCollum via ntg-context 2021-09-20 2:57 ` Joey McCollum via ntg-context 0 siblings, 1 reply; 7+ messages in thread From: Joey McCollum via ntg-context @ 2021-09-19 18:02 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Joey McCollum [-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --] Hi, I've had to make another update to the general publications support code in order to implement a feature of the SBL rendering. Denis Maier has opened some issues on the context-sbl GitHub repo ( https://github.com/jjmccollum/context-sbl) to offer some helpful suggestions about needed features and bug fixes. One issue was that SBL should order list entries by author and title. Thankfully, there is already an authordate sortmethod defined in publ-aut.lua (probably to support the Chicago rendering), so I was able to use it as a template for the following authortitle sort sequence: ``` publications.sortmethods.authortitle = { sequence = { { field = "author", default = "", unknown = "" }, { field = "title", default = "", unknown = "" }, { field = "date", default = "9998-13-32", unknown = "9999-14-33" }, -- some specifications allow date instead of year, month, day { field = "year", default = "9998", unknown = "9999" }, { field = "month", default = "13", unknown = "14" }, { field = "day", default = "32", unknown = "33" }, { field = "index", default = "", unknown = "" }, }, } ``` I added this to publ-aut.lua because publications.sortmethods.authoryear is defined in that file, but if another location is more appropriate, then feel free to let me know, and I can move it! Otherwise, if this looks okay to include in a future update, then feel free to incorporate it! Joey [-- Attachment #1.2: Type: text/html, Size: 1918 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-09-19 18:02 Addition of authortitle sorttype for bibliographies Joey McCollum via ntg-context @ 2021-09-20 2:57 ` Joey McCollum via ntg-context 2021-10-04 22:01 ` Joey McCollum via ntg-context 0 siblings, 1 reply; 7+ messages in thread From: Joey McCollum via ntg-context @ 2021-09-20 2:57 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Joey McCollum [-- Attachment #1.1: Type: text/plain, Size: 3345 bytes --] Actually, since some categories (such as @review and @suppbook from biblatex) do not necessarily have titles of their own, it may be best to include a few other fields in the sort sequence to accommodate them. The following sequence may be better: ``` publications.sortmethods.authortitle = { sequence = { { field = "author", default = "", unknown = "" }, { field = "title", default = "", unknown = "" }, { field = "booktitle", default = "", unknown = "" }, -- if this is an untitled section (e.g., introduction, foreword, preface) of a book or a review of a book { field = "maintitle", default = "", unknown = "" }, -- if this is an untitled section or volume in a multivolume collection { field = "volume", default = "", unknown = "" }, { field = "part", default = "", unknown = "" }, { field = "date", default = "9998-13-32", unknown = "9999-14-33" }, -- some specifications allow date instead of year, month, day { field = "year", default = "9998", unknown = "9999" }, { field = "month", default = "13", unknown = "14" }, { field = "day", default = "32", unknown = "33" }, { field = "index", default = "", unknown = "" }, }, } ``` It is also worth noting that in order for the volume field to sort properly, its values will have to be padded with leading zeroes; otherwise, an entry with volume = {2} will be sorted after one with volume = {10}. To accommodate this, specifications would need to remove the leading zeroes when they typeset volume and part numbers. Joey On Sun, Sep 19, 2021 at 2:02 PM Joey McCollum <jmccollum20140511@gmail.com> wrote: > Hi, > > I've had to make another update to the general publications support code > in order to implement a feature of the SBL rendering. Denis Maier has > opened some issues on the context-sbl GitHub repo ( > https://github.com/jjmccollum/context-sbl) to offer some helpful > suggestions about needed features and bug fixes. One issue was that SBL > should order list entries by author and title. Thankfully, there is already > an authordate sortmethod defined in publ-aut.lua (probably to support the > Chicago rendering), so I was able to use it as a template for the > following authortitle sort sequence: > > ``` > publications.sortmethods.authortitle = { > sequence = { > { field = "author", default = "", unknown = "" }, > { field = "title", default = "", unknown = "" }, > { field = "date", default = "9998-13-32", unknown = > "9999-14-33" }, -- some specifications allow date instead of year, month, > day > { field = "year", default = "9998", unknown = "9999" }, > { field = "month", default = "13", unknown = "14" }, > { field = "day", default = "32", unknown = "33" }, > { field = "index", default = "", unknown = "" }, > }, > } > ``` > > I added this to publ-aut.lua because publications.sortmethods.authoryear > is defined in that file, but if another location is more appropriate, then > feel free to let me know, and I can move it! Otherwise, if this looks okay > to include in a future update, then feel free to incorporate it! > > Joey > [-- Attachment #1.2: Type: text/html, Size: 4546 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-09-20 2:57 ` Joey McCollum via ntg-context @ 2021-10-04 22:01 ` Joey McCollum via ntg-context 2021-10-05 12:55 ` Hans Hagen via ntg-context 0 siblings, 1 reply; 7+ messages in thread From: Joey McCollum via ntg-context @ 2021-10-04 22:01 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Joey McCollum [-- Attachment #1.1: Type: text/plain, Size: 4990 bytes --] I'm not sure if this thread got lost back when I sent it, but I just wanted to bump this thread again. The authortitle sort sequence detailed in the previous e-mail is working as expected, and it may be a helpful addition to the publ-aut.lua file for general use. In case the last e-mail was lost, I've repeated the code below: ``` publications.sortmethods.authortitle = { sequence = { { field = "author", default = "", unknown = "" }, { field = "title", default = "", unknown = "" }, { field = "booktitle", default = "", unknown = "" }, -- if this is an untitled section (e.g., introduction, foreword, preface) of a book or a review of a book { field = "maintitle", default = "", unknown = "" }, -- if this is an untitled section or volume in a multivolume collection { field = "volume", default = "", unknown = "" }, { field = "part", default = "", unknown = "" }, { field = "date", default = "9998-13-32", unknown = "9999-14-33" }, -- some specifications allow date instead of year, month, day { field = "year", default = "9998", unknown = "9999" }, { field = "month", default = "13", unknown = "14" }, { field = "day", default = "32", unknown = "33" }, { field = "index", default = "", unknown = "" }, }, } ``` Joey On Sun, Sep 19, 2021 at 10:57 PM Joey McCollum <jmccollum20140511@gmail.com> wrote: > Actually, since some categories (such as @review and @suppbook from > biblatex) do not necessarily have titles of their own, it may be best to > include a few other fields in the sort sequence to accommodate them. The > following sequence may be better: > > ``` > publications.sortmethods.authortitle = { > sequence = { > { field = "author", default = "", unknown = "" }, > { field = "title", default = "", unknown = "" }, > { field = "booktitle", default = "", unknown = "" }, -- > if this is an untitled section (e.g., introduction, foreword, preface) of a > book or a review of a book > { field = "maintitle", default = "", unknown = "" }, -- > if this is an untitled section or volume in a multivolume collection > { field = "volume", default = "", unknown = "" }, > { field = "part", default = "", unknown = "" }, > { field = "date", default = "9998-13-32", unknown = > "9999-14-33" }, -- some specifications allow date instead of year, month, > day > { field = "year", default = "9998", unknown = "9999" }, > { field = "month", default = "13", unknown = "14" }, > { field = "day", default = "32", unknown = "33" }, > { field = "index", default = "", unknown = "" }, > }, > } > ``` > > It is also worth noting that in order for the volume field to sort > properly, its values will have to be padded with leading zeroes; otherwise, > an entry with volume = {2} will be sorted after one with volume = {10}. To > accommodate this, specifications would need to remove the leading zeroes > when they typeset volume and part numbers. > > Joey > > On Sun, Sep 19, 2021 at 2:02 PM Joey McCollum <jmccollum20140511@gmail.com> > wrote: > >> Hi, >> >> I've had to make another update to the general publications support code >> in order to implement a feature of the SBL rendering. Denis Maier has >> opened some issues on the context-sbl GitHub repo ( >> https://github.com/jjmccollum/context-sbl) to offer some helpful >> suggestions about needed features and bug fixes. One issue was that SBL >> should order list entries by author and title. Thankfully, there is already >> an authordate sortmethod defined in publ-aut.lua (probably to support the >> Chicago rendering), so I was able to use it as a template for the >> following authortitle sort sequence: >> >> ``` >> publications.sortmethods.authortitle = { >> sequence = { >> { field = "author", default = "", unknown = "" }, >> { field = "title", default = "", unknown = "" }, >> { field = "date", default = "9998-13-32", unknown = >> "9999-14-33" }, -- some specifications allow date instead of year, month, >> day >> { field = "year", default = "9998", unknown = "9999" }, >> { field = "month", default = "13", unknown = "14" }, >> { field = "day", default = "32", unknown = "33" }, >> { field = "index", default = "", unknown = "" }, >> }, >> } >> ``` >> >> I added this to publ-aut.lua because publications.sortmethods.authoryear >> is defined in that file, but if another location is more appropriate, then >> feel free to let me know, and I can move it! Otherwise, if this looks okay >> to include in a future update, then feel free to incorporate it! >> >> Joey >> > [-- Attachment #1.2: Type: text/html, Size: 6920 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-10-04 22:01 ` Joey McCollum via ntg-context @ 2021-10-05 12:55 ` Hans Hagen via ntg-context 2021-10-05 13:52 ` mf via ntg-context 0 siblings, 1 reply; 7+ messages in thread From: Hans Hagen via ntg-context @ 2021-10-05 12:55 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen On 10/5/2021 12:01 AM, Joey McCollum via ntg-context wrote: > I'm not sure if this thread got lost back when I sent it, but I just > wanted to bump this thread again. The authortitle sort sequence detailed > in the previous e-mail is working as expected, and it may be a helpful > addition to the publ-aut.lua file for general use. In case the last > e-mail was lost, I've repeated the code below: probably got lost when my mail address was in transition ----------------------------------------------------------------- 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-10-05 12:55 ` Hans Hagen via ntg-context @ 2021-10-05 13:52 ` mf via ntg-context 2021-10-05 15:03 ` Henning Hraban Ramm via ntg-context 2021-10-05 16:46 ` Hans Hagen via ntg-context 0 siblings, 2 replies; 7+ messages in thread From: mf via ntg-context @ 2021-10-05 13:52 UTC (permalink / raw) To: Hans Hagen via ntg-context; +Cc: mf > probably got lost when my mail address was in transition > I sent you some mails during that period that were not answered. I thought it was a retaliation for not presenting anything at the meeting :) Anyway I'll prepare an article on running ConTeXt inside a container that could eventually end in the current issue of CJ, since Hraban wrote that > New articles are also welcome, as always! Massimiliano ___________________________________________________________________________________ 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-10-05 13:52 ` mf via ntg-context @ 2021-10-05 15:03 ` Henning Hraban Ramm via ntg-context 2021-10-05 16:46 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 7+ messages in thread From: Henning Hraban Ramm via ntg-context @ 2021-10-05 15:03 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm > Am 05.10.2021 um 15:52 schrieb mf via ntg-context <ntg-context@ntg.nl>: > > Anyway I'll prepare an article on running ConTeXt inside a container that could eventually end in the current issue of CJ, since Hraban wrote that > > > New articles are also welcome, as always! I’m looking forward to it! Hraban ___________________________________________________________________________________ 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] 7+ messages in thread
* Re: Addition of authortitle sorttype for bibliographies 2021-10-05 13:52 ` mf via ntg-context 2021-10-05 15:03 ` Henning Hraban Ramm via ntg-context @ 2021-10-05 16:46 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 7+ messages in thread From: Hans Hagen via ntg-context @ 2021-10-05 16:46 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen On 10/5/2021 3:52 PM, mf via ntg-context wrote: >> probably got lost when my mail address was in transition >> > > I sent you some mails during that period that were not answered. > I thought it was a retaliation for not presenting anything at the > meeting :) Sounds like a good plan ... I can do that next time ... but being one of the extreme testers with good mwe's gives you too many credit points so ... 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] 7+ messages in thread
end of thread, other threads:[~2021-10-05 16:46 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-09-19 18:02 Addition of authortitle sorttype for bibliographies Joey McCollum via ntg-context 2021-09-20 2:57 ` Joey McCollum via ntg-context 2021-10-04 22:01 ` Joey McCollum via ntg-context 2021-10-05 12:55 ` Hans Hagen via ntg-context 2021-10-05 13:52 ` mf via ntg-context 2021-10-05 15:03 ` Henning Hraban Ramm via ntg-context 2021-10-05 16:46 ` Hans Hagen via ntg-context
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).