From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/56168 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: two buglets Date: Thu, 11 Feb 2010 16:52:14 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265903566 20732 80.91.229.12 (11 Feb 2010 15:52:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 15:52:46 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 11 16:52:38 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfbLJ-00023i-Oy for gctc-ntg-context-518@m.gmane.org; Thu, 11 Feb 2010 16:52:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1104BC9D2B; Thu, 11 Feb 2010 16:54:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WiFsM168qJuD; Thu, 11 Feb 2010 16:54:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C08A1C9CCA; Thu, 11 Feb 2010 16:54:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2050C9CCA for ; Thu, 11 Feb 2010 16:54:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tuEdyNcf+9LQ for ; Thu, 11 Feb 2010 16:54:21 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by balder.ntg.nl (Postfix) with ESMTP id 7E756C9C73 for ; Thu, 11 Feb 2010 16:54:21 +0100 (CET) Original-Received: from [87.178.125.200] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 32537440 for ntg-context@ntg.nl; Thu, 11 Feb 2010 16:52:29 +0100 X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:56168 Archived-At: 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'
: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 ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________