forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdupoiri...@apache.org
Subject svn commit: r465576 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt: resources/stylesheets/odt-to-forrest-xhtml.xsl src/documentation/content/xdocs/samples/opendocument-writer.odt
Date Thu, 19 Oct 2006 11:15:37 GMT
Author: cdupoirieux
Date: Thu Oct 19 04:15:35 2006
New Revision: 465576

URL: http://svn.apache.org/viewvc?view=rev&rev=465576
Log:
Update the "style:text-properties/@*" template to generate code if the font used is Courier
New.
Update samples in the odt file to check this.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/resources/stylesheets/odt-to-forrest-xhtml.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/src/documentation/content/xdocs/samples/opendocument-writer.odt

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/resources/stylesheets/odt-to-forrest-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/resources/stylesheets/odt-to-forrest-xhtml.xsl?view=diff&rev=465576&r1=465575&r2=465576
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/resources/stylesheets/odt-to-forrest-xhtml.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/resources/stylesheets/odt-to-forrest-xhtml.xsl
Thu Oct 19 04:15:35 2006
@@ -136,6 +136,14 @@
 	<xsl:param name="text"/>
 	<xsl:param name="indStyle" select="count(../@*)"/>
 	<xsl:choose>
+		<!-- Case of the code style - generally rendered with Courier -->
+		<xsl:when test="name()='style:font-name' and starts-with(.,'Courier')">
+			<xsl:call-template name="layout-span">
+				<xsl:with-param name="text" select="$text"/>
+				<xsl:with-param name="indStyle" select="$indStyle"/>
+				<xsl:with-param name="tag" select="'code'"/>
+			</xsl:call-template>
+		</xsl:when>
 		<!-- Case of the emphasys style - generally rendered with Italic -->
 		<xsl:when test="name()='fo:font-style' and .='italic'">
 			<xsl:call-template name="layout-span">

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/src/documentation/content/xdocs/samples/opendocument-writer.odt
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.odt/src/documentation/content/xdocs/samples/opendocument-writer.odt?view=diff&rev=465576&r1=465575&r2=465576
==============================================================================
Binary files - no diff available.



Mime
View raw message