[svnbook] r4438 committed - Try to get something like similar graphic sizes between HTML and FO...
svnbook at googlecode.com
svnbook at googlecode.com
Thu Feb 14 18:54:58 CST 2013
Revision: 4438
Author: cmpilato at gmail.com
Date: Thu Feb 14 16:54:50 2013
Log: Try to get something like similar graphic sizes between HTML and
FO
output flavors.
* en/HACKING
Add a note about how graphics are managed.
* en/book/ch00-preface.xml
Add dimensions to the architectural diagram <graphic> tag.
* tools/base-html-stylesheet.xsl
Configure HTML output flavors to ignore image dimentions.
http://code.google.com/p/svnbook/source/detail?r=4438
Modified:
/trunk/en/HACKING
/trunk/en/book/ch00-preface.xml
/trunk/tools/base-html-stylesheet.xsl
=======================================
--- /trunk/en/HACKING Wed Feb 13 09:32:46 2013
+++ /trunk/en/HACKING Thu Feb 14 16:54:50 2013
@@ -254,6 +254,20 @@
[...]
+- Graphics: We use PNG for our graphic format at this time (because it
+ offers maximum tool coverage). Image files should be rendered at
+ the desired HTML display dimensions. Use the 'width' and 'depth'
+ attributes of the <graphic> tag to specify the desired width and
+ height in inches for use with the FO-based output flavors. (The
+ HTML output flavors will ignore these dimensions.)
+
+ Example:
+
+ <figure id="svn.intro.architecture.dia-1">
+ <title>Subversion's architecture</title>
+ <graphic width="4in" depth="5in"
fileref="images/svn-arch-diagram.png"/>
+ </figure>
+
====================
PRE-PROCESSING NEEDS
=======================================
--- /trunk/en/book/ch00-preface.xml Thu Feb 14 15:02:45 2013
+++ /trunk/en/book/ch00-preface.xml Thu Feb 14 16:54:50 2013
@@ -346,7 +346,7 @@
<figure id="svn.intro.architecture.dia-1">
<title>Subversion's architecture</title>
- <graphic fileref="images/svn-arch-diagram.png"/>
+ <graphic width="4in" depth="5in"
fileref="images/svn-arch-diagram.png"/>
</figure>
<para>On one end is a Subversion repository that holds all of
=======================================
--- /trunk/tools/base-html-stylesheet.xsl Wed Feb 6 12:28:46 2013
+++ /trunk/tools/base-html-stylesheet.xsl Thu Feb 14 16:54:50 2013
@@ -17,6 +17,8 @@
<xsl:param name="callout.graphics" select="1" />
<xsl:param name="callout.graphics.extension">.png</xsl:param>
+ <xsl:param name="ignore.image.scaling" select="1" />
+
<xsl:template match="sect1" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:call-template name="subtoc">
More information about the svnbook-dev
mailing list