From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9208 Path: main.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: problem with umlauts in headers and text length limitation Date: Sat, 14 Sep 2002 10:43:24 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <200209141043.24044.angerweit@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035399549 1359 80.91.224.250 (23 Oct 2002 18:59:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:59:09 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:9208 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9208 Ahoi! There's a problem remaining with my address book: The names in my header doesn't show special chars like umlauts, but entity names instead. Here's my setup: ---------------------- \def\RegisterPageMark#1#2% #1=Class #2=Text {\iftrialtypesetting \else \doglobal\increment\MNamCounter% \textreference[#1:t:\MNamCounter]{#2}% \doifreferencefoundelse{#1:t:\MNamCounter} {\doifundefined{#1:f:\currentrealreference}% {\setxvalue{#1:f:\currentrealreference}% {\noexpand\in[#1:t:\MNamCounter]}} \setxvalue{#1:l:\currentrealreference}% {\noexpand\in[#1:t:\MNamCounter]}}% {}% \fi} \def\GetFirstOnPage#1{\getvalue{#1:f:\realfolio}} % #1=Class \def\GetLastOnPage#1{\getvalue{#1:l:\realfolio}} % #1=Class \setupheadertexts [][\limitatetext{\GetFirstOnPage{MNam}}{5mm}{}--% \limitatetext{\GetLastOnPage{MNam}}{5mm}{}] \def\Name#1{\bf #1\RegisterPageMark{MNam}{#1}} ----------------------- 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) ?) 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. Grüßlis vom Hraban! -- http://www.fiee.net http://www.ramm.ch ---