ports/55406: ports/chinese/mozilla-tclp update to 1.4
Hung-Te Lin
piaip at csie.ntu.edu.tw
Sat Aug 9 02:00:32 UTC 2003
>Number: 55406
>Category: ports
>Synopsis: chinese/mozilla-tclp update to 1.4
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 08 19:00:29 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Hung-Te Lin
>Release: FreeBSD 4.7-RELEASE i386
>Organization:
Mozilla L10N: Traditional Chinese
>Environment:
System: FreeBSD pita20.org.tw 4.7-RELEASE FreeBSD 4.7-RELEASE #5: Sat Aug 09 09:56:42 2003 root at pita20.org.tw:/usr/src/sys/compile/pita20 i386
>Description:
update port: chinese/mozilla-tclp update to 1.4
>How-To-Repeat:
>Fix:
diff -Nur mozilla-tclp.orig/Makefile mozilla-tclp/Makefile
--- mozilla-tclp.orig/Makefile Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/Makefile Sat Aug 9 09:38:52 2003
@@ -0,0 +1,115 @@
+# New ports collection makefile for: zh-mozilla-tclp
+# Date created: 07 March 2001
+# Whom: Jing-Tang Keith Jang <keith at FreeBSD.org>
+#
+# $FreeBSD: /repoman/r/pcvs/ports/chinese/mozilla-tclp/Makefile,v 1.17 2003/05/07 00:11:12 kris Exp $
+#
+# This is a rewritten 'universal' version port Makefile.
+# We will detect the Mozilla you installed and try to fetch correct
+# version of language pack.
+#
+# Just install your favorite Mozilla first ( ports/www/mozilla/ or
+# ports/www/mozilla-devel/ or ports/www/mozilla-vendor ) and then
+# install mozilla-tclp. The language pack installed will match your
+# Mozilla installation. But remember that if you upgrade your Mozilla,
+# you have to come and reinstall mozilla-tclp again.
+#
+# If this version is out-of-date, please visit
+# http://www.csie.ntu.edu.tw/~r91034/mozilla/download.html
+# And just download and install there.
+#
+
+PORTNAME= mozilla
+PORTVERSION= 1.4
+CATEGORIES= chinese www
+MASTER_SITES= http://www.csie.ntu.edu.tw/~b7506051/mozilla/langpack/distfiles/
+# Same as ftp://ftp.mozilla.org/pub/mozilla/l10n/lang/$MOZVER/langzhtw.xpi.
+# Use this to avoid checksum problems.
+PKGNAMESUFFIX= -tclp
+DISTNAME= ${PORTNAME}-langzhtw-${MOZRV}
+EXTRACT_SUFX= .xpi
+#NO_CHECKSUM= YES
+#IGNOREFILES= ${PORTNAME}-langzhtw-${MOZRV}${EXTRACT_SUFX}
+
+MAINTAINER= piaip at csie.ntu.edu.tw
+COMMENT= Mozilla Traditional Chinese Language Pack (TCLP)
+
+FETCH_DEPENDS= ${PREFIX}/lib/mozilla/mozilla:${PORTSDIR}/www/mozilla
+BUILD_DEPENDS= ${PREFIX}/lib/mozilla/regxpcom:${PORTSDIR}/www/mozilla
+RUN_DEPENDS= mozilla:${PORTSDIR}/www/mozilla
+
+WRKSRC= ${WRKDIR}/bin
+
+USE_X_PREFIX= yes
+USE_ZIP= yes
+EXTRACT_BEFORE_ARGS= -qo
+
+MOZRV= `${SH} ${FILESDIR}/mozver ${SED} ${PREFIX}/lib/mozilla/mozilla`
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 400020
+MOZILLA_SH= mozilla.noxpg4
+.else
+MOZILLA_SH= mozilla.xpg4
+.endif
+
+pre-fetch:
+ @${ECHO_MSG} "=======================================================>"
+ @${ECHO_MSG} "Detecting your Mozilla revision... "
+ @${ECHO_MSG} "Revision=${MOZRV}"
+ @${ECHO_MSG} "We are going to fetch language pack for this revision."
+ @${ECHO_MSG} "* If you see incorrect revision in the Revision message,"
+ @${ECHO_MSG} " please upgrade or update your Mozilla installation."
+ @${ECHO_MSG} "* If you see error messages of 'Error code 1' like "
+ @${ECHO_MSG} " 'distinfo is out of date' or 'spelled incorrectly',"
+ @${ECHO_MSG} " you may try to 'make NO_CHECKSUM=yes'"
+ @${ECHO_MSG} "* If you then got 'file not found' on MASTERSITE, that"
+ @${ECHO_MSG} " means you've installed a newer or unsupported revision"
+ @${ECHO_MSG} " of Mozilla that doesn't have any language packs (yet)."
+ @${ECHO_MSG} "=======================================================<"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/defaults/pref
+ ${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref/.
+ ${CP} ${FILESDIR}/user.js ${WRKSRC}/defaults/profile/.
+ ${CP} ${FILESDIR}/user.js ${WRKSRC}/defaults/profile/TW/.
+ # fix up file permission if broken
+ ${FIND} ${WRKSRC} -type f -exec ${CHMOD} a+r-x {} \;
+ ${FIND} ${WRKSRC} -type d -exec ${CHMOD} a+r+x {} \;
+ #${CHMOD} -R a+rX ${WRKSRC}
+
+do-build:
+ ${SED} -e "s;@PREFIX@;${PREFIX};g" \
+ ${FILESDIR}/${MOZILLA_SH} > ${WRKDIR}/mozilla
+
+# The 'HOME=/tmp' was solving 1.0rc2 regxpcom bug
+
+do-install:
+ (cd ${PREFIX}/lib/mozilla; \
+ ${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
+ ${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
+ # backing up
+ (cd ${PREFIX}/lib/mozilla/chrome; \
+ ${MV} -f chrome.rdf chrome.rdf.orig; \
+ ${MV} -f installed-chrome.txt installed-chrome.txt.orig)
+ (cd ${PREFIX}/lib/mozilla/defaults/pref; \
+ ${MV} -f unix.js unix.js.orig)
+ (cd ${PREFIX}/lib/mozilla/searchplugins; \
+ ${MV} -f google.gif google.gif.orig; \
+ ${MV} -f google.src google.src.orig)
+ ${MV} -f ${PREFIX}/bin/mozilla ${PREFIX}/bin/mozilla.orig
+ # start installation
+ ${INSTALL_SCRIPT} ${WRKDIR}/mozilla ${PREFIX}/bin
+ (cd ${WRKSRC}; ${TAR} -cf - chrome defaults searchplugins) | \
+ ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ (cd ${PREFIX}/lib/mozilla/chrome; \
+ ${CP} installed-chrome.txt.orig installed-chrome.txt; \
+ ${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
+ # finalize chrome registeration
+ (cd ${PREFIX}/lib/mozilla; \
+ ${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
+ ${SETENV} HOME=/tmp LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff -Nur mozilla-tclp.orig/distinfo mozilla-tclp/distinfo
--- mozilla-tclp.orig/distinfo Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/distinfo Sat Aug 9 09:26:01 2003
@@ -0,0 +1,23 @@
+MD5 (mozilla-langzhtw-0.7.0.xpi) = cbbaaec3e1978b180d1c71f4e175db30
+MD5 (mozilla-langzhtw-0.8.0.xpi) = 1233c57a4422358f287342e9da18b6da
+MD5 (mozilla-langzhtw-0.8.1.xpi) = 1205e72fae7af2954f8417e9dc6d8d62
+MD5 (mozilla-langzhtw-0.9.1.xpi) = ab68f2518c4ffcb5d45e9a276ec46680
+MD5 (mozilla-langzhtw-0.9.4.xpi) = d7d83fc47e7bab321d70417dcbad5bcb
+MD5 (mozilla-langzhtw-0.9.5.xpi) = 3561fed7e28651dd4bdabc1fccc2307c
+MD5 (mozilla-langzhtw-0.9.6.xpi) = 837ac3f6807d49dde25676cf7d6e6bd6
+MD5 (mozilla-langzhtw-0.9.8.xpi) = 09c3f5600745b35a6f7387b3d755eb9f
+MD5 (mozilla-langzhtw-0.9.9.xpi) = d2da9362f9cdb15287412abbbd4b40c2
+MD5 (mozilla-langzhtw-1.0.0.xpi) = d0ce14b60fa524ad72f709f7e5be1493
+MD5 (mozilla-langzhtw-1.0.1.xpi) = 483fbe1f8a431ef407809706550bcef5
+MD5 (mozilla-langzhtw-1.0rc2.xpi) = cb324ce7a5944ee2945dbe08d5aec2b9
+MD5 (mozilla-langzhtw-1.0rc3.xpi) = 326157fc3b1de063b61a1007cc809a22
+MD5 (mozilla-langzhtw-1.1.xpi) = c043c3bb7ada9dcd612edf574a19f0dd
+MD5 (mozilla-langzhtw-1.2.1.xpi) = d35e9989c6e493e7a4994be983635db3
+MD5 (mozilla-langzhtw-1.2.xpi) = ecacdf24d0e7be9bc85f4bf0a0b32a11
+MD5 (mozilla-langzhtw-1.2b.xpi) = 82443e8dbf9e05ded9016656b7349298
+MD5 (mozilla-langzhtw-1.3a.xpi) = a56704f353b440f9a3b21cf83ba6a6ce
+MD5 (mozilla-langzhtw-1.4.xpi) = e6d268d98fe2798a98e3a5b0e8250e82
+MD5 (mozilla-langzhtw-N.6.0.xpi) = f32fb39741926a9d2f7020f3d932f8e6
+MD5 (mozilla-langzhtw-N.6.2.xpi) = 0474bc72fe570028428e6911ba1b7117
+MD5 (mozilla-langzhtw-N7.01.xpi) = 9ce60f5970f9fe102954a1996b7a49b6
+MD5 (mozilla-langzhtw-N7PR1.xpi) = 8273ecfc8231dfb153f40db8cb48f178
diff -Nur mozilla-tclp.orig/files/installed-chrome.txt mozilla-tclp/files/installed-chrome.txt
--- mozilla-tclp.orig/files/installed-chrome.txt Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/installed-chrome.txt Sat Aug 9 09:46:06 2003
@@ -0,0 +1,30 @@
+locale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/communicator-region/
+locale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/editor-region/
+locale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/global-region/
+locale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/messenger-region/
+locale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/navigator-region/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/autoconfig/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/communicator/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/content-packs/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/cookie/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/editor/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/global/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/help/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger-mdn/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger-smime/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/mozldap/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/navigator/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/necko/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/p3p/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/pipnss/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/pippki/
+locale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/wallet/
+locale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/communicator-platform/
+locale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/global-platform/
+locale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/navigator-platform/
+locale,install,url,jar:resource:/chrome/zh-optional.jar!/locale/zh-TW/inspector/
+locale,install,url,jar:resource:/chrome/zh-optional.jar!/locale/zh-TW/venkman/
+locale,install,url,jar:resource:/chrome/zh-optional.jar!/locale/zh-TW/chatzilla/
+locale,install,select,zh-TW
+locale,install,select,TW
diff -Nur mozilla-tclp.orig/files/mozilla.noxpg4 mozilla-tclp/files/mozilla.noxpg4
--- mozilla-tclp.orig/files/mozilla.noxpg4 Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/mozilla.noxpg4 Sat Aug 9 09:20:41 2003
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+LANG=zh_TW.Big5; export LANG
+
+cd @PREFIX@/lib/mozilla
+exec ./mozilla "$@"
diff -Nur mozilla-tclp.orig/files/mozilla.xpg4 mozilla-tclp/files/mozilla.xpg4
--- mozilla-tclp.orig/files/mozilla.xpg4 Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/mozilla.xpg4 Sat Aug 9 09:20:34 2003
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+LANG=zh_TW.Big5; export LANG
+LD_PRELOAD=/usr/lib/libxpg4.so.2; export LD_PRELOAD
+
+cd @PREFIX@/lib/mozilla
+exec ./mozilla "$@"
diff -Nur mozilla-tclp.orig/files/mozver mozilla-tclp/files/mozver
--- mozilla-tclp.orig/files/mozver Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/mozver Sat Aug 9 09:38:00 2003
@@ -0,0 +1,3 @@
+#!/bin/sh
+# this script is used to detect recent Mozilla revision only.
+[ -f $2 ] && $2 -v | $1 's/Mozilla //; s/,.*//'
diff -Nur mozilla-tclp.orig/files/unix.js mozilla-tclp/files/unix.js
--- mozilla-tclp.orig/files/unix.js Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/unix.js Sat Aug 9 09:20:20 2003
@@ -0,0 +1,345 @@
+/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: NPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Netscape Public License
+ * Version 1.1 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/NPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Roland Mainz <roland.mainz at informatik.med.uni-giessen.de>
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the NPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the NPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+pref("mail.empty_trash", false);
+
+// Handled differently under Mac/Windows
+pref("network.hosts.smtp_server", "localhost");
+pref("network.hosts.pop_server", "pop");
+pref("mail.check_new_mail", true);
+pref("browser.display.screen_resolution", 0); // System setting
+pref("browser.startup.license_accepted", "");
+pref("browser.cache.memory.capacity", 4096);
+pref("browser.cache.disk.capacity", 50000);
+pref("browser.ncols", 0);
+pref("browser.installcmap", false);
+pref("browser.drag_out_of_frame_style", 1);
+pref("mail.signature_file", "~/.signature");
+pref("mail.default_fcc", "~/nsmail/Sent");
+pref("news.default_fcc", "~/nsmail/Sent");
+pref("mailnews.reply_with_extra_lines", 0);
+pref("security.warn_accept_cookie", false);
+pref("editor.disable_spell_checker", false);
+pref("editor.dont_lock_spell_files", true);
+pref("editor.singleLine.pasteNewlines", 0);
+
+// Middle-mouse handling
+pref("middlemouse.paste", true);
+pref("middlemouse.contentLoadURL", true);
+pref("middlemouse.openNewWindow", true);
+pref("middlemouse.scrollbarPosition", true);
+
+// Clipboard behavior
+pref("clipboard.autocopy", true);
+
+pref("browser.urlbar.clickSelectsAll", false);
+
+// override double-click word selection behavior.
+pref("layout.word_select.stop_at_punctuation", false);
+
+// autocomplete keyboard grab workaround
+pref("autocomplete.grab_during_popup", true);
+pref("autocomplete.ungrab_during_mode_switch", true);
+
+// Most Unix people think modal pref windows are stupid:
+pref("browser.prefWindowModal", false);
+
+// turn off scrollbar snapping
+pref("slider.snapMultiplier", 0);
+
+// Unix only
+pref("mail.use_movemail", true);
+pref("mail.use_builtin_movemail", true);
+pref("mail.movemail_program", "");
+pref("mail.movemail_warn", false);
+pref("mail.sash_geometry", "");
+pref("news.cache_xover", false);
+pref("news.show_first_unread", false);
+pref("news.sash_geometry", "");
+pref("helpers.global_mime_types_file", "/etc/mime.types");
+pref("helpers.global_mailcap_file", "/etc/mailcap");
+pref("helpers.private_mime_types_file", "~/.mime.types");
+pref("helpers.private_mailcap_file", "~/.mailcap");
+pref("applications.telnet", "xterm -e telnet %h %p");
+pref("applications.tn3270", "xterm -e tn3270 %h");
+pref("applications.rlogin", "xterm -e rlogin %h");
+pref("applications.rlogin_with_user", "xterm -e rlogin %h -l %u");
+pref("applications.tmp_dir", "/tmp");
+// On Solaris/IRIX, this should be "lp"
+pref("print.print_command", "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
+pref("print.printer_list", ""); // list of printers, seperated by spaces
+pref("print.print_reversed", false);
+pref("print.print_color", true);
+pref("print.print_landscape", false);
+pref("print.print_paper_size", 0);
+
+// print_headerfooter_gap enables platforms to specify an extra "gap" in twips
+// between the H/F and the edge of the paper,
+// this is used by both Printing and Print Preview
+pref("print.print_headerfooter_gap", 60); // twips
+
+// print_extra_margin enables platforms to specify an extra gap or margin
+// around the content of the page for Print Preview only
+pref("print.print_extra_margin", 0); // twips
+
+pref("print.whileInPrintPreview", false);
+
+pref("font.allow_double_byte_special_chars", true);
+// font names
+
+// ar
+
+pref("font.name.serif.el", "misc-fixed-iso8859-7");
+pref("font.name.sans-serif.el", "misc-fixed-iso8859-7");
+pref("font.name.monospace.el", "misc-fixed-iso8859-7");
+
+pref("font.name.serif.he", "misc-fixed-iso8859-8");
+pref("font.name.sans-serif.he", "misc-fixed-iso8859-8");
+pref("font.name.monospace.he", "misc-fixed-iso8859-8");
+
+pref("font.name.serif.ja", "alias-fixed-jisx0208.1983-0");
+pref("font.name.sans-serif.ja", "alias-fixed-jisx0208.1983-0");
+pref("font.name.monospace.ja", "alias-fixed-jisx0208.1983-0");
+
+pref("font.name.serif.ko", "daewoo-mincho-ksc5601.1987-0");
+pref("font.name.sans-serif.ko", "daewoo-mincho-ksc5601.1987-0");
+pref("font.name.monospace.ko", "daewoo-mincho-ksc5601.1987-0");
+
+// th
+
+pref("font.name.serif.tr", "adobe-times-iso8859-9");
+pref("font.name.sans-serif.tr", "adobe-helvetica-iso8859-9");
+pref("font.name.monospace.tr", "adobe-courier-iso8859-9");
+
+pref("font.name.serif.x-baltic", "b&h-lucidux serif-iso8859-4");
+pref("font.name.sans-serif.x-baltic", "b&h-lucidux sans-iso8859-4");
+pref("font.name.monospace.x-baltic", "b&h-lucidux mono-iso8859-4");
+
+pref("font.name.serif.x-central-euro", "adobe-times-iso8859-2");
+pref("font.name.sans-serif.x-central-euro", "adobe-helvetica-iso8859-2");
+pref("font.name.monospace.x-central-euro", "adobe-courier-iso8859-2");
+
+pref("font.name.serif.x-cyrillic", "cronyx-times-koi8-r");
+pref("font.name.sans-serif.x-cyrillic", "cronyx-helvetica-koi8-r");
+pref("font.name.monospace.x-cyrillic", "cronyx-courier-koi8-r");
+
+pref("font.name.serif.x-unicode", "adobe-times-iso8859-1");
+pref("font.name.sans-serif.x-unicode", "adobe-helvetica-iso8859-1");
+pref("font.name.monospace.x-unicode", "adobe-courier-iso8859-1");
+
+pref("font.name.serif.x-user-def", "adobe-times-iso8859-1");
+pref("font.name.sans-serif.x-user-def", "adobe-helvetica-iso8859-1");
+pref("font.name.monospace.x-user-def", "adobe-courier-iso8859-1");
+
+pref("font.name.serif.x-western", "adobe-times-iso8859-1");
+pref("font.name.sans-serif.x-western", "adobe-helvetica-iso8859-1");
+pref("font.name.monospace.x-western", "adobe-courier-iso8859-1");
+
+pref("font.name.serif.zh-CN", "isas-song ti-gb2312.1980-0");
+pref("font.name.sans-serif.zh-CN", "isas-song ti-gb2312.1980-0");
+pref("font.name.monospace.zh-CN", "isas-song ti-gb2312.1980-0");
+
+// zh-TW
+
+pref("font.default", "serif");
+pref("font.size.variable.ar", 16);
+pref("font.size.fixed.ar", 12);
+
+pref("font.size.variable.el", 16);
+pref("font.size.fixed.el", 12);
+
+pref("font.size.variable.he", 16);
+pref("font.size.fixed.he", 12);
+
+pref("font.size.variable.ja", 14);
+pref("font.size.fixed.ja", 14);
+
+pref("font.size.variable.ko", 16);
+pref("font.size.fixed.ko", 16);
+
+pref("font.size.variable.th", 16);
+pref("font.size.fixed.th", 12);
+
+pref("font.size.variable.tr", 16);
+pref("font.size.fixed.tr", 12);
+
+pref("font.size.variable.x-baltic", 16);
+pref("font.size.fixed.x-baltic", 12);
+
+pref("font.size.variable.x-central-euro", 16);
+pref("font.size.fixed.x-central-euro", 12);
+
+pref("font.size.variable.x-cyrillic", 16);
+pref("font.size.fixed.x-cyrillic", 12);
+
+pref("font.size.variable.x-unicode", 16);
+pref("font.size.fixed.x-unicode", 12);
+
+pref("font.size.variable.x-western", 14);
+pref("font.size.fixed.x-western", 12);
+
+pref("font.size.variable.zh-CN", 16);
+pref("font.size.fixed.zh-CN", 16);
+
+pref("font.size.variable.zh-TW", 16);
+pref("font.size.fixed.zh-TW", 16);
+
+// below a certian pixel size outline scaled fonts produce poor results
+pref("font.scale.outline.min", 6);
+
+// Anti-alias
+// below a certian pixel size anti-aliased bitmat scaled fonts
+// produce poor results
+pref("font.scale.aa_bitmap.enable", true);
+pref("font.scale.aa_bitmap.always", false);
+pref("font.scale.aa_bitmap.min", 6);
+pref("font.scale.aa_bitmap.undersize", 80);
+pref("font.scale.aa_bitmap.oversize", 120);
+pref("font.scale.aa_bitmap.dark_text.min", 64);
+pref("font.scale.aa_bitmap.dark_text.gain", "0.5");
+pref("font.scale.aa_bitmap.light_text.min", 64);
+pref("font.scale.aa_bitmap.light_text.gain", "1.3");
+
+pref("font.scale.bitmap.min", 12);
+pref("font.scale.bitmap.undersize", 80);
+pref("font.scale.bitmap.oversize", 120);
+
+pref("font.scale.outline.min.ja", 10);
+pref("font.scale.aa_bitmap.min.ja", 12);
+pref("font.scale.aa_bitmap.always.ja", false);
+pref("font.scale.bitmap.min.ja", 16);
+pref("font.scale.bitmap.undersize.ja", 80);
+pref("font.scale.bitmap.oversize.ja", 120);
+
+pref("font.scale.outline.min.ko", 10);
+pref("font.scale.aa_bitmap.min.ko", 12);
+pref("font.scale.aa_bitmap.always.ko", false);
+pref("font.scale.bitmap.min.ko", 16);
+pref("font.scale.bitmap.undersize.ko", 80);
+pref("font.scale.bitmap.oversize.ko", 120);
+
+pref("font.scale.outline.min.zh-CN", 10);
+pref("font.scale.aa_bitmap.min.zh-CN", 12);
+pref("font.scale.aa_bitmap.always.zh-CN", false);
+pref("font.scale.bitmap.min.zh-CN", 16);
+pref("font.scale.bitmap.undersize.zh-CN", 80);
+pref("font.scale.bitmap.oversize.zh-CN", 120);
+
+pref("font.scale.outline.min.zh-TW", 10);
+pref("font.scale.aa_bitmap.min.zh-TW", 12);
+pref("font.scale.aa_bitmap.always.zh-TW", false);
+pref("font.scale.bitmap.min.zh-TW", 16);
+pref("font.scale.bitmap.undersize.zh-TW", 80);
+pref("font.scale.bitmap.oversize.zh-TW", 120);
+
+// minimum font sizes
+
+pref("font.min-size.variable.ja", 8);
+pref("font.min-size.fixed.ja", 8);
+
+pref("font.min-size.variable.ko", 10);
+pref("font.min-size.fixed.ko", 10);
+
+pref("font.min-size.variable.zh-CN", 10);
+pref("font.min-size.fixed.zh-CN", 10);
+
+pref("font.min-size.variable.zh-TW", 10);
+pref("font.min-size.fixed.zh-TW", 10);
+
+// X11 specific
+/* X11 font accept/reject patterns:
+ * Patterns have to match against strings like this:
+ * (boolean values can only be "true" or "false")
+ * "fname=.*;scalable=.*;outline_scaled=.*;xdisplay=.*;xdpy=%d;ydpy=%d;xdevice=.*"
+ * - fname = X11 font name (string)
+ * - scalable = is font scalable ? (boolean)
+ * - outline_scaled = is font an outline scaled font ? (boolean)
+ * - xdisplay = X11 display name (like "host:0.0" (string)
+ * - xdpy = X DPI (X screen resolution) (integer)
+ * - ydpy = Y DPI (Y screen resolution) (integer)
+ * - xdevice = "display" or "printer" (Xprint)
+ * Patterns use the regular expressions described in the EXTENDED REGULAR
+ * EXPRESSIONS section of the regex(5) manual page.
+ * Note that prefs strings can always be concatenated via the '+'-operator,
+ * e.g. pref("font.x11.acceptfontpattern", "pattern1|" +
+ * "pattern2|" +
+ * "pattern3");
+ */
+/* reject font if accept pattern does not match it... */
+//pref("font.x11.acceptfontpattern", ".*");
+/* reject font if reject pattern matches it... */
+//pref("font.x11.rejectfontpattern",
+// "fname=-urw.*;scalable=false;outline_scaled=false;xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*");
+
+/* reject font if accept pattern does not match it... */
+//pref("printer.font.xprint.acceptfontpattern", ".*");
+/* reject font if reject pattern matches it... */
+//pref("printer.font.xprint.rejectfontpattern",
+// "fname=-urw.*;scalable=false;outline_scaled=false;xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*");
+
+pref("mail.signature_date", 0);
+
+// ps font
+// this list is used by the postscript font
+// to enumerate the list of langGroups
+// there should be a call to get the
+// langGroups; see bug 75054
+pref("print.postscript.nativefont.ar", "");
+pref("print.postscript.nativefont.el", "");
+pref("print.postscript.nativefont.he", "");
+pref("print.postscript.nativefont.ja", "");
+pref("print.postscript.nativefont.ko", "");
+pref("print.postscript.nativefont.th", "");
+pref("print.postscript.nativefont.tr", "");
+pref("print.postscript.nativefont.x-baltic", "");
+pref("print.postscript.nativefont.x-central-euro", "");
+pref("print.postscript.nativefont.x-cyrillic", "");
+pref("print.postscript.nativefont.x-unicode", "");
+pref("print.postscript.nativefont.x-user-def", "");
+pref("print.postscript.nativefont.x-western", "");
+pref("print.postscript.nativefont.zh-CN", "");
+// Printing
+// Change lines below to your local system fonts
+// Check http://freebsd.sinica.edu.tw/~statue/zh-tut/web-browse.html
+pref("print.postscript.nativecode.zh-TW", "big5");
+// pref("print.postscript.nativefont.zh-TW", "ArphicMingB5-Regular-ETen-B5-H");
+pref("print.postscript.nativefont.zh-TW", "ShanHeiSun-Light-ETen-B5-H");
+
+// XIM Settings:
+// Uncomment this line if your XIM not working
+ //pref("xim.input_style", "over-the-spot")
diff -Nur mozilla-tclp.orig/files/user.js mozilla-tclp/files/user.js
--- mozilla-tclp.orig/files/user.js Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/files/user.js Sat Aug 9 09:20:12 2003
@@ -0,0 +1,34 @@
+// This is per-user pref
+
+// XIM Settings:
+// Uncomment this line if your XIM not working
+ //user_pref("xim.input_style", "over-the-spot")
+
+// Anti-Alias fonts:
+// Set the lines below to true if you want always aa
+ user_pref("font.scale.aa_bitmap.enable", true);
+ user_pref("font.scale.aa_bitmap.always", true);
+ user_pref("font.scale.aa_bitmap.always.zh-TW", true);
+
+// Extra aa settings
+ //user_pref("font.scale.aa_bitmap.min", 6);
+ //user_pref("font.scale.aa_bitmap.undersize", 80);
+ //user_pref("font.scale.aa_bitmap.oversize", 120);
+ //user_pref("font.scale.aa_bitmap.min.ja", 12);
+ //user_pref("font.scale.aa_bitmap.always.ja", false);
+ //user_pref("font.scale.aa_bitmap.min.zh-TW", 12);
+ //user_pref("font.scale.bitmap.min.zh-TW", 16);
+ //user_pref("font.scale.bitmap.undersize.zh-TW", 80);
+ //user_pref("font.scale.bitmap.oversize.zh-TW", 120);
+ //user_pref("font.scale.outline.min.zh-TW", 10);
+
+// Minimum font sizes
+ //user_pref("font.min-size.variable.zh-TW", 10);
+ //user_pref("font.min-size.fixed.zh-TW", 10);
+
+// Printing
+// Change lines below to your local system fonts
+// Check http://freebsd.sinica.edu.tw/~statue/zh-tut/web-browse.html
+ // user_pref("print.postscript.nativecode.zh-TW", "big5");
+ // user_pref("print.postscript.nativefont.zh-TW", "ShanHeiSun-Light-ETen-B5-H");
+ // // user_pref("print.postscript.nativefont.zh-TW", "ArphicMingB5-Regular-ETen-B5-H");
diff -Nur mozilla-tclp.orig/pkg-descr mozilla-tclp/pkg-descr
--- mozilla-tclp.orig/pkg-descr Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/pkg-descr Sat Aug 9 09:22:02 2003
@@ -0,0 +1,7 @@
+Mozilla is an open-source web browser, designed for standards compliance,
+performance and portability.
+
+Mozilla Traditional Chinese Language Pack provides an L10N environment
+for BIG5 users. It is written by Hung-Te Lin <piaip at csie.ntu.edu.tw>.
+
+WWW: http://www.csie.ntu.edu.tw/~b7506051/mozilla/
diff -Nur mozilla-tclp.orig/pkg-message mozilla-tclp/pkg-message
--- mozilla-tclp.orig/pkg-message Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/pkg-message Sat Aug 9 09:22:09 2003
@@ -0,0 +1,11 @@
+***********************************************************************
+Edit the file "${HOME}/.mozilla/${USER}/*.slt/user.js" (per user)
+ or "/usr/X11R6/lib/mozilla/defaults/pref/unix.js" (for all)
+ to change XIM settings (if not working),
+ Anti-Alias settings, and Printing settings.
+If need printing, go /usr/ports/chinese/arphicttf to make WANT_GS=yes
+For detail: http://freebsd.sinica.edu.tw/~statue/zh-tut/web-browse.html
+***********************************************************************
+After all, remember that mozilla-tclp highly depends on Mozilla. If you
+ upgrade Mozilla, remember to reinstall mozilla-tclp. It will
+ try to automatically detect and match your Mozilla version.
diff -Nur mozilla-tclp.orig/pkg-plist mozilla-tclp/pkg-plist
--- mozilla-tclp.orig/pkg-plist Thu Jan 1 08:00:00 1970
+++ mozilla-tclp/pkg-plist Sat Aug 9 09:22:15 2003
@@ -0,0 +1,47 @@
+ at exec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regxpcom
+ at exec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regchrome
+ at exec mv %D/bin/mozilla %D/bin/mozilla.orig
+ at exec mv %D/lib/mozilla/chrome/chrome.rdf %D/lib/mozilla/chrome/chrome.rdf.orig
+ at exec mv %D/lib/mozilla/chrome/installed-chrome.txt %D/lib/mozilla/chrome/installed-chrome.txt.orig
+ at exec mv %D/lib/mozilla/defaults/pref/unix.js %D/lib/mozilla/defaults/pref/unix.js.orig
+ at exec mv %D/lib/mozilla/searchplugins/google.gif %D/lib/mozilla/searchplugins/google.gif.orig
+ at exec mv %D/lib/mozilla/searchplugins/google.src %D/lib/mozilla/searchplugins/google.src.orig
+bin/mozilla
+lib/mozilla/chrome/TW.jar
+lib/mozilla/chrome/chrome.rdf
+lib/mozilla/chrome/installed-chrome.txt
+lib/mozilla/chrome/zh-TW.jar
+lib/mozilla/chrome/zh-mac.jar
+lib/mozilla/chrome/zh-unix.jar
+lib/mozilla/chrome/zh-win.jar
+lib/mozilla/chrome/zh-optional.jar
+lib/mozilla/defaults/pref/unix.js
+lib/mozilla/defaults/profile/TW/chrome/userChrome.css
+lib/mozilla/defaults/profile/TW/chrome/userContent.css
+lib/mozilla/defaults/profile/TW/bookmarks.html
+lib/mozilla/defaults/profile/TW/localstore.rdf
+lib/mozilla/defaults/profile/TW/mimeTypes.rdf
+lib/mozilla/defaults/profile/TW/panels.rdf
+lib/mozilla/defaults/profile/TW/search.rdf
+lib/mozilla/defaults/profile/TW/user.js
+lib/mozilla/defaults/profile/user.js
+lib/mozilla/searchplugins/google.gif
+lib/mozilla/searchplugins/google.src
+lib/mozilla/searchplugins/google_en.gif
+lib/mozilla/searchplugins/google_en.src
+lib/mozilla/searchplugins/google_tw.gif
+lib/mozilla/searchplugins/google_tw.src
+lib/mozilla/searchplugins/openfind.gif
+lib/mozilla/searchplugins/openfind.src
+ at exec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regxpcom
+ at exec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regchrome
+ at unexec mv %D/bin/mozilla.orig %D/bin/mozilla
+ at unexec mv %D/lib/mozilla/chrome/chrome.rdf.orig %D/lib/mozilla/chrome/chrome.rdf
+ at unexec mv %D/lib/mozilla/chrome/installed-chrome.txt.orig %D/lib/mozilla/chrome/installed-chrome.txt
+ at unexec mv %D/lib/mozilla/defaults/pref/unix.js.orig %D/lib/mozilla/defaults/pref/unix.js
+ at unexec mv %D/lib/mozilla/searchplugins/google.gif.orig %D/lib/mozilla/searchplugins/google.gif
+ at unexec mv %D/lib/mozilla/searchplugins/google.src.orig %D/lib/mozilla/searchplugins/google.src
+ at dirrm lib/mozilla/defaults/profile/TW/chrome
+ at dirrm lib/mozilla/defaults/profile/TW
+ at unexec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regxpcom
+ at unexec env HOME=/tmp LD_LIBRARY_PATH=%D/lib/mozilla MOZILLA_FIVE_HOME=%D/lib/mozilla %D/lib/mozilla/regchrome
>Release-Note:
>Audit-Trail:
>Unformatted:
* Hung-Te Lin <piaip at csie.ntu.edu.tw> [021207 01:54]:
More information about the freebsd-ports-bugs
mailing list