You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Glenn Adams (JIRA)" <ji...@apache.org> on 2013/05/20 18:05:15 UTC

[jira] [Commented] (FOP-2249) U+200E is printed in postscrip

    [ https://issues.apache.org/jira/browse/FOP-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13662100#comment-13662100 ] 

Glenn Adams commented on FOP-2249:
----------------------------------

Thanks for this report. Though I was aware of this, I see that I hadn't entered an issue for it yet.

In any case, I don't see a need for you to use these characters in your example. I would note that you have not specified a writing-mode="rl" on fo:flow, which changes the default paragraph direction to rl (and also default alignment of start edge to the right).

If you really need embedding control to achieve your intended results, then you can use:

<fo:bidi-override unicode-bidi="embed" direction="ltr"> ... </fo:bidi-override>
and/or
<fo:bidi-override unicode-bidi="embed" direction="rtl"> ... </fo:bidi-override>

You can also use

<fo:bidi-override unicode-bidi="bidi-override" direction="ltr"> ... </fo:bidi-override>
and/or
<fo:bidi-override unicode-bidi="bidi-override" direction="rtl"> ... </fo:bidi-override>

to explicitly assign directionality to directionally neutral or weak characters.

                
> U+200E is printed in postscrip 
> -------------------------------
>
>                 Key: FOP-2249
>                 URL: https://issues.apache.org/jira/browse/FOP-2249
>             Project: Fop
>          Issue Type: Bug
>          Components: ps
>    Affects Versions: 1.1
>         Environment: Windows 7 x64
>            Reporter: Konrad Gajewski
>            Priority: Blocker
>         Attachments: arabic.fo, fop.xconf, test.pdf
>
>
> Hi, 
> I'm testing Arabic sentences mixed with English one.
> I found the following issue:
> When I'm trying to revert direction by U+200E, I'm getting the glyphs which one is incorrect because should be nothing.
> For some Fonts I'm getting warning and I see "#" inside, for some of them "incorrect character".
> .fo file:
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="simpfxo">
>   <fo:layout-master-set>
>     <fo:simple-page-master page-height="297mm" page-width="210mm" master-name="a4">
>       <fo:region-body margin-top="11mm" margin-bottom="12mm" margin-right="10mm" margin-left="10mm"/>
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="a4">
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block>&#x200D; وكلما زادت معرفتك بها؛ زادت السلامة والمتعة التي تحصل some text عليها خلال قيادتها. </fo:block>
> 	  <fo:block>&#x200F; البريد الإلكتروني &#x200E; Test</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
> .fontconfig file
>         <font embed-url="file:///C:/Windows/Fonts/ARIALUNI.TTF" embedding-mode="full">
>           <font-triplet name="Arial" style="normal" weight="normal"/>
>         </font>
>         <font embed-url="file:///C:/Windows/Fonts/cour.ttf" embedding-mode="full">
>           <font-triplet name="Courier" style="normal" weight="normal"/>
>         </font>   
>         <font embed-url="file:///C:/Windows/Fonts/DejaVuSansMono.ttf" embedding-mode="full">
>           <font-triplet name="DejaVuSansMono" style="normal" weight="normal"/>
>         </font>         
> 		<font embed-url="file:///C:/Windows/Fonts/ScheherazadeRegOT.ttf" embedding-mode="full">
>           <font-triplet name="ScheherazadeRegOT" style="normal" weight="normal"/>
>         </font>
> 		<font embed-url="file:///C:/Windows/Fonts/simpfxo.ttf" embedding-mode="full">
>           <font-triplet name="simpfxo" style="normal" weight="normal"/>
>         </font> 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira