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 Ryan Fong <ry...@workday.com> on 2012/11/27 20:07:43 UTC

fo:page-number spacing problems in Arabic

G'day, mates.  This is a follow-up message to one I posted a couple of
months ago about spacing problems with page numbers in Arabic.

I have text in Arabic surrounding fo:page-number and
fo:page-number-citation elements that simply say "Page x of y".  

As a sanity-check, I noticed that hardcoding digits where the
fo:page-number and fo:page-number-citation elements normally belong does
not cause any spacing problems.  This is seen in the two green boxes
(Page 25 of 100 & Page 7 of 9, respectively).

The red box denotes where the fo:page-number elements are used.  Several
problems occur:
* The page numbers overlap the Arabic text (esp. on the last pages).
* The entire string is shifted to the left and doesn't right-align.
* On page 10, the page number shows "01" (reversed).
* On page 12, both the page number and the total show "21" (reversed).

The orange box denotes where fo:leader elements (forced spacing) were
added around the fo:page-number elements.  This mitigates the text
overlap problem but the other issues persist.

What can be done to fix this problem?  Suggestions and thoughts are
welcome.  Thank you.


Environment:
* Apache FOP 1.1
* Windows 7 64-bit
* Java 64-bit 1.7.0_09
* arialuni.ttf font

Command:
fop.bat -c fop.xml -fo in.xml -pdf out.pdf -d

Attachments:
* fop.xml (fop config)
* in.xml (fo input)
* out.pdf (pdf result)
* stdout.txt (console output)

Re: fo:page-number spacing problems in Arabic

Posted by Pascal Sancho <ps...@gmail.com>.
Hi,

there are some issues related to page-number-citation in right-to-left
mode in conjunction with align right.
See [1].

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=54139

2012/11/27 Ryan Fong <ry...@workday.com>:
> G'day, mates.  This is a follow-up message to one I posted a couple of
> months ago about spacing problems with page numbers in Arabic.
>
> I have text in Arabic surrounding fo:page-number and
> fo:page-number-citation elements that simply say "Page x of y".
>
> As a sanity-check, I noticed that hardcoding digits where the
> fo:page-number and fo:page-number-citation elements normally belong does
> not cause any spacing problems.  This is seen in the two green boxes
> (Page 25 of 100 & Page 7 of 9, respectively).
>
> The red box denotes where the fo:page-number elements are used.  Several
> problems occur:
> * The page numbers overlap the Arabic text (esp. on the last pages).
> * The entire string is shifted to the left and doesn't right-align.
> * On page 10, the page number shows "01" (reversed).
> * On page 12, both the page number and the total show "21" (reversed).
>
> The orange box denotes where fo:leader elements (forced spacing) were
> added around the fo:page-number elements.  This mitigates the text
> overlap problem but the other issues persist.
>
> What can be done to fix this problem?  Suggestions and thoughts are
> welcome.  Thank you.
>
>
> Environment:
> * Apache FOP 1.1
> * Windows 7 64-bit
> * Java 64-bit 1.7.0_09
> * arialuni.ttf font
>
> Command:
> fop.bat -c fop.xml -fo in.xml -pdf out.pdf -d
>
> Attachments:
> * fop.xml (fop config)
> * in.xml (fo input)
> * out.pdf (pdf result)
> * stdout.txt (console output)

-- 
pascal

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


Re: fo:page-number spacing problems in Arabic

Posted by Glenn Adams <gl...@skynav.com>.
No released version yet. It is available in trunk.

On Wed, Jan 21, 2015 at 5:06 AM, kthangavel <ku...@gmail.com>
wrote:

> Hello All,
>
> I am facing a similar issue in my project. I would love to know if this is
> fixed. If yes , what is the version in which it is available?
>
> I am currently using apache fop 1.1
>
> Thanks
> Kumar T
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/fo-page-number-spacing-problems-in-Arabic-tp37417p41631.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: fo:page-number spacing problems in Arabic

Posted by kthangavel <ku...@gmail.com>.
Hello All,

I am facing a similar issue in my project. I would love to know if this is
fixed. If yes , what is the version in which it is available?

I am currently using apache fop 1.1

Thanks
Kumar T



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-page-number-spacing-problems-in-Arabic-tp37417p41631.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