mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 23:13:58 +00:00
Additions to implement colors from Quickbook 1.6.
But align feature (done in boostbook.css for html) is still not implemented. [SVN r86229]
This commit is contained in:
parent
fae9c57743
commit
a45ae11e03
94
xsl/fo.xsl
94
xsl/fo.xsl
@ -216,11 +216,103 @@
|
|||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</fo:list-item-label>
|
</fo:list-item-label>
|
||||||
<fo:list-item-body start-indent="body-start()">
|
<fo:list-item-body start-indent="body-start()">
|
||||||
<xsl:apply-templates select="*[local-name(.)!='label']"/>
|
<xsl:apply-templates select="*[local-name(.)!='label']"/>text-align
|
||||||
</fo:list-item-body>
|
</fo:list-item-body>
|
||||||
</fo:list-item>
|
</fo:list-item>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
The following rules apply text coloring to Quickbook items like
|
||||||
|
|
||||||
|
[role blue Some blue text]
|
||||||
|
|
||||||
|
These correspond to an arbitrary list of colors added to the CSS file
|
||||||
|
|
||||||
|
$(BOOST-ROOT)\doc\src\boostbook.css
|
||||||
|
|
||||||
|
and are required for building pdf documentation.
|
||||||
|
|
||||||
|
A more elegant way of doing this is probably possible.
|
||||||
|
Other colors can be added simply by copying these examples.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='red']">
|
||||||
|
<fo:inline color="red">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='blue']">
|
||||||
|
<fo:inline color="blue">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='green']">
|
||||||
|
<fo:inline color="green">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="phrase[@role='lime']">
|
||||||
|
<fo:inline color="lime">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="phrase[@role='navy']">
|
||||||
|
<fo:inline color="navy">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="phrase[@role='yellow']">
|
||||||
|
<fo:inline color="yellow">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
<xsl:template match="phrase[@role='magenta']">
|
||||||
|
<fo:inline color="magenta">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='indigo']">
|
||||||
|
<fo:inline color="indigo">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='cyan']">
|
||||||
|
<fo:inline color="cyan">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='purple']">
|
||||||
|
<fo:inline color="purple">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='gold']">
|
||||||
|
<fo:inline color="gold">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='silver']">
|
||||||
|
<fo:inline color="silver">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="phrase[@role='gray']">
|
||||||
|
<fo:inline color="gray">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
The following rules apply syntax highlighting to phrases
|
The following rules apply syntax highlighting to phrases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user