This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Best way to handle multiple string replacements?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Best way to handle multiple string replacements?
- From: "Sebastian Rahtz" <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Mon, 5 Jun 2000 21:09:53 +0100 (BST)
- References: <393BE859.CE102032@auckland.ac.nz>
- Reply-To: xsl-list at mulberrytech dot com
Warren Hedley writes:
> I've got some XML->LaTeX transformations and I noticed that I
> keep ending up with lists of calls to string replacement
> routines, with the results being stored in variables (see
> following XSL). It works, but it's ugly and not particularly
> elegant. Has anyone ever found a better solution?
not to the theoretical problem, but to the practical problem
of writing your LaTeX files, some suggestions:
a) use a different output encoding that LaTeX recognises (like latin 1)
b) use a TeX setup that understands UTF 8
c) [easiest] use a neat program called utf8any (there must be
millions of similar things) as a post-processor.
> Incidentally, does anyone know what the LaTeX macro for ¶
> (pilcrow sign = paragraph sign) is? The best I've been able to
> do is $\mathbb{P}$.
>
consulting http://www.tug.org/applications/jadetex/unicode.xml you'd
find the appended. it will also tell you all other known Unicode/TeX
translations (more or less). The answering being \textparagraph, of
course.
sebastian
<character id='U00B6' dec='182' mode='mixed' type='normal'>
<afii>00B6</afii>
<latex>\textparagraph </latex>
<mathlatex>\P </mathlatex>
<Elsevier grid='bfd' ent='para'>
<desc>paragraph sign; pilcrow</desc>
</Elsevier>
<AMS>\P</AMS>
<AIP>para</AIP>
<Wolfram>Paragraph</Wolfram>
<entity id='para' set='html4'>
<desc>pilcrow sign = paragraph sign</desc>
</entity>
<entity id='para' set='8879-isonum'>
<desc>=pilcrow (paragraph sign)</desc>
</entity>
<font name='hlcry' pos='123'/>
<description>PILCROW SIGN</description>
</character>
sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list