* new beta @ 2010-09-22 7:43 Hans Hagen 2010-09-22 7:50 ` luigi scarso ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Hans Hagen @ 2010-09-22 7:43 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 7:43 new beta Hans Hagen @ 2010-09-22 7:50 ` luigi scarso 2010-09-22 8:05 ` Hans Hagen 2010-09-22 10:13 ` Philipp Gesang 2010-09-22 13:22 ` new beta (index) Alan BRASLAU 2 siblings, 1 reply; 11+ messages in thread From: luigi scarso @ 2010-09-22 7:50 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, Sep 22, 2010 at 9:43 AM, Hans Hagen <pragma@wxs.nl> 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. > > (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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 7:50 ` luigi scarso @ 2010-09-22 8:05 ` Hans Hagen 2010-09-22 11:28 ` luigi scarso 0 siblings, 1 reply; 11+ messages in thread From: Hans Hagen @ 2010-09-22 8:05 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 8:05 ` Hans Hagen @ 2010-09-22 11:28 ` luigi scarso 0 siblings, 0 replies; 11+ messages in thread From: luigi scarso @ 2010-09-22 11:28 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, Sep 22, 2010 at 10:05 AM, Hans Hagen <pragma@wxs.nl> wrote: > 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 Ok, it's fixed now. -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 7:43 new beta Hans Hagen 2010-09-22 7:50 ` luigi scarso @ 2010-09-22 10:13 ` Philipp Gesang 2010-09-22 10:22 ` Hans Hagen 2010-09-22 13:22 ` new beta (index) Alan BRASLAU 2 siblings, 1 reply; 11+ messages in thread From: Philipp Gesang @ 2010-09-22 10:13 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 798 bytes --] 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 [-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 486 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 10:13 ` Philipp Gesang @ 2010-09-22 10:22 ` Hans Hagen 2010-09-22 11:13 ` Philipp Gesang 0 siblings, 1 reply; 11+ messages in thread From: Hans Hagen @ 2010-09-22 10:22 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Philipp Gesang 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta 2010-09-22 10:22 ` Hans Hagen @ 2010-09-22 11:13 ` Philipp Gesang 0 siblings, 0 replies; 11+ messages in thread From: Philipp Gesang @ 2010-09-22 11:13 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 740 bytes --] 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 [-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 486 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta (index) 2010-09-22 7:43 new beta Hans Hagen 2010-09-22 7:50 ` luigi scarso 2010-09-22 10:13 ` Philipp Gesang @ 2010-09-22 13:22 ` Alan BRASLAU 2010-09-22 14:52 ` Hans Hagen 2 siblings, 1 reply; 11+ messages in thread From: Alan BRASLAU @ 2010-09-22 13:22 UTC (permalink / raw) To: Hans Hagen; +Cc: ntg-context 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta (index) 2010-09-22 13:22 ` new beta (index) Alan BRASLAU @ 2010-09-22 14:52 ` Hans Hagen 2010-09-24 15:53 ` Steffen Wolfrum 0 siblings, 1 reply; 11+ messages in thread From: Hans Hagen @ 2010-09-22 14:52 UTC (permalink / raw) To: Alan BRASLAU; +Cc: ntg-context 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta (index) 2010-09-22 14:52 ` Hans Hagen @ 2010-09-24 15:53 ` Steffen Wolfrum 2010-09-25 16:06 ` Hans Hagen 0 siblings, 1 reply; 11+ messages in thread From: Steffen Wolfrum @ 2010-09-24 15:53 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: new beta (index) 2010-09-24 15:53 ` Steffen Wolfrum @ 2010-09-25 16:06 ` Hans Hagen 0 siblings, 0 replies; 11+ messages in thread From: Hans Hagen @ 2010-09-25 16:06 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-09-25 16:06 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-09-22 7:43 new beta Hans Hagen 2010-09-22 7:50 ` luigi scarso 2010-09-22 8:05 ` Hans Hagen 2010-09-22 11:28 ` luigi scarso 2010-09-22 10:13 ` Philipp Gesang 2010-09-22 10:22 ` Hans Hagen 2010-09-22 11:13 ` Philipp Gesang 2010-09-22 13:22 ` new beta (index) Alan BRASLAU 2010-09-22 14:52 ` Hans Hagen 2010-09-24 15:53 ` Steffen Wolfrum 2010-09-25 16:06 ` Hans Hagen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).