xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Adams <gl...@skynav.com>
Subject Re: Devanagari support
Date Thu, 29 May 2014 01:48:34 GMT
You do not need to specify the script property, unless the automatic
algorithm doesn't select the desired script. This latter would only be the
case if you are using an older font that supports only the pre-2005
OpenType Devanagari rendering rules ('deva'). The current automatic
algorithm maps to 'dev2', which matches the current OpenType font spec.


On Thu, May 29, 2014 at 3:55 AM, Raymond Budd <ray.budd@gmail.com> wrote:

>  Hi,
>
> I have a question about Devanagari support. Please excuse my limited
> background with the script.
>
> The site shows that join controls are not supported:
> https://xmlgraphics.apache.org/fop/trunk/complexscripts.html, and I want
> to make sure the behavior I see is as expected. A basic example of this is
> with: में
>
> On command line PDF generation with the example FO file below, this
> generates two separate characters instead of the single character above (I
> can provide the config, FO, and generated PDF files if it helps). I get the
> same result when running with script set to 'dev2' or 'deva'.
>
> If this is currently not supported, does anyone have an idea of when this
> support would be available, if there's a workaround, or suggestion for
> improving the results?
>
> Also, I'm not sure I understand the distinction between the standard and
> extended script codes. Is there a pointer to somewhere I can find out more
> about the difference?
>
> Thanks in advance for any help,
> Ray
>
> ------------------------------------------------
> sample FO file:
> ------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial">
>   <fo:layout-master-set>
>     <fo:simple-page-master margin-top="36pt" margin-bottom="36pt"
> margin-left="54pt" margin-right="54pt" page-width="8.5in"
> page-height="11in" master-name="normal">
>       <fo:region-body margin-bottom="36pt" margin-top="36pt" />
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence id="DocumentBody" master-reference="normal">
>     <fo:flow flow-name="xsl-region-body">
>     <fo:block line-height="125%" color="black" text-align="start"
> script="deva" font-family="ArialUnicodeMS" font-size="14pt">
>           में
>     </fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
>
>

Mime
View raw message