Date: Wed, 1 Mar 2006 02:19:14 GMT From: Intron <intron@intron.ac> To: freebsd-gnats-submit@FreeBSD.org Subject: docs/93966: Better RTF support & CJK TeX support of the port textproc/docproj Message-ID: <200603010219.k212JEFr082158@www.freebsd.org> Resent-Message-ID: <200603010220.k212K7r9012105@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93966 >Category: docs >Synopsis: Better RTF support & CJK TeX support of the port textproc/docproj >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Mar 01 02:20:06 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Intron >Release: 7.0-CURRENT >Organization: China >Environment: FreeBSD celeron 7.0-CURRENT FreeBSD 7.0-CURRENT >Description: Add some dependencies for the port textproc/docproj to obtain better RTF support & CJK TeX support. The new port chinese/docproj contains two small tools. Since "fixrtf" is useful for all languages, it can be considered as a routine dependency of textproc/docproj. 1."fixrtf" 1) Embed PNGs into RTF. (Option: -p) 2) Embed FreeBSD-specific information into RTF, such as organization name, building time. But unfortunately, so far only Microsoft Word can read them. In contrast, Microsoft Word Viewer and OpenOffice even cannot read this kind of information from RTF created by Microsoft Word and OpenOffice. (Option: -i) 3) Do some locale-specific fixing. (Option: -e <encoding>) 2."cjktexsty" This tool is used for those languages that TeX cannot support natively. It converts TeX source generated by Jade/OpenJade into what CJK-LaTeX can process. CJK-LaTeX and this tool support UTF-8, which means in a sense they are fit for all languages, NOT ONLY Chinese/Japanese/Korean. In addition, to make CJK PostScript/PDF and plain text, the port CJK-LaTeX (chinese/CJK) and HTML2TEXT (textproc/html2text) are required. >How-To-Repeat: >Fix: --- Makefile.orig Sun Jan 1 16:10:22 2006 +++ Makefile Wed Mar 1 08:19:58 2006 @@ -7,7 +7,7 @@ PORTNAME= docproj PORTVERSION= 1.14 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= # empty DISTFILES= # empty @@ -32,7 +32,8 @@ ${LOCALBASE}/share/sgml/iso8879:${PORTSDIR}/textproc/iso8879 \ ${LOCALBASE}/share/xml/dtd/xhtml/xhtml.soc:${PORTSDIR}/textproc/xhtml \ ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \ - ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml + ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml \ + ${LOCALBASE}/bin/fixrtf:${PORTSDIR}/chinese/docproj .include <bsd.port.pre.mk> @@ -53,6 +54,15 @@ .if defined(WITH_JADETEX) && ${WITH_JADETEX} == yes RUN_DEPENDS+= ${LOCALBASE}/share/texmf/web2c/jadetex.fmt:${PORTSDIR}/print/jadetex RUN_DEPENDS+= dvips:${PORTSDIR}/print/dvipsk-tetex + +.if empty(WITH_JADETEX_CJK) +IS_INTERACTIVE= "user must set WITH_JADETEX_CJK variable to 'yes' or 'no'" +.endif +.if defined(WITH_JADETEX_CJK) && ${WITH_JADETEX_CJK} == yes +RUN_DEPENDS+= gbklatex:${PORTSDIR}/chinese/CJK +RUN_DEPENDS+= html2text:${PORTSDIR}/textproc/html2text +.endif + .endif .if ${PERL_LEVEL} < 500804 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603010219.k212JEFr082158>