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. (2) Mari uses the prefix mechanism for references and that had not yet been implemented. The new beta does some but it needs testing. Also, I'd like to change a bit to the logic (esp related to more structured coding i.e. \startchapter .. \stopchapter and fallbacks but that will happen later). For the moment 'get it running as per mkii' is good enough. As cross referencing info is stored quite differently this is somewhat tricky. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, Sep 22, 2010 at 9:43 AM, Hans Hagen
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.
(2) Mari uses the prefix mechanism for references and that had not yet been implemented. The new beta does some but it needs testing. Also, I'd like to change a bit to the logic (esp related to more structured coding i.e. \startchapter .. \stopchapter and fallbacks but that will happen later). For the moment 'get it running as per mkii' is good enough. As cross referencing info is stored quite differently this is somewhat tricky.
Hans Shame on me: during conference I have discovered a bug in lpdf-swf.lua
function backends.pdf.nodeinjections.insertswf(spec) local annot, preview, ref = insertswf { foundname = spec.foundname, width = spec.width, height = spec.height, -- factor = spec.factor, -- display = spec.display, -- controls = spec.controls, -- label = spec.label, } -- texsprint(ctxcatcodes,format("\\pdfannot width %ssp height %ssp {%s}",spec.width,spec.height,annot())) -- brrrr node.write(pdfannotation(spec.width,spec.height,0,annotation())) end local annot shoud be local annotation I'm sure that I haven't say it to Hans. -- luigi
On 22-9-2010 9:50, luigi scarso wrote:
I'm sure that I haven't say it to Hans.
indeed. fixed anyhow but you'll have to wait another beta Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2010-09-22 <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.
Great news! At the moment I’m reading the new language definitions. How exactly do I set the “method” switch on a per-language basis? Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On 22-9-2010 12:13, Philipp Gesang wrote:
On 2010-09-22<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.
Great news! At the moment I’m reading the new language definitions. How exactly do I set the “method” switch on a per-language basis?
each definition can have a method key/value and it can be overloaded when generatng the index Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2010-09-22 <12:22:12>, Hans Hagen wrote:
On 22-9-2010 12:13, Philipp Gesang wrote:
Great news! At the moment I’m reading the new language definitions. How exactly do I set the “method” switch on a per-language basis?
each definition can have a method key/value and it can be overloaded when generatng the index
Hans
Of course, now I see it; I just skipped the entry “default” which is the only one yet with this flag set. My compliments for the new definitions, having every language in its own table is by far more intuitive than the old threefold method. Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
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
On 22-9-2010 3:22, Alan BRASLAU wrote:
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)
hm, so some word in the index is triggering this ... no minimal example I guess Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 22.09.2010 um 16:52 schrieb Hans Hagen:
On 22-9-2010 3:22, Alan BRASLAU wrote:
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)
hm, so some word in the index is triggering this ... no minimal example I guess
btw: does the MkIV-structure-idea also provide an xml-alike start/stop for index marks? <index> <term>Schlüsselwort</term> </index> (I assume \startregister[index]{keyword}...\stopregister is meant for something different: a MkII command for index ranges?) Steffen
On 24-9-2010 5:53, Steffen Wolfrum wrote:
Am 22.09.2010 um 16:52 schrieb Hans Hagen:
On 22-9-2010 3:22, Alan BRASLAU wrote:
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)
hm, so some word in the index is triggering this ... no minimal example I guess
btw:
does the MkIV-structure-idea also provide an xml-alike start/stop for index marks?
<index> <term>Schlüsselwort</term> </index>
we have an experimental \setregisterentry [index] [specification][userdata]
(I assume \startregister[index]{keyword}...\stopregister is meant for something different: a MkII command for index ranges?)
those are ranges indeed Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Alan BRASLAU
-
Hans Hagen
-
luigi scarso
-
Philipp Gesang
-
Steffen Wolfrum