On 3/30/2023 7:57 AM, Max Chernoff via ntg-context wrote:
Hi Hans,
"characters.tex.toutf" only works if there is a backslash somewhere in its input string. This leads to some really surprising behaviour in the following example:
\definefontfeature[default][tlig=no, trep=no]
\startbuffer[test-bib] @article{one, author = {``Author---\v{O}ne''}, } @article{two, author = {``Author---Two''}, } \stopbuffer
\usebtxdataset[test-bib.buffer]
\starttext \placelistofpublications[method=dataset] \stoptext
Removing the following lines
elseif not find(str,"\\",1,true) then return str
from the definition of "characters.tex.toutf" in "char-tex.{lmt,lua}" fixes this issue for me. it is more side effect of removing the (declared obsolete some years ago) `` '' input which catched it later
i tend to remove for k, v in next, ligaturemapping do hash[k] = v end in favor of an explicit 'tquo' feature that one can enable if wanted \definefontfeature[default][default][tlig=yes,tquo=yes,trep=yes] \startbuffer[test-bib] @article{one, author = {``Author---\v{O}ne''}, } @article{two, author = {``Author---Two''}, } @article{three, author = {Author---Two}, } @article{three, author = {,,Author---Two''}, } \stopbuffer so I tested that with the above which seems to work. 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 -----------------------------------------------------------------