[Home] [By Thread] [By Date] [Recent Entries]
On 03/05/2016 16:42, Michael MC<ller-Hillebrand mmh@xxxxxxxxx wrote: ... Unfortunately, in my case the parentheses are likely to be just regular text and I have no direct way of knowing whether they surround Arabic or Western text (other than trying to find some all-purpose magic XPath analyzing basically every text() node). But the content inside the parentheses is tagged as non-translateable and I can take advantage of that. The utility didn't mirror the ')' from 'Brand name (Former name)', so it may be making a trade-off between showing the sequence of characters and showing the final result. I have the impression that direction control characters in this situation do not as well as <fo:bidi-override> would work. I went down the bidirectional ordering controls route after reading Geert's post. We're at the point that it's the blind leading the blind, but I added the translations of 'Preface' and 'Chapter 1' from the Arabic translation of the UDHR to the text and, to my untutored eye, it came out okay using either the LRM character or fo:unicode-bidi. ... BTW: I hope this is still on topic enough. That's why I mentioned XPath. The 'XSL-List Guidelines' posted two days ago still explicitly say that FO is on topic. Regards,
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" xml:lang="ab" writing-mode="rl-tb"> <fo:layout-master-set> <fo:simple-page-master master-name="a"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="a"> <fo:flow flow-name="xsl-region-body"> <fo:block>Brand name (Former name)</fo:block> <fo:block>Brand name (Former name)‎</fo:block> <fo:block><fo:bidi-override unicode-bidi="embed">Brand name (Former name)</fo:bidi-override></fo:block> <fo:block><fo:bidi-override direction="ltr">Brand name (Former name)</fo:bidi-override></fo:block> <fo:block>X'YX/Y X(X'X,X)</fo:block> <fo:block>X'YX/Y X(X'X,X) Brand name (Former name)‎ X'YYX'X/X) 1</fo:block> <fo:block>X'YX/Y X(X'X,X) <fo:bidi-override unicode-bidi="embed">Brand name (Former name)</fo:bidi-override> X'YYX'X/X) 1</fo:block> <fo:block>X'YX/Y X(X'X,X) <fo:bidi-override direction="ltr">Brand name (Former name)</fo:bidi-override> X'YYX'X/X) 1</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
|

Cart



