Re: [NTG-context] placefloat

2006-01-22 Thread Hans van der Meer


On Jan 19, 2006, at 18:00, Taco Hoekwater wrote:



(2) Second question. Is there a mechanism whereby one can force  
the  float to at least the next page when there is no room for it  
below  the current point on the page?


There is:

  \startpostponing
stuff with postponed floats
  \stoppostponing

I believe it is mentioned in a manual somewhere, but don't recall
off-hand which one. However, I'm not confident that that mechanism
does precisey what you want, and it is definately not automatic.


It seems to do what I wanted. Putting small figures in the margin on  
the next page from where the call is made.


I seem to remember some mentioning of remaining space on the page in  
ConTeXt-fashion but cannot find it again.

Or can I just rely on TeX's \pagetotal? I tried something as:
\scratchdimen=\textheight
\advance\scratchdimen by -\pagetotal
\ifdim\scratchdimen#1\relax ...

Is it an option to enrich \startpostponing to \startpostponing 
[need=distance]?
( reprogramming \setvalue{\e!start\v!postponing} is it?  asks a bit  
too much of my inner-ConTeXt skills)


I tried something on the following lines, but got stuck with a  
remaining \stoppostponing when there appears to enough space.

Defining \stoppostponing to \empty seems not to work.
\def\startpostponingwhen[#1]{%
\scratchdimen=\textheight
\advance\scratchdimen by -\pagetotal
\ifdim\scratchdimen#1\relax
\let\dostoppostponingwhen=\stoppostponing
\expandafter\startpostponing
\fi}

yours sincerely,
dr. H. van der Meer

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread Kumar Appaiah
On Sat, Jan 21, 2006 at 07:41:47PM +0100, Henning Hraban Ramm wrote:
 Am 2006-01-21 um 17:56 schrieb Kumar Appaiah:
 
 from texexec. I have installed the fonts with --en=ec, so that is
 ruled out. What could the problem be?
 
 I don't know where your problems come from.
 You could just try using the package from my site:
 http://www.fiee.net/texnique/?menu=0-1-4
 
 Don't forget to texhash!
 

Thanks. I did the same, and I still have a similar problem. I
installed the font in /usr/local/share/texmf, and ran texhash. Now,
that ls-r has the font info. I am getting the following:

(Part of the output):
kpathsea: Running mktexmf ec-genr101
! I can't find file `ec-genr101'.
* ...four; mag:=1; nonstopmode; input ec-genr101

Please type another input file name
! Emergency stop.
* ...four; mag:=1; nonstopmode; input ec-genr101

[snip]

l.6 \setupbodyfont  [sil-gentium, rm, 12pt]

? H
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.

Could you give me any further suggestions?

Thanks.

Kumar

-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] font encodings (glyph lossed with Gentium in T5)

2006-01-22 Thread Henning Hraban Ramm

Am 2006-01-22 um 08:03 schrieb VnPenguin:

...
 ){/work/apps/teTeX/share/texmf-local/fonts/enc/dvips/vntex/t5.enc} 
/work/apps/

