* register sorting @ 2010-10-29 20:39 Steffen Wolfrum 2010-10-30 0:33 ` Jano Kula 0 siblings, 1 reply; 4+ messages in thread From: Steffen Wolfrum @ 2010-10-29 20:39 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen 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 ___________________________________________________________________________________ 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] 4+ messages in thread
* Re: register sorting 2010-10-29 20:39 register sorting Steffen Wolfrum @ 2010-10-30 0:33 ` Jano Kula 2010-11-04 9:46 ` Steffen Wolfrum 0 siblings, 1 reply; 4+ messages in thread From: Jano Kula @ 2010-10-30 0:33 UTC (permalink / raw) To: ntg-context 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: register sorting 2010-10-30 0:33 ` Jano Kula @ 2010-11-04 9:46 ` Steffen Wolfrum 0 siblings, 0 replies; 4+ messages in thread From: Steffen Wolfrum @ 2010-11-04 9:46 UTC (permalink / raw) To: Hans Hagen; +Cc: mailing list for ConTeXt users 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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] 4+ messages in thread
* register sorting @ 2016-05-24 11:33 Manuel Conzelmann 0 siblings, 0 replies; 4+ messages in thread From: Manuel Conzelmann @ 2016-05-24 11:33 UTC (permalink / raw) To: ntg-context hi everybody, if i place a register at the end of my document its sorted by page numbers and not alphabetically. someone has an idea how to achieve this (from A to Z)? if it would be sorted alphabetically there would be only one indicator per letter: A B C D E F G .... at the moment it looks like B C P A B W J A thx and greetz manu ___________________________________________________________________________________ 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] 4+ messages in thread
end of thread, other threads:[~2016-05-24 11:33 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-10-29 20:39 register sorting Steffen Wolfrum 2010-10-30 0:33 ` Jano Kula 2010-11-04 9:46 ` Steffen Wolfrum 2016-05-24 11:33 Manuel Conzelmann
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).