From: Hans Hagen <pragma@wxs.nl>
Subject: Re: function that purges 8 bit text?
Date: Thu, 06 Jan 2005 17:18:50 +0100 [thread overview]
Message-ID: <41DD64EA.1020803@wxs.nl> (raw)
In-Reply-To: <5175D39F-5FE5-11D9-8818-0030659899AA@fiee.net>
Henning Hraban Ramm wrote:
> Am 06.01.2005 um 12:56 schrieb Hans Hagen:
>
>>> Is there a possibility to strip all invalid chars from a string, so that
>>> \SkillField{Erzählen}{0} can define a field named "Erzaehlen" or
>>> "Erzhlen" or "Erzahlen"?
>>
>>
>> just make me s small test file
>> there is lots of sanitizing code/trickery out there, but need a simple
>> self contained example
>
>
> Hm, it doesn't really have anything to do with my application (defining
> widget fields), so...
>
> \starttext
>
> \def\MyIndex#1{\index[\CLEAN{#1}]{#1}}
>
> \MyIndex{Ätsch} % should expand to \index[Atsch]{Ätsch} or
> \index[Aetsch]{Ätsch}
>
> \stoptext
it's a three line macro to do this kind of things; however, i decided to install
yet another expansion handler,
\enableregime[windows] \setupregister[index][keyexpansion=strict]
\starttext
\index[Ätsch]{Ätsch} test \index{QÄtsch} test \index[ratsch]{RÄtsch} test
\placeindex
\stoptext
those who really want to know the details can look into the source and grep for
strict in core-sys.tex
think of something: \reduceargument an accented mess\to \ascii
I will upload a new alpha version in a few hours
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-01-06 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 21:57 Henning Hraban Ramm
2005-01-06 11:56 ` Hans Hagen
2005-01-06 13:17 ` Henning Hraban Ramm
2005-01-06 16:18 ` Hans Hagen [this message]
2005-01-06 18:28 ` Henning Hraban Ramm
2005-01-07 8:34 ` Hans Hagen
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=41DD64EA.1020803@wxs.nl \
--to=pragma@wxs.nl \
--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).