Next in thread → Next in month →

Re: [docbook-apps] Writing mode, xsl-fo output

From
Dave Pawson <>
Date
2011-04-02T05:49:28+00:00
ID
20110402064917.3e6bba8e@marge3
Thread
Re: [docbook-apps] Writing mode, xsl-fo output
On Fri, 1 Apr 2011 16:51:19 -0700
"Bob Stayton" <> wrote:

. In those cases where the formatter does not automatically
> get it right, you sometimes have to force the correct order.  The
> following custom template worked well in those cases, allowing the
> author to put the English text and its punctuation inside <phrase
> @lang="en"> so the stylesheet could apply the template:
> 
> <xsl:template match="phrase[@lang = 'en']">
>   <fo:bidi-override language="en"
>                     unicode-bidi="embed"
>                     direction="ltr">
>     <xsl:apply-templates/>
>   </fo:bidi-override>
> </xsl:template>
> 
> This template forces whatever is in the phrase element to be
> formatted ltr, regardless of the Unicode range.
> 
> Bob Stayton
> Sagehill Enterprises
> 

Perfect solution Bob. 
(And thanks for the explanation Tony)




-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Next in thread → Next in month →