Date: Mon, 2 Feb 2004 21:03:39 +0800 (CST) From: Statue <statue@freebsd.sinica.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/62256: New port: chinese/mozilla-sclp Message-ID: <20040202130339.3E3ED2E9@freebsd.sinica.edu.tw> Resent-Message-ID: <200402021310.i12DA6RZ053842@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62256 >Category: ports >Synopsis: New port: chinese/mozilla-sclp >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 05:10:06 PST 2004 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Mon Sep 15 18:44:48 CST 2003 root@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: Mozilla is an open-source application suite for web browsing, email, HTML editing, IRC chat, and more. Mozilla Simplified Chinese Language Pack (sclp) provides an L10N environment for GB2312 users. It is written by hamigua <hamigua@linuxsir.org> resource for Mozilla. WWW: http://people.linux.net.cn >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-sclp/ # mozilla-sclp/Makefile # mozilla-sclp/distinfo # mozilla-sclp/files # mozilla-sclp/pkg-descr # mozilla-sclp/pkg-message # mozilla-sclp/pkg-plist # mozilla-sclp/files/installed-chrome.txt # mozilla-sclp/files/mozilla.sh # mozilla-sclp/files/unix.js # echo c - mozilla-sclp/ mkdir -p mozilla-sclp/ > /dev/null 2>&1 echo x - mozilla-sclp/Makefile sed 's/^X//' >mozilla-sclp/Makefile << 'END-of-mozilla-sclp/Makefile' X# New ports collection makefile for: zh-mozilla-sclp X# Date created: 01 Feb 2004 X# Whom: hamigua <hamigua@linuxisr.org> X# X# $FreeBSD$ X# X XPORTNAME= mozilla XPORTVERSION= 1.6 XPORTREVISION= 1 XPORTEPOCH= 1 XCATEGORIES= chinese XMASTER_SITES= http://people.linux.net.cn/holywen/mozilla/ XPKGNAMESUFFIX= -sclp XDISTNAME= langzhcn${PORTVERSION} XEXTRACT_SUFX= .xpi X XMAINTAINER= hamigua@linuxisr.org XCOMMENT= Mozilla Simplified Chinese Language Pack (sclp) 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 XPLIST_SUB= MOZILLA=${MOZILLA} X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} >= 450002 XLOCALENAME= zh_CN.eucCN X.elif ${OSVERSION} >= 400020 XLOCALENAME= zh_CN.EUC X.else XLOCALENAME= zh_CN.EUC XLIBXPG4= LD_PRELOAD=/usr/lib/libxpg4.so; export LD_PRELOAD X.endif 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-sclp/Makefile echo x - mozilla-sclp/distinfo sed 's/^X//' >mozilla-sclp/distinfo << 'END-of-mozilla-sclp/distinfo' XMD5 (langzhcn1.6.xpi) = 5e5bfe6ee674f0638434918a56b6340c XSIZE (langzhcn1.6.xpi) = 766381 END-of-mozilla-sclp/distinfo echo c - mozilla-sclp/files mkdir -p mozilla-sclp/files > /dev/null 2>&1 echo x - mozilla-sclp/pkg-descr sed 's/^X//' >mozilla-sclp/pkg-descr << 'END-of-mozilla-sclp/pkg-descr' XMozilla is an open-source application suite for web browsing, email, XHTML editing, IRC chat, and more. X XMozilla Simplified Chinese Language Pack (sclp) provides an L10N environment Xfor GB2312 users. It is written by hamigua <hamigua@linuxsir.org> Xresource for Mozilla. X XWWW: http://people.linux.net.cn END-of-mozilla-sclp/pkg-descr echo x - mozilla-sclp/pkg-message sed 's/^X//' >mozilla-sclp/pkg-message << 'END-of-mozilla-sclp/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-sclp/pkg-message echo x - mozilla-sclp/pkg-plist sed 's/^X//' >mozilla-sclp/pkg-plist << 'END-of-mozilla-sclp/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/CN.jar Xlib/%%MOZILLA%%/chrome/zh-CN-optional.jar Xlib/%%MOZILLA%%/chrome/zh-CN.jar Xlib/%%MOZILLA%%/chrome/zh-CN_mac.jar Xlib/%%MOZILLA%%/chrome/zh-CN_unix.jar Xlib/%%MOZILLA%%/chrome/zh-CN_win.jar Xlib/%%MOZILLA%%/defaults/pref/cn.js Xlib/%%MOZILLA%%/defaults/profile/bookmarks.html Xlib/%%MOZILLA%%/defaults/profile/chrome/userChrome-example.css Xlib/%%MOZILLA%%/defaults/profile/chrome/userContent-example.css Xlib/%%MOZILLA%%/defaults/profile/CN/bookmarks.html Xlib/%%MOZILLA%%/defaults/profile/CN/chrome/userChrome-example.css Xlib/%%MOZILLA%%/defaults/profile/CN/chrome/userContent-example.css Xlib/%%MOZILLA%%/defaults/profile/CN/localstore.rdf Xlib/%%MOZILLA%%/defaults/profile/CN/mimeTypes.rdf Xlib/%%MOZILLA%%/defaults/profile/CN/panels.rdf Xlib/%%MOZILLA%%/defaults/profile/CN/search.rdf 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%%/searchplugins/bugzilla.gif Xlib/%%MOZILLA%%/searchplugins/bugzilla.src Xlib/%%MOZILLA%%/searchplugins/dmoz.gif Xlib/%%MOZILLA%%/searchplugins/dmoz.src Xlib/%%MOZILLA%%/searchplugins/google_cn.gif Xlib/%%MOZILLA%%/searchplugins/google_cn.src Xlib/%%MOZILLA%%/searchplugins/lxrmozilla.gif Xlib/%%MOZILLA%%/searchplugins/lxrmozilla.src Xlib/%%MOZILLA%%/searchplugins/mozilla.gif Xlib/%%MOZILLA%%/searchplugins/mozilla.src Xlib/%%MOZILLA%%/searchplugins/NetscapeSearch.gif Xlib/%%MOZILLA%%/searchplugins/NetscapeSearch.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/CN/chrome X@dirrm lib/%%MOZILLA%%/defaults/profile/CN END-of-mozilla-sclp/pkg-plist echo x - mozilla-sclp/files/installed-chrome.txt sed 's/^X//' >mozilla-sclp/files/installed-chrome.txt << 'END-of-mozilla-sclp/files/installed-chrome.txt' Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/global/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/communicator/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/messenger/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/editor/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/navigator/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/necko/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/cookie/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/wallet/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/pipnss/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/pippki/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/content-packs/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/help/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/mozldap/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/autoconfig/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/messenger-smime/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/messenger-mdn/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/chatzilla/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/venkman/ Xlocale,install,url,jar:resource:/chrome/zh-CN.jar!/locale/zh-CN/inspector/ Xlocale,install,url,jar:resource:/chrome/zh-CN_unix.jar!/locale/zh-CN/global-platform/ Xlocale,install,url,jar:resource:/chrome/zh-CN_unix.jar!/locale/zh-CN/communicator-platform/ Xlocale,install,url,jar:resource:/chrome/zh-CN_unix.jar!/locale/zh-CN/navigator-platform/ Xlocale,install,url,jar:resource:/chrome/CN.jar!/locale/CN/global-region/ Xlocale,install,url,jar:resource:/chrome/CN.jar!/locale/CN/communicator-region/ Xlocale,install,url,jar:resource:/chrome/CN.jar!/locale/CN/editor-region/ Xlocale,install,url,jar:resource:/chrome/CN.jar!/locale/CN/messenger-region/ Xlocale,install,url,jar:resource:/chrome/CN.jar!/locale/CN/navigator-region/ Xlocale,install,select,zh-CN Xlocale,install,select,CN END-of-mozilla-sclp/files/installed-chrome.txt echo x - mozilla-sclp/files/mozilla.sh sed 's/^X//' >mozilla-sclp/files/mozilla.sh << 'END-of-mozilla-sclp/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-sclp/files/mozilla.sh echo x - mozilla-sclp/files/unix.js sed 's/^X//' >mozilla-sclp/files/unix.js << 'END-of-mozilla-sclp/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-sclp/files/unix.js exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040202130339.3E3ED2E9>