You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/01/13 19:30:57 UTC
DO NOT REPLY [Bug 38264] New: - linefeed-treatment="preserve" hyphenate="true" : INCORRECT + Duplicates the text!!!
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
Summary: linefeed-treatment="preserve" hyphenate="true" :
INCORRECT + Duplicates the text!!!
Product: Fop
Version: 0.90
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: franck.schmidlin@anite.com
When combining the attributes linefeed-treatment="preserve" and
hyphenate="true", I get some really strange result.
In fact, it seems that both attribute are applied to the text in turn, which
DUPLICATES the text in the output. And both outputs are wrong...
I attach an example FO and the resulting PDF.
--
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!!!
Posted by bu...@apache.org.
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 spepping@leverkruid.nl 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.
DO NOT REPLY [Bug 38264] - Hyphenation does not play well with preserved linefeed-treatment or white-space-treatment
Posted by bu...@apache.org.
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 vincent.hennebert@anyware-tech.com 2007-12-13 08:43 -------
Created an attachment (id=21274)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21274&action=view)
Hyphens do not show up when white-space-treatment="preserve"
--
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] - Hyphenation does not play well with preserved linefeed-treatment or white-space-treatment
Posted by bu...@apache.org.
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
vincent.hennebert@anyware-tech.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|linefeed- |Hyphenation does not play
|treatment="preserve" |well with preserved
|hyphenate="true" : INCORRECT|linefeed-treatment or white-
|+ Duplicates the text!!! |space-treatment
------- Additional Comments From vincent.hennebert@anyware-tech.com 2007-12-13 08:41 -------
Another problem related to hyphenation and preserved white-space: when
white-space-treatment is set to "preserve", words are hyphenated correctly but
the hyphen does not show up.
--
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!!!
Posted by bu...@apache.org.
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 a_l.delmelle@pandora.be 2007-02-19 08:09 -------
Also interesting to note: if one encloses the content of the second block in testcase
'block_hyphenation_linefeed-preserve.xml' with an fo:inline, then
LineLayoutManager.findHyphenationPoints() throws a NullPointerException (line 1486), due to an
Update being added earlier which has null for an inlineLM...
Looking closer, I'm wondering whether the strange effect of duplication may have something to with:
a) a block containing preserved linefeeds generates a Paragraph of Paragraphs
b) findOptimalBreakingPoints() is called in a loop that iterates /backwards/ over the sub-paragraphs,
while
c) findHyphenationPoints() iterates /forwards/ over each sub-paragraph individually
This opens up the possibility that findHyphenationPoints() adds Updates to the updateList with indices
that refer to the last sub-paragraph, and those indices are later, in the outer loop, interpreted as
positions in the first sub-paragraph --or worse, in the super-paragraph?
--
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!!!
Posted by bu...@apache.org.
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 franck.schmidlin@anite.com 2006-01-13 19:32 -------
Created an attachment (id=17419)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17419&action=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] - Hyphenation does not play well with preserved linefeed-treatment or white-space-treatment
Posted by bu...@apache.org.
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
a_l.delmelle@pandora.be changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xuanngolist@yahoo.ca
------- Additional Comments From a_l.delmelle@pandora.be 2007-12-24 01:30 -------
*** Bug 44124 has been marked as a duplicate of this bug. ***
--
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!!!
Posted by bu...@apache.org.
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 franck.schmidlin@anite.com 2006-01-13 19:34 -------
Created an attachment (id=17420)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17420&action=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.