mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-08 18:33:58 +00:00
Added left, right, center, justify items to cater for role text alignment as for color needed for PDF.
[SVN r86784]
This commit is contained in:
parent
37b65b9320
commit
90c06c4483
33
xsl/fo.xsl
33
xsl/fo.xsl
@ -312,6 +312,39 @@
|
||||
</fo:inline>
|
||||
</xsl:template>
|
||||
|
||||
<!-- alignment -->
|
||||
|
||||
<xsl:template match="phrase[@role='aligncenter']">
|
||||
<fo:inline>
|
||||
<fo:block text-align="center">
|
||||
<xsl:apply-templates/>
|
||||
</fo:block>
|
||||
</fo:inline>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="phrase[@role='alignleft']">
|
||||
<fo:inline>
|
||||
<fo:block text-align="left">
|
||||
<xsl:apply-templates/>
|
||||
</fo:block>
|
||||
</fo:inline>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="phrase[@role='alignright']">
|
||||
<fo:inline>
|
||||
<fo:block text-align="right">
|
||||
<xsl:apply-templates/>
|
||||
</fo:block>
|
||||
</fo:inline>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="phrase[@role='alignjustify']">
|
||||
<fo:inline>
|
||||
<fo:block text-align="justify">
|
||||
<xsl:apply-templates/>
|
||||
</fo:block>
|
||||
</fo:inline>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user