You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jim Quest <qu...@gmail.com> on 2012/07/13 14:05:02 UTC

bidi support with glyph shaping in 1.1rc1

dear all,

i see that fop1.1rc1 now has bi-directional support of arabic (
http://xmlgraphics.apache.org/fop/1.1rc1/complexscripts.html#details)

i have tried it, with the fo below, and the resulting PDF (attached) that i
have seems to not have any glyph shaping (medial forms for characters etc).
the documentation says that it has full supported and tested. so i am not
sure what i am doing incorrectly.

any help would be most appreciated.

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="ar"
font-family="ArialUnicodeMT" writing-mode="rl" script="arab">
  <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>وكلما زادت معرفتك بها؛ زادت السلامة والمتعة التي تحصل some
text عليها خلال قيادتها.</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

james

Re: bidi support with glyph shaping in 1.1rc1

Posted by James Quest <qu...@gmail.com>.
removing both language and script attributes does make it work. wonderful!
thanks for the pointer

--
View this message in context: http://apache-fop.1065347.n5.nabble.com/bidi-support-with-glyph-shaping-in-1-1rc1-tp36332p36338.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: bidi support with glyph shaping in 1.1rc1

Posted by Glenn Adams <gl...@skynav.com>.
sorry, i just now noticed you also specified language="ar"; please remove
that as well; in fact, there is probably an interoperability issue here
which warrants opening a bug; namely, when the user specifies language or
script that happens to be the same as the font's notion of default language
or script, then FOP should use the default tables instead of looking for
tables explicitly marked with the explicit language/script; i will open a
bug on this, but in the mean time, avoid using language/script attributes;

On Fri, Jul 13, 2012 at 7:53 AM, James Quest <qu...@gmail.com> wrote:

> i have tried both specifying the script attribute, and not specifying it.
>
> both situations produces the same incorrect PDF output. none of the arabic
> text seems to glyph shape in the joining process.
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/bidi-support-with-glyph-shaping-in-1-1rc1-tp36332p36336.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Re: bidi support with glyph shaping in 1.1rc1

Posted by James Quest <qu...@gmail.com>.
i have tried both specifying the script attribute, and not specifying it.

both situations produces the same incorrect PDF output. none of the arabic
text seems to glyph shape in the joining process.

--
View this message in context: http://apache-fop.1065347.n5.nabble.com/bidi-support-with-glyph-shaping-in-1-1rc1-tp36332p36336.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: bidi support with glyph shaping in 1.1rc1

Posted by Glenn Adams <gl...@skynav.com>.
remove the script='arab' attribute; specifying script attribute is not
necessary and is wrong in this case since you also have latin script in
your example

the only reason to specify script attribute is when you are using a font
that provides different shaping/positioning treatment according to the
OpenType use of a "script tag" and you wish to select that behavior
explicitly by overriding the default script determination

On Fri, Jul 13, 2012 at 6:05 AM, Jim Quest <qu...@gmail.com> wrote:

> dear all,
>
> i see that fop1.1rc1 now has bi-directional support of arabic (
> http://xmlgraphics.apache.org/fop/1.1rc1/complexscripts.html#details)
>
> i have tried it, with the fo below, and the resulting PDF (attached) that
> i have seems to not have any glyph shaping (medial forms for characters
> etc). the documentation says that it has full supported and tested. so i am
> not sure what i am doing incorrectly.
>
> any help would be most appreciated.
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="ar"
> font-family="ArialUnicodeMT" writing-mode="rl" script="arab">
>   <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>وكلما زادت معرفتك بها؛ زادت السلامة والمتعة التي تحصل some
> text عليها خلال قيادتها.</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
> james
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>