Hi All, I switched to fop 0.95 successfully and now I encounter another problem. The Japanese Fonts inside SVG are showing as ##### even if the font-family inside SVG is correct.
Attached are the files I’m using with command line. Is this issue related to Batik used in the new FOP? I was working fine using Fop 0.25. s ./fop -d -r -v -c conf/fop.xconf -xml Hello.xml -xsl hello.xsl -pdf JapHelloFOP.pdf Thanks a lot Lucian Opris
<?xml version="1.0" encoding="UTF-8"?>
<text>
経 常利 益123 4 567i !...@#$%^*()-_+={}[]:;?
and here some latin words
</text>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> <!-- ========================= --> <!-- root element: projectteam --> <!-- ========================= --> <xsl:template match="text"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="simple"> <fo:region-body margin-top="3cm"/> <fo:region-before extent="3cm"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <fo:flow flow-name="xsl-region-body"> <fo:block font-family="MS Gothic" font-size="18pt" text-align="center"> <xsl:value-of select="."/>MS Gothic </fo:block> <fo:block font-family="MS Gothic" font-size="18pt" text-align="center"> <xsl:value-of select="."/>Gothic </fo:block> <fo:block font-family="HGGothicE" font-weight="bold" font-size="18pt" text-align="center"> <xsl:value-of select="."/> HGGothicE THIS IS BOLD bold </fo:block> <fo:block> <fo:external-graphic src="file:/nas/web/charts/clients/16481/out/small/JapSvgTest.svg"/> <!--<fo:external-graphic src="file:/nas/web/charts/clients/16481/out/small/5201_11_13_2009.cs1.alt.svg"/>--> </fo:block> <!-- <fo:block> <fo:external-graphic src="file:/nas/web/charts/clients/16481/out/small/5201_11_13_2009.cs1.alt.png"/> </fo:block> --> <!-- <fo:block font-family="MS PGothic" font-size="18pt" text-align="center"> <xsl:value-of select="."/> MS PGothic </fo:block> <fo:block font-family="MS PGothic" font-weight="bold" font-size="18pt" text-align="center"> <xsl:value-of select="."/> MS PGothic bold </fo:block> <fo:block font-family="Frutiger 45 Light" font-weight="bold" font-size="18pt" text-align="center"> Here Frutiger 45 Light Bold </fo:block> <fo:block font-family="Frutiger 45 Light" font-size="18pt" text-align="center"> Here Frutiger 45 Light </fo:block> <fo:block font-family="Frutiger 45 Light" font-style="italic" font-size="18pt" text-align="center"> Here Frutiger 45 Light Italic </fo:block> --> <!-- <fo:block font-family="MS Gothic"> <xsl:call-template name="fixJap"/> </fo:block> --> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <!-- <xsl:template match="text()"> <xsl:call-template name="fixJap"/> </xsl:template> <xsl:template name="fixJap"> <xsl:param name="text" select="."/> <xsl:param name="counter" select="1"/> <xsl:choose> <xsl:when test="contains(translate(substring($text,$counter,1),'abcdefghijklmnopqrstuwvxyzabcdefghijklmnopqrstuwvxyz12345678...@#$%^*()-_+={}[]:;?>,.~','AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'),'A')"><fo:inline font-family="Arial"><xsl:value-of select="substring($text,$counter,1)"/></fo:inline></xsl:when> <xsl:when test="not(substring($text,$counter + 1,1) = ' ')"><xsl:value-of select="substring($text,$counter,1)"/><fo:inline font-size="0pt">​</fo:inline></xsl:when> <xsl:otherwise><xsl:value-of select="substring($text,$counter,1)"/></xsl:otherwise> </xsl:choose> <xsl:if test="$counter < string-length($text)"> <xsl:call-template name="fixJap"> <xsl:with-param name="text" select="$text"/> <xsl:with-param name="counter" select="$counter + 1"/> </xsl:call-template> </xsl:if> </xsl:template> --> </xsl:stylesheet>
<<attachment: JapSvgTest.svg>>
fop.xconf
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
