[NTG-context] placelistofsynonyms without tabulate

2020-03-30 Thread Benjamin Buchmuller
Following Aditya’s recommendation on making a glossary with ConTeXt 
(https://tex.stackexchange.com/questions/152248/make-a-glossary-with-context) 
and have looked through several older and newer manuals under “abbreviations” 
and into the source. 

However, I cannot figure out if there is a simple way to define my own command 
to achieve the following:

\definesynonyms[glossary][glossaries][\fullgloss]%[#4]
% I wonder also what #4 is supposed to do?
\setupsynonyms[glossary][headstyle=bold]

\glossary[US]{United States}{The US is a country in the Americas.}
\glossary[UK]{United Kingdom}{The UK is a country in Europe.}

% CURRENT RESULT (guessing from what I understand from the source this is 
converted internally to):

\placelistofglossaries

\starttabulate[|||]
\NC {\bf United Kingdom} \NC The UK is a country in Europe. \NC \NR
\NC {\bf United States} \NC The US is a country in the Americas. \NC \NR
\stoptabulate

% DESIRED RESULT

\unexpanded\def\myglossary#1#2#3{{\bf #1}#2} % or similar

\placelistofglossaries[command=\myglossary]

{\bf United Kingdom.} The UK is a country in Europe. Nice would be even if 
this could be indented at some point, but tastes may vary on 
indention for sure.

{\bf United States.} The US is a country in the Americas.

% or using itemize etc.

I am aware that \placelistofsynonyms has a command=... option, but it doesn’t 
do anything for me. Also, the location=inmarigin option (which I suppose could 
be used to tweak the desired result in a way) stopped working in MKIV (?) and I 
can see in the source that it has a “fixed” assignment to location=left.

Any hints very welcome. :)
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2014-06-01 Thread Hans Hagen

On 5/29/2014 10:51 AM, Benjamin Buchmuller wrote:

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?


the sortign is ok, the flushing is the problem (took me a while to 
figure that out)


-
  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
___

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

2014-05-29 Thread Benjamin Buchmuller
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
___

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

2014-05-29 Thread Hans Hagen

On 5/29/2014 10:51 AM, Benjamin Buchmuller wrote:

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?


i'll have a look at it

-
  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
___