docs/93966: Better RTF support & CJK TeX support of the port textproc/docproj

Intron intron at intron.ac
Wed Mar 1 02:20:09 UTC 2006


>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:



More information about the freebsd-doc mailing list