Hi, I just installed todays beta and I am not sure if regoster sorting is working properly. Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ... accession Action Plan association But none of the four methods (before, after, first, last) gives this result!! What is wrong? Steffen ------- \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{Action plans} \index{association} \index{accession} \index{bOo} \index{bõö} \index{bõo} \index{boö} \index{oo} \index{öo} \index{Oo} \index{Öo} done } \stoptext
Hi Steffen, On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:
Hi,
I just installed todays beta and I am not sure if regoster sorting is working properly.
Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ...
accession Action Plan association
But none of the four methods (before, after, first, last) gives this result!!
What is wrong?
Methods were rewritten to give more flexibility. From the Hans' explanation: \startquote [pzm][mc] = [plus|zero|minus offsets][mapping|cases] uc == unicode order ok, a bit cryptic but one can now choose methods more explicitly (with the four predefined) cases : lowercasing with shapebased pre/post injection mapping : given language mapping with shapebased pre/post injection Not all combinations make sense so we might need to figure out which ones to document. With too much simplification (shape based) the sorter will not sort right as there always need to be some distinction. \stopquote Bellow is the example with possible combinations, so try which one suits you best. At least method={zm,mc,uc} gives what you want, but I don't know your border cases. Jano % tricky-006.tex \setuplayout[topspace=1cm,height=middle] \setupbodyfont[11pt] \starttext \def\Test#1% {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank} wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc} \Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc} \Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc} \stopcolumns \page wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank \startcolumns[n=3] \Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc} \Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc} \Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc} \stopcolumns \page \dorecurse {2} { \page \recurselevel: \index{oá} \index{öb} \index{Oč} \index{Öď} \index{oo} \index{öo} \index{Oo} \index{Öo} \index{Öq} \index{öř} \index{Oš} \index{oů} done }
Hi Hans, I tested all the combinations that Jano set up (see below) and additionally tried the same, but used ch instead of uc. But none of these runs gave this sorting result: East Prussia Eastern enlargement East-West Institute I would would sort it this way, but maybe I am simply wrong? Regards, Steffen Am 30.10.2010 um 02:33 schrieb Jano Kula:
Hi Steffen,
On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:
Hi,
I just installed todays beta and I am not sure if regoster sorting is working properly.
Eg. I modify (see below) the example from tricky-002.tex and I would like to achieve ...
accession Action Plan association
But none of the four methods (before, after, first, last) gives this result!!
What is wrong?
Methods were rewritten to give more flexibility. From the Hans' explanation:
\startquote
[pzm][mc] = [plus|zero|minus offsets][mapping|cases]
uc == unicode order
ok, a bit cryptic but one can now choose methods more explicitly (with the four predefined)
cases : lowercasing with shapebased pre/post injection mapping : given language mapping with shapebased pre/post injection
Not all combinations make sense so we might need to figure out which ones to document. With too much simplification (shape based) the sorter will not sort right as there always need to be some distinction.
\stopquote
Bellow is the example with possible combinations, so try which one suits you best.
At least method={zm,mc,uc} gives what you want, but I don't know your border cases.
Jano
% tricky-006.tex \setuplayout[topspace=1cm,height=middle]
\setupbodyfont[11pt]
\starttext
\def\Test#1% {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}
wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
\startcolumns[n=3] \Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc} \Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc} \Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc} \stopcolumns
\page
wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
\startcolumns[n=3] \Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc} \Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc} \Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc} \stopcolumns
\page
\dorecurse {2} { \page \recurselevel: \index{oá} \index{öb} \index{Oč} \index{Öď} \index{oo} \index{öo} \index{Oo} \index{Öo} \index{Öq} \index{öř} \index{Oš} \index{oů} done }
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (2)
-
Jano Kula
-
Steffen Wolfrum