From owner-freebsd-doc@FreeBSD.ORG Wed Mar 1 02:20:09 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F24AF16A420 for ; Wed, 1 Mar 2006 02:20:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7043D43D53 for ; Wed, 1 Mar 2006 02:20:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k212K71B012106 for ; Wed, 1 Mar 2006 02:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k212K7r9012105; Wed, 1 Mar 2006 02:20:07 GMT (envelope-from gnats) Resent-Date: Wed, 1 Mar 2006 02:20:07 GMT Resent-Message-Id: <200603010220.k212K7r9012105@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Intron Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E52316A420 for ; Wed, 1 Mar 2006 02:19:15 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 071C343D48 for ; Wed, 1 Mar 2006 02:19:15 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k212JEHM082160 for ; Wed, 1 Mar 2006 02:19:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k212JEFr082158; Wed, 1 Mar 2006 02:19:14 GMT (envelope-from nobody) Message-Id: <200603010219.k212JEFr082158@www.freebsd.org> Date: Wed, 1 Mar 2006 02:19:14 GMT From: Intron To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: docs/93966: Better RTF support & CJK TeX support of the port textproc/docproj X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 02:20:09 -0000 >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 ) 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 @@ -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: