| Summary: | Generate PNG image embedded RTF with the new port chinese/docproj | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | intron | ||||
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed Committed long ago. Thanks! |
I have tested my patch and the new tool "fixrtf" for Chinese, English, French and German "FreeBSD Handbook", and they are all right in OpenOffice 2.0. What's in my patch for doc/share/mk/doc.docbook.mk: 1. Let Jade/OpenJade find all PNG images("SGMLFLAGS+= -D ...") so that Jade/OpenJade can generate correct links to PNG images in RTF. This is a key premise to generate PNG embedded RTF. 2. Let the format "rtf.tar" retire. See comments of revision 1.115 on http://www.freebsd.org/cgi/cvsweb.cgi/doc/share/mk/doc.docbook.mk 3. Induct a new tool "fixrtf" from the port chinese/docproj, setting its parameters. 4. Rename RTF directly generated by Jade/OpenJade as ${DOC}.rtf-nopng. Add ${DOC}.rtf-nopng into ${CLEANFILE}, execute "fixrtf" to convert no PNG embedded RTF generated by Jade/OpenJade (${DOC}.rtf-nopng) into PNG embedded RTF (${DOC}.rtf). Additional fixes: 1. A more precise expression than my previous ("GEN_INDEX_SGML_CMD?= ...") 2. The third pass of PDFJadeTeX for oriental languages probably returns with exit code 1, but the product is already somewhat acceptable. ("-${PDFJADETEX_CMD} ...")