From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112555 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joey McCollum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Short forms and abbreviations in bibliography Date: Sun, 22 Aug 2021 18:11:16 -0400 Message-ID: References: <0924E179-F1D2-4B05-9D16-C3075A216E2A@fiee.net> <20888f8e8c0c4d6982a360ee587ecbe7@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2587249967319636081==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 23 00:15:34 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 1mHvkb-000205-9e for gctc-ntg-context-518@m.gmane-mx.org; Mon, 23 Aug 2021 00:15:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EFDF6286B56; Mon, 23 Aug 2021 00:11:39 +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 Z-ySYX0STFkg; Mon, 23 Aug 2021 00:11:38 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD2BB286B5B; Mon, 23 Aug 2021 00:11:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3E99A286B58 for ; Mon, 23 Aug 2021 00:11:36 +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 njAdYy8sHjSl for ; Mon, 23 Aug 2021 00:11:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.45; helo=mail-io1-f45.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 022D8286B56 for ; Mon, 23 Aug 2021 00:11:32 +0200 (CEST) Original-Received: by mail-io1-f45.google.com with SMTP id n24so19460815ion.10 for ; Sun, 22 Aug 2021 15:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bAhamRu+/CnrOg3W5YQIoah1xvvkU8aRsEnTBugNi/I=; b=MywyuelaHOaYtoSZK4T5UHeG6o8QGUlth9uCbPNWj4zxyRyqml3EfKLRa6mIeD0Rgd kCkGg+ML1vfyPt5qjoLJeS/cR+Wqe2m9xFgd8wLqQ/uxczjSg5jnGYeHTbG0B5nd44/m 8ewSPMvtLCKUzg5tOoJpvX3dd5Xnhz5xPNCRChnrgkyICuREFwjAV+yfo3Ip6wJDDEOT QHeV08qDKXiJJ/42UQofAKBFBKMJibck5MgwskPRGh/SKqyzXdNHQLcZXk+3z0WYclpA od9f0PJ5YGv98+eFBcv+m3rNWgV3bFKJPNAZs/rCo1NmVSzIph2vO/ii+6pkONvU6vK7 cVfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bAhamRu+/CnrOg3W5YQIoah1xvvkU8aRsEnTBugNi/I=; b=oUxhNRbb07zyJn5s//3rBmopdcb5JuOtbwXaimTNHO5zTlDKTpycBK9RqMe/XYhef0 alIdP/66WnCOuyfK2d75a13JOyEqPanfgpPeMe0LIOYyfz413YMq7KFrqPzWOoywhA3S Wico7HQljgkBpNJ/NMzISpUuEDAYMKGgYAipnsWd7fuwZT44ZDvVoyGoYmWTqc5Tp4ne WFSouBMrcCorpA4imYMmtVOAKWXdfp2vTcdL7EXC6+U1u5cvNSOyboT3bPfzii3+zuQJ 9hlmmwT8KCPslGugOvIh9PnkAytc0NdIodKT/Gy1obukPUEeaKM6FlesFJK9yk1UxOns dLdw== X-Gm-Message-State: AOAM533RezKOmm/gH+1gmx/gyl30xWFtou4gleMnhVkce7FZDN88z7Vl gENwwFr0aSoynLJkAfhFtMnSAVyMgFYabdA9XwEjgQmq7C0= X-Google-Smtp-Source: ABdhPJxa9y/lYJBt4/9I72EWY1lFiksYuBC6hJWscvM+e9HL2Qud0U6KqRqmjXVTFOXdZIaPcvZIa9lryP3pIZ0iaow= X-Received: by 2002:a05:6602:2436:: with SMTP id g22mr24614071iob.109.1629670291225; Sun, 22 Aug 2021 15:11:31 -0700 (PDT) In-Reply-To: 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:112555 Archived-At: --===============2587249967319636081== Content-Type: multipart/alternative; boundary="000000000000cf3d8405ca2d2e38" --000000000000cf3d8405ca2d2e38 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just continuing to talk my way through the inner workings of the ConTeXt Publication modules. It looks like three "long" citation forms are defined in publ-imp-cite.mkvi: \startsetups btx:cite:listelement \fastsetup{\s!btx:\s!cite:concat} \fastsetup{\s!btx:\s!cite:lefttext} \ifx\currentbtxfirst\empty \fastsetup{\s!btx:\s!cite:\s!empty} \else \texdefinition {\s!btx:\s!cite:inject} { \btxcitereference \currentbtxfirst } \fi \fastsetup{\s!btx:\s!cite:righttext} \stopsetups \startsetups \s!btx:\s!cite:entry \fastsetup{\s!btx:\s!cite:concat} \fastsetup{\s!btx:\s!cite:lefttext} \btxhandleciteentry \fastsetup{\s!btx:\s!cite:righttext} \stopsetups \startsetups \s!btx:\s!cite:footnote \startfootnote \fastsetup{btx:cite:entry} \stopfootnote \stopsetups Intuitively, I would expect btx:cite:listelement [why not \s!btx:\s!cite:listelement?] to handle rendering a bibliographic entry for the bibliography proper (i.e., the list typically placed at the end of a document), while \s!btx:\s!cite:entry would handle in-text citations. The third setup, \s!btx:\s!cite:footnote, simply renders the "entry"-style citation in a footnote. But as far as I can tell, the "listelement" setup is never used outside of publ-imp-cite.mkvi. Only the "entry" setup appears to be used. Meanwhile, the \btxcitereference and \btxhandleciteentry macros (invoked in these setups) appear to be defined in publ-ini.mkiv: \unexpanded\def\btx_cite_reference_inject {\ifconditional\c_btx_cite_reference_injected \else \dontleavehmode \iftrialtypesetting \else \ifx\currentbtxbacklink\empty % can be made empty when combining author / year \else\ifnum\currentbtxbacklink>\zerocount \btx_cite_reference_inject_indeed \settrue\c_btx_cite_reference_injected \fi\fi \fi \fi} ... \let\btxcitereference\btx_cite_reference_inject ... \unexpanded\def\btxhandleciteentry {\dontleavehmode \begingroup \def\currentbtxcitealternative{entry}% \setbtxparameterset\s!cite\currentbtxcitealternative % needs checking \btxcitereference \btx_entry_inject \endgroup} My next step will be to figure out what these are doing, but I'm still not sure if the module accommodates rendering in-text "entry" citations differently than citations in the list. Joey On Mon, Aug 9, 2021 at 8:55 AM Joey McCollum wrote: > Henning's suggestion for abbreviations should work fine for that issue. I > could simply use the shorthand in the "series" and "journal" fields and s= et > up the appropriate \abbreviation calls in the document or environment. > > As for the larger issue of bibliographies, I've started working on > publ-imp-sbl.lua and publ-imp-sbl.mkvi files. I knew I would need this fo= r > my own project soon, and I felt it would be useful to myself and the > ConTeXt community if I could at least get a rudimentary version working. > I'm presently using the reference for examples from the *SBL Handbook of > Style*, 2nd edition, available at > https://github.com/dcpurton/biblatex-sbl/blob/master/test/biblatex-sbl-ex= amples.ref.txt > . > > Like you say, some parts are tricky. SBL uses "entry"-style citations by > default and doesn't seem to make use of other common alternatives (such a= s > "authoryear"). I can think of some existing alternatives that might get > used in specific cases (e.g., "author", "title"), but the > recommended shorthand has the form "shortauthor, shorttitle" (i.e., the > last name(s) of the author(s) only, followed by a comma and a shortened > form of the title as specified in the "shorttitle" field). I could make > this the sbl style's implementation of the "short" alternative, since the > LaTeX-style bracketed number references are foreign to SBL style anyway, > but if would be preferable just to introduce another alternative (somethi= ng > like "authortitle"), then I could also try to do that. > > For my immediate purposes, I won't need much more than the @book, > @article, @inbook, and @incollection entries, so my focus will be on > getting those right, but if anyone is interested in helping, I'll gladly > take help. (But it would probably be better to discuss the details in a > separate e-mail thread.) > > Joey > > On Mon, Aug 9, 2021 at 4:12 AM Denis Maier via ntg-context < > ntg-context@ntg.nl> wrote: > >> >> >> > -----Urspr=C3=BCngliche Nachricht----- >> > Von: ntg-context Im Auftrag von Henning >> > Hraban Ramm via ntg-context >> > Gesendet: Samstag, 7. August 2021 22:40 >> > An: mailing list for ConTeXt users >> > Cc: Henning Hraban Ramm >> > Betreff: Re: [NTG-context] Short forms and abbreviations in bibliograp= hy >> > >> > >> > >> > > Am 07.08.2021 um 21:53 schrieb Joey McCollum via ntg-context > > context@ntg.nl>: >> > > >> > > A separate list of abbreviations would then list "LSAWS" alongside >> "Linguistic >> > Studies in Ancient West Semitic" (and likewise for other journal/serie= s >> > abbreviations). >> > >> > Regarding abbreviations have a look at >> > https://wiki.contextgarden.net/Command/definesynonyms >> > >> > It should be as easy as >> > >> > \abbreviation{LSAWS}{Linguistic Studies in Ancient West Semitic} >> > >> > The full name of \quote{LSAWS} is \infull{LSAWS}. >> > >> > \placelistofabbreviations >> > >> > >> > I had a case where mostly abbreviations were used in the text but the >> full name >> > should appear in the index. >> > I can provide the setup (including Lua functions), if it might help yo= u. >> > >> > >> > Can=E2=80=99t help with bibliographies, sorry. >> >> SBL is a tricky beast anyway. There were some discussions regarding >> implementing Chicago Manual of Style a couple of weeks ago. Develelopmen= ts >> on that front could also be useful for SBL. Don't know what came out of >> this though. >> >> Denis >> >> > >> > 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 >> > ________________________________________________________________ >> > ___________________ >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> > --000000000000cf3d8405ca2d2e38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just continuing to talk my way through the inner workings = of the ConTeXt Publication modules. It looks like three "long" ci= tation forms are defined in publ-imp-cite.mkvi:

