[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Writing mode, xsl-fo output
On Fri, 1 Apr 2011 16:51:19 -0700 "Bob Stayton" <bobs@sagehill.net> 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 > bobs@sagehill.net Perfect solution Bob. (And thanks for the explanation Tony) -- regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]