From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9219 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: problem with umlauts in headers and text length limitation Date: Sat, 14 Sep 2002 22:35:32 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020914221438.03346350@remote-1> References: <200209141043.24044.angerweit@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035399559 1445 80.91.224.250 (23 Oct 2002 18:59:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:59:19 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Henning Hraban Ramm In-Reply-To: <200209141043.24044.angerweit@gmx.net> Xref: main.gmane.org gmane.comp.tex.context:9219 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9219 At 10:43 AM 9/14/2002 +0200, Henning Hraban Ramm wrote: >Addresses are set as tabulation; every line starts with a \Name{}; >but "Grün" becomes "Grudiaeresisn" etc.; >input regime is "windows" (is there a better name for iso 8859-1(5) ?) This is a result of text reference data being 'simplified', a side effect that goes unnoticed in most cases because the higher level commands handle this. The following 'adaption' will provide more control: \setupreferencing [\c!expansie=\v!nee] \def\dotextreference[#1]#2% {\bgroup \def\asciia{#1}% \convertexpanded\??rf{#2}\asciib \@EA\rawtextreference\@EA\s!txt\@EA\asciia\@EA{\asciib}% \egroup} \def\dopagereference[#1]% {\rawpagereference\s!pag{#1}} \def\doreference[#1]#2% {\bgroup \def\asciia{#1}% \convertexpanded\??rf{#2}\asciib \@EA\rawreference\@EA\s!ref\@EA\asciia\@EA{\asciib}% \egroup} now, you'll get your umlauts. For the moment, put this change in cont-new.tex since i don't know how it affects other code (well, it demands a small change to the line numbering code for instance) >Further I'd like to limitate the Names to the first couple of chars; but >\limitatetext uses at least the first word plus comma, not less. Ok, Hans >wrote that "GetThreeTokens" command for me, but I'd prefer a generic >solution. \def\FirstNCharacters#1#2% will go into supp-fun.tex {\bgroup \scratchcounter\zerocount \def\docommando##1% {\ifnum\scratchcounter=#1\else ##1\relax % catches ##1 = \"e and alike \advance\scratchcounter\plusone \fi} \handletokens#2\with\docommando \egroup} Rhaban likes \FirstNCharacters{3}{fr{\"o}beln} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------