\startsetups btx:cite:listeleme= nt
=C2=A0 =C2=A0 \fastsetup{\s!btx:\s!cite:concat}
=C2=A0 =C2=A0 \fas= tsetup{\s!btx:\s!cite:lefttext}
=C2=A0 =C2=A0 \ifx\currentbtxfirst\empty=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \fastsetup{\s!btx:\s!cite:\s!empty}
=C2= =A0 =C2=A0 \else
=C2=A0 =C2=A0 =C2=A0 =C2=A0\texdefinition {\s!btx:\s!ci= te:inject} {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\btxcitereference<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\currentbtxfirst
=C2=A0 =C2= =A0 =C2=A0 =C2=A0}
=C2=A0 =C2=A0 \fi
=C2=A0 =C2=A0 \fastsetup{\s!btx:= \s!cite:righttext}
\stopsetups

\startsetups \s!btx:\s!cite:entry<= br>=C2=A0 =C2=A0 \fastsetup{\s!btx:\s!cite:concat}
=C2=A0 =C2=A0 \fastse= tup{\s!btx:\s!cite:lefttext}
=C2=A0 =C2=A0 \btxhandleciteentry
=C2=A0= =C2=A0 \fastsetup{\s!btx:\s!cite:righttext}
\stopsetups

\startse= tups \s!btx:\s!cite:footnote
=C2=A0 =C2=A0 \startfootnote
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 \fastsetup{btx:cite:entry}
=C2=A0 =C2=A0 \stopfootnote=
\stopsetups

