[Bug 703489] New: FOP: Problems with Tables
https://bugzilla.novell.com/show_bug.cgi?id=703489 https://bugzilla.novell.com/show_bug.cgi?id=703489#c0 Summary: FOP: Problems with Tables Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Documentation AssignedTo: thomas.schraitle@novell.com ReportedBy: taroth@novell.com QAContact: ke@novell.com Found By: Documentation Blocker: --- Created an attachment (id=438024) --> (http://bugzilla.novell.com/attachment.cgi?id=438024) HA Guide, built with FOP +++ This bug was initially created as a clone of Bug #703482 +++ When building the HA Guide with FOP, I noticed the following issues for tables: 1. Text of columns is sometimes printed in overlapping fashion and thus unreadable, see for example Table 8.2 (p.130 in the electronic version of the PDF). 2. FOP does not seem to honor "color width" attributes set to tables (check the column widths of the tables in the XEP-built version, that's a difference). 3. the topmost list item on p. 60 in the electronic version of the PDF (Table 4.2 continued) seems to be glued to the line of the table head (probably more of a layout issue of list item than of tables, but anyway) Maybe the 1. problem is also related to missing hyphenation and/or to the 2. problem described above. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c1
--- Comment #1 from Tanja Roth
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c2
Tanja Roth
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c3
--- Comment #3 from Tanja Roth
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c4
Thomas Schraitle
1. Text of columns is sometimes printed in overlapping fashion and thus unreadable, see for example Table 8.2 (p.130 in the electronic version of the PDF).
After further investigation, this has nothing to do with the table code itself. It is a hyphenation problem. I guess, FOP's hyphenation algorithm doesn't hyphenate when it's an all upper-case word.
2. FOP does not seem to honor "column width" attributes set to tables (check the column widths of the tables in the XEP-built version, that's a difference).
The column width is handled by XSLT, not by FOP. As such, FOP just gets an instruction "make this column 3cm wide" or "make this column 3 times wider than the first column." If the calculation of the column width would be broken, so would be the PDF built by XEP. In the above table 8.2, I could successfully make the columns wider.
3. the topmost list item on p. 60 in the electronic version of the PDF (Table 4.2 continued) seems to be glued to the line of the table head (probably more of a layout issue of list item than of tables, but anyway)
I touched the table code some weeks ago. This seems to be gone now.
Maybe the 1. problem is also related to missing hyphenation and/or to the 2. problem described above.
I suspect, this is a "corner case" as all the characters in column 2 are upper-case. Maybe we have to add some "break here" hints. I will investigate that next week. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c5
Thomas Schraitle
After further investigation, this has nothing to do with the table code itself. It is a hyphenation problem. I guess, FOP's hyphenation algorithm doesn't hyphenate when it's an all upper-case word.
and:
I suspect, this is a "corner case" as all the characters in column 2 are upper-case. Maybe we have to add some "break here" hints.
I will investigate that next week.
After some investigation, a SOFT HYPHEN (U+00xAD) will do the trick. For example, the following word OCF_NOT_RUNNING don't break in a narrow table column with FOP. However, just add soft hyphens add the respective positions: OCF_NOT_RUNNING I think I can close this bug. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c6
--- Comment #6 from Tanja Roth
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c7
Thomas Schraitle
https://bugzilla.novell.com/show_bug.cgi?id=703489
https://bugzilla.novell.com/show_bug.cgi?id=703489#c8
--- Comment #8 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com