teTeX/share/texmf-local/fonts/truetype/sil/gentium/genr102.ttf
Warning: pdfetex (file /work/apps/teTeX/share/texmf-local/fonts/ 
truetype/sil/ge

ntium/genr102.ttf): glyph `dcroat' not found



Output written on test-gentium.pdf (1 page, 25034 bytes).
Transcript written on test-gentium.log.

The glyph dcroat was not found :( I think there is problem in
Gentium fonts with this glyph.


Yes, I saw that.
For pdfTeX's tool ttf2afm doesn't see a lot of letters in some fonts  
I guess pdfTeX's code for accessing letters in TT fonts is somewhat  
broken.

Or something in ConTeXt, I don't know.

E.g. if I install the Junicode fonts with texfont, the t5 table is  
half empty. If I create the AFMs with FontForge, it's mostly filled,  
but I get some of the glyph ... not found' warnings, i.e. it can  
access some more characters, but still not all.

But *all* of the characters should be there (they *are* in the font!).
'dcroat' (striked-through d) is a typical case.

Please, any of the wizards, what can we do?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] font encodings (glyph lossed with Gentium in T5)

2006-01-22 Thread VnPenguin
On 1/22/06, Henning Hraban Ramm [EMAIL PROTECTED] wrote:

 Please, any of the wizards, what can we do?

I asked Han The Thanh this problem. He has done support for MS Core
Fonts (truetype) in VnTeX. So I hope he will give us some help.

Thanks,
--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] getcommalistsize

2006-01-22 Thread Hans van der Meer
I wanted to do something with the length of a commalist but found  
that it macro \getcommalistsize does not seem to respond.


Here is a small test:
\starttext
\def\showcommalist#1{commalist=(#1)\crlf
(size=\getcommalistsize[#1])\crlf
\processcommalist[#1]\showcommalistitem\crlf
(commalistsize=\commalistsize)\par}
\def\showcommalistitem#1{item = #1 }
\showcommalist{a,b,c,d,e}
\showcommalist{1,2,3}

direct call (size=\getcommalistsize[p,q])
\stoptext

result:
commalist=(a,b,c,d,e)
(size=)
item = a item = b item = c item = d item = e
(commalistsize=5)
commalist=(1,2,3)
(size=)
item = 1 item = 2 item = 3
(commalistsize=3)
direct call (size=)

As can be seen the macro \getcommalistsize does not give a value  
back, \processcommalist works.

Am I doing something wrong here or understood it wrong?

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread Henning Hraban Ramm

Am 2006-01-22 um 12:25 schrieb Kumar Appaiah:


I don't know where your problems come from.
You could just try using the package from my site:
http://www.fiee.net/texnique/?menu=0-1-4
Don't forget to texhash!

Thanks. I did the same, and I still have a similar problem. I
installed the font in /usr/local/share/texmf, and ran texhash. Now,
that ls-r has the font info. I am getting the following:

(Part of the output):
kpathsea: Running mktexmf ec-genr101
! I can't find file `ec-genr101'.
* ...four; mag:=1; nonstopmode; input ec-genr101

Please type another input file name
! Emergency stop.
* ...four; mag:=1; nonstopmode; input ec-genr101

[snip]

l.6 \setupbodyfont  [sil-gentium, rm, 12pt]

? H
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\fontsame font id=substitute font name'.

Could you give me any further suggestions?


