Re: FOP 1.1rc1 strange tablecell content behaviour with text-align=right

2012-08-29 Thread Pascal Sancho
Hi,

Hmm, my bad, I looked to the wrong direction: the overflow property
and the clipping.
Looking it closer, and removing all things from FO that are not
concerned with this issue, I understand now:
as you said, text-align right used in conjunction with
page-number-citation reveals that something is wrong when the i-p-d of
the generated inline area is wider than available space.

See attached FO, with minimal text case.

I found some bug files that can be related to, but not sure:
https://issues.apache.org/bugzilla/show_bug.cgi?id=39034
https://issues.apache.org/bugzilla/show_bug.cgi?id=43739
https://issues.apache.org/bugzilla/show_bug.cgi?id=36395

So, Giusseppe you should file a new bug entry, test case is now clear enough.
That said, I see 2 workarounds that prevent overflow:
  - either remove keep-together
  - or give more space to the content

@GA: I can affirm now that is not a regression
FOP 0.95 or 1.0: keep-together is not taken into account, so the bug
is not yet revealed
FOP 1.1rc1: revelation!

2012/8/28 Giuseppe Briotti g.brio...@gmail.com:
 Hi Glen, hi Pascal! Thanks for yours replays.

 I don't know if this is a problem related to cell width or table
 width, probably you're right, but it seems to me that the width is ok
 to
 contains such text. Anyway I checked the table width and I add more
 space to the rightmost cell, then I performed some more tests.

 All tests are performed with FOP 1.1rc1 and I added some background
 color and removed overflow=hidden to show what happens.

 The page-width is set to 209.9 mm (A4).

 The region body is set with left and right margin to 6.5cm, thus the
 available space is 8cm.

 For instance, the first table has these sizes (computed the widths of
 1st and 3rd columns, the width of 2nd column is computed by
 difference):

 2.5mm + 64.69417mm + 12.80583mm = 80mm

 The table width is always 8cm, and the column widths are computed
 accordingly. The rightmost column cells are with text-align=right.

 The C_Comm-1 r25.info.1.1.wref document is obtained from the original
 FO and the C_Comm-1 r25.info.1.1.noref document is obtained from
 the same FO with elements fo:page-number-citation removed.

 Note that due to the hidden removed, now the left and right border of
 the main block are visibile: this is in case a 2 columns layout is
 required,
 to obtain the middle vertical line to separate the two columns.

 Probably I missed something, but this seems to me related to the
 computed area for page number citation.

 2012/8/28 Pascal Sancho psancho@gmail.com:
 Hi Glen,

 Not exactly:
  FOP 0.95: table content is shrunk to fit in clip space (wrong)
  FOP 1.0: table content is shifted to the wrong side of the clip limit 
 (wrong)
  FOP 1.1RC1: table content is at the right place, but that reveals a
 new bug: hidden part is copyable


 2012/8/28 Glenn Adams gl...@skynav.com:

 On Mon, Aug 27, 2012 at 10:10 PM, Pascal Sancho psancho@gmail.com
 wrote:

 There is something wrong in your XSL-FO:
 the table containing TOC is wider than available i-p-d, and the
 corresponding region-body has its property overflow set to hidden.
 So, the PDF shows what is expected visually.

 But...
 hidden text can be copied, and IMHO this is not the correct behaviour;
 the [1] FO 1.1 REC says:
 (hidden) indicates that the content is clipped (...); users will not
 have access to clipped content.

 So, I suggest you to fill in a bug entry on Bugzilla, providing both
 XSL-FO and PDF output.
 This is reproducible against both FOP 1.1RC1 and FOP trunk.


 Is this a regression in 1.1rc1, or was it present in 1.0?

 --


-- 
pascal


_test.fo
Description: Binary data

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

Re: Does FOP-1.1rc1 change handling of RGB values?

2012-08-29 Thread Rob Sargent
You are of course correct.  I misspoke. We search in the pdf for the rbg 
color with an string such as this: 0.07843 0.15686 0.31372  rg.  And 
we would be replacing it with something like 0.08 0.00 0.15 0.0 k if 
the rg string were found.


My apologies for mis-reading our code base.

rjs



On 08/29/2012 05:04 AM, Chris Bowditch wrote:

On 28/08/2012 18:02, rsargent wrote:

Perhaps I can rephrase the question.

Has the transformation of colour values from RGB (in the fo) to CMYK 
in the
pdf changed in fop-1.1rc1 compared with fop-1.0?  Our search and 
replace is

no longer finding the values in the pdf.  We insert temporary RGBs,
expecting to find known cymk definitions in the pdf for replacement. 
(Legacy

code).


FOP doesn't convert RGB to CMYK. If you could tell us what your code 
searches for in the PDF then we might have some chance to tell you if 
there has been a change to that




If I can't find a local explanation, I'm headed for a serious 
re-write of

color handling.  Should have been done long ago, I concede. Still not a
good time, um, er, corporately.


Definitely the right way to use FOP though :-)

Chris


Thanks

rsargent wrote

I'm not finding certain strings related to colour I expect to be in the
pdf.  Has this changed recently.  I didn't see mention of such in the
1.1 release notes.

Thanks,

rjs





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Does-FOP-1-1rc1-change-handling-of-RGB-values-tp36690p36724.html

Sent from the FOP - Users mailing list archive at Nabble.com.

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






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





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



Re: spurious indentation with (small) text lose SOLVED

2012-08-29 Thread rsargent
I am happy to report (rather belatedly I'm afraid) that the patch has done
the trick.

The test fo supplied no longer presents the problem and we see none in our
book. It's hard to know from the book itself whether the lack of problems is
happy coincidence or not, but the test is quite clear.

Is this patch to be expected in the 1.1 final release?

Undying gratitude,

rjs




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/spurious-indentation-with-small-text-lose-tp36563p36730.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: spurious indentation with (small) text lose SOLVED

2012-08-29 Thread Glenn Adams
On Thu, Aug 30, 2012 at 7:40 AM, rsargent rsarg...@xmission.com wrote:

 I am happy to report (rather belatedly I'm afraid) that the patch has done
 the trick.

 The test fo supplied no longer presents the problem and we see none in our
 book. It's hard to know from the book itself whether the lack of problems
 is
 happy coincidence or not, but the test is quite clear.

 Is this patch to be expected in the 1.1 final release?


First, someone needs to open a bug and submit a patch against the bug.