From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112891 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joey McCollum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Addition of authortitle sorttype for bibliographies Date: Sun, 19 Sep 2021 14:02:07 -0400 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7846363403718495481==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 19 20:03:08 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mS19g-0005Lm-3F for gctc-ntg-context-518@m.gmane-mx.org; Sun, 19 Sep 2021 20:03:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7CF17287780; Sun, 19 Sep 2021 20:02:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bSG2wv3mvaKY; Sun, 19 Sep 2021 20:02:30 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 11174287775; Sun, 19 Sep 2021 20:02:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DA474287742 for ; Sun, 19 Sep 2021 20:02:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oaz-WMhKbv_Z for ; Sun, 19 Sep 2021 20:02:27 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.54; helo=mail-io1-f54.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6D980287725 for ; Sun, 19 Sep 2021 20:02:27 +0200 (CEST) Original-Received: by mail-io1-f54.google.com with SMTP id d18so6775352iof.13 for ; Sun, 19 Sep 2021 11:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=CMh0y5OMRL6U9aFHQcxng4sLH+GOsEtMBQ0u3ATfeZQ=; b=K/h1dcOGW6En6ibhsPY/kpe7teriNGy6FqIB0eTTdTgxOAPldsLcCfG/AwWKRdV3SQ cKxuDZjH1PhvrENmFxBmjFo/MQNJZD7SPMeNbqJZbXxtzBxTZIUGFdaeTM4j6FXcrU/n kxSphHRJwrAHWybMM4+89aez+SneBm1KswlAM2NIOvdgSeYKOue3la2xLO6BdI4fHaWt wi9rFYRcAggHid8tzE54BbI6uvqWvsXC5VXs13atiRtiJVEUTWYOcz2q23mD3mBBeWB+ KaUMn9JbO1Dg/gYo+++fkuoLj/JTIPRaNGWXm+9QEOzsBDMXyLiUyxGmd5OntIJTW+PI gdEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CMh0y5OMRL6U9aFHQcxng4sLH+GOsEtMBQ0u3ATfeZQ=; b=U4bXAgDhC8ZwxPkYwM4pVzuCqCNEShRjDKhHMzjm1Du57c8+JRyAyEkJ7arpb54fe4 USXs05nBy5bV9GqsInBms2x62gM8D9ir7k7tgQEuGlu2LJ1Y9AK7u4ZPeM1yG07gNVOS RAWYR6DERVbxGMq0td7VgCvDOJmcIvnEdov7+8dc6hzCMNf+n5xzaZdYULFIpZ1+HIpp JwrtEzGeh/n2HCUE3FYskdud6IVm6XTDhM2DbMFBYsT4CCyXrTtyTdK1dXwhTN7QyvbO NpSKkbC1zea5grzLC9ykRU3znEkSjA3zGc3lYip8xr7L3+yc103CDoLilnZEOwu8qvaO LihQ== X-Gm-Message-State: AOAM533PIdnd4B0eBsGfnY52jfEdkGXhJEvMQ/PRMcQn43WsBBv7LrKm zLQsxJc29Azvykrsbbb+Xw7jfa2YGnvq8FeFdWKfh2jAxTA= X-Google-Smtp-Source: ABdhPJzBl5l4MLSRLs94N5kEKbr2zAzTdyxJHmVJZW+pr9gsWS1uAZo7nNDyhYF3arcX9zk9iKvyg9r6huajrx0cqFk= X-Received: by 2002:a02:9f12:: with SMTP id z18mr949116jal.89.1632074545726; Sun, 19 Sep 2021 11:02:25 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112891 Archived-At: --===============7846363403718495481== Content-Type: multipart/alternative; boundary="0000000000008b880705cc5cf7c9" --0000000000008b880705cc5cf7c9 Content-Type: text/plain; charset="UTF-8" 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 --0000000000008b880705cc5cf7c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I've had to make another update= to the general publications support code in order to implement a feature o= f 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 ab= out needed features and bug fixes. One issue was that SBL should order list= entries by author and title. Thankfully, there is already an authordate so= rtmethod defined in publ-aut.lua (probably to support the Chicago rendering= ), so I was able to use it as a template for the following=C2=A0authortitle= sort sequence:

```
publications.sortmethods.authortitle = =3D {
=C2=A0 =C2=A0 sequence =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { fiel= d =3D "author", =C2=A0default =3D "", =C2=A0 =C2=A0 unk= nown =3D "" },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { field =3D "t= itle", =C2=A0 default =3D "", =C2=A0 =C2=A0 unknown =3D &quo= t;" },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { field =3D "date", = =C2=A0default =3D "9998-13-32", =C2=A0 =C2=A0 unknown =3D "9= 999-14-33" }, -- some specifications allow date instead of year, month= , day
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { field =3D "year", =C2=A0 = =C2=A0default =3D "9998", unknown =3D "9999" },
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 { field =3D "month", =C2=A0 default =3D = "13", =C2=A0 unknown =3D "14" },
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 { field =3D "day", =C2=A0 =C2=A0 default =3D "32&= quot;, =C2=A0 unknown =3D "33" },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = { field =3D "index", =C2=A0 default =3D "", =C2=A0 =C2= =A0 unknown =3D "" },
=C2=A0 =C2=A0 },
}
```

I ad= ded this to publ-aut.lua because publications.sortmethods.authoryear is def= ined in that file, but if another location is more appropriate, then feel f= ree to let me know, and I can move it! Otherwise, if this looks okay to inc= lude in a future update, then feel free to incorporate it!

Joey
--0000000000008b880705cc5cf7c9-- --===============7846363403718495481== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7846363403718495481==--