Bug 93965

Summary: Generate PNG image embedded RTF with the new port chinese/docproj
Product: Documentation Reporter: intron
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description intron 2006-03-01 02:10:02 UTC
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} ...")
Comment 1 Xin LI freebsd_committer freebsd_triage 2006-05-29 19:39:01 UTC
State Changed
From-To: open->closed

Committed long ago.  Thanks!