Next in thread → Next in month →

Re: [docbook-apps] white space

From
Ron Catterall <>
Date
2008-11-14T13:30:33+00:00
ID
Thread
Re: [docbook-apps] white space
Lily Galle wrote:
> Hallo, 
>
> I use “XEP”.
>
> 1.
> I would like put some white space between the Words. Like following: 
>    She   likes  to      have               pears. 
>
> The spaces between the words are not regular. In my DocBook “myDocBook.xml” I wrote the code like “&#x20” and it failed.
>
>   
Try &#xA0 (non-breaking space), &#x2002 (En space) or &#x2003 (Em space) 
for 1. and 2.
> 2.
> How to put a white space at the beginning of a line?
>
> I need this irregularly: some lines have white spaces at the beginning, some do not have. 
>
> 3.
> I need very often to produce some white spaces between two lines. The only way I found out in “XEP” is:  <literallayout>    </literallayout>
>
>   
In your customisation layer put <?lb?> in your text where you want a new 
line
<!-- 
==================================================================== -->
<!-- PI to cause a line break
usage
<?hard-linebreak?>, <?line-break?> or <?lb?> -->
<xsl:template match="processing-instruction('lb')">
<fo:block/>
</xsl:template> <!-- END match="processing-instruction('lb')" -->
<xsl:template match="processing-instruction('line-break')">
<fo:block/>
</xsl:template> <!-- END match="processing-instruction('line-break')" -->
<xsl:template match="processing-instruction('hard-linebreak')">
<fo:block break-before='page'/>
</xsl:template> <!-- END 
match="processing-instruction('hard-linebreak')" -->
to get one linefeed

You might also need to direct page throws as well
<!-- 
==================================================================== -->
<!-- PI to generate a hard page break -->
<!-- to apply a hard page break do
<?hard-pagebreak?>, <?page-break?> or <?pb?>
in the xml text -->
<xsl:template match="processing-instruction('pb')">
<fo:block break-before='page'/>
</xsl:template> <!-- END match="processing-instruction('pb')" -->
<xsl:template match="processing-instruction('page-break')">
<fo:block break-before='page'/>
</xsl:template> <!-- END match="processing-instruction('page-break')" -->
<xsl:template match="processing-instruction('hard-pagebreak')">
<fo:block break-before='page'/>
</xsl:template> <!-- END 
match="processing-instruction('hard-pagebreak')" -->

> Are there some other ways to produce white spaces between two lines in XEP? (The position and the length of the white spaces are not regular.)
>
>
> Thanks for any help!
>
>
> Lily
>
>   


-- 
Ron Catterall, Phd, DSc			
Prolongacion de Hidalgo 140		http://catterall.net/
San Felipe del Agua			tel: +52 951 520 1821
Oaxaca 68020 Mexico			fax: +1 530 348 8309
Next in thread → Next in month →