[NTG-context] “Case-insensitive” sorting for \placelistofsynonyms?

Benjamin Buchmuller benjamin.buchmuller at gmail.com
Thu May 29 10:51:23 CEST 2014


Hi list,

according to case-insensitive sorting for \placeregister[…][…, method=…], I tried to figure out how to achieve similar results for \placelistofsynonyms (has method-key too). 

I tried this modified minimal example (that originally was proposed by Hans here: http://www.ntg.nl/pipermail/ntg-context/2010/052950.html), but failed:

\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

\definesynonyms[abbr][abbrs][\unabbr]

\def\Test#1{\vbox{{\bf#1}\blank\placelistofabbrs[criterium=all,language=cz,method={#1}]}\blank}

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=2]
     \Test{before} \Test{first} 
	 \Test{default}\Test{after}\Test{last}
\stopcolumns

\page

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:
         \abbr{oá}{oáz}  \abbr{öb}{öbz}  \abbr{Oč}{Očz}  \abbr{Öď}{Öďz}
         \abbr{oo}{ooz}  \abbr{öo}{öoz}  \abbr{Oo}{Ooz}  \abbr{Öo}{Öoz}
         \abbr{Öq}{Öqz}  \abbr{öř}{öřz}  \abbr{Oš}{Ošz}  \abbr{oů}{oůz}
    done
}

\stoptext

Is there yet another way to modify sorting behaviour?

Many thanks for your help!


More information about the ntg-context mailing list