Intuitively, I would expect=C2=A0btx:ci= te:listelement [why not \s!btx:\s!cite:listelement?] to handle rendering a = bibliographic entry for the bibliography proper (i.e., the list typically p= laced at the end of a document), while=C2=A0\s!btx:\s!cite:entry would hand= le in-text citations. The third setup,=C2=A0\s!btx:\s!cite:footnote, simply= renders the "entry"-style citation in a footnote.

=
But as far as I can tell, the "listelement" setup is never u= sed outside of publ-imp-cite.mkvi. Only the "entry" setup appears= to be used. Meanwhile, the=C2=A0\btxcitereference=C2=A0and=C2=A0 \btxhandleciteentry=C2=A0macros (invoked in these setups) appear to be defi= ned in publ-ini.mkiv:

\unexpanded\def\btx_cite_reference_inject
=C2=A0 = {\ifconditional\c_btx_cite_reference_injected
=C2=A0 =C2=A0\else
=C2= =A0 =C2=A0 =C2=A0\dontleavehmode
=C2=A0 =C2=A0 =C2=A0\iftrialtypesetting= \else
=C2=A0 =C2=A0 =C2=A0 =C2=A0\ifx\currentbtxbacklink\empty
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0% can be made empty when combining author / = year
=C2=A0 =C2=A0 =C2=A0 =C2=A0\else\ifnum\currentbtxbacklink>\zeroc= ount
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\btx_cite_reference_inject_indeed=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\settrue\c_btx_cite_reference_injecte= d
=C2=A0 =C2=A0 =C2=A0 =C2=A0\fi\fi
=C2=A0 =C2=A0 =C2=A0\fi
=C2=A0= \fi}

