Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  3 Feb 2004 06:14:45 +0800
From:      hamigua@hotpop.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hamigua@cuc.cn
Subject:   ports/62286: New port: chinese/mozilla-tclp
Message-ID:  <20040202220258.A11C81A0196@smtp-1.hotpop.com>
Resent-Message-ID: <200402022230.i12MUBat059813@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62286
>Category:       ports
>Synopsis:       New port: chinese/mozilla-tclp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 02 14:30:11 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     hamigua <hamigua@linuxsir.org>
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD localhost.linuxman.com 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Feb 1 17:52:07 CST 2004 root@localhost.linuxman.com:/opt/src/sys/i386/compile/02012004 i386


>Description:

Mozilla Traditional Chinese Language Pack (tclp) provides an L10N environment
for Big5 users. It is written by hamigua <hamigua@hotpop.com>
resource for Mozilla.
                                                                                              
WWW: http://www.csie.ntu.edu.tw/~r91034/

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mozilla-tclp/
#	mozilla-tclp/Makefile
#	mozilla-tclp/distinfo
#	mozilla-tclp/pkg-descr
#	mozilla-tclp/pkg-message
#	mozilla-tclp/pkg-plist
#	mozilla-tclp/files/
#	mozilla-tclp/files/installed-chrome.txt
#	mozilla-tclp/files/mozilla.sh
#	mozilla-tclp/files/unix.js
#
echo c - mozilla-tclp/
mkdir -p mozilla-tclp/ > /dev/null 2>&1
echo x - mozilla-tclp/Makefile
sed 's/^X//' >mozilla-tclp/Makefile << 'END-of-mozilla-tclp/Makefile'
X# New ports collection makefile for:	zh-mozilla-tclp
X# Date created:		01 Feb 2004
X# Whom:			hamigua <hamigua@hotpop.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mozilla
XPORTVERSION=	1.6
XPORTREVISION=	1
XPORTEPOCH=	1
XCATEGORIES=	chinese
XMASTER_SITES=	${MASTER_SITE_MOZILLA}
XMASTER_SITE_SUBDIR=	mozilla/releases/${PORTNAME}${PORTVERSION}/contrib-localized-builds/
XPKGNAMESUFFIX=	-tclp
XDISTNAME=	langzhtw
XEXTRACT_SUFX=	.xpi
X
XMAINTAINER=	hamigua@hotpop.com
XCOMMENT=	Mozilla Traditional Chinese Language Pack (tclp)
X
XBUILD_DEPENDS=	${X11BASE}/lib/${MOZILLA}/regxpcom:${PORTSDIR}/www/${MOZILLA}
XRUN_DEPENDS=	${MOZILLA}:${PORTSDIR}/www/${MOZILLA}
X
XWRKSRC=		${WRKDIR}/bin
X
XUSE_X_PREFIX=	yes
XUSE_ZIP=	yes
XEXTRACT_BEFORE_ARGS=	-qo
X
XMOZILLA=	mozilla-gtk2
X
X.if defined(WITH_MOZILLA-GTK2)
XMOZILLA=	mozilla-gtk2
X.elif defined(WITH_MOZILLA)
XMOZILLA=	mozilla
X.endif
XPLIST_SUB=	MOZILLA=${MOZILLA}
X
X.include <bsd.port.pre.mk>
X
XLOCALENAME=	zh_TW.Big5
XLIBXPG4=	LD_PRELOAD=/usr/lib/libxpg4.so; export LD_PRELOAD
X
X
Xpre-everything::
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} " By default the port uses www/mozilla-gtk2 (with Xft)"
X	@${ECHO_MSG} " If you have installed the mozilla without Xft"
X	@${ECHO_MSG} " Please change this by defining WITH_MOZILLA=yes"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} ""
X
Xpost-extract:
X	${MKDIR} ${WRKSRC}/defaults/pref
X	${CP} ${FILESDIR}/unix.js ${WRKSRC}/defaults/pref
X
Xdo-build:
X	${SED} -e "s^%%PREFIX%%^${PREFIX}^g" \
X	       -e "s^%%LOCALBASE%%^${LOCALBASE}^g" \
X	       -e "s^%%LOCALENAME%%^${LOCALENAME}^g" \
X	       -e "s^%%LIBXPG4%%^${LIBXPG4}^g" \
X	       -e "s^%%MOZILLA%%^${MOZILLA}^g" \
X	${FILESDIR}/mozilla.sh > ${WRKDIR}/${MOZILLA}
X
Xdo-install:
X	(cd ${PREFIX}/lib/${MOZILLA}/chrome; \
X	${MV} -f chrome.rdf chrome.rdf.orig; \
X	${MV} -f installed-chrome.txt installed-chrome.txt.orig)
X	(cd ${PREFIX}/lib/${MOZILLA}/defaults/pref; \
X	${MV} -f unix.js unix.js.orig)
X	(cd ${PREFIX}/lib/${MOZILLA}/components; \
X	${MV} -f xpti.dat ../xpti.dat.orig)
X	${MV} -f ${PREFIX}/bin/${MOZILLA} ${PREFIX}/bin/${MOZILLA}.orig
X	${INSTALL_SCRIPT} ${WRKDIR}/${MOZILLA} ${PREFIX}/bin
X	(cd ${WRKSRC}/searchplugins; ${TAR} -cf - *) | \
X	${TAR} -xf - -C ${PREFIX}/lib/${MOZILLA}/searchplugins
X	(cd ${WRKSRC}; ${TAR} -cf - chrome defaults) | \
X	${TAR} -xf - -C ${PREFIX}/lib/${MOZILLA}
X	(cd ${PREFIX}/lib/${MOZILLA}/chrome; \
X	${CP} installed-chrome.txt.orig installed-chrome.txt; \
X	${CAT} ${FILESDIR}/installed-chrome.txt >> installed-chrome.txt)
X	(cd ${PREFIX}/lib/${MOZILLA}; \
X	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \
X	${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome)
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mozilla-tclp/Makefile
echo x - mozilla-tclp/distinfo
sed 's/^X//' >mozilla-tclp/distinfo << 'END-of-mozilla-tclp/distinfo'
XMD5 (langzhtw.xpi) = 71952bff278558fe2582a5ccdb10228b
XSIZE (langzhtw.xpi) = 697938
END-of-mozilla-tclp/distinfo
echo x - mozilla-tclp/pkg-descr
sed 's/^X//' >mozilla-tclp/pkg-descr << 'END-of-mozilla-tclp/pkg-descr'
XMozilla is an open-source application suite for web browsing, email,
XHTML editing, IRC chat, and more.
X
XMozilla Traditional Chinese Language Pack (tclp) provides an L10N environment
Xfor Big5 users. It is written by hamigua <hamigua@hotpop.com>
Xresource for Mozilla.
X
XWWW: http://www.csie.ntu.edu.tw/~r91034/
END-of-mozilla-tclp/pkg-descr
echo x - mozilla-tclp/pkg-message
sed 's/^X//' >mozilla-tclp/pkg-message << 'END-of-mozilla-tclp/pkg-message'
X********************************
XIf your XIM wouldn't work properly, try to make a file
X
X"${HOME}/.mozilla/${USER}/*.slt/user.js"
X
Xwith below content;
X--
Xuser_pref("xim.input_style", "over-the-spot")
X--
X********************************
END-of-mozilla-tclp/pkg-message
echo x - mozilla-tclp/pkg-plist
sed 's/^X//' >mozilla-tclp/pkg-plist << 'END-of-mozilla-tclp/pkg-plist'
X@exec mv %D/bin/%%MOZILLA%% %D/bin/%%MOZILLA%%.orig
X@exec mv %D/lib/%%MOZILLA%%/chrome/chrome.rdf %D/lib/%%MOZILLA%%/chrome/chrome.rdf.orig
X@exec mv %D/lib/%%MOZILLA%%/chrome/installed-chrome.txt %D/lib/%%MOZILLA%%/chrome/installed-chrome.txt.orig
X@exec mv %D/lib/%%MOZILLA%%/defaults/pref/unix.js %D/lib/%%MOZILLA%%/defaults/pref/unix.js.orig
X@exec mv %D/lib/%%MOZILLA%%/components/xpti.dat %D/lib/%%MOZILLA%%/xpti.dat.orig
Xbin/%%MOZILLA%%
Xlib/%%MOZILLA%%/chrome/TW.jar
Xlib/%%MOZILLA%%/chrome/zh-mac.jar
Xlib/%%MOZILLA%%/chrome/zh-optional.jar
Xlib/%%MOZILLA%%/chrome/zh-TW.jar
Xlib/%%MOZILLA%%/chrome/zh-unix.jar
Xlib/%%MOZILLA%%/chrome/zh-win.jar
Xlib/%%MOZILLA%%/defaults/messenger/mailViews.dat
Xlib/%%MOZILLA%%/defaults/pref/taiwan.js
Xlib/%%MOZILLA%%/defaults/profile/bookmarks.html
Xlib/%%MOZILLA%%/defaults/profile/chrome/userChrome.css
Xlib/%%MOZILLA%%/defaults/profile/chrome/userContent.css
Xlib/%%MOZILLA%%/defaults/profile/localstore.rdf
Xlib/%%MOZILLA%%/defaults/profile/mimeTypes.rdf
Xlib/%%MOZILLA%%/defaults/profile/panels.rdf
Xlib/%%MOZILLA%%/defaults/profile/search.rdf
Xlib/%%MOZILLA%%/defaults/profile/TW/bookmarks.html
Xlib/%%MOZILLA%%/defaults/profile/TW/chrome/userChrome.css
Xlib/%%MOZILLA%%/defaults/profile/TW/chrome/userContent.css
Xlib/%%MOZILLA%%/defaults/profile/TW/localstore.rdf
Xlib/%%MOZILLA%%/defaults/profile/TW/mimeTypes.rdf
Xlib/%%MOZILLA%%/defaults/profile/TW/panels.rdf
Xlib/%%MOZILLA%%/defaults/profile/TW/search.rdf
Xlib/%%MOZILLA%%/searchplugins/google.gif
Xlib/%%MOZILLA%%/searchplugins/google.src
Xlib/%%MOZILLA%%/searchplugins/google_en.gif
Xlib/%%MOZILLA%%/searchplugins/google_en.src
Xlib/%%MOZILLA%%/searchplugins/google_tw.gif
Xlib/%%MOZILLA%%/searchplugins/google_tw.src
Xlib/%%MOZILLA%%/searchplugins/onlinedict.gif
Xlib/%%MOZILLA%%/searchplugins/onlinedict.src
Xlib/%%MOZILLA%%/searchplugins/openfind.gif
Xlib/%%MOZILLA%%/searchplugins/openfind.src
X@unexec mv %D/bin/%%MOZILLA%%.orig %D/bin/%%MOZILLA%%
X@unexec mv %D/lib/%%MOZILLA%%/chrome/chrome.rdf.orig %D/lib/%%MOZILLA%%/chrome/chrome.rdf
X@unexec mv %D/lib/%%MOZILLA%%/chrome/installed-chrome.txt.orig %D/lib/%%MOZILLA%%/chrome/installed-chrome.txt
X@unexec mv %D/lib/%%MOZILLA%%/defaults/pref/unix.js.orig %D/lib/%%MOZILLA%%/defaults/pref/unix.js
X@unexec mv %D/lib/%%MOZILLA%%/xpti.dat.orig %D/lib/%%MOZILLA%%/components/xpti.dat
X@dirrm lib/%%MOZILLA%%/defaults/profile/TW/chrome
X@dirrm lib/%%MOZILLA%%/defaults/profile/TW
END-of-mozilla-tclp/pkg-plist
echo c - mozilla-tclp/files/
mkdir -p mozilla-tclp/files/ > /dev/null 2>&1
echo x - mozilla-tclp/files/installed-chrome.txt
sed 's/^X//' >mozilla-tclp/files/installed-chrome.txt << 'END-of-mozilla-tclp/files/installed-chrome.txt'
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/global/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/communicator/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger-smime/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/messenger-mdn/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/editor/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/navigator/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/necko/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/mozldap/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/autoconfig/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/cookie/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/wallet/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/content-packs/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/help/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/pippki/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/pipnss/
Xlocale,install,url,jar:resource:/chrome/zh-TW.jar!/locale/zh-TW/p3p/
Xlocale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/global-platform/
Xlocale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/communicator-platform/
Xlocale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/navigator-platform/
Xlocale,install,url,jar:resource:/chrome/zh-unix.jar!/locale/zh-TW/messenger-mapi/
Xlocale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/global-region/
Xlocale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/communicator-region/
Xlocale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/editor-region/
Xlocale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/messenger-region/
Xlocale,install,url,jar:resource:/chrome/TW.jar!/locale/TW/navigator-region/
Xlocale,install,url,jar:resource:/chrome/zh-optional.jar/locale/CN/chatzilla/
Xlocale,install,url,jar:resource:/chrome/zh-optional.jar/locale/CN/venkman/
Xlocale,install,url,jar:resource:/chrome/zh-optional.jar/locale/CN/inspector/
Xlocale,install,select,zh-TW
Xlocale,install,select,TW
END-of-mozilla-tclp/files/installed-chrome.txt
echo x - mozilla-tclp/files/mozilla.sh
sed 's/^X//' >mozilla-tclp/files/mozilla.sh << 'END-of-mozilla-tclp/files/mozilla.sh'
X#!/bin/sh
X
XLANG=%%LOCALENAME%%; export LANG
X%%LIBXPG4%%
X#XMODIFIERS=@im=kinput2; export XMODIFIERS
X#LD_PRELOAD=%%LOCALBASE%%/lib/libflashplayer.so.1; export LD_PRELOAD
X
XMOZILLA_DIR="%%PREFIX%%/lib/%%MOZILLA%%"
XMOZILLA_EXEC="mozilla"
XLOCATION='new-tab'
X
Xcd $MOZILLA_DIR                                     || exit 1
X
Xcase $1 in
X    -mail)
X    	REMOTE_COMMAND="xfeDoCommand (openInbox)"
X	;;
X    -*)
X    	exec ./$MOZILLA_EXEC "$@"
X	;;
X    *)
X    	REMOTE_COMMAND="openURL($@, $LOCATION)"
X	;;
Xesac
X    
X# process found
X./$MOZILLA_EXEC -remote "ping()"                    &&
X./$MOZILLA_EXEC -remote "$REMOTE_COMMAND"           && exit 0
X
X# no existing process
Xexec ./$MOZILLA_EXEC "$@"
X
END-of-mozilla-tclp/files/mozilla.sh
echo x - mozilla-tclp/files/unix.js
sed 's/^X//' >mozilla-tclp/files/unix.js << 'END-of-mozilla-tclp/files/unix.js'
X/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
X/* ***** BEGIN LICENSE BLOCK *****
X * Version: NPL 1.1/GPL 2.0/LGPL 2.1
X *
X * The contents of this file are subject to the Netscape Public License
X * Version 1.1 (the "License"); you may not use this file except in
X * compliance with the License. You may obtain a copy of the License at
X * http://www.mozilla.org/NPL/
X *
X * Software distributed under the License is distributed on an "AS IS" basis,
X * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
X * for the specific language governing rights and limitations under the
X * License.
X *
X * The Original Code is mozilla.org code.
X *
X * The Initial Developer of the Original Code is 
X * Netscape Communications Corporation.
X * Portions created by the Initial Developer are Copyright (C) 1998
X * the Initial Developer. All Rights Reserved.
X *
X * Contributor(s):
X *   Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
X *
X * Alternatively, the contents of this file may be used under the terms of
X * either the GNU General Public License Version 2 or later (the "GPL"), or 
X * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
X * in which case the provisions of the GPL or the LGPL are applicable instead
X * of those above. If you wish to allow use of your version of this file only
X * under the terms of either the GPL or the LGPL, and not to allow others to
X * use your version of this file under the terms of the NPL, indicate your
X * decision by deleting the provisions above and replace them with the notice
X * and other provisions required by the GPL or the LGPL. If you do not delete
X * the provisions above, a recipient may use your version of this file under
X * the terms of any one of the NPL, the GPL or the LGPL.
X *
X * ***** END LICENSE BLOCK ***** */
X
Xpref("mail.empty_trash", false);
X
X// Handled differently under Mac/Windows
Xpref("network.hosts.smtp_server", "localhost");
Xpref("network.hosts.pop_server", "pop");
Xpref("mail.check_new_mail", true);
Xpref("browser.display.screen_resolution", 0); // System setting
Xpref("browser.startup.license_accepted", "");
Xpref("browser.cache.memory.capacity", 4096);
Xpref("browser.cache.disk.capacity", 50000);
Xpref("browser.drag_out_of_frame_style", 1);
Xpref("mail.signature_file", "~/.signature");
Xpref("mail.default_fcc", "~/nsmail/Sent");
Xpref("news.default_fcc", "~/nsmail/Sent");
Xpref("mailnews.reply_with_extra_lines", 0);
Xpref("security.warn_accept_cookie", false);
Xpref("editor.disable_spell_checker", false);
Xpref("editor.dont_lock_spell_files", true);
Xpref("editor.singleLine.pasteNewlines", 0);
X
X// Middle-mouse handling
Xpref("middlemouse.paste", true);
Xpref("middlemouse.contentLoadURL", true);
Xpref("middlemouse.openNewWindow", true);
Xpref("middlemouse.scrollbarPosition", true);
X
X// Clipboard behavior
Xpref("clipboard.autocopy", true);
X
Xpref("browser.urlbar.clickSelectsAll", false);
X
X// Tab focus model bit field:
X// 1 focuses text controls, 2 focuses other form elements, 4 adds links.
X// Leave this at the default, 7, to match mozilla1.0-era user expectations.
X// pref("accessibility.tabfocus", 1);
X
X// Beep instead of playing sound in Linux, at least until nsISound is fixed:
Xpref("accessibility.typeaheadfind.soundURL", "beep");
X
X// override double-click word selection behavior.
Xpref("layout.word_select.stop_at_punctuation", false);
X
X// autocomplete keyboard grab workaround
Xpref("autocomplete.grab_during_popup", true);
Xpref("autocomplete.ungrab_during_mode_switch", true);
X
X// Most Unix people think modal pref windows are stupid:
Xpref("browser.prefWindowModal", false);
X
X// turn off scrollbar snapping
Xpref("slider.snapMultiplier", 0);
X
X// Unix only
Xpref("mail.use_movemail", true);
Xpref("mail.use_builtin_movemail", true);
Xpref("mail.movemail_program", "");
Xpref("mail.movemail_warn", false);
Xpref("mail.sash_geometry", "");
Xpref("news.cache_xover", false);
Xpref("news.show_first_unread", false);
Xpref("news.sash_geometry", "");
Xpref("helpers.global_mime_types_file", "/etc/mime.types");
Xpref("helpers.global_mailcap_file", "/etc/mailcap");
Xpref("helpers.private_mime_types_file", "~/.mime.types");
Xpref("helpers.private_mailcap_file", "~/.mailcap");
Xpref("applications.telnet", "xterm -e telnet %h %p");
Xpref("applications.tn3270", "xterm -e tn3270 %h");
Xpref("applications.rlogin", "xterm -e rlogin %h");
Xpref("applications.rlogin_with_user", "xterm -e rlogin %h -l %u");
Xpref("applications.tmp_dir", "/tmp");
X// On Solaris/IRIX, this should be "lp"
Xpref("print.print_command", "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
Xpref("print.printer_list", ""); // list of printers, seperated by spaces
Xpref("print.print_reversed", false);
Xpref("print.print_color", true);
Xpref("print.print_landscape", false);
Xpref("print.print_paper_size", 0);
X
X// Enables you to specify the gap from the edge of the paper to the margin
X// this is used by both Printing and Print Preview
Xpref("print.print_edge_top", 4); // 1/100 of an inch
Xpref("print.print_edge_left", 4); // 1/100 of an inch
Xpref("print.print_edge_right", 4); // 1/100 of an inch
Xpref("print.print_edge_bottom", 4); // 1/100 of an inch
X
X// print_extra_margin enables platforms to specify an extra gap or margin
X// around the content of the page for Print Preview only
Xpref("print.print_extra_margin", 0); // twips
X
Xpref("print.whileInPrintPreview", false);
X
Xpref("font.allow_double_byte_special_chars", true);
X// font names
X
X// ar
X
Xpref("font.name.serif.el", "misc-fixed-iso8859-7");
Xpref("font.name.sans-serif.el", "misc-fixed-iso8859-7");
Xpref("font.name.monospace.el", "misc-fixed-iso8859-7");
X
Xpref("font.name.serif.he", "misc-fixed-iso8859-8");
Xpref("font.name.sans-serif.he", "misc-fixed-iso8859-8");
Xpref("font.name.monospace.he", "misc-fixed-iso8859-8");
X
Xpref("font.name.serif.ja", "alias-fixed-jisx0208.1983-0");
Xpref("font.name.sans-serif.ja", "alias-fixed-jisx0208.1983-0");
Xpref("font.name.monospace.ja", "alias-fixed-jisx0208.1983-0");
X
Xpref("font.name.serif.ko", "daewoo-mincho-ksc5601.1987-0");
Xpref("font.name.sans-serif.ko", "daewoo-mincho-ksc5601.1987-0");
Xpref("font.name.monospace.ko", "daewoo-mincho-ksc5601.1987-0");
X
X// th
X
Xpref("font.name.serif.tr", "adobe-times-iso8859-9");
Xpref("font.name.sans-serif.tr", "adobe-helvetica-iso8859-9");
Xpref("font.name.monospace.tr", "adobe-courier-iso8859-9");
X
Xpref("font.name.serif.x-baltic", "b&h-lucidux serif-iso8859-4");
Xpref("font.name.sans-serif.x-baltic", "b&h-lucidux sans-iso8859-4");
Xpref("font.name.monospace.x-baltic", "b&h-lucidux mono-iso8859-4");
X
Xpref("font.name.serif.x-central-euro", "adobe-times-iso8859-2");
Xpref("font.name.sans-serif.x-central-euro", "adobe-helvetica-iso8859-2");
Xpref("font.name.monospace.x-central-euro", "adobe-courier-iso8859-2");
X
Xpref("font.name.serif.x-cyrillic", "cronyx-times-koi8-r");
Xpref("font.name.sans-serif.x-cyrillic", "cronyx-helvetica-koi8-r");
Xpref("font.name.monospace.x-cyrillic", "cronyx-courier-koi8-r");
X
Xpref("font.name.serif.x-unicode", "adobe-times-iso8859-1");
Xpref("font.name.sans-serif.x-unicode", "adobe-helvetica-iso8859-1");
Xpref("font.name.monospace.x-unicode", "adobe-courier-iso8859-1");
X
Xpref("font.name.serif.x-user-def", "adobe-times-iso8859-1");
Xpref("font.name.sans-serif.x-user-def", "adobe-helvetica-iso8859-1");
Xpref("font.name.monospace.x-user-def", "adobe-courier-iso8859-1");
X
Xpref("font.name.serif.x-western", "adobe-times-iso8859-1");
Xpref("font.name.sans-serif.x-western", "adobe-helvetica-iso8859-1");
Xpref("font.name.monospace.x-western", "adobe-courier-iso8859-1");
X
Xpref("font.name.serif.zh-CN", "isas-song ti-gb2312.1980-0");
Xpref("font.name.sans-serif.zh-CN", "isas-song ti-gb2312.1980-0");
Xpref("font.name.monospace.zh-CN", "isas-song ti-gb2312.1980-0");
X
X// zh-TW
X
Xpref("font.default", "sans-serif");
Xpref("font.size.variable.ar", 16);
Xpref("font.size.fixed.ar", 12);
X
Xpref("font.size.variable.el", 16);
Xpref("font.size.fixed.el", 12);
X
Xpref("font.size.variable.he", 16);
Xpref("font.size.fixed.he", 12);
X
Xpref("font.size.variable.ja", 14);
Xpref("font.size.fixed.ja", 14);
X
Xpref("font.size.variable.ko", 16);
Xpref("font.size.fixed.ko", 16);
X
Xpref("font.size.variable.th", 16);
Xpref("font.size.fixed.th", 12);
X
Xpref("font.size.variable.tr", 16);
Xpref("font.size.fixed.tr", 12);
X
Xpref("font.size.variable.x-baltic", 16);
Xpref("font.size.fixed.x-baltic", 12);
X
Xpref("font.size.variable.x-central-euro", 16);
Xpref("font.size.fixed.x-central-euro", 12);
X
Xpref("font.size.variable.x-cyrillic", 16);
Xpref("font.size.fixed.x-cyrillic", 12);
X
Xpref("font.size.variable.x-unicode", 16);
Xpref("font.size.fixed.x-unicode", 12);
X
Xpref("font.size.variable.x-western", 14);
Xpref("font.size.fixed.x-western", 12);
X
Xpref("font.size.variable.zh-CN", 16);
Xpref("font.size.fixed.zh-CN", 16);
X
Xpref("font.size.variable.zh-TW", 16);
Xpref("font.size.fixed.zh-TW", 16);
X
X// below a certian pixel size outline scaled fonts produce poor results
Xpref("font.scale.outline.min",      6);
X
X// TrueType
Xpref("font.FreeType2.enable", false);
Xpref("font.freetype2.shared-library", "libfreetype.so.9");
X// if libfreetype was built without hinting compiled in
X// it is best to leave hinting off
Xpref("font.FreeType2.autohinted", false);
Xpref("font.FreeType2.unhinted", true);
X// below a certian pixel size anti-aliased fonts produce poor results
Xpref("font.antialias.min",        10);
Xpref("font.embedded_bitmaps.max", 1000000);
Xpref("font.scale.tt_bitmap.dark_text.min", 64);
Xpref("font.scale.tt_bitmap.dark_text.gain", "0.8");
X// sample prefs for TrueType font dirs
X//pref("font.directory.truetype.1", "/u/sam/tt_font1");
X//pref("font.directory.truetype.2", "/u/sam/tt_font2");
X//pref("font.directory.truetype.3", "/u/sam/tt_font3");
Xpref("font.FreeType2.printing", true);
X
X// below a certian pixel size anti-aliased bitmat scaled fonts 
X// produce poor results
Xpref("font.scale.aa_bitmap.enable", true);
Xpref("font.scale.aa_bitmap.always", false);
Xpref("font.scale.aa_bitmap.min", 6);
Xpref("font.scale.aa_bitmap.undersize", 80);
Xpref("font.scale.aa_bitmap.oversize", 120);
Xpref("font.scale.aa_bitmap.dark_text.min", 64);
Xpref("font.scale.aa_bitmap.dark_text.gain", "0.5");
Xpref("font.scale.aa_bitmap.light_text.min", 64);
Xpref("font.scale.aa_bitmap.light_text.gain", "1.3");
X
Xpref("font.scale.bitmap.min",       12);
Xpref("font.scale.bitmap.undersize", 80);
Xpref("font.scale.bitmap.oversize",  120);
X
Xpref("font.scale.outline.min.ja",      10);
Xpref("font.scale.aa_bitmap.min.ja",    12);
Xpref("font.scale.aa_bitmap.always.ja", false);
Xpref("font.scale.bitmap.min.ja",       16);
Xpref("font.scale.bitmap.undersize.ja", 80);
Xpref("font.scale.bitmap.oversize.ja",  120);
X
Xpref("font.scale.outline.min.ko",      10);
Xpref("font.scale.aa_bitmap.min.ko",    12);
Xpref("font.scale.aa_bitmap.always.ko", false);
Xpref("font.scale.bitmap.min.ko",       16);
Xpref("font.scale.bitmap.undersize.ko", 80);
Xpref("font.scale.bitmap.oversize.ko",  120);
X
Xpref("font.scale.outline.min.zh-CN",      10);
Xpref("font.scale.aa_bitmap.min.zh-CN",    12);
Xpref("font.scale.aa_bitmap.always.zh-CN", false);
Xpref("font.scale.bitmap.min.zh-CN",       16);
Xpref("font.scale.bitmap.undersize.zh-CN", 80);
Xpref("font.scale.bitmap.oversize.zh-CN",  120);
X
Xpref("font.scale.outline.min.zh-TW",      10);
Xpref("font.scale.aa_bitmap.min.zh-TW",    12);
Xpref("font.scale.aa_bitmap.always.zh-TW", false);
Xpref("font.scale.bitmap.min.zh-TW",       16);
Xpref("font.scale.bitmap.undersize.zh-TW", 80);
Xpref("font.scale.bitmap.oversize.zh-TW",  120);
X
X// minimum font sizes
X
Xpref("font.min-size.variable.ja", 8);
Xpref("font.min-size.fixed.ja", 8);
X
Xpref("font.min-size.variable.ko", 10);
Xpref("font.min-size.fixed.ko", 10);
X
Xpref("font.min-size.variable.zh-CN", 10);
Xpref("font.min-size.fixed.zh-CN", 10);
X
Xpref("font.min-size.variable.zh-TW", 10);
Xpref("font.min-size.fixed.zh-TW", 10);
X
X// X11 specific
X/* X11 font accept/reject patterns:
X * Patterns have to match against strings like this:
X * (boolean values can only be "true" or "false")
X * "fname=.*;scalable=.*;outline_scaled=.*;xdisplay=.*;xdpy=%d;ydpy=%d;xdevice=.*"
X * - fname     = X11 font name (string)
X * - scalable  = is font scalable ? (boolean)
X * - outline_scaled = is font an outline scaled font ? (boolean)
X * - xdisplay  = X11 display name (like "host:0.0" (string)
X * - xdpy      = X DPI (X screen resolution) (integer)
X * - ydpy      = Y DPI (Y screen resolution) (integer)
X * - xdevice   = "display" or "printer" (Xprint)
X * Patterns use  the regular expressions described in the EXTENDED REGULAR
X * EXPRESSIONS section of the regex(5) manual page.
X * Note that prefs strings can always be concatenated via the '+'-operator,
X * e.g. pref("font.x11.acceptfontpattern", "pattern1|" + 
X *                                         "pattern2|" +
X *                                         "pattern3");
X */
X/* reject font if accept pattern does not match it... */
X//pref("font.x11.acceptfontpattern", ".*");
X/* reject font if reject pattern matches it... */
X//pref("font.x11.rejectfontpattern", 
X//     "fname=-urw.*;scalable=false;outline_scaled=false;xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*");
X
X/* reject font if accept pattern does not match it... */
Xpref("print.xprint.font.acceptfontpattern", ".*");
X/* reject font if reject pattern matches it...
X * Current bans:
X * - bug 148470 ("Ban "-dt-*" (bitmap!!) fonts from Xprint")
X *   pattern="fname=-dt-.*;scalable=.*;outline_scaled=false;xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*"
X */
Xpref("print.xprint.font.rejectfontpattern", 
X     "fname=-dt-.*;scalable=.*;outline_scaled=false;xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*");
X
X/* Xprint print module prefs */
Xpref("print.xprint.font.force_outline_scaled_fonts", true);
X
X/* PostScript print module prefs */
Xpref("print.postscript.paper_size",    "letter");
Xpref("print.postscript.orientation",   "portrait");
Xpref("print.postscript.print_command", "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}");
X
X/* PostScript print module font config
X * this list is used by the postscript font
X * to enumerate the list of langGroups
X * there should be a call to get the
X * langGroups; see bug 75054
X */
Xpref("print.postscript.nativefont.ar",             "");
Xpref("print.postscript.nativefont.el",             "");
Xpref("print.postscript.nativefont.he",             "");
Xpref("print.postscript.nativefont.ja",             "");
Xpref("print.postscript.nativefont.ko",             "");
Xpref("print.postscript.nativefont.th",             "");
Xpref("print.postscript.nativefont.tr",             "");
Xpref("print.postscript.nativefont.x-baltic",       "");
Xpref("print.postscript.nativefont.x-central-euro", "");
Xpref("print.postscript.nativefont.x-cyrillic",     "");
Xpref("print.postscript.nativefont.x-unicode",      "");
Xpref("print.postscript.nativefont.x-user-def",     "");
Xpref("print.postscript.nativefont.x-western",      "");
Xpref("print.postscript.nativefont.zh-CN",          "");
Xpref("print.postscript.nativefont.zh-TW",          "");
X
X// For the download dialog
Xpref("browser.download.progressDnldDialog.enable_launch_reveal_buttons", false);
X
Xpref("mail.signature_date", 0);
X
X// until bug #130581 is fixed, we need to override this on linux
Xpref("mail.compose.max_recycled_windows", 0);
X// EOF.
END-of-mozilla-tclp/files/unix.js
exit
--- mozilla-tclp.sh ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040202220258.A11C81A0196>