|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
|
|
|
Re: Wrong line number in inline overflow messages ?On Jun 17, 2008, at 10:21, patrice.rosnet@... wrote:
> Sorry I don't really understand > I understand that the line number corresponds to a line in the PDF > This number seems to correspond to the position of the overflowing > line inside the PDF paragraph but FROM THE END of the paragraph ? > Is it true ? and why position from the end of the paragraph ? This is indeed confusing. Surprising that no one noticed this any sooner. For the devs: It seems to be related to the fact that the LineLayoutManager adds the computed breaks for the paragraphs in reverse order. The warning originates at LineLM line #390. Looking closer, at line #370 is the clue: addedPositions will be 0 for the last line in a paragraph, and (#lines - 1) for the first... Guess we'll have to look into that. Thanks for bringing this to our attention! Cheers Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: Wrong line number in inline overflow messages ?I'm sorry, Patrice. I didn't notice that the line numbers are all wrong.
The wrong variable was used to determine the line number. I've fixed this in the 0.95 branch and in Trunk: http://svn.apache.org/viewvc?rev=668570&view=rev http://svn.apache.org/viewvc?rev=668576&view=rev On 17.06.2008 10:21:23 patrice.rosnet wrote: > > Hello Jeremias > > Sorry I don't really understand > I understand that the line number corresponds to a line in the PDF > This number seems to correspond to the position of the overflowing line inside the PDF paragraph but FROM THE END of the paragraph ? > Is it true ? and why position from the end of the paragraph ? > > Thanks for your help > > > ------------------------------------------------------------ > > [WARN] Line 4 of a paragraph overflows the available area by 27311 millipoints. (See position 10:58) > [WARN] Line 3 of a paragraph overflows the available area by 31319 millipoints. (See position 16:58) > [WARN] Line 2 of a paragraph overflows the available area by 28643 millipoints. (See position 22:58) > > ------------------------------------------------------------ > <?xml version="1.0" encoding="iso-8859-1"?> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="SPM" page-height="105mm" page-width="74mm" margin="5mm"> > <fo:region-body background-color="yellow"/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="SPM" > > <fo:flow flow-name="xsl-region-body"> > <fo:block background-color="blue" space-before="10pt"> > <fo:inline keep-together.within-line="always" background-color="green">1st line of the block WITH OVERFLOW</fo:inline> > <fo:inline keep-together.within-line="always" background-color="red">2nd line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="pink">3rd line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="white">4th line of the block</fo:inline> > </fo:block> > <fo:block background-color="blue" space-before="10pt"> > <fo:inline keep-together.within-line="always" background-color="green">1st line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="red">2nd line of the block WITH OVERFLOW</fo:inline> > <fo:inline keep-together.within-line="always" background-color="pink">3rd line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="white">4th line of the block</fo:inline> > </fo:block> > <fo:block background-color="blue" space-before="10pt"> > <fo:inline keep-together.within-line="always" background-color="green">1st line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="red">2nd line of the block</fo:inline> > <fo:inline keep-together.within-line="always" background-color="pink">3rd line of the block WITH OVERFLOW</fo:inline> > <fo:inline keep-together.within-line="always" background-color="white">4th line of the block</fo:inline> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > ------------------------------------------------------------ > > > ----- Mail Original ----- > De: "Jeremias Maerki" <dev@...> > Ã: fop-users@... > Cc: fop-dev@... > Envoyé: Lundi 16 Juin 2008 17:43:15 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: Wrong line number in inline overflow messages ? > > "Line 5 of a paragraph" means line 5 inside one of the effective > paragraphs coming out of the layout process (i.e. in the PDF). The > position in your source document (to find the problematic paragraph) is > found at the end of the message: "See position 19:15" (format: > <line>:<column>, i.e. line 19, column 15 in your FO file). > > Tip: Always use keep-together.within-line="always" or > keep-together.within-column="always" instead of keep-together="always" > to avoid unwanted side-effects. > > Please send future questions to fop-users@.... Thank > you! > > On 16.06.2008 15:19:49 patrice.rosnet wrote: > > > > Hello, > > I'm testing inline overflow messages with FOP-trunk (668084). > > But I don't understand value of line number. > > > > With the following FO, I get those messages: > > [WARN] Line 5 of a paragraph overflows the available area by more than 50 points. (See position 16:15) > > [WARN] Line 5 of a paragraph overflows the available area by more than 50 points. (See position 19:15) > > [WARN] Line 1 of a paragraph overflows the available area by more than 50 points. (See position 22:15) > > [WARN] Line 9 of a paragraph overflows the available area by more than 50 points. (See position 25:15) > > > > But in the PDF rendering I don't find the same line number: > > fo:block (position 16:15) : overflow in line 1 of the block ? > > fo:block (position 19:15) : overflow in line 2 of the block ? > > fo:block (position 22:15) : overflow in line 5 of the block ? > > fo:block (position 25:15) : overflow in line 14 of the block ? > > > > Do you have some explanations? > > > > Thanks > > Patrice > > > > > > ------------------------------------------------------------- > > <?xml version="1.0" encoding="iso-8859-1"?> > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > <fo:layout-master-set> > > > > <fo:simple-page-master master-name="SPM" page-height="300mm" page-width="148mm" margin="7mm 4mm 7mm 4mm"> > > <fo:region-body margin="22mm 0 12mm 0" background-color="yellow"/> > > </fo:simple-page-master> > > </fo:layout-master-set> > > > > <fo:page-sequence master-reference="SPM" > > > <fo:flow flow-name="xsl-region-body"> > > <fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>=== inline ===</fo:block> > > <fo:block><fo:inline keep-together="always" font-style="italic">keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together</fo:inline> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Text Text Text Text <fo:inline keep-together="always" font-style="italic">keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together</fo:inline> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text <fo:inline keep-together="always" font-style="italic">keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together</fo:inline></fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text <fo:inline keep-together="always" font-style="italic">keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together keep-together</fo:inline> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</fo:block> > > <fo:block>Block</fo:block> > > <fo:block>Block</fo:block> > > </fo:block> > > </fo:flow> > > </fo:page-sequence> > > </fo:root> > > ------------------------------------------------------------- > > > > > Jeremias Maerki > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
| Free Forum Powered by Nabble | Forum Help |