...

\let\btxcit= ereference\btx_cite_reference_inject

...

\u= nexpanded\def\btxhandleciteentry
=C2=A0 {\dontleavehmode
=C2=A0 =C2= =A0\begingroup
=C2=A0 =C2=A0\def\currentbtxcitealternative{entry}%
= =C2=A0 =C2=A0\setbtxparameterset\s!cite\currentbtxcitealternative % needs c= hecking
=C2=A0 =C2=A0\btxcitereference
=C2=A0 =C2=A0\btx_entry_inject=
=C2=A0 =C2=A0\endgroup}

My next st= ep will be to figure out what these are doing, but I'm still not sure i= f the module accommodates rendering in-text "entry" citations dif= ferently than citations in the list.

Joey

On = Mon, Aug 9, 2021 at 8:55 AM Joey McCollum <jmccollum20140511@gmail.com> wrote:
Henning's= suggestion for abbreviations should work fine for that issue. I could simp= ly use the shorthand in the "series" and "journal" fiel= ds and set up the appropriate \abbreviation calls in the document or enviro= nment.

As for the larger issue of bibliographies, I've started w= orking on publ-imp-sbl.lua and publ-imp-sbl.mkvi files. I knew I would need= this for my own project soon, and I felt it would be useful to myself and = the ConTeXt community if I could at least get a rudimentary version working= . I'm presently using the reference for examples from the SBL Handbo= ok of Style, 2nd edition, available at=C2=A0https://github.com/dcpurton/biblatex-sbl/blob/master/test/b= iblatex-sbl-examples.ref.txt.

Like you say, some par= ts are tricky. SBL uses "entry"-style citations by default and do= esn't seem to make use of other common alternatives (such as "auth= oryear"). I can think of some existing alternatives that might get use= d in specific cases (e.g., "author", "title"), but the = recommended=C2=A0shorthand has the form "shortauthor, shorttitle"= (i.e., the last name(s) of the author(s) only, followed by a comma and a s= hortened form of the title as specified in the "shorttitle" field= ). I could make this the sbl style's implementation of the "short&= quot; alternative, since the LaTeX-style bracketed number references are fo= reign to SBL style anyway, but if would be preferable just to introduce ano= ther alternative (something like "authortitle"), then I could als= o try to do that.

For my immediate purposes, I won't need much m= ore than the=C2=A0@book, @article, @inbook, and=C2=A0@incollection=C2=A0ent= ries, so my focus will be on getting those right, but if anyone is interest= ed in helping, I'll gladly take help. (But it would probably be better = to discuss the details in a separate e-mail thread.)

Joey

On Mon, Aug 9, 2021 at 4:12 AM Denis Maier via ntg-context <= ;ntg-context@ntg.nl= > wrote:
=

> -----Urspr=C3=BCngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning > Hraban Ramm via ntg-context
> Gesendet: Samstag, 7. August 2021 22:40
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Cc: Henning Hraban Ramm <texml@fiee.net>
> Betreff: Re: [NTG-context] Short forms and abbreviations in bibliograp= hy
>
>
>
> > Am 07.08.2021 um 21:53 schrieb Joey McCollum via ntg-context <= ntg-
> context@ntg.nl= >:
> >
> > A separate list of abbreviations would then list "LSAWS"= ; alongside "Linguistic
> Studies in Ancient West Semitic" (and likewise for other journal/= series
> abbreviations).
>
> Regarding abbreviations have a look at
> https://wiki.contextgarden.net/Command/de= finesynonyms
>
> It should be as easy as
>
> \abbreviation{LSAWS}{Linguistic Studies in Ancient West Semitic}
>
> The full name of \quote{LSAWS} is \infull{LSAWS}.
>
> \placelistofabbreviations
>
>
> I had a case where mostly abbreviations were used in the text but the = full name
> should appear in the index.
> I can provide the setup (including Lua functions), if it might help yo= u.
>
>
> Can=E2=80=99t help with bibliographies, sorry.

SBL is a tricky beast anyway. There were some discussions regarding impleme= nting Chicago Manual of Style a couple of weeks ago. Develelopments on that= front could also be useful for SBL. Don't know what came out of this t= hough.

Denis

>
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t archive=C2=A0 :
> https://bitbucket.org/phg/context-mirror/commi= ts/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ________________________________________________________________
> ___________________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000cf3d8405ca2d2e38-- --===============2587249967319636081== 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== --===============2587249967319636081==--