On Fri, 1 Apr 2011 16:51:19 -0700
"Bob Stayton" <[email protected]> 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
> [email protected]

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




-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to