DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23985>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23985

Hyphenation Problems with filenames, numbers

           Summary: Hyphenation Problems with filenames, numbers
           Product: Fop
           Version: all
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: page-master/layout
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Robert Day has noticed problems with the hyphenation of filenames involving 
slashes.  

Posts:
http://marc.theaimsgroup.com/?l=fop-user&m=106304392716820&w=2
http://marc.theaimsgroup.com/?l=fop-user&m=106304843423025&w=2
http://marc.theaimsgroup.com/?l=fop-user&m=106667426521871&w=2
http://marc.theaimsgroup.com/?l=fop-user&m=106668538903434&w=2

"/mydir/myfile /mydir/myfile2" does not become
/mydir/myfile 
/mydir/myfile2

but
/mydir/myfile /
mydir/myfile2

It appears the hyphenation rules need to place the forward slash on the next 
line where the immediate character preceding the slash is white space or 
punctuation.

This change would keep:

and/or
--> 
and/
or     (correct)

and also will let 

mydir/myfile2
--->
mydir/
myfile2  (correct)

but will let

myfile, /mydir/myfile2
--->
myfile, 
/mydir/myfile2

1.) Maintenance hyphenation logic (dates from Dec. 2000) only takes care of 
the "and/or" case, not the ", /filename" case. 

See:
http://cvs.apache.org/viewcvs.cgi/xml-
fop/src/org/apache/fop/layout/Attic/LineArea.java?annotate=1.26, line 795 - 800.

2.) Production branch logic has the same problem with both hyphens and slashes, 
e.g., a negative number (say, -1.234) is being split like this:

-
1.234.

Head's canBreakBefore() method (line 95, lines 187-192 below) needs fixing for 
both - and /.

See:
http://cvs.apache.org/viewcvs.cgi/xml-
fop/src/java/org/apache/fop/layoutmgr/TextLayoutManager.java?annotate=1.5

Reply via email to