From: Henning Hraban Ramm <hraban@fiee.net>
Subject: function that purges 8 bit text?
Date: Wed, 5 Jan 2005 22:57:01 +0100 [thread overview]
Message-ID: <BAA1992D-5F64-11D9-AF46-0030659899AA@fiee.net> (raw)
Hi there!
I try to typeset a roleplaying character sheet as PDF form;
it contains a table of skills, each line is a \SkillField after this
def:
\def\SkillField#1#2{\bTR\bTD #1\hfill (#2) \eTD \bTD
\definefield[#1][line][SkillSetup][#2]\field[#3]\eTD\eTR}
e.g.
\SkillField{Climbing}{+8}
becomes a table line like:
Climbing (+8) [+8]
Now there are a lot of skills that contain e.g. umlauts, so that
\definefield[#1] fails.
I don't like to introduce a third parameter.
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"?
(Sorry, I can't program in TeX.)
If this is not possible, I'll try an optional parameter.
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
next reply other threads:[~2005-01-05 21:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 21:57 Henning Hraban Ramm [this message]
2005-01-06 11:56 ` Hans Hagen
2005-01-06 13:17 ` Henning Hraban Ramm
2005-01-06 16:18 ` Hans Hagen
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=BAA1992D-5F64-11D9-AF46-0030659899AA@fiee.net \
--to=hraban@fiee.net \
--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).