On Wednesday 22 September 2010 09:43:21 Hans Hagen wrote:
Hi,
I'm dealing with the bugs/anomalies/wishes that showed up during the ctx conference. The following has been done so far:
(1) With respect to registers, Jano had a wish to deal with mixed language indexes. As a result the current sorting code has been adapted. In the process also different control over sorting has been streamlined and this is controlled by the method variable. Also, the language related sorting definitions have changed.
% tricky-002.tex:
\setuplayout[topspace=1cm,height=middle]
\setupbodyfont[dejavu,11pt]
\starttext
\subject{before : Oo Öo oo öo} \placeregister[index][language=en,method=before] \par \subject{after : oo öo Oo Öo} \placeregister[index][language=en,method=after] \par \subject{first : Oo oo Öo öo} \placeregister[index][language=en,method=last] \par \subject{last : oo Oo öo Öo} \placeregister[index][language=en,method=first] \par
\dorecurse {3} { \page \recurselevel: \index{boo} \index{Boo} \index{BOo} \index{bOo} \index{bõö} \index{bõo} \index{boö} \index{oo} \index{öo} \index{Oo} \index{Öo} done }
\stoptext
We can set up a default method for each language but that has not yet been done.
Nice, but something is broken (of course, my minimal examples work, but not my 700+ page test file!): (thanks to Taco, I now understand the luatex error message) ! LuaTeX error ...beta/tex/texmf-context/tex/context/base/char-ini.lua:792: bad argument #1 to 'utfchar' (number expected, got table) stack traceback: [C]: in function 'utfchar' ...beta/tex/texmf-context/tex/context/base/char-ini.lua:792: in function <...beta/tex/texmf-context/tex/context/base/char-ini.lua:792> ...beta/tex/texmf-context/tex/context/base/sort-ini.lua:107: in function <...beta/tex/texmf-context/tex/context/base/sort-ini.lua:96> ...beta/tex/texmf-context/tex/context/base/sort-ini.lua:329: in function 'splitter' ...beta/tex/texmf-context/tex/context/base/strc-reg.lua:353: in function 'prepare' ...beta/tex/texmf-context/tex/context/base/strc-reg.lua:423: in function 'analyzed' ...beta/tex/texmf-context/tex/context/base/strc-reg.lua:741: in function 'process' <main ctx instance>:1: in main chunk. system > error on line 136 in file Livre.tex: LuaTeX error ... 134 135 \startpart [title={Index des sujets}] 136 >> \placeindex [method=first,criterium=all,compress=yes] 137 \stoppart 138 \doplaceregister ...ameter \c!pagesegments ", } )} \stoppacked \stopcolumns \... l.136 ...[method=first,criterium=all,compress=yes] ? X