Bug 56011
Summary: | docbook2rtf produces bad rtf | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Will Backman <whb> | ||||||
Component: | docbook-utils | Assignee: | Tim Waugh <twaugh> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.2 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2001-11-14 17:18:13 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Will Backman
2001-11-10 16:58:26 UTC
Which stylesheet are you using? I thought this was fixed already when bug #49677 got closed. Can you give me an example document that renders badly for you? By the way, I don't think AbiWord's RTF filter is very resilient.. Created attachment 37265 [details]
sample docbook that fails to create rtf
I don't know what stytle sheet I am usung. I just create the docbook file and then run the "stadard" tool, docbook2rtf. I guess I am getting the defaults. Okay, here's what I see when I view the RTF in Ted (a GPL RTF editor): Page i, book title, "IS Operations Manual". Page ii blank except for header. Page iii, table of contents showing the chapter and its two sections. Page 1 then looks like this: Chapter 1. Guiding Principals Organizational Goals This is a test paragraph under this section of this chapter. [etc] Departmental Goals This is another paragraph [etc] AbiWord unsurprisingly doesn't import the RTF file correctly (AbiWord is bad at RTF as far as I understand it). Do I need to view the RTF file in Word 2000 to see the problem? Another thing to try is 'docbook2rtf -d none ...'. Let me know if that produces any better RTF output. docbook2rtf -d none ... fixes it. Without that "-d none", MS Word2000 showed all the pages with text starting half way down the page. Is this a bug, or just a different setting. Your call I guess. Sounds like a page margins problem in the stylesheet. BUT, those margins work fine for non-RTF output. Perhaps it's an openjade RTF backend bug. I'll need to investigate a bit further. Thanks for the feedback. Okay, the last work-around in this area involved tweaking the %bottom-margin%; this problem seems to be related to the %top-margin%. I will attach a modified stylesheet that I'd like you to try. Save it as 'margin.dsl', and use 'docbook2rtf -d margin.dsl ...' to try it out. Let me know if that corrects the problem. Thanks. Created attachment 37322 [details]
margin.dsl
The new margins.dsl produced rtf that MSWord2000 liked. It did produce an error during compile, though. I ran "docbook2rtf -d margin.dsl secpol.docbook" Error was: jade:margin.dsl:510:2:E: too many arguments for function Okay, great. Yes, the error that you saw was my fault, oops. Fixed in docbook-utils 0.6.9-9. |