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 jsolutions <jo...@jsolutions.co.uk> on 2013/10/16 12:41:01 UTC
negative text-indent and arabic (rtl) text
I'm having problems "outdenting" arabic text. It appears that positive values
of text-indent work when writing-mode="rl", but negative values don't. I am
assuming this is a bug?
I have attached some input. Changing the writing-mode="lr" results in output
as expected.
I am rendering to PDF, using fop version 1.1.
John C
textIndentArabic.fo
<http://apache-fop.1065347.n5.nabble.com/file/n39383/textIndentArabic.fo>
out.pdf <http://apache-fop.1065347.n5.nabble.com/file/n39383/out.pdf>
-----
John Cumming - jSolutions Ltd
http://www.jsolutions.co.uk
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/negative-text-indent-and-arabic-rtl-text-tp39383.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: negative text-indent and arabic (rtl) text
Posted by Glenn Adams <gl...@skynav.com>.
Feel free to submit a patch for the bug you will file, including a new test
case to add to the standard junit layout tests.
On Wed, Oct 16, 2013 at 10:45 AM, jsolutions <jo...@jsolutions.co.uk> wrote:
> Thanks Glenn,
>
> I shall file a bug. For what it's worth, I believe it is due to the
> text-indent being added as a KnuthInlineBox rather than implemented by
> increasing the offset / reducing the length of the line for line breaking
> purposes. I believe this is what TeX does via it's \parshape command. I
> think the KnuthInlineBox is causing problems with the line breaking. (I
> shall add that comment to the bug as well).
>
> I will almost certainly need a fix for this so may well make some changes
> myself in the next week or so.... unless someone beats me to it :)
>
> JC
>
>
>
> -----
> John Cumming - jSolutions Ltd
> http://www.jsolutions.co.uk
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/negative-text-indent-and-arabic-rtl-text-tp39383p39388.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: negative text-indent and arabic (rtl) text
Posted by jsolutions <jo...@jsolutions.co.uk>.
Thanks Glenn,
I shall file a bug. For what it's worth, I believe it is due to the
text-indent being added as a KnuthInlineBox rather than implemented by
increasing the offset / reducing the length of the line for line breaking
purposes. I believe this is what TeX does via it's \parshape command. I
think the KnuthInlineBox is causing problems with the line breaking. (I
shall add that comment to the bug as well).
I will almost certainly need a fix for this so may well make some changes
myself in the next week or so.... unless someone beats me to it :)
JC
-----
John Cumming - jSolutions Ltd
http://www.jsolutions.co.uk
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/negative-text-indent-and-arabic-rtl-text-tp39383p39388.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: negative text-indent and arabic (rtl) text
Posted by Glenn Adams <gl...@skynav.com>.
On Wed, Oct 16, 2013 at 4:41 AM, jsolutions <jo...@jsolutions.co.uk> wrote:
> http://apache-fop.1065347.n5.nabble.com/file/n39383/out.pdf
Thanks for this input. Please file a bug against FOP at [1], and be sure to
attach your test input and output pdf.
https://issues.apache.org/jira/browse/FOP#selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel
Re: negative text-indent and arabic (rtl) text
Posted by jsolutions <jo...@jsolutions.co.uk>.
UPDATE: I have also checked against trunk and the output is the same.
-----
John Cumming - jSolutions Ltd
http://www.jsolutions.co.uk
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/negative-text-indent-and-arabic-rtl-text-tp39383p39384.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