Did you read the thread font encodings (glyph lossed...?
As you see, we have some problems with TrueType fonts.
My font package from this morning is better than the old one, but  
still lacks at least the 'dcroat' letter.


But your problem is another kind.
I'd suggest to start over and use the latest Gentium distribution  
(1.02), but so far:


What Gentium files do you have in your fonts tree? Which vendor/ 
collection names did you use? (sil/gentium?)

- AFMs (not needed)
- TTFs (texmf/fonts/truetype/sil/gentium/*.ttf)
- TFMs (texmf/fonts/tfm/sil/gentium/*.tfm)
- MAPs (texmf/fonts/map/pdftex/context/ec-sil-gentium.map)

Did you rename all files to lowercase (and without spaces)? ConTeXt  
sometimes has problems if file names use uppercase letters.


There should be ec-genr101.tfm and .ttf in your case, that's what TeX  
is looking for.


If the TFM is found, you'll run in the next problem: Probably in  
the .map file there's '.pfb' instead of '.ttf'


I always need to run texhash with root permissions ('sudo texhash'),  
otherwise the database cannot be written.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] font encodings (glyph lossed with Gentium in T5)

2006-01-22 Thread Thomas A. Schmitz


On Jan 22, 2006, at 1:36 PM, Henning Hraban Ramm wrote:

E.g. if I install the Junicode fonts with texfont, the t5 table is  
half empty. If I create the AFMs with FontForge, it's mostly  
filled, but I get some of the glyph ... not found' warnings, i.e.  
it can access some more characters, but still not all.

But *all* of the characters should be there (they *are* in the font!).
'dcroat' (striked-through d) is a typical case.

Please, any of the wizards, what can we do?




OK, this may not be of much help, but I just converted GenR102.TTF to  
pfb via fontforge, and now the font correctly picks up the dcroat  
glyph. I mus admit I had similar situations in the past where simply  
regenerating the font would solve mysterious problems, so I shrugged  
my shoulders and did what a man must do. I think the new Gentium  
license allows for this conversion, and the LaTeX people will be  
distributing pfbs anyway, so why not convert to pfb (which is easier  
for TeX to use anyway?)


Best

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] font encodings (glyph lossed with Gentium in T5)

2006-01-22 Thread VnPenguin
On 1/22/06, Thomas A. Schmitz [EMAIL PROTECTED] wrote:

 OK, this may not be of much help, but I just converted GenR102.TTF to
 pfb via fontforge, and now the font correctly picks up the dcroat
 glyph. I mus admit I had similar situations in the past where simply
 regenerating the font would solve mysterious problems, so I shrugged
 my shoulders and did what a man must do. I think the new Gentium
 license allows for this conversion, and the LaTeX people will be
 distributing pfbs anyway, so why not convert to pfb (which is easier
 for TeX to use anyway?)


Hi Thomas,
You're completely right ! Just tried with PFB (converted by fontforge)
and it works :)

Thank you,

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread Kumar Appaiah
On Sun, Jan 22, 2006 at 02:03:42PM +0100, Henning Hraban Ramm wrote:
 Am 2006-01-22 um 12:25 schrieb Kumar Appaiah:
 
 Did you read the thread font encodings (glyph lossed...?
 As you see, we have some problems with TrueType fonts.
 My font package from this morning is better than the old one, but  
 still lacks at least the 'dcroat' letter.
 
 But your problem is another kind.
 I'd suggest to start over and use the latest Gentium distribution  
 (1.02), but so far:

Now, that is what I am doing.

 What Gentium files do you have in your fonts tree? Which vendor/ 
 collection names did you use? (sil/gentium?)
 - AFMs (not needed)
 - TTFs (texmf/fonts/truetype/sil/gentium/*.ttf)
 - TFMs (texmf/fonts/tfm/sil/gentium/*.tfm)
 - MAPs (texmf/fonts/map/pdftex/context/ec-sil-gentium.map)

I have all the files, and again, I tried to do the wiki's
suggestions. Now, whenever I compile the test file, I get an error in
Acrobat saying Cannot find font in Resources, using Helvetica
instead.


 Did you rename all files to lowercase (and without spaces)? ConTeXt  
 sometimes has problems if file names use uppercase letters.

I have done this, and I believe that this helped.

 There should be ec-genr101.tfm and .ttf in your case, that's what TeX  
 is looking for.

Yes, I have the 102 ones.

 If the TFM is found, you'll run in the next problem: Probably in  
 the .map file there's '.pfb' instead of '.ttf'

No, that seems all right.

 I always need to run texhash with root permissions ('sudo texhash'),  
 otherwise the database cannot be written.

I also run it with root permission.

Thanks for your patient responses. If you think you can suggest
anything further, please do so; though I am on the verge of giving
up...

BTW, it might help if you know that I am using tetex-3.0 on Debian
GNU/Linux.

Thanks again.

Kumar
-- 
Kumar Appaiah,
462, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problems installing Gentium TTF

2006-01-22 Thread VnPenguin
On 1/22/06, Henning Hraban Ramm [EMAIL PROTECTED] wrote:
...

 Did you rename all files to lowercase (and without spaces)? ConTeXt
 sometimes has problems if file names use uppercase letters.

Under Linux with teTeX 3.0 (with latest ConTeXt), I try many times
with upper filename (TTF, PFB) and I have never problem with. It works
correctly on my box, and of course under Unix/Linux in general IMHO.

I don't use TeX under Windows, so I have no idea.

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sorting question

2006-01-22 Thread Vit Zyka

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\xlfd10
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
===

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] A feq questions about eating spaces in macros

2006-01-22 Thread Radhelorn

Hello!

I have a few questions about ignoring unnecessary spaces and blank 
lines. The following example illustrates my problem. In the first 
start/stop pair text after \startcommand is not bold as it should be, in 
the second it is bold but blank line is before. I've tried to fix this 
with various manipulations with \noindent with moderate success.


Another problem is necessity to explicitly add % character before 
\stopcommand to ignore newline. How to do this inside macro with this 
combination of lines and sidebar?


Thanks in advance for any suggestions.

-

\setuplines[before=,after=]

\def\startcommand{\dosingleargument\dostartcommand}

\def\dostartcommand[#1]%
  {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar}

\def\stopcommand{\stopsidebar\stoplines\egroup}

\starttext

\startcommand
this must be bold
\input knuth
this is bold%
\stopcommand

some text

\startcommand[arg]
this is bold indeed but with a blank line before
\input knuth
\stopcommand

\stoptext


--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] getcommalistsize

2006-01-22 Thread Taco Hoekwater

Hans van der Meer wrote:


As can be seen the macro \getcommalistsize does not give a value  back, 
\processcommalist works.

Am I doing something wrong here or understood it wrong?


\getcommalistsize puts its result (the length of the commalist)
in \commalistsize, but does not expand to anything, so using
direct calls does not work.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Nath bug?

2006-01-22 Thread Giuseppe Bilotta
Thursday, January 12, 2006 Aditya Mahajan wrote:

 The following does not work? Everything is fine if I replace the nath
 module with amsl. Any suggestions on how to make this work.


 \usemodule[nath]
 \starttext
 \startalign
   a = \underbrace{b}_{c} \\
 c = d
 \stopalign
 \stoptext

Sorry for the very late reply. Yes, the ConTeXt nath module
doesn't support this form of alignment. I would say 'yet',
but the hack of the original LaTeX module to adapt it to
ConTeXt has hit the limit of my expertise in both LaTeX and
ConTeXt.

I think the time has come to bring up the topic with Hans
and turn nath into a specification ('define these new
commands that behave this way') to be reimplemented from
scratch in a more ConTeXtish way, keeping in my that the
general idea behind the workings of the nath revolution can
be maintained since they are format-independent.

Hans, do you think you have time to dedicate to this
subject?

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sorting question

2006-01-22 Thread Mojca Miklavec
On 1/22/06, Vit Zyka wrote:

 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.

ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
(udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
edentical to ss (same for uppercase, but in uppercase it's written
as SS anyway).

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] getcommalistsize

2006-01-22 Thread Hans van der Meer
Thanks, I was right in suspecting I did not completely understand the  
effect of \getcommalistsize.

It is clear now.

yours sincerely,
dr. H. van der Meer



On Jan 22, 2006, at 18:06, Taco Hoekwater wrote:


Hans van der Meer wrote:
As can be seen the macro \getcommalistsize does not give a value   
back, \processcommalist works.

Am I doing something wrong here or understood it wrong?


\getcommalistsize puts its result (the length of the commalist)
in \commalistsize, but does not expand to anything, so using
direct calls does not work.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sorting question

2006-01-22 Thread Henning Hraban Ramm

Am 2006-01-22 um 20:36 schrieb Mojca Miklavec:

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.

ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
(udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
edentical to ss (same for uppercase, but in uppercase it's written
as SS anyway).


Additionally there's the 'phone book' sorting, where
ä = ae, ö = oe, ü = ue, ß = ss

The former should be default, the latter an option.

Other accented characters same as unaccented (in both sortings).


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sorting question

2006-01-22 Thread Vit Zyka

Mojca Miklavec wrote:

On 1/22/06, Vit Zyka wrote:



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.



ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
(udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
edentical to ss (same for uppercase, but in uppercase it's written
as SS anyway).


Hmmm, that is not complete: I understand that every ü, Ü, u, U comes to 
single group, but is uüUÜ? Let say yes. Then try

--
\input sort-ini.tex

\useregime[win]
\enableregime[windows]  % Eingabe-Codierung
\mainlanguage[de]   % Sprachmodus   
\usetypescript[modern][texnansi]

\startmode[sortorder-de]
  \exportsortexpansion{u}{u+1}
  \exportsortexpansion{udiaeresis}{u+2}
  \exportsortexpansion{U}{u+3}
  \exportsortexpansion{Udiaeresis}{u+4}
  \exportsortdivision{u+1}{u}
  \exportsortdivision{u+2}{u}
  \exportsortdivision{u+3}{u}
  \exportsortdivision{u+4}{u}
\stopmode

\setmode{sortorder-de}

\starttext

\definesorting[person][personen]
\setupsorting[person][criterium = all]
%\def\person#1{#1\expanded{\index{#1}}, }
%\def\person#1{#1\index{#1}, }

\person{Unsinn, Klaus}
\person{Militzer, Bernd}
\person{Horten, Hans}
%\person{Überall, Heinrich}
\person{\Udiaeresis berall, Heinrich}

Index:
\placelistofpersonen
%\placeindex[alternative=A]

\stoptext
--

Comments:
- newtexexec is needed!
- works for both index/sorting
- works only for \Udiaeresis not for direct Ü! Strange! Why?

Vit

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sorting question

2006-01-22 Thread Henning Hraban Ramm

Am 2006-01-23 um 01:08 schrieb Vit Zyka:

ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
(udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
edentical to ss (same for uppercase, but in uppercase it's written
as SS anyway).


Hmmm, that is not complete: I understand that every ü, Ü, u, U  
comes to single group, but is uüUÜ? Let say yes. Then try


I didn't test your code, but u, ü, U and Ü should be handled as same  
(in normal German order)

and u=U, ü=ue=Ü=Ue=UE in German phone book order.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context