Hi all,
working on a book project with index and bibliography, I discovered two small bugs (at least I think they are bugs):
1. index sorts uppercase letters after lowercase letters. Minimal example:
\starttext
\index{Aardvark}Aardvark
\index{azygous}azygous
\page
\setupregister[index][n=1]
\placeregister[index]
\stoptext
I would expect azygous to follow Aardvark, but it is sorted before.
2. (Maybe not a bug, but a somewhat unfriendly behavior): When a \cite command refers to a non-existent key and sort=bbl, ConTeXt bombs out with a lua error:
! LuaTeX error ...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: attempt to compare nil with number
stack traceback:
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: in function <...text/tex/texmf-context/tex/context/base/bibl-tra.lua:76>
[C]: in function 'sort'
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:84: in function 'flush'
<main ctx instance>:1: in main chunk.
\typesetpubslist ...hacks.flush("\@@pbsorttype ")}
\doendoflist
\dodoplacepublications ...sttrue \typesetpubslist
\inpublistfalse \endgroup ...
l.37 \placepublications[criterium=all]
minimal example (the typo \cite[clarke199] instead of \cite[clarke1999a] is there on purpose to demonstrate the problem):
\setuppublications[state=start,
sorttype=bbl,
refcommand=authornum,
numbering=yes]
\setuppublicationlist[samplesize={VSdK90},totalnumber=2]
\startpublication[k=champion2004,t=book,
a={{Champion}},y=2004,
n=10,s=Cha04]
\author[]{Craige~B.}[C.~B.]{}{Champion}
\pubyear{2004}
\title{Cultural Politics in Polybius's {\em Histories}}
\city{Berkeley}
\pubname{Univ. of California Pr.}
\stoppublication
\startpublication[k=clarke1999a,t=book,
a={{Clarke}},y=1999b,
n=9,s=Cla99b]
\author[]{Katherine}[K.]{}{Clarke}
\pubyear{1999\maybeyear{b}}
\title{Between Geography and History: Hellenistic Constructions of the Roman
World}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication
\starttext
\cite[champion2004]
\cite[clarke199]
\page
\placepublications[criterium=all]
\stoptext
Could this error be handled more gracefully, i.e. intercepted?
All best
Thomas