Re: [NTG-context] Hebrew punctuation with SBL Hebrew

2022-08-31 Thread Joey McCollum via ntg-context
In your "broken" example, the patah below the het is being moved to the right rather than staying under the middle of the het? But the shift to the right is the correct behavior for furtive patah and should be expected. On Wed, Aug 31, 2022 at 8:06 PM Denis Maier via ntg-context <

Re: [NTG-context] error with sbl bibliography on latest LMTX

2022-07-09 Thread Joey McCollum via ntg-context
Sorry, these are definitely errors on my part. The first one ("invalid parent sbl:list:title:unpublished for sbl:list:title:thesis, sbl:list:title:unpublished defined too") was thankfully an easy fix; I just had to move \definebtx[sbl:\s!list:title:unpublished] before

Re: [NTG-context] How to install the ConTeXt-SBL module?

2022-05-29 Thread Joey McCollum via ntg-context
While testing the module, I would copy the .mkiv and .lua files to my ConTeXt MkIV directory (on Windows with the TeXLive distribution, this was C:\texlive\2021\texmf-dist\tex\context\base\mkiv) and then run context --make to apply the updates. If there is some other preferred way to do this,

Re: [NTG-context] How to override ConTeXt-SBL titles, to make all titles everywhere capitalized?

2022-01-17 Thread Joey McCollum via ntg-context
I've avoided forcing capitalization in too many places in the SBL rendering because there are often language-specific (or, within English, even dialect-specific) differences regarding what should be capitalized. I think I already enforce capitalization of the first word, though: ```

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-26 Thread Joey McCollum via ntg-context
This actually seems to be rooted in a more general problem with the publications support module. Why does invoking the fastsetup for citations work within the default footnote setup, but not within endnotes flushed via \placenotes[footnote]? If I modify the original MWE to use ConTeXt's default

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
A reasonable solution for the time being would be to check if the righttext argument is empty, and add a final period in the footnote only if it is not (with the assumption being that the user would provide punctuation in any righttext for footnote/endnote citations). I've pushed the following

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
Joel, You may not have done anything wrong; this may be an issue with ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in publ-imp-sbl.mkvi, I added a comment to this effect: ``` \startsetups btx:sbl:cite:footnote \removeunwantedspaces

Re: [NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
like.) Joey On Fri, Dec 24, 2021 at 10:14 AM Denis Maier via ntg-context < ntg-context@ntg.nl> wrote: > biblatex has special multicite commands=> e.g. autocites. could that be > used in that case? > > Denis > > Joey McCollum via ntg-context hat am 24.12.2021 >

Re: [NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
Additionally, if you want to cite page numbers, the key to use in ConTeXt-SBL is "loctext". (I was not aware of an "extra" key when I was developing the module.) So, you should be able to make the ConTeXt-style \cite command work as follows: ``` \cite[loctext=2][na2006] ``` I hope this helps,

Re: [NTG-context] Why are back-to-back \autocite commands not working in ConTeXt-SBL?

2021-12-24 Thread Joey McCollum via ntg-context
Joel, Thanks for mentioning this! I think I've run into the same issue before, but I wasn't sure how I should go about fixing it, so this might be a good place to get suggestions from others. The \autocite, \inlinecite, \parencite, and \footcite helper commands are intended to handle trailing

Re: [NTG-context] Displaying names in Chicago-Turabian "note" style

2021-12-21 Thread Joey McCollum via ntg-context
Joel, I've attempted to incorporate most of these features for the SBL citation style (which derives most of the same rules from Chicago) for ConTeXt. You can use my code in https://github.com/jjmccollum/context-sbl as a template for now, if you'd like; we're still waiting for the code to be

Re: [NTG-context] xml processing: if elseif else / switch case

2021-12-09 Thread Joey McCollum via ntg-context
2021 5:11 PM, Wolfgang Schuster via ntg-context wrote: > > Joey McCollum via ntg-context schrieb am 09.12.2021 um 15:08: > >> I believe \orelse might be what you want. It works with most \if... > >> macros, and it avoids nesting of \doifelse constructs. Here's an > >

Re: [NTG-context] xml processing: if elseif else / switch case

2021-12-09 Thread Joey McCollum via ntg-context
I believe \orelse might be what you want. It works with most \if... macros, and it avoids nesting of \doifelse constructs. Here's an example, which I use in conditionally removing preceding punctuation if any other keys are defined before a specific one in an assignment: ``` % If any of the

[NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-08 Thread Joey McCollum via ntg-context
A while ago, I mentioned in a thread on the mailing list that I was working on a new bibliographic rendering for the SBL citation style. After additional testing and implementation of various features (e.g., an authorconversion that inverts the first author and prints all subsequent authors in

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-29 Thread Joey McCollum via ntg-context
After some debugging, the example code I offered above seems to work, with minor adjustments: \begingroup \let\loc\loctextloc \currentbtxloctext \btxcomma \endgroup Thanks again for all the help! Joey On Mon, Nov 29, 2021 at 12:11 PM Joey McCollum wrote: > Okay. So using this example as a

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-29 Thread Joey McCollum via ntg-context
Okay. So using this example as a template, I'd like to do the following: - define a general-purpose \loc macro that can be invoked in the main text (i.e., outside of citations) in the usual way; this one would correspond to \WhateverB above and would not remove punctuation preceding

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-27 Thread Joey McCollum via ntg-context
I was afraid that might be the problem. I've described some of the intended purpose of this code near the end of the "Checking for a macro in a string without expanding it" thread on the mailing list, but I will get into more detail here. I'm working on a ConTeXt implementation of citation style

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-27 Thread Joey McCollum via ntg-context
starttext > > \DoIfPrefixElse{§}{\currentbtxloctext}{YES}{NOP} > > \stoptext > ``` > > Lua is throwing an "invalid escape sequence near '"\l'" error, which is > presumably because the macro \loc[sec=31] is not being expanded. How do I > fix this? >

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-26 Thread Joey McCollum via ntg-context
YES}{NOP} \stoptext ``` Lua is throwing an "invalid escape sequence near '"\l'" error, which is presumably because the macro \loc[sec=31] is not being expanded. How do I fix this? Thanks! Joey On Fri, Nov 26, 2021 at 3:46 AM Hans Hagen via ntg-context < ntg-context@ntg.n

[NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-25 Thread Joey McCollum via ntg-context
I wasn't aware of a general-purpose "doifstartswith" macro in ConTeXt (the \doifnextcharelse macro only works one character at a time, and the \doifinstring macros may capture substrings that are not prefixes), and I'd like to develop one for something I'm working on. I've been trying to do this

[NTG-context] \doifanydefinedelse, \doifallundefinedelse

2021-11-19 Thread Joey McCollum via ntg-context
I was checking the "Branches and Decisions" wiki entry at https://wiki.contextgarden.net/System_Macros/Branches_and_Decisions, and I saw that ConTeXt has a useful \doifalldefinedelse macro that checks a comma-separated list of macro names and proceeds according to whether or not all of the macros

Re: [NTG-context] Checking for a macro in a string without expanding it

2021-11-16 Thread Joey McCollum via ntg-context
I'm not sure if my mind is twisted enough! I can follow how Jairo's answer works, and that does what I need it to, but it's not as clear to me what the last two TeX-only approaches are doing at a low level. Perhaps more importantly, I should clarify that for my purposes, the \MyOuter macro is the

[NTG-context] Checking for a macro in a string without expanding it

2021-11-16 Thread Joey McCollum via ntg-context
As the subject of this question suggests, this is really more of a question about expansion control (a topic that is still a bit obscure to me). Suppose I have a macro \inner that expects a single argument or an assignment of parameters in brackets. For my purposes, I don't want this macro to do

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-11 Thread Joey McCollum via ntg-context
pening?) to the > default ConTeXt catcodes and then back. > > Thanks again! > > Joey > > On Sun, Oct 10, 2021 at 6:40 AM Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > >> Joey McCollum via ntg-context schrieb am 10.10.2021 um 05:42: >&

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-11 Thread Joey McCollum via ntg-context
thor1:2016]\blank \cite[Author2:2015]\blank \page \startsubject[title=Abbreviations] \placelistofabbreviations \stopsubject \page \startsubject[title=Bibliography] \placelistofpublications \stopsubject \stoptext ``` Joey On Fri, Oct 8, 2021 at 7:38 AM Hans Hagen wrote: > On 10/7/2021 6:38 AM, Joey

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Joey McCollum via ntg-context
\commentasciicode\othercatcode gets invoked in \publ_set_publication, so perhaps that's what's happening?) to the default ConTeXt catcodes and then back. Thanks again! Joey On Sun, Oct 10, 2021 at 6:40 AM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Joey McCollum via ntg-context s

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
e to check if the trailing character is one of the characters in a specified set/string, and this is where the error is arising. Joey On Sat, Oct 9, 2021 at 12:50 PM Hans Hagen wrote: > On 10/9/2021 5:40 PM, Joey McCollum via ntg-context wrote: > > Hi, > > > > I'm trying t

[NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
Hi, I'm trying to define concise biblatex-style citation macros for a custom bibliographic style specification with support for intelligent placement of trailing punctuation, and I've encountered an unusual error. If I try to define the macros within the btxrenderingdefinitions environment, then

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
abbreviations should work fine for that >>>>>> issue. I could simply use the shorthand in the "series" and "journal" >>>>>> fields and set up the appropriate \abbreviation calls in the document or >>>>>> environment.

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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 Handbook >>>>>

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
ricky. SBL uses "entry"-style citations >>>> by default and doesn't seem to make use of other common alternatives (such >>>> as "authoryear"). I can think of some existing alternatives that might get >>>> used in specific cases (e.g., "au

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
ified 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 anoth

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
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.)

Re: [NTG-context] Addition of authortitle sorttype for bibliographies

2021-10-04 Thread Joey McCollum via ntg-context
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,

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
always default to the "rule" > setup. > > > > Joey > > > > On Tue, Sep 21, 2021 at 12:52 AM wrote: > > Cool. > > I don't know about your particular solution, but will probably want to > make sure to have different variables for citations in the main text

Re: [NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-21 Thread Joey McCollum via ntg-context
lar solution, but will probably want to > make sure to have different variables for citations in the main text and in > the notes. > > Denis > > > > > Von: ntg-context im Auftrag von Joey > McCollum via ntg-context > Gesendet

[NTG-context] Ibid. and idem support for bibliographies (and variable scope more generally)

2021-09-20 Thread Joey McCollum via ntg-context
Hi, I've found a way to implement ibid. and idem support in the SBL specification under development at https://github.com/jjmccollum/context-sbl (this e-mail essentially repeats my comments in https://github.com/jjmccollum/context-sbl/issues/5), but I'm not sure if my solution is a recommended

Re: [NTG-context] Addition of authortitle sorttype for bibliographies

2021-09-19 Thread Joey McCollum via ntg-context
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 = {

[NTG-context] Addition of authortitle sorttype for bibliographies

2021-09-19 Thread Joey McCollum via ntg-context
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

[NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Joey McCollum via ntg-context
Hi, It's taken a couple weeks, but I nearly have a working bibliographic rendering for SBL style ready. I'm hosting the .lua and .mkvi files I have so far, as well as a test .bib and .tex file, on GitHub at https://github.com/jjmccollum/context-sbl. The look of the rendering seems to be correct

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
hich of the two setups I use. Do I have to do something > different to access it? > > Thanks! > > On Wed, Sep 15, 2021 at 4:18 AM Hans Hagen wrote: > >> On 9/15/2021 5:06 AM, Joey McCollum via ntg-context wrote: >> > All right, I figured out where I needed to make this chan

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
custom rendering file does not access the invertedfirst setup, regardless of which of the two setups I use. Do I have to do something different to access it? Thanks! On Wed, Sep 15, 2021 at 4:18 AM Hans Hagen wrote: > On 9/15/2021 5:06 AM, Joey McCollum via ntg-context wrote: > > All

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-14 Thread Joey McCollum via ntg-context
All right, I figured out where I needed to make this change for it to take effect. The relevant script is publ-aut.lua. The code I needed to change was for the "oneauthor" function definition, which itself is located in the "btxauthor" function definition. My changes are detailed below: ```

[NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-03 Thread Joey McCollum via ntg-context
Hi, I mentioned this in an earlier e-mail but thought that now might be a good time to describe this issue in detail. I'd like to define a new authorconversion that renders the first author in a list differently than the remaining authors in the list. Specifically, I'd like to use the "inverted"

[NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-08-27 Thread Joey McCollum via ntg-context
I dealt with this issue at length in a separate thread (“Different author rendering in entry citation vs. list”) a couple months after you asked about this, so for the benefit of anyone who has been following this thread specifically, I’ll describe the solution I found here. There are (at least) a

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
I didn't even know they exist. > Thanks for sharing your discovery! > > Agoston > > Am Fr., 27. Aug. 2021 um 05:09 Uhr schrieb Joey McCollum via > ntg-context : > > > > Nevermind, it looks like there's an even more deliberate and succinct > way to handle this! In publ-i

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
Nevermind, it looks like there's an even more deliberate and succinct way to handle this! In publ-ini.mkiv, the \currentbtxciteauthorbyfield command shows how to print the author field mapped according to the cite style: ``` \unexpanded\def\currentbtxciteauthorbyfield {\begingroup

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
Okay, I've made some progress! Thankfully, the authorconversion rules can be overridden using some of the methods defined in publ-ini.mkiv. I now have something like this in my rendering's .mkvi file: ``` \doifelse {\currentbtxcitealternative} {entry} { % Normal order for in-text citations

[NTG-context] Different author rendering in entry citation vs. list

2021-08-25 Thread Joey McCollum via ntg-context
Hi, I'm trying to implement a custom bibliography rendering where in-text citations (specifically, citations with alternative=entry) are not identical to the entries in the bibliography list. Following a pattern I've seen in publ-imp-chicago.mkvi, I've been able to implement most of the features

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-08-22 Thread Joey McCollum via ntg-context
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üngliche Nachricht- >> > Von: ntg-context Im Auftrag von Henning

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2021-08-17 Thread Joey McCollum via ntg-context
Thankfully, it looks like this was just a problem with my implementation of the OpenType feature and not with ConTeXt's handling of it! (I worried that it might be ConTeXt when I saw that XeLaTeX was handing the feature correctly.) Hans graciously helped me identify the problem, and everything

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2021-08-17 Thread Joey McCollum via ntg-context
Shouldn't dlig automatically be enabled under the "hebrew" feature set? In font-pre.mkiv, hebrew inherits from semitic-complete, which sets dlig=yes. Still, if I explicitly add dlig, as in the following example, things change, but they still aren't right: ``` \starttypescriptcollection[keteryg]

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2021-08-16 Thread Joey McCollum via ntg-context
Hans, Sorry to bring this up after over a year, but I just noticed something that doesn't seem right. I implemented some contextual substitutions in my own fork of the Keter YG Hebrew font (.ttf file attached) under the "dlig" feature that should do the following two things: 1. If a *shin

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
That works for my purposes; thank you for letting me know about it! Joey On Sun, Aug 15, 2021 at 1:53 AM Aditya Mahajan via ntg-context < ntg-context@ntg.nl> wrote: > On Sun, 15 Aug 2021, Joey McCollum via ntg-context wrote: > > > Hi, > > > > I'm trying to im

[NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Joey McCollum via ntg-context
Hi, I'm trying to implement a section break marker in a grid layout. At a section break, two lines of space should separate the subsequent segments of text (just plain paragraphs, in this case), and a symbol (in the example below, "X") should be set in the middle of these two lines. For my

[NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Joey McCollum via ntg-context
Hi, I was curious about the possibility of handling general formatting settings (e.g., page layout, headers and footers, page numbering, alignment, default body font assignment, etc.) conditionally for front, body, and back matter using modes. According to the wiki page at

Re: [NTG-context] Different in-text and list citation renderings

2021-08-10 Thread Joey McCollum via ntg-context
It may also be relevant to mention a related feature of SBL style: (3) The "et al." string is used for more than three authors for in-text citations, but all authors are listed in full in the list of publications. In publ-imp-chicago.mkvi (probably the most similar style to SBL), the etallimit

[NTG-context] Different in-text and list citation renderings

2021-08-10 Thread Joey McCollum via ntg-context
Hi, I'm currently working on implementing a new citation rendering for SBL style. One of the challenges of this style is that it specifies slightly different rules for citations in the text (which are generally expected to look like citations made with the "entry" alternative) and entries in the

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-08-09 Thread Joey McCollum via ntg-context
t; 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 bibliography > > > > > > > > > Am 0

[NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Joey McCollum via ntg-context
Hi, I'm interested in packaging a ConTeXt project in a self-contained way, so that the environment/component/project .tex files, the bibliography .bib file(s), and fonts used for typesetting are all provided in one place. (The goal is that others can generate the PDFs themselves from the source

[NTG-context] Short forms and abbreviations in bibliography

2021-08-07 Thread Joey McCollum via ntg-context
Hi, It is a common practice to use short forms of titles for bibliographic entries after they are cited the first time. Another practice is to use abbreviations for journal names and book series (generally for citations in the text, but possibly also in the references list), with a separate "List

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Joey McCollum via ntg-context
e, I can just change the "after" argument to "after=\page[blankpagebreak]\noindentation" and things work as expected, so this isn't a real problem. I'm just curious.) Thanks! Joey On Sat, Aug 7, 2021 at 5:20 AM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrot

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
tcommand" argument. Joey On Fri, Aug 6, 2021, 1:54 PM Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 8/6/21 7:12 PM, Joey McCollum via ntg-context wrote: > > Hi, > > > > I'd like to define my own class of heading derived from the "part&quo

[NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
Hi, I'd like to define my own class of heading derived from the "part" heading; in the MWE below, it's called "MyPart". I'd like this heading to have the following features: - Its title should appear in the ToC, but its number should never be printed in the ToC or in the text. - It