Re: normalize-scape.mod.xsl
Vitaly Ostanin <[email protected]> Tue, 1 Jul 2003 18:18:23 +0400
| Newsgroups | gmane.text.docbook.db2latex.devel |
|---|---|
| Message-ID | <[email protected]> |
--=.eX7BkxPAhy8._1 Content-Type: multipart/mixed; boundary="Multipart_Tue__1_Jul_2003_18:18:23_+0400_084e5190" --Multipart_Tue__1_Jul_2003_18:18:23_+0400_084e5190 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 01 Jul 2003 15:57:53 +0200 Torsten Bronger <[email protected]> wrote: > Halloechen! > > Vitaly Ostanin <[email protected]> writes: > > > I look into xsl/normalize-scape.mod.xsl. > > > > template name="scape" is really big... And will very big. > > > > I don't know another way for multiple parsing string (and > > parsing result of parsing). > > > > What you think about creating xml file for symbols and > > replacements? Such xml will easy contributed and maintained > > for generating xslt from it. > > > > LaTeX doesn't support unicode characters by their numbers, so > > each character need to be translated into valid latex. > > Do you mean something like > <http://xml.coverpages.org/unicodeRahtz19981008.xml>? Thanks, it's cool! I'll look on it. > I think the best solution is an external tool. I already fix normalize-scape.mod.xml for using latex.mapping.xml and it worked. scape.xsl with fixed template name="scape" is attached. <skipped/> -- Regards, Vyt mailto: [email protected] JID: [email protected] --Multipart_Tue__1_Jul_2003_18:18:23_+0400_084e5190 Content-Type: text/xml; name="scape.xsl" Content-Disposition: attachment; filename="scape.xsl" Content-Transfer-Encoding: 7bit <xsl:template name="scape"> <xsl:param name="string"/> <xsl:variable name="latex.mapping" select="document('latex.mapping.xml')"/> <xsl:if test="not(string-length($string)=0)"> <xsl:choose> <xsl:when test="$latex.mapping/latexbindings/latexmapping[@role='entities']/mapping[@key=substring($string,1,1)]"> <xsl:value-of select="$latex.mapping/latexbindings/latexmapping[@role='entities']/mapping[@key=substring($string,1,1)]/@text"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring($string,1,1)"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="scape"> <xsl:with-param name="string" select="substring($string,2)"/> </xsl:call-template> </xsl:if> </xsl:template> --Multipart_Tue__1_Jul_2003_18:18:23_+0400_084e5190-- --=.eX7BkxPAhy8._1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/AZgvd6sY3eC5PjQRArSSAJ9bz9tQX+X6NthzWFEn18QHN9bdpwCeMKoq 5dUgnRXe9Z0k1H4ZRGetiW4= =1AFJ -----END PGP SIGNATURE----- --=.eX7BkxPAhy8._1-- ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01