[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-dev
Subject: DO NOT REPLY [Bug 23985] New: -
From: bugzilla () apache ! org
Date: 2003-10-21 23:35:43
[Download RAW message or body]
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: fop-dev@xml.apache.org
ReportedBy: glenmazza@yahoo.com
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic