From: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
To: ntg-context@ntg.nl
Subject: “Case-insensitive” sorting for \placelistofsynonyms?
Date: Thu, 29 May 2014 10:51:23 +0200 [thread overview]
Message-ID: <FE7ED01A-2CBF-422C-ADAE-DA0EB6704CA0@gmail.com> (raw)
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!
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2014-05-29 8:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 8:51 Benjamin Buchmuller [this message]
2014-05-29 23:18 ` Hans Hagen
2014-06-01 11:16 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FE7ED01A-2CBF-422C-ADAE-DA0EB6704CA0@gmail.com \
--to=benjamin.buchmuller@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).