[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Best way to handle multiple string replacements?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|