ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Sorting question
Date: Sun, 22 Jan 2006 18:02:32 +0100	[thread overview]
Message-ID: <43D3BAA8.8030602@seznam.cz> (raw)
In-Reply-To: <1137925029.4142.3.camel@eagle.intern>

Bernd Militzer wrote:
> Hello,
> 
> is it possible to produce a sorted list without unsing the entry
> \Ueberall in text?
> 
> %
> \definesorting[person][personen]
> \setupsorting[person][criterium = all]
> %
> \person{Unsinn, Klaus}
> \person{Militzer, Bernd}
> \person{Horten, Hans}
> \person[Ueberall]{Überall, Heinrich}
> %
> \placelistofpersonen
 >
 > Any ideas?

We need to define (German?) sorting rules for newtexexec (newtexutil). 
Tell me in between 'Ü' have to be sorted I will try to prepare a code 
for this rule.

Vit

> 
> Thanks, Bernd
> 
> 
> 
> ------------------------------------------------------------------------
> 
> %#ConTeXt
> 
> %
> %   allgemeine Grundeinstellung
> %
> \enableregime[windows]          % Eingabe-Codierung
> \mainlanguage[de]               % Sprachmodus	
> \usetypescript[modern][texnansi] 
> \setupbodyfont[12pt]
> %
> %   Die besondere Seitenanpassung
> %
> \setuppapersize[a4][a4]
> \setuplayout[location=singlesided]
> 
> \setuplayout[
>     backspace=2.46cm,topspace=1.2cm,
>     top=0cm,bottom=0cm,topdistance=0cm,bottomdistance=0cm,
>     header=1.5cm,footer=1.0cm,headerdistance=0cm,footerdistance=0cm,
>     leftedge=0cm,rightedge=0cm,leftedgedistance=0cm,rightedgedistance=0cm,
>     leftmargin=1.5cm,rightmargin=1.0cm,leftmargindistance=0.42cm,rightmargindistance=0.42cm,
>     width=16.5cm,height=27.4cm,
> ]
> %
> %
> %   Z�hler f�r die lfdNr.
> %
>     \global\newcount\xlfd \xlfd=0
> % 
>     \def\LFD{\futurelet\testchar\MitOptArgLFD}
>     %
> 
>     \def\MitOptArgLFD{\ifx[\testchar%
>      \let\next\OptArgLFD \else %
>      \let\next \NoOptArgLFD \fi \next}
>     %
>     % setzte den Z�hler auf bestimmten Wert
>     %
>     \def\OptArgLFD[#1]{%
>         {\global\xlfd=\number#1}
>     }
>     %
>     % erh�he den Wert um 1
>     % und gebe den Z�hler aus
>     % Besonderheit 
>     % zweistellige Ausgabe der Zahl also 01., 02. ... 10. 11. ...
>     % und Punkt
>     %
>     \def\NoOptArgLFD{%
>     {\global\advance\xlfd by 1\relax}
> 	\ifnum\xlfd<10
> 	0\fi
>     \number\xlfd.
>     }
> %
> %    Linie nach dem Namen
> %
>     \def\myrule{ {\thinrules[n=1]\par}}
> %
> %
> %
> \starttext
> %
> %
> % 1. ex no prob
> %
> 
> \definesorting[personA][personenA]
> \setupsorting[personA][criterium = all,before=\LFD,after=\myrule]
> 
> \personA{Unsinn, Klaus}
> \personA{Militzer, Bernd}
> \personA{Horten, Hans}
> 
> 
> \placelistofpersonenA
> 
> \page
> 
> % 2. ex prob �berall on wrong position
> 
> %
> 
> \definesorting[personB][personenB]
> \setupsorting[personB][criterium = all,before=\LFD,after=\myrule]
> 
> \personB{Unsinn, Klaus}
> \personB{Militzer, Bernd}
> \personB{Horten, Hans}
> \personB{�berall, Heinrich}
> 
> \placelistofpersonenB
> 
> \page
> 
> % 3. ex prob �berall is missing
> 
> %
> \definesorting[personC][personenC]
> \setupsorting[personC][criterium = all,before=\LFD,after=\myrule]
> 
> \personC{Unsinn, Klaus}
> \personC{Militzer, Bernd}
> \personC{Horten, Hans}
> \personC[Ueberall]{�berall, Heinrich}
> 
> \placelistofpersonenC
> 
> \page
> 
> % 4. ex prob �berall is missing
> 
> %
> \definesorting[personD][personenD]
> \setupsorting[personD][criterium = all,before=\LFD,after=\myrule]
> 
> \personD{Unsinn, Klaus}
> \personD{Militzer, Bernd}
> \personD{Horten, Hans}
> \personD[Ueberall]{�berall, Heinrich}
> 
> First I use \Ueberall\ in text
> 
> \placelistofpersonenD
> 
> \page
> 
> \stoptext
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

  reply	other threads:[~2006-01-22 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-21 21:26 AutoDroppedCaps and indenting Joshua Ellis
2006-01-22 10:17 ` Sorting question Bernd Militzer
2006-01-22 17:02   ` Vit Zyka [this message]
2006-01-22 19:36     ` Mojca Miklavec
2006-01-23  0:06       ` Henning Hraban Ramm
2006-01-23  0:08       ` Vit Zyka
2006-01-23  0:19         ` Henning Hraban Ramm
2006-01-23 23:26           ` Vit Zyka
2006-01-23 18:55 ` AutoDroppedCaps and indenting Joshua Ellis

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=43D3BAA8.8030602@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).