DO NOT REPLY [Bug 38257] New: - non-SPACE white space chars are not treated as whitespace in footnote-tag

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38257.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38257

   Summary: non-SPACE white space chars are not treated as
whitespace in footnote-tag
   Product: Fop
   Version: 0.91
  Platform: PC
OS/Version: Windows 2000
Status: NEW
  Severity: minor
  Priority: P4
 Component: pdf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


If the fo:inline producing the footnote-text-mark inside a footnote-tag contains
white space which is not a SPACE #x20;, it is recognizable in the pdf-output.
A newline char produces a line-break, a tab char even a '#' (looks like number
sign).

In AWT-output, the line-break-issue still remains.

V0.20.5 does not have this problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38257] - non-SPACE white space chars are not treated as whitespace in footnote-tag

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38257.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38257





--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 10:29 ---
Created an attachment (id=17410)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17410action=view)
Source xsl fo-tree

Several examples of mishandled white-space in footnote-tag

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38257] - non-SPACE white space chars are not treated as whitespace in footnote-tag

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38257.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38257


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17411|pdf-Result  |pdf-Result of former fo-tree
description||#




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38257] - non-SPACE white space chars are not treated as whitespace in footnote-tag

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38257.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38257


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #17411|pdf-Result of former fo-tree|pdf-Result of former fo-tree
description|#   |#17410




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


Re: svn commit: r367395 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java

2006-01-13 Thread Manuel Mall
On Fri, 13 Jan 2006 08:01 am, Manuel Mall wrote:
 On Fri, 13 Jan 2006 12:49 am, Andreas L Delmelle wrote:
  On Jan 12, 2006, at 01:14, Manuel Mall wrote:
   On Thu, 12 Jan 2006 05:34 am, Andreas L Delmelle wrote:
   snip /
   without your patch I cannot really replicate this. When I run
   through the debugger now I can see the space being given from the
   FO to the TextLayoutManager (look at the textarray in the TextLM
   constructor) therefore to me its still a refinement issue. But if
   your latest modifications fixes that then I would need that patch
   to further investigate.
 
  Try the diff in attach (modifications to XMLWhiteSpaceHandler and
  LineLayoutManager)

 Applied the diff but it didn't change my observation in the debugger.
 The extra space you noticed is coming from the FO. Therefore IMO the
 patch is not quite doing what you would like it to do. I haven't
 looked at your code yet.

Andreas,

The following change in XMLWhiteSpaceHandler
 (/*nonWhiteSpacePresent ||*/ nextChild != null)) 
seems to fix it. That is I just commented out the test for 
nonWhiteSpacePresent. I do not fully understand the implications of 
this change. I'll leave it up to you to further explore.

 Manuel

Manuel


FOPDEV.org

2006-01-13 Thread Peter B. West

Fop-devs,

What have you been hiding?

http://www.fopdev.org/

Peter


smime.p7s
Description: S/MIME Cryptographic Signature


DO NOT REPLY [Bug 38263] New: - NullPointerException at LineLayoutManager.findHyphenationPoints

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38263

   Summary: NullPointerException at
LineLayoutManager.findHyphenationPoints
   Product: Fop
   Version: 0.90
  Platform: Other
OS/Version: Windows 2000
Status: NEW
  Severity: normal
  Priority: P2
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


in the source for 0.90 alpha 1:

org.apache.fop.layoutmgr.inline.LineLayoutManager line 1481 reads

 currLM.getWordChars(sbChars, firstElement.getPosition());

This causes a NullPointer exception because currLM never gets a chance to be 
initialised. 

line 1466 reads 

if (firstElement.getLayoutManager() != currLM)

If currLM is still null, and firstElement.getLayoutManager() is also null, then 
currLM will not be initialised by the content of the if statement.

A quick fix seems to be replacing

- if (firstElement.getLayoutManager() != currLM)

with 

+ if (currLM == null || firstElement.getLayoutManager() != currLM)

This has cured the problem with my test.

I attach the FO file that reproduce the problem.
It could be that the syntax I used is not correct, in which case I would 
appreciate comments on how to do it bettwe.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38263] - NullPointerException at LineLayoutManager.findHyphenationPoints

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38263





--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 18:31 ---
Created an attachment (id=17418)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17418action=view)
FO sample that reproduce the NullPointer exception


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38264] - linefeed-treatment=preserve hyphenate=true : INCORRECT + Duplicates the text!!!

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38264.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38264





--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 19:32 ---
Created an attachment (id=17419)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17419action=view)
an FO file that demonstrates the problem.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38264] - linefeed-treatment=preserve hyphenate=true : INCORRECT + Duplicates the text!!!

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38264.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38264





--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 19:34 ---
Created an attachment (id=17420)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17420action=view)
the PDF output of the hyphen2.fo


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


Re: svn commit: r368462

2006-01-13 Thread Simon Pepping
On Fri, Jan 13, 2006 at 07:34:40AM +0800, Manuel Mall wrote:
 On Fri, 13 Jan 2006 04:40 am, [EMAIL PROTECTED] wrote:
  Author: spepping
  Date: Thu Jan 12 12:40:08 2006
  New Revision: 368462
 
  xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/FromParentFunct
 ion.java (original) +++
  xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/FromParentFunct
 ion.java Thu Jan 12 12:40:08 2006 @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999-2004 The Apache Software Foundation.
  + * Copyright 1999-2006 The Apache Software Foundation.
*
 I know this is very picky but shouldn't this be written as:
 
 Copyright 1999-2004, 2006 The Apache Software Foundation.
 
 Unless there was a change to the file in 2005 (see 
 http://www.apache.org/dev/apply-license.html)?

I thought of it when I made the change, but I did not know of any
pertinent rule.

At the page you link to, I suppose you aim at this phrase:

 Source files contributed to or developed as part of an ASF project
 should begin with a copyright notice like
 
Copyright 2004 The Apache Software Foundation.
 or
Copyright 1999-2004 The Apache Software Foundation.
 or
Copyright 2002,2004 The Apache Software Foundation.
 
 where the years given start with the first publication year of the
 file contents (the authored expression) and include a range of years
 for each year that new significant content (derivative work) is
 published within the file. Since the ASF publishes its code in public
 source code modules (CVS and Subversion), we generally want to include
 a range of years starting with the year of origin.

It is quite equivocal for me. On the one hand it speaks about new
significant content, which would mean: leave out 2005. On the other it
speaks about a range of years due to the public accessibility (meaning
continuous publication?), which would mean: 1999-2006.

Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl



DO NOT REPLY [Bug 38257] - non-SPACE white space chars are not treated as whitespace in footnote-tag

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38257.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38257


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 21:11 ---
The reported result is indeed produced by the latest unstable release, version
0.91beta. The output is OK with the latest code from the Subversion repository
(currently at revision 367760).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 635] - Doesn't support id= attribute in fo:page-sequence

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=635.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=635


[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|__UNKNOWN__ |fop-
   ||[EMAIL PROTECTED]
 Status|REOPENED|NEW




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38263] - NullPointerException at LineLayoutManager.findHyphenationPoints

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38263


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 21:16 ---
The NPE is indeed thrown in version 0.90alpha1. The problem is no longer present
in the latest release, version 0.91beta.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 38264] - linefeed-treatment=preserve hyphenate=true : INCORRECT + Duplicates the text!!!

2006-01-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38264.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38264





--- Additional Comments From [EMAIL PROTECTED]  2006-01-13 21:21 ---
This problem is also present in subversion HEAD, rev. 367760

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


Re: FOPDEV.org

2006-01-13 Thread Andreas L Delmelle

On Jan 13, 2006, at 14:09, Peter B. West wrote:


Fop-devs,

What have you been hiding?


OK, I give up. I'm actually forty years older than I look... :-)

Cheers,

Andreas



Re: svn commit: r367395 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java

2006-01-13 Thread Andreas L Delmelle

On Jan 13, 2006, at 15:47, Manuel Mall wrote:


Applied the diff but it didn't change my observation in the debugger.
The extra space you noticed is coming from the FO. Therefore IMO the
patch is not quite doing what you would like it to do. I haven't
looked at your code yet.


Andreas,

The following change in XMLWhiteSpaceHandler
 (/*nonWhiteSpacePresent ||*/ nextChild !=  
null))

seems to fix it.


OK. I'll have a closer look at it this weekend

Cheers,

Andreas