--- scim-1.4.9.orig/debian/README.GTK +++ scim-1.4.9/debian/README.GTK @@ -0,0 +1,40 @@ +In GTK+ 2.x applications, you can use SCIM in two different modes, XIM mode or +GTK IM mode. In order to use GTK IM mode, you need to install package +scim-gtk2-immodule (which depends on scim-modules-socket). Then the +environment variable GTK_IM_MODULE will be used to determine which mode SCIM +will use. To use XIM mode, set GTK_IM_MODULE to xim (also remember you need +to set XMODIFIERS to @im=SCIM); to use GTK IM mode, set it to scim. + +Note that all GTK+ applications should work fine with SCIM in XIM mode, so the +package scim-gtk2-immodule is not essential for using SCIM in GTK+/GNOME +environments. A big disadvantage of using GTK IM mode is that it may cause +mysterious crashes if the GTK+ application (or some module the application +dynamically loads) is linked to a different version of standard C++ library +(libstdc++) as SCIM is linked to. For example, Adobe Reader (acroread) +version 7 and the official Mozilla Firefox from mozilla.org are both linked to +libstdc++5, so they will crash if you try to use the SCIM packages in unstable +(which are linked to libstdc++6) with them in GTK IM mode. For more details, +look at Debian bug #323216 [1]. + +Mainly for this reason, upstream has slightly changed the behavior of SCIM's +GTK IM mode since version 1.4.3. Until 1.4.2, SCIM claims to be preferred for +GTK IM mode in all locales, so if GTK_IM_MODULE is unset, SCIM will use GTK IM +mode (the same result as GTK_IM_MODULE set to scim) in GTK+ 2.x applications, +which makes GTK IM mode sort of the "default mode". Since 1.4.3, however, +SCIM no longer claims preferred for GTK IM mode in any locale, so unless +GTK_IM_MODULE is set to scim, SCIM will not use GTK IM mode. The side effect +of this change, is that if you have been using GTK IM mode with out setting +GTK_IM_MODULE, your SCIM will suddenly stop working after you upgrade to a +version higher than 1.4.2, you need to set GTK_IM_MODULE to scim to resume the +previous behavior. + +The support for XIM mode in GTK+ 2.x has been significantly improved since the +days of version 2.0. Although there are still small glitches here an there, +XIM mode is generally quite usable. Because of the crash bug mentioned above, +as well as the default mode change by upstream, the maintainer now recommends +using XIM mode even in GTK+ applications. The maintainer himself has been +mainly using XIM mode for a long time, and it had been serving him well. :-) + +1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323216 + +vim:textwidth=78: --- scim-1.4.9.orig/debian/scim.NEWS +++ scim-1.4.9/debian/scim.NEWS @@ -0,0 +1,63 @@ +scim (1.4.7-2) unstable; urgency=low + + Since 1.4.5, upstream has changed the default setting (in /etc/scim/config) + of /FrontEnd/X11/Dynamic from "true" to "false". This change is to make the + "deadkeys" on many European keyboards working correctly with SCIM. + + However, in XIM mode, this setting causes problems for some GTK+ programs, + most notable nautilus. Sometimes, the keyboard input in the program will + completely freeze, and nothing you type will show up. As a temporary + workaround, you can choose a different input method other than "X Input + Method" in the "Input Methods" list from the right-click menu ("Default" + should usually work). + + As the existent user configurations are kept after upgrade, this change + should only affect new users or new installs. If you don't have deadkeys on + your keyboard and want to keep using XIM mode, you can change the setting of + /FrontEnd/X11/Dynamic in /etc/scim/config file (system configuration) or + $(HOME)/.scim/config file (per-user configuration) back to "true" (make sure + scim is not running when editing $(HOME)/.scim/config). Alternatively, you + can choose a different input method mode other than XIM, such as using the + scim-immodule configuration for im-switch provided by scim package (you need + scim-gtk2-immodule package installed to use this configuration). Read + /usr/share/doc/scim/README.GTK for more information about choosing from + different input method modes. + + -- Ming Hua Mon, 23 Jul 2007 14:38:30 -0500 + +scim (1.4.4-1) unstable; urgency=low + + Since scim 1.4.3, upstream has changed in which locales GTK+ will prefer + scim as the IM module, from "*" (every locale) to "" (no locale). This + means if environment variable GTK_IM_MODULE is not set, GTK+ applications + will no longer use scim as its IM module by default (the default module will + depend on your locale and other installed input methods). So if you have + been relying on this behavior, your input method in GTK+ applications will + stop working after scim upgrade. To use scim as the GTK input method, make + sure you have set GTK_IM_MODULE to scim. Please read README.GTK in + /usr/share/doc/scim/ for more details. + + -- Ming Hua Sun, 15 Jan 2006 03:20:04 -0600 + +scim (1.4.1-1) unstable; urgency=low + + After upgrading from scim 1.0 to 1.4, you need to restart scim to have + it working properly. The simple way to restart scim is just + restarting X. Also the settings in ~/.scim for 1.0 may be + incompatible with 1.4, so if you encounter strange behaviour after + upgrading, move ~/.scim out of the way and try again. + + New scim 1.4 packages are not compatible with old IMEngines compiled + against scim 1.0. The new scim 1.4.1-1 package should conflict with + all old scim 1.0 packages, but if you are using unofficial IMEngines, + you need to install libscim-dev and recompile. + + Debian is having a C++ ABI transition, and new scim 1.4 packages are + compiled with g++ 4.0. This may cause prolem if you are using third + party softwares that are compiled with g++ 3.3 (or even some Debian + packages that hasn't finished the transition yet), especially if you + are using the GTK IM module for scim. A workaround would be using XIM + by setting GTK_IM_MODULE to xim. Please read the documentation in + /usr/share/doc/scim/README.Debian.gz for details. + + -- Ming Hua Thu, 11 Aug 2005 22:36:52 -0500 --- scim-1.4.9.orig/debian/scim.install +++ scim-1.4.9/debian/scim.install @@ -0,0 +1,31 @@ +etc/scim/config +etc/scim/global + +etc/X11/xinit/xinput.d/scim +etc/X11/xinit/xinput.d/scim-immodule + +usr/bin/scim +usr/bin/scim-config-agent +usr/bin/scim-setup + +usr/lib/scim-1.0/scim-helper-launcher +usr/lib/scim-1.0/scim-helper-manager +usr/lib/scim-1.0/scim-launcher +usr/lib/scim-1.0/scim-panel-gtk + +usr/lib/scim-1.0/1.4.0/Config/simple.so +usr/lib/scim-1.0/1.4.0/Filter/sctc.so +usr/lib/scim-1.0/1.4.0/FrontEnd/x11.so +usr/lib/scim-1.0/1.4.0/Helper/setup.so +usr/lib/scim-1.0/1.4.0/IMEngine/rawcode.so +usr/lib/scim-1.0/1.4.0/SetupUI/aaa-frontend-setup.so +usr/lib/scim-1.0/1.4.0/SetupUI/aaa-imengine-setup.so +usr/lib/scim-1.0/1.4.0/SetupUI/panel-gtk-setup.so + +usr/share/applications/scim-setup.desktop + +usr/share/locale/*/LC_MESSAGES/scim.mo +usr/share/pixmaps/scim-setup.png +usr/share/scim/icons/*.png + +usr/share/bug/scim/script --- scim-1.4.9.orig/debian/scim-dev-doc.docs +++ scim-1.4.9/debian/scim-dev-doc.docs @@ -0,0 +1,4 @@ +docs/developers +docs/design.zh_CN + +docs/html --- scim-1.4.9.orig/debian/scim-gtk2-immodule.install +++ scim-1.4.9/debian/scim-gtk2-immodule.install @@ -0,0 +1 @@ +usr/lib/gtk-2.0/*/immodules/im-scim.so --- scim-1.4.9.orig/debian/copyright +++ scim-1.4.9/debian/copyright @@ -0,0 +1,193 @@ +This package was debianized by Anthony Fok on Sat, +05 Apr 2003 23:38:30 +0800. The current package maintainers are Ming Hua + and Osamu Aoki . + +The upstream release was downloaded from: + http://prdownloads.sourceforge.net/scim/scim-1.4.7.tar.gz +on 28 Jun 2007. + +Upstream Home Page: http://www.scim-im.org/ + +Upstream Authors: James Su + LIU Cougar + and many developers and translators + +Upstream Copyright and License: + + The whole scim software is licensed under GNU Lesser General Public + License, version 2 (or any later version). Some of the files are + under an MIT/BSD like permissive license. + +- The file FrameMgr.c and FrameMgr.h in modules/FrontEnd/IMdkit/: + + Copyright (C) 1993,1994 Digital Equipment Corporation, Maynard, + Massachusetts. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Digital or MIT not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING + ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR + ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + SOFTWARE. + +- The file IMConn.c, IMMethod.c, IMValues.c, IMdkit.h, Xi18n.h, Xi18nX.h, + XimFunc.h, i18nAttr.c, i18nClbk.c, i18nIc.c, i18nMethod.c, i18nPtHdr.c, + i18nUtil.c and i18nX.c in modules/FrontEnd/IMdkit/: + + Copyright (C) 1994,1995 Sun Microsystems, Inc. + Copyright (C) 1993,1994 Hewlett-Packard Company. + + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation, and that the name of Sun Microsystems, Inc. + and Hewlett-Packard not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior permission. + Sun Microsystems, Inc. and Hewlett-Packard make no representations about + the suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + + SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL + WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +- The file modules/FrontEnd/IMdkit/XimProto.h: + + Copyright (C) 1992,1993,1994 FUJITSU LIMITED. + + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation, and that the name of FUJITSU LIMITED + not be used in advertising or publicity pertaining to distribution + of the software without specific, written prior permission. + FUJITSU LIMITED makes no representations about the suitability of + this software for any purpose. + It is provided "as is" without express or implied warranty. + + FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + +- The file modules/FrontEnd/IMdkit/Xtrans.h: + + Copyright (c) 1993,1994 X Consortium. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + Except as contained in this notice, the name of the X Consortium shall + not be used in advertising or otherwise to promote the sale, use or + other dealings in this Software without prior written authorization + from the X Consortium. + + Copyright (c) 1993,1994 NCR Corporation - Dayton, Ohio, USA. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, provided + that the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name NCR not be used in advertising + or publicity pertaining to distribution of the software without specific, + written prior permission. NCR makes no representations about the + suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + + NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN + NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, + NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +- The file modules/FrontEnd/IMdkit/i18nIMProto.c: + + Copyright (C) 1993,1994 Digital Equipment Corporation, Maynard, + Massachusetts. + Copyright (C) 1993,1994 Hewlett-Packard Company. + Copyright (C) 1994,1995 Sun Microsystems, Inc. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Digital or MIT not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + DIGITAL AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL WARRANTIES WITH REGARD + TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS, IN NO EVENT SHALL DIGITAL AND HEWLETT-PACKARD COMPANY BE LIABLE + FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +- Everything else: + + Copyright (C) 2002-2007 James Su and other contributors. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + +Debian packaging and license: + + The Debian packaging is: + + Copyright (C) 2003,2004 Anthony Fok + Copyright (C) 2004-2008 Ming Hua + Copyright (C) 2004-2007 Osamu Aoki + + The packaging is license under the same license as scim, i.e., GNU + Lesser General Public License, version 2 or later. + +On Debian systems, the complete text of the version 2.1 of GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. --- scim-1.4.9.orig/debian/scim.prerm +++ scim-1.4.9/debian/scim.prerm @@ -0,0 +1,37 @@ +#!/bin/sh +set -e + +ua_remove () { + update-alternatives \ + --remove xinput-$1 \ + /etc/X11/xinit/xinput.d/$2 ; +} + +case "$1" in + remove|upgrade|deconfigure) + ua_remove all_ALL scim + ua_remove ja_JP scim + ua_remove ko_KR scim + ua_remove zh_CN scim + ua_remove zh_TW scim + ua_remove zh_HK scim + ua_remove zh_SG scim + ua_remove all_ALL scim-immodule + ua_remove ja_JP scim-immodule + ua_remove ko_KR scim-immodule + ua_remove zh_CN scim-immodule + ua_remove zh_TW scim-immodule + ua_remove zh_HK scim-immodule + ua_remove zh_SG scim-immodule + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- scim-1.4.9.orig/debian/control +++ scim-1.4.9/debian/control @@ -0,0 +1,148 @@ +Source: scim +Section: utils +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Ming Hua +Uploaders: + Osamu Aoki , + Rolf Leggewie , + LI Daobing +Build-Depends: dpkg-dev (>= 1.14.6), debhelper (>= 7), dpatch, autotools-dev, pkg-config, x11proto-core-dev, libx11-dev, libpango1.0-dev, libglib2.0-dev, libgtk2.0-dev (>= 2.10.1) +Standards-Version: 3.8.1 +Homepage: http://www.scim-im.org/ +Vcs-Svn: svn://svn.debian.org/pkg-ime/scim/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-ime/scim/trunk/ + +Package: scim +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: scim-gtk2-immodule (= ${binary:Version}), im-switch, scim-bridge-agent +Suggests: scim-uim, scim-pinyin, scim-hangul, scim-chewing, scim-m17n, scim-prime, scim-anthy, scim-skk, scim-canna, scim-tables-additional, scim-tables-ja, scim-tables-ko, scim-tables-zh, scim-thai +Conflicts: scim-tables-zh (<< 0.4.2), scim-tables-ja (<< 0.4.2), scim-tables-ko (<< 0.4.2), scim-tables-additional (<< 0.4.2), scim-gtk2-immodule (<< 1.2.0), scim-server-socket (<< 1.2.0), scim-frontend-socket (<< 1.2.0), scim-config-socket (<< 1.2.0), scim-config-gconf (<< 1.2.0), scim-chinese (<< 0.5.0), scim-uim (<= 0.1.3-2), scim-m17n (<= 0.1.3-1), scim-hangul (<= 0.1.2-1), scim-chewing (<= 0.2.0-2.1) +Description: smart common input method platform + Smart Common Input Method (SCIM) is an input method (IM) platform. Input + methods are needed to enter complex characters in many non-latin languages. + SCIM provides a common platform for various plugin modules and independent IM + programs, as well as a set of modules and programs on its own. It is highly + modularized and exposes abstract interfaces, so that plugin modules with + different functions can easily communicate with each other. The currently + supported module types are configuration, IM engine, front end, filter, and + setup GUI. + . + SCIM achieves the communication between IM engines and front ends through + both shared library linking and server/client mode. It supports XIM + protocol, as well as GTK+ IM module and Qt IM module. + . + This package is the main binary package of SCIM. It includes: the main + program scim (GTK+ based) and other support programs; simple configuration + module, X11 front end module, rawcode IM engine module, + simplified/traditional Chinese conversion filter module, and their + corresponding setup GUI modules; GTK+ panel and its setup GUI module; and a + GTK+ based setup tool. + . + SCIM is a well accepted platform and features various input method engines + for many languages. In Debian you can find the following separately packaged + IMs useful: scim-tables-{additional,ja,ko,zh}, scim-pinyin, scim-uim, + scim-m17n, scim-chewing, scim-anthy, scim-canna, scim-prime, and scim-skk. + GTK+ users would also find package scim-gtk2-immodule useful for GTK+ IM + module support. + . + For development on SCIM platform, please see the description of scim-dev + package. + +Package: libscim8c2a +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: scim (<< 1.2.0), libscim8, scim-gtk2-immodule (<< 1.4.9-2) +Replaces: scim (<< 1.2.0), libscim8 +Description: library for SCIM platform + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package provides runtime libraries for SCIM platform. + . + For more information about SCIM, please see the description of scim package. + +Package: libscim-dev +Section: libdevel +Architecture: any +Depends: libscim8c2a (= ${binary:Version}), libx11-dev, libgtk2.0-dev, libpango1.0-dev, ${misc:Depends} +Conflicts: scim-dev (<< 1.2.0) +Replaces: scim-dev (<< 1.2.0) +Description: development library for SCIM platform + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package provides development libraries on SCIM platform, including the + header files and static libraries. The development documentations can be + found in the scim-dev-doc package. + . + SCIM can be used as a dynamically loaded library on a single machine, or as a + server/client model through socket in a network environment. As a component + of the system, SCIM can work with existing IM framework such as XIM or IIIMF + (in progress), as well as using client specific IM interface, such as GTK+ + IM module or Qt IM module. SCIM provides an IM application, scim, which use + various IM engines to provide input methods for many languages, either by + native modules (such as scim-pinyin and scim-hangul) or interfaces to other + IM libraries (such as scim-anthy, scim-uim, scim-m17n, and scim-chewing). + . + For more information about SCIM, please see the description of scim package. + +Package: scim-gtk2-immodule +Architecture: any +Depends: scim, scim-modules-socket (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Enhances: scim +Description: GTK+2 input method module with SCIM as backend + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package is the GTK+ 2.x native input method module for SCIM. It provide + a GTK+ IM module with SCIM as the input backend. This input method module + should work within all GTK+ 2.x platforms, including gtk-x11, gtk-linuxfb and + gtk-directfb. + . + The GTK+ IM module communicates with SCIM backend through the socket IM engine + module and socket front end module provided by scim-modules-socket package. + . + For more information about SCIM, please see the description of scim package. + +Package: scim-modules-socket +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: scim-config-socket, scim-frontend-socket, scim-server-socket +Replaces: scim-config-socket, scim-frontend-socket, scim-server-socket +Provides: scim-config-socket, scim-frontend-socket, scim-server-socket +Enhances: scim +Description: socket modules for SCIM platform + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package provides the socket modules for SCIM. SCIM can use a local or + inet socket as the front end and connect to the configuration and IM engine + modules. Then other computers and/or environments can share these input + methods by connecting to the socket with socket IM engine module and socket + configure module. + . + For more information about SCIM, please see the description of scim package. + +Package: scim-dev +Section: devel +Architecture: all +Depends: libscim-dev (>= ${source:Version}), scim-dev-doc (= ${source:Version}), ${misc:Depends} +Description: development files for SCIM platform + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package is a metapackage to provide development libraries and + documentations for SCIM platform. + . + For more information about SCIM, please see the description of scim package. + +Package: scim-dev-doc +Section: doc +Depends: ${misc:Depends} +Architecture: all +Description: development documentation for SCIM platform + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + This package contains doxygen-generated HTML development documentation + for SCIM APIs. + . + For more information about SCIM and SCIM development, please see the + description of scim and scim-dev packages. --- scim-1.4.9.orig/debian/watch +++ scim-1.4.9/debian/watch @@ -0,0 +1,7 @@ +# debian/watch file for scim +# written by Ming Hua on 2006.11.25 + +# format version number +version=3 +# special URL parsed as qa.debian.org redirector for sourceforge +http://sf.net/scim/scim-(1\.4\.[\d\.]*)\.tar\.gz debian uupdate --- scim-1.4.9.orig/debian/README.Qt +++ scim-1.4.9/debian/README.Qt @@ -0,0 +1,37 @@ +SCIM supports three different input modes -- XIM mode, GTK IM mode, and Qt 3 +IM mode. The Qt 3 IM mode needs an unofficial patch for Qt 3, because +Trolltech has said that such patch can't go into Qt 3 as it's considered too +intrusive. Debian's Qt maintainers has included this patch into Qt 3 packages +since version 3:3.3.5-4. + +Qt 4 has plans to officially support input methods, but the current status in +Qt 4.3.2 is still not clear (at least to the author of this README). And +there is currently no Qt 4 IM module support for SCIM in Debian. + +Therefore, Qt/KDE 3 applications can use either XIM mode or Qt 3 IM mode for +SCIM. These can be easily set and changed with the im-switch package. The +XIM mode support is included in scim package. To use Qt 3 IM mode, you also +need to install scim-qtimm package. Qt/KDE 4 applications only have the +option of XIM mode, but it should work just fine. + +When using XIM mode in Qt 3, You need to pay extra attention on two things: + +1. Both Qt and SCIM have their own settings for XIM style, so you need to make +sure they match. There are two commonly used XIM styles, usually called "on +the spot" and "over the spot". To change the style in SCIM, run scim-setup +(or choose "SCIM Input Method Setup" from your menu), and go to the "FrontEnd +-> Global Setup" page. The option to change XIM style is "Embed Preedit +String into client window", when it is selected, you are using "on the spot" +style; and when it is not selected, you are using "over the spot" style. To +change the style in Qt, run qtconfig (or choose "Qt3 Configuration" from your +menu), go to "Interface" tab, and choose the style in the "XIM Input Style" +dropdown menu at the bottom. You usually don't need the "off the spot" or +"root" style. + +2. It is reported that some of the KDE applications don't work very well when +using "on the spot" style. So if your application behaves strangely, you may +want to try switching to "over the spot" style first. + +(Last updated by Ming Hua, on Sat, 13 Oct 2007) + +vim:textwidth=78: --- scim-1.4.9.orig/debian/README.Debian +++ scim-1.4.9/debian/README.Debian @@ -0,0 +1,253 @@ + =========================================== + Brief User's Guide for SCIM (version 1.4.4) + =========================================== + +SCIM is an input method platform, and supports many different input methods +(IMs) to make input of complicated characters in X environment possible. +There are SCIM plugin modules for many languages such as Japanese, Chinese, +Korean, Arabic, and many Indic languages. + +Alternative documents in Japanese and English are available at: + http://wiki.debian.org/JapaneseEnvironmentE (English) + http://wiki.debian.org/JapaneseEnvironment (Japanese) + http://wiki.debian.org/UTF8vimE (English) + http://wiki.debian.org/UTF8vim (Japanese) +These are focused to use im-switch and UTF-8 locales under etch. + +--------------- +Debian Packages +--------------- + +The package scim is the core package of SCIM platform. To really use SCIM you +also need one module package to provide input methods for the language you +use. The modules packaged in Debian currently are (categorized by language): + +scim-anthy, scim-uim, scim-skk, scim-prime, scim-canna, scim-tables-ja + (for Japanese) +scim-pinyin, scim-tables-zh + (for simplified Chinese) +scim-chewing, scim-tables-zh + (for traditional Chinese) +scim-hangul, scim-tables-ko, scim-uim + (for Korean) +scim-m17n, scim-tables-additional, scim-uim + (for other languages) + +You need to read the documentation of the particular module package to see if +your language or favorite input method is supported. + +The package scim-gtk2-immodule provides GTK IM mode for SCIM. Contrary to the +popular conception, you do NOT need this package to be able to use SCIM in +GTK+/GNOME applications. Those applications can use XIM mode just fine. For +more details, please read README.GTK. + +There are two other programs need mentioning: skim and scim-qtimm. Both are +for Qt/KDE integration of SCIM. Qt/KDE applications can also use XIM mode just +fine. Read README.Qt if you want to use SCIM in Qt/KDE applications. + +In summary, you should install package scim and one of the IM module package +to start. You may install scim-gtk2-immodule if you use GTK+ applications and +want to try the GTK IM mode. You shouldn't need to explicitly install any +other package as they should be installed as necessary due to dependency. + +------- +Locales +------- + +SCIM should work in all UTF-8 locales. It can also work in some Chinese (zh), +Japanese (ja), and Korean (ko) non UTF-8 locales, but it usually requires some +additional configuration. The maintainer of scim package recommends using +UTF-8 locale. :-) + +There is one limitation in SCIM, that you must tell SCIM the UTF-8 locale you +want to use SCIM in. This is recorded in the user's configuration file +~/.scim/global. You need to add a line of the format + /SupportedUnicodeLocales = +to your ~/.scim/global file unless you use en_US.UTF-8 locale (which is +supported by default). The string should be in ll_CC.UTF-8 +form, where ll being the language, and CC being the country. You can always +use the "locale" command to check your locale setting. You can also add +multiple locales there, just separate them by comma without space, like + /SupportedUnicodeLocales = en_US.UTF-8,en_GB.UTF_8,fr_FR.UTF-8 + +If you have never used SCIM before, your ~/.scim/global may be not existent. +You can run ``scim'' from an X terminal, then press Ctrl-C to abort it, this +configure file should be created for the user. + +If there are many users on a system and use the same locale, you may want to +consider change the system configuration file /etc/scim/global to set the +supported locale. + +---------- +Using SCIM +---------- + +After setting up locale, you can try using SCIM to input in your language. +SCIM can be used in two modes: XIM mode and GTK IM mode. + +To use XIM (X Input Method) mode, you need to set the environment variable +XMODIFIERS and GTK_IM_MODULE before starting your X application (you only need +to set GTK_IM_MODULE if the X application you want to run also uses GTK+). +Run the following commands in an X terminal (such as xterm, gnome-terminal or +konsole): + $ XMODIFIERS="@im=SCIM" + $ export XMODIFIERS + $ GTK_IM_MODULE="xim" + $ export GTK_IM_MODULE + $ scim -d +Now you should see some output by SCIM saying it's successfully launched, and +if your have a system tray, there should be an icon of keyboard image +appearing there (the image of the icon will change according to the input +method status). Then you can start an X program in the same terminal, for +example + $ gedit +will start the gedit text editor. Press Ctrl-space should activate SCIM and +you can start using your input method (remember you need to install the module +package for your input method). Note you must start the program you want to +use input method in from the same X terminal. To enable using SCIM in +programs launched in any way, see the "Autostart SCIM" section below. + +GTK+ 2 has its own input method framework, so GTK+/GNOME programs can use SCIM +in an additional mode, GTK IM mode. Note again that GTK+/GNOME programs can +use XIM mode, too, so the scim-gtk2-immodule and GTK IM mode are not essential +for using input methods in GTK+ applications. SCIM's GTK IM mode is provided +as a GTK IM module by the scim-gtk2-immodule package, and SCIM can +automatically start if you choose this module. So using GTK IM mode is +simpler, just start a GTK+/GNOME program, right-click and choose "Input +Methods -> SCIM Input Method" in the pop-up menu, and SCIM should +automatically start if it's not started yet. Now pressing Ctrl-space should +also activate SCIM and you can start typing. An alternative way to start +GTK+ applications using SCIM at the GTK IM module is by using GTK_IM_MODULE +environment variable, such as: + $ GTK_IM_MODULE="scim" + $ export GTK_IM_MODULE + $ gedit +This way SCIM will automatically start when you start the GTK+ program, and +automatically stop when you quit the program. This may cause delay for +program start/quit though, so it's always a good idea to explicitly start SCIM +by "scim -d" command. + +-------------- +Autostart SCIM +-------------- + +It's quite inconvenient to set environment variables and manually start SCIM +each time you log in, so you want to start SCIM automatically when your X +session starts. This is not hard, you just need to put the commands of +setting variables and start SCIM into a configuration file X reads when it +starts. For example, the following lines in ~/.gnomerc should work if you +want to start SCIM automatically with GNOME: + LANG=en_US.UTF-8 + export LANG + XMODIFIERS="@im=SCIM" + export XMODIFIERS + GTK_IM_MODULE="xim" + export GTK_IM_MODULE + scim -d +Change the en_US.UTF-8 to your preferred locale, and change GTK_IM_MODULE to +"scim" if you want to use GTK IM mode instead of XIM mode. + +The hard part is to figure out which configuration file to put these in. One +choice is to put it in ~/.xsession, and add your X session command at the end +of the file (such as "exec gnome-session" or "exec startkde"). But this way +you always need to modify this file to change X session, and the feature of +choosing session in GDM/KDM will not work anymore. + +There are other packages to help these configuration easier, see the next +section. + +--------------- +Helper Packages +--------------- + +The im-switch package will help user to set up their input methods. + +The im-switch package provides the framework for input method packages to +provide their own customization scripts. It uses hook script in +/etc/X11/Xsession.d/ to read these customization scripts and set environment +for input methods. But this package's configuration is choosing among SCIM, +UIM, ... etc only. The detail choices within SCIM modules are done by +installing relevant packages and configuring through SCIM GUI configuration +tool. (This is the same situation between UIM modules.) + +If you start X in one of CJK environment while scim and im-switch are +installed, it should start SCIM automatically unless you have higher priority +package for IM. + +To see what is your IM, + $ im-switch -l +will list complete situation. If you just want to set one user account +to use SCIM, just type: + $ im-switch -s scim +The same can be done with menu selection as: + $ im-switch -c + +If you do the same from root use, you set system wide default. + # im-switch -s scim + # im-switch -c + +The activation of SCIM is default only for Chinese, Japanese and Korean (CJK) +environment. Above command set up SCIM only for one locale. If you wish to +enable SCIM system wide for all locales, configure SCIM from root as: + # im-switch -z zh_CN -s scim + # im-switch -z zh_TW -s scim + # im-switch -z zh_HK -s scim + # im-switch -z zh_SG -s scim + # im-switch -z ja_JP -s scim + # im-switch -z ko_KR -s scim + # im-switch -z all_ALL -s scim + +Then you clear the user specific configurations with + $ im-switch -a + +If you wish to load SCIM for the GTK applications through immodule mechanism +despite the warning in the README.GTK, we offer a configuration file +"scim-immodule" for it. Use it at your risk. + +UTF-8 locales such as ja_JP.UTF-8 enables to edit any text of any +languages, i.e., multilingualization (m17n) environment. Thus UTF-8 +locale are recommended to be used with SCIM. In order to edit files +encoded in other locales such as ja_JP.eucJP, pl_PL.ISO-8859-2, ..., +you need to set up editor to handle them too. Please refer to + +The im-switch package does not change ~/.scim/global or /etc/scim/global +to enable all available UTF-8 locales for SCIM since you may want to start +some locales without SCIM. You still need to manually enable your locale +(see the "Locales" section above). + +Select UTF-8 locale using GDM/KDM menu. + +(You can also add customization scripts in /etc/X11/Xsession.d/ directly, +of course, but the maintainer would discourage this.) + +------------------- +Further information +------------------- + +Debian users should read the other README files in /usr/share/doc/scim/ for +using SCIM in different desktop environments. There is also an scim(1) man +page worth reading. + +The Debian packaging work of SCIM related packages is coordinated on a mailing +list on Alioth, pkg-ime-devel@list.alioth.debian.org. You can subscribe to it +or read the web archives for some useful information. See + http://lists.alioth.debian.org/mailman/listinfo/pkg-ime-devel +about this mailing list. + +The SCIM upstream website is at http://www.scim-im.org/ but the Debian +specific information is probably quite sparse. + +----------- +Report Bugs +----------- + +SCIM is still not perfect, and there are always some corner case usability +issues. So please report bugs (install the reportbug package and use the +reportbug program, it's not hard to report a bug)! SCIM involves many +languages and input methods, only with every user's testing and help can we +keep improving it and provide better input method support in Debian. Thanks! + + -- Ming Hua Sun, 15 Jan 2006 08:15:48 -0600 + -- Osamu Aoki Sat, 20 May 2006 02:45:20 +0900 + +vim:textwidth=78: --- scim-1.4.9.orig/debian/libscim8c2a.install +++ scim-1.4.9/debian/libscim8c2a.install @@ -0,0 +1,6 @@ +usr/lib/libscim-1.0.so.8 +usr/lib/libscim-1.0.so.8.* +usr/lib/libscim-gtkutils-1.0.so.8 +usr/lib/libscim-gtkutils-1.0.so.8.* +usr/lib/libscim-x11utils-1.0.so.8 +usr/lib/libscim-x11utils-1.0.so.8.* --- scim-1.4.9.orig/debian/scim.docs +++ scim-1.4.9/debian/scim.docs @@ -0,0 +1,8 @@ +AUTHORS +README +TODO + +docs/manual/zh_CN + +debian/README.GTK +debian/README.Qt --- scim-1.4.9.orig/debian/rules +++ scim-1.4.9/debian/rules @@ -0,0 +1,147 @@ +#!/usr/bin/make -f +# +# debian/rules for scim package +# Copyright Ming Hua , 2006 +# Copyright Rolf Leggewie , 2009 +# +# This file is distributed under the same license as SCIM. + +# uncomment this to turn on verbose mode +#export DH_VERBOSE = 1 + +# set the platform for configure script, especially useful for cross-compiling +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_HOST_GNU_TYPE), $(DEB_BUILD_GNU_TYPE)) + CONFFLAGS += --build=$(DEB_BUILD_GNU_TYPE) +else + CONFFLAGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif +# for more information, see /usr/share/doc/autotools-dev/README.Debian.gz + +# set compiler flags, enable warning and debug +CFLAGS += -W -g +CXXFLAGS += -W -g +# set optimization level +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O + CXXFLAGS += -O +else + CFLAGS += -O0 + CXXFLAGS += -O0 +endif + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + # http://bugs.debian.org/427520 + rm -f docs/manual/zh_CN/user-manual.* + # only run "make distclean" if a Makefile exists + [ ! -f Makefile ] || $(MAKE) distclean + # remove existent config.{guess,sub} as we use the ones from + # autotools-dev package + rm -f config.guess config.sub + dh_clean + +patch: patch-stamp +patch-stamp: + dh_testdir + dpatch apply-all + # fix timestamp skews, note this is still quite hackish and depends on + # which files the 90_relibtoolize patch touches + touch -r config.h.in aclocal.m4 configure.ac + # put information about applied patches in the stamp file + dpatch cat-all -nd >$@ + +unpatch: + dh_testdir + dpatch deapply-all + rm -rf debian/patched + rm -f patch-stamp + +config.status: patch-stamp + dh_testdir + # link config.{guess,sub} from autotools-dev package + ln -sf /usr/share/misc/config.guess config.guess + ln -sf /usr/share/misc/config.sub config.sub + rm -f config.cache + # run configure with all necessary definitions and options + ./configure \ + CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(CXXFLAGS)" \ + $(CONFFLAGS) \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --sysconfdir=/etc + +build: build-stamp +build-stamp: config.status + dh_testdir + dh_clean + $(MAKE) + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + # install im-switch support + install -m 644 -D \ + debian/im-switch/scim debian/tmp/etc/X11/xinit/xinput.d/scim + install -m 644 -D \ + debian/im-switch/scim-immodule \ + debian/tmp/etc/X11/xinit/xinput.d/scim-immodule + # install reportbug script + install -m 755 -D \ + debian/scim.script debian/tmp/usr/share/bug/scim/script + # clean up unnecessary static library files for modules + mkdir -p debian/tmp/usr/lib/gtk-2.0/`pkg-config --variable=gtk_binary_version gtk+-2.0`/ + mv debian/tmp/usr/lib/gtk-2.0/immodules \ + debian/tmp/usr/lib/gtk-2.0/`pkg-config --variable=gtk_binary_version gtk+-2.0`/ + rm -rf debian/tmp/usr/share/control-center-2.0 + rm -f debian/tmp/usr/lib/scim-1.0/1.4.0/*/*.la + rm -f debian/tmp/usr/lib/scim-1.0/1.4.0/*/*.a + rm -f debian/tmp/usr/lib/gtk-2.0/*/immodules/im-scim.a + rm -f debian/tmp/usr/lib/gtk-2.0/*/immodules/im-scim.la + # distribute files to different binary packages + dh_install --sourcedir=debian/tmp --fail-missing +# # Lintian overrides. +# install -m 644 -D \ +# debian/libscim8c2a.overrides debian/tmp/libscim8c2a/usr/share/lintian/overrides/libscim8c2a + touch $@ + +binary: binary-arch binary-indep + +binary-arch: build + dh_testdir + dh_testroot + dh_installchangelogs -a ChangeLog + dh_installdocs -a -X Makefile + dh_installman -a + LD_LIBRARY_PATH=debian/libscim8c2a/usr/lib:$(LD_LIBRARY_PATH) \ + dh_gtkmodules -p scim-gtk2-immodule + dh_lintian + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -p libscim8c2a -V "libscim8c2a (>= 1.4.9)" + dh_installdeb -a + dh_shlibdeps -a -l debian/libscim8c2a/usr/lib -L libscim8c2a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: build + dh_testdir + dh_testroot + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +.SUFFIXES: +.PHONY: clean build binary binary-arch binary-indep clean-patched patch unpatch + +# vim:textwidth=0: --- scim-1.4.9.orig/debian/scim-modules-socket.install +++ scim-1.4.9/debian/scim-modules-socket.install @@ -0,0 +1,3 @@ +usr/lib/scim-1.0/1.4.0/Config/socket.so +usr/lib/scim-1.0/1.4.0/FrontEnd/socket.so +usr/lib/scim-1.0/1.4.0/IMEngine/socket.so --- scim-1.4.9.orig/debian/libscim-dev.install +++ scim-1.4.9/debian/libscim-dev.install @@ -0,0 +1,17 @@ +usr/lib/libscim-1.0.so +usr/lib/libscim-1.0.a +usr/lib/libscim-1.0.la +usr/lib/pkgconfig/scim.pc +usr/include/scim-1.0/*.h + +usr/lib/libscim-gtkutils-1.0.so +usr/lib/libscim-gtkutils-1.0.a +usr/lib/libscim-gtkutils-1.0.la +usr/lib/pkgconfig/scim-gtkutils.pc +usr/include/scim-1.0/gtk/*.h + +usr/lib/libscim-x11utils-1.0.so +usr/lib/libscim-x11utils-1.0.a +usr/lib/libscim-x11utils-1.0.la +usr/lib/pkgconfig/scim-x11utils.pc +usr/include/scim-1.0/x11/*.h --- scim-1.4.9.orig/debian/scim.postinst +++ scim-1.4.9/debian/scim.postinst @@ -0,0 +1,91 @@ +#! /bin/sh +# postinst script for scim +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. +ua_inst () { + update-alternatives \ + --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \ + /etc/X11/xinit/xinput.d/$2 $3 ; +} + +# If u-a is in manual mode as a result of the bug in +# 1.4.7-3ubuntu1, reset it back to auto. +# Also forcefully remove the scim-bridge entry from xinput_all-ALL in u-a. +if dpkg --compare-versions "$2" ge 1.4.7-3ubuntu1 \ + && dpkg --compare-versions "$2" lt-nl 1.4.7-3ubuntu5 +then + for conf in ja_JP ko_KR zh_CN zh_HK zh_SG zh_TW all_ALL + do + if LC_ALL=C update-alternatives --display xinput-${conf} \ + | grep -q 'status is manual' \ + && LC_ALL=C update-alternatives --display xinput-${conf} \ + | grep -q 'currently points to .*scim-bridge' + then + update-alternatives --auto xinput-${conf} + fi + done + if LC_ALL=C update-alternatives --display xinput-all_ALL \ + | grep -q 'currently points to .*scim-bridge' + then + update-alternatives --remove xinput-all_ALL \ + /etc/X11/xinit/xinput.d/scim-bridge + fi +fi + +case "$1" in + configure) + # Set up default + #ua_inst all_ALL scim 0 + ua_inst ja_JP scim 50 + ua_inst ko_KR scim 50 + ua_inst zh_CN scim 50 + ua_inst zh_TW scim 50 + ua_inst zh_HK scim 50 + ua_inst zh_SG scim 50 + #ua_inst all_ALL scim-immodule 0 + ua_inst ja_JP scim-immodule 0 + ua_inst ko_KR scim-immodule 0 + ua_inst zh_CN scim-immodule 0 + ua_inst zh_TW scim-immodule 0 + ua_inst zh_HK scim-immodule 0 + ua_inst zh_SG scim-immodule 0 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- scim-1.4.9.orig/debian/scim.1 +++ scim-1.4.9/debian/scim.1 @@ -0,0 +1,164 @@ +.\" Copyright 2004 Osamu Aoki , +.\" 2004,2006 Ming Hua . +.\" This man page is distributed under the same license as scim package. +.\" +.TH scim 1 "January 2006" "scim 1.4.4" +. +.SH NAME +scim \(em smart common input method +. +.SH SYNOPSIS +.B scim \-l +.br +.BR scim " [" \-c " \fIconfig\fR]" +.RB [ \-e | \-ne " \fIengine\fR]" +.RB [ \-f " \fIfrontend\fR]" +.RB [ \-\-no\-socket ] +.RB [ \-d ] +.br +.B scim \-h +. +.SH DESCRIPTION +Smart common input method (SCIM) is a platform for input methods. +Input methods are useful for users who need to input characters that can't be +represented by the keys or key combinations on the keyboard, and it's +essential for languages that use ideograms, such as Chinese, Japanese and +Korean (CJK), as their alphabets contain hundreds or thousands of characters. +.PP +This is the main program of SCIM platform. +It can be used to invoke the input method as well as list available input +method modules. +. +.SH OPTIONS +Most options have both a short version and a long version, and they take the +same arguments. +.TP +.BR \-c " | " \-\-config " \fImodule\fR" +Use specified Config module. +.TP +.BR \-d " | " \-\-daemon +Run as a daemon. +The program will exit and leave a daemon in the background if invoked with +this option. +.TP +.BR \-e " | " \-\-engines " \fImodule\fR[,\fImodule\fR]..." +Use specified IMEngine modules. +Only the named module(s) will be loaded, separate module names with comma. +.TP +.BR \-ne " | " \-\-no-engines " \fImodule\fR[,\fImodule\fR]..." +Use all IMEngine modules except specified ones. +All modules except the named one(s) will be loaded, separate module names with +comma. +.TP +.BR \-f " | " \-\-frontend " \fImodule\fR" +Use specified FrontEnd module. +.TP +.BR \-h " | " \-\-help +Show summary of options. +.TP +.BR \-l " | " \-\-list +Print the version number and list all the available modules, categorized in +three groups \(em FrontEnd, Config and IMEngine. +.TP +.B \-\-no\-socket +Do not start a socket FrondEnd module. +. +.SH ENVIRONMENT +.TP +.B XMODIFIERS +Should be set to "@im=SCIM". +Note that \fBXMODIFIERS\fR is case sensitive, and \fBscim\fR need uppercase. +If you set it to lowercase, there will be no error message but \fBscim\fR +won't work. +.TP +.B GTK_IM_MODULE +GTK+ applications can use many different modules to connect with input +methods, and SCIM can work in two different modes to provide input methods to +GTK+ with two different modules. +One is XIM mode, using the "xim" GTK IM module from GTK+ itself. +The other is GTK IM mode, using the "scim" GTK IM module provided by SCIM +platform. +The environment variable \fBGTK_IM_MODULE\fR is used by GTK+ to specify which +GTK IM module the application should use, to use SCIM's two modes, set +\fBGTK_IM_MODULE\fR to "xim" or "scim" accordingly. +. +.SH EXAMPLES +To use \fBscim\fR in XIM mode, execute the following commands in an X terminal +(assuming Bourne style shell): +.RS +.B XMODIFIERS="@im=SCIM" +.br +.B export XMODIFIERS +.br +.B GTK_IM_MODULE="xim" +.br +.B export GTK_IM_MODULE +.br +.B scim \-d +.br +.RI < program > +.br +.RE +Now you can press Ctrl\-space to activate \fBscim\fR in the program you just +started from X terminal. +To avoid the inconvenience of having to start the program from X terminal, +make sure you set \fBXMODIFIERS\fR and \fBGTK_IM_MODULE\fR before starting +your X session. +.PP +To use \fBscim\fR in GTK IM mode, just start any GTK+ application, then right +click in the application, choose "Input Methods \-> SCIM Input Method" in the +pop\-up menu, and scim should automatically start. +Alternatively, you can use the following commands to set scim as the default +GTK IM module (again assuming Bourne style shell): +.RS +.B GTK_IM_MODULE="scim" +.br +.B export GTK_IM_MODULE +.br +.RI < gtk\-program > +.RE +Here \fBscim\fR will also automatically start when you start your GTK+ +program. +However, it's still a good idea to start \fBscim\fR explicitly even if you use +GTK IM mode, because if only one application is using GTK IM mode, \fBscim\fR +will automatically stop when you quit this application. +Then when you start a new application, \fBscim\fR will start again, this can +cause quite long delay for application start and quit, giving people the +impression of "everything slows down when using scim". +.PP +The following command starts \fBscim\fR in daemon mode, using the simple +configure module, Pinyin IM engine module, X11 frontend module: +.RS +.B scim \-c simple \-e pinyin \-f x11 \-\-no\-socket \-d +.RE +. +.SH FILES +.TP +.IR /etc/scim/global ", " /etc/scim/config +Configuration file for system wide settings +.TP +.IR ~/.scim/global ", " ~/.scim/config +User specific settings +. +.SH "SEE ALSO" +There is a brief English README giving some introduction and tips about SCIM, +in \fBDebian\fR system it's installed in \fI/usr/share/doc/scim/\fR and +gzipped. +There is also a (simplified) Chinese manual with more details, but it's a +little outdated. In \fBDebian\fR system it's installed in +\fI/usr/share/doc/scim/zh_CN/\fR. +.PP +\fBDebian\fR users should also read the \fINEWS.Debian\fR and +\fIREADME.Debian\fR files in \fI/usr/share/doc/scim/\fR. +There are also other README files in the same directory about using SCIM on a +\fBDebian\fR system. +. +.SH AUTHOR +SCIM platform is written by James Su and many other contributors. +.PP +This manual page is written by Osamu Aoki and Ming Hua for the \fBDebian\fR +system, but hopefully it's also useful for other users. +This document is distributed under the same license as the scim software +package. +.\" +.\" vim:textwidth=78: --- scim-1.4.9.orig/debian/scim-dev-doc.doc-base +++ scim-1.4.9/debian/scim-dev-doc.doc-base @@ -0,0 +1,15 @@ +Document: scim-dev-doc +Title: Development Documentation (API Reference) for SCIM +Author: James Su +Abstract: SCIM (Smart Common Input Method) is an input method (IM) + platform. It provides a common platform for different independent IM + programs. SCIM is highly modularized, providing abstract interfaces to + various modules for configuration, IM engine and front end. + . + This developer manual includes doxygen-generated HTML documentation for + the C++ API of SCIM. +Section: Text + +Format: HTML +Index: /usr/share/doc/scim-dev-doc/html/index.html +Files: /usr/share/doc/scim-dev-doc/html/*.html --- scim-1.4.9.orig/debian/scim.manpages +++ scim-1.4.9/debian/scim.manpages @@ -0,0 +1 @@ +debian/scim.1 --- scim-1.4.9.orig/debian/libscim8c2a.lintian-overrides +++ scim-1.4.9/debian/libscim8c2a.lintian-overrides @@ -0,0 +1,3 @@ +# packaging several libs into a single package as per +# http://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-runtime +libscim8c2a binary: package-name-doesnt-match-sonames libscim-1.0-8 libscim-gtkutils-1.0-8 libscim-x11utils-1.0-8 --- scim-1.4.9.orig/debian/libscim-dev.NEWS +++ scim-1.4.9/debian/libscim-dev.NEWS @@ -0,0 +1,20 @@ +scim (1.4.6-1) unstable; urgency=low + + Since version 1.4.5, scim has changed the $(moduledir) variable in the + scim.pc file, from "/usr/lib/scim-1.0" to "/usr/lib/scim-1.0/1.4.0". + This means the SCIM module packages that built against the new + libscim-dev package will have their files installed to a different + path. + + Therefore, all those SCIM module packages that used a patch to install + the module files in paths such as $(moduledir)/1.4.0/IMEngine/ should + drop the patch and just install the files in $(moduledir)/IMEngine/, + and bump build dependency to libscim-dev (>= 1.4.6-1). This will keep + the files installed in the same /usr/lib/scim-1.0/1.4.0/IMEngine/ + path. Packages that didn't have such a patch should pay attention + that their module files will be installed in a different path and + adjust accordingly (but don't add patch to put the files back to paths + like /usr/lib/scim-1.0/IMEngine/, those files should be put into + ABI-version specific paths). + + -- Ming Hua Fri, 04 May 2007 00:42:19 -0500 --- scim-1.4.9.orig/debian/scim.script +++ scim-1.4.9/debian/scim.script @@ -0,0 +1,19 @@ +#!/bin/sh + +# dpkg output of scim-related packages +echo "Related packages:" >&3 +dpkg-query -l "*scim*" | grep "^ii" >&3 + +echo >&3 + +# environment variables +echo "Related environment variables:" >&3 +echo "\$XMODIFIERS=$XMODIFIERS" >&3 +echo "\$GTK_IM_MODULE=$GTK_IM_MODULE" >&3 +echo "\$QT_IM_MODULE=$QT_IM_MODULE" >&3 + +echo >&3 + +# contents in /usr/lib/scim-1.0 +echo "Installed SCIM components:" >&3 +ls -R /usr/lib/scim-1.0 >&3 --- scim-1.4.9.orig/debian/TODO.Debian +++ scim-1.4.9/debian/TODO.Debian @@ -0,0 +1,14 @@ +Short Term +---------- +Add lintian override for the soname-and-library-name-mismatch error. + +Add scim-setup.desktop handling in postinst and postrm. + +Use AM_MAINTAINER_MODE in configure.ac to avoid timestamp skews. + + +Long Term +--------- +Investigate "SONAME in dynamic loaded module" issue. + +Write man pages for scim-setup and scim-config-agent. --- scim-1.4.9.orig/debian/compat +++ scim-1.4.9/debian/compat @@ -0,0 +1 @@ +7 --- scim-1.4.9.orig/debian/changelog +++ scim-1.4.9/debian/changelog @@ -0,0 +1,481 @@ +scim (1.4.9-2ubuntu0.1) lucid-proposed; urgency=low + + [ Mingxi Wu ] + * 61_fix-disappeared-status-icon.dpatch: added (LP #475800) + + -- Rolf Leggewie Fri, 07 May 2010 01:51:12 +0900 + +scim (1.4.9-2) unstable; urgency=low + + The "contributions from Ubuntu" release + + [ Rolf Leggewie ] + * debian/README*: fix some spelling mistakes and bitrot + * debian/rules: remove obsolete Chinese manual (Closes: #427520) + * debian/control: + - let scim-bridge pull in clients packages by default + - let libscim8c2a conflict with older versions of scim-gtk2-immodule + to offer Ubuntu a safe way out of earlier packaging mistakes + * debian/scim.postinst: improve handling of update-alternatives + * debian/patches: + - push back and update a number of patches from Ubuntu + - drop AltGr as trigger key from 20_scim_config.dpatch + * add a lintian override for libscim8c2a package + + [ Jari Aalto ] + * 60_gcc-4.4-const-char.dpatch: fix compile with gcc 4.4 (Closes: #560486) + + -- Rolf Leggewie Fri, 15 Jan 2010 15:03:37 +0100 + +scim (1.4.9-1) unstable; urgency=low + + [ Rolf Leggewie ] + * new upstream release (Closes: #525289) + * fix spelling mistake in im-switch files. (Closes: #494189) + * update to standard 3.8.1 and make lintian clean + * drop 90_relibtoolize.dpatch, looks like the retooling was done upstream + + [ LI Daobing ] + * debian/control: + - add me to uploaders. + - bump debhelper version to >= 7. + - fix typo in description: GTK -> GTK+. + - fix typo in description: meta package -> metapackage. + * debian/compat: + - bump debhelper version to 7. + * debian/scim-dev-doc.doc-base: change section to Text. + * debian/rules: + - bump shlib version to 1.4.9. + - change "rm" to "rm -f". + - remove deprecated desktop entry + - fix gtk immodule install dir + * debian/patches/00list: + - disable 10_remove-deprecated-desktop-entry.dpatch and + 10_gtk-immodule-install-dir.dpatch. + + -- LI Daobing Tue, 28 Apr 2009 20:58:08 +0800 + +scim (1.4.7-3) unstable; urgency=low + + The "give credit where credit is due" release. + + * Update debian/copyright. + - Update information about current package maintainers. + - Specify upstream release tarball download URL. + - Clarify the copyright and licensing information of the files in + modules/FrontEnd/IMdkit/ which are under MIT/BSD like licenses. Thanks + ZhengPeng Hou for reporting this issue. (Closes: #438639) + - Clarify copyright and licensing of Debian packaging. + - Refer to /usr/share/common-licenses/LGPL-2.1 for the text of LGPL, + instead of the symbolic link. + * Define $XIM_PROGRAM_SETS_ITSELF_AS_DAEMON variable in both "scim" and + "scim-immodule" im-switch settings, to avoid leaving a zombie process when + im-switch is used to start scim. (Closes: #431294) + * Add 50_validate-desktop-entry dpatch, to fix a few issues in + scim-setup.desktop revealed by desktop-file-validate tool. + - Use absolute path for the icon. + - Remove deprecated "Applications" category. + - Remove deprecated key "Encoding". + * Change XS-Vcs-* fields in debian/control to Vcs-*, now that they are + supported by dpkg. Bump the dpkg-dev version in build dependency to + 1.14.6, to guarantee that we have a dpkg that supports this feature. + * Use the official "Homepage" field in debian/control instead of putting the + upstream homepage in package's long description. + * Update to policy version 3.7.3. + + -- Ming Hua Mon, 28 Jan 2008 10:01:04 -0600 + +scim (1.4.7-2) unstable; urgency=low + + The "late documentation is still better than no documentation" release. + + * Enable SCIM's Qt 3 IM module setting in the im-switch configuration file + /etc/X11/xinit/Xinput.d/scim-immodule. The module is provided by the + scim-qtimm package. + * Don't install desktop entry scim-setup.desktop in deprecated location + /usr/share/control-center-2.0/capplets/ anymore. + - Add 10_remove-deprecated-desktop-entry dpatch to remove relevant part in + extras/setup/Makefile.am. + - Regenerate 90_relibtoolize dpatch. + - Remove the "usr/share/control-center-2.0/capplets/scim-setup.desktop" + line in debian/scim.install. + * Update scim package's README.Qt notes to reflect the changes related to + Qt 3 IM module since etch release. + * Add an entry in scim package's NEWS.Debian.gz notes to explain the + /FrontEnd/X11/Dynamic setting change, the problem it can cause, and the + workarounds. + * Print the value of environment variable $QT_IM_MODULE in reportbug script. + + -- Ming Hua Sat, 13 Oct 2007 22:17:59 -0500 + +scim (1.4.7-1) unstable; urgency=low + + The "keeping up with upstream" release. + + * New upstream release. + - Include missing header, this time , for a few files, to make + scim buildable with (the constantly evolving) GCC 4.3. + (Closes: #417686, again) + - Remove an infinite loop with 0.1 second timeout in the X11 frontend to + avoid waking up CPU constantly, therefore preserve power consumption and + extend laptop battery life. (Fixes LP: #122445) + - Change 10_gtk-immodule-install-dir dpatch to patch configure.ac instead + of extras/gtk2_immodule/Makefile.am, to adapt to the upstream change. + - Regenerate 90_relibtoolize dpatch. Also adjust the timestamp touching + in debian/rules accordingly. + * Clarify build dependency. + - Remove intltool as upstream tarball ships its own 0.33 version. + - Add libpango1.0-dev, libglib2.0-dev, and pkg-config explicitly (used to + be pulled in by libgtk2.0-dev). + * Add libx11-dev as a dependency of libscim-dev explicitly, it used to be + pulled in by libgtk2.0-dev. + * Add scim-thai to scim's "Suggests:" list. + * Add "-W -g" compiler flags back. The warnings are somehow useful when + reading the build logs, and the debug information will be useful for + manually built packages with DEB_BUILD_OPTIONS=nostrip. + * Change maintainer's email address. + + -- Ming Hua Sat, 30 Jun 2007 21:41:52 -0500 + +scim (1.4.6-1) unstable; urgency=low + + The "Oh, shiny!" release. + + * New upstream release. (Closes: #399736) + - Include header in src/scim_iconv.cpp, fixing FTBFS with GCC + 4.3. Thanks to Martin Michlmayr for testing and the patch. + (Closes: #417686) + - The "Exit" item in the menu of notification area icon is built by + default now, so that users can quit scim from the graphical interface. + (Closes: #417950) + - ABI changed, bump shlibs version to libscim8c2a (>= 1.4.6). + - Add debian/libscim-dev.NEWS file to alert the changes of module + installation path (will be installed as the NEWS.Debian file for + libscim-dev package). Also rename debian/NEWS file to debian/scim.NEWS. + * For the install directory of GTK IM module, use GTK binary version from + pkg-config results instead of hardcoded value. Thanks to Loïc Minier for + the patch. (Closes: #420497) + * Rename 11_relibtoolize.dpatch to 90_relibtoolize.dpatch and regenerate it. + * Correct a typo in the package description of scim. + * Add XS-Vcs-Svn and XS-Vcs-Browser fields. + * Use ${source:Version} and ${binary:Version} for versioned dependencies + instead of deprecated ${Source-Version}. Add dpkg-dev (>= 1.13.19) to + Build-Depends to support this format. + * Add "Enhances: scim" relationship for scim-gtk2-immodules and + scim-modules-socket. + + -- Ming Hua Fri, 04 May 2007 01:01:47 -0500 + +scim (1.4.4-8) unstable; urgency=low + + The "etch is released, welcome lenny" release. + + * Rewrite debian/rules. + - Use the platform detection code recommended by autotools-dev. + - Drop unused "-W -g" compiler flags. + - Do not use binary-common target anymore and separate binary-arch and + binary-indep target completely. + - Add more safeguarding code to detect building errors. + - Finally remove all the cruft introduced by dh_make. + * Adapt to GTK+ 2.10 ABI change. (Closes: 419314) + - Install GTK IM module into /usr/lib/gtk-2.0/2.10.0/immodules. + - Bump libgtk2.0-dev build dependency to >= 2.10.1-1. + - Use dh_gtkmodules in debian/rules instead of calling + update-gtk-immodules in maintainer scripts. The postinst and postrm + scripts for scim-gtk2-immodule are empty now and therefore removed. + - Add ${misc:Depends} to scim-gtk2-immodule's dependency list, and remove + libgtk2.0-bin. + * Update debian/watch file to format version 3 and use qa.debian.org + redirector for sourceforge.net. + * Drop libxt-dev in build dependency as it's not necessary anymore after + relibtoolization. + + -- Ming Hua Tue, 17 Apr 2007 02:26:48 -0500 + +scim (1.4.4-7) unstable; urgency=high + + * Removed 'debian/svn-commit.tmp' file from failed svn commit. + + -- Osamu Aoki Tue, 2 Jan 2007 14:30:12 +0900 + +scim (1.4.4-6) unstable; urgency=high + + * Removed m17n-env in control. (closes: Bug#405032) + * Updated README.Debian for editting non-UTF-8 files. + + -- Osamu Aoki Mon, 1 Jan 2007 01:35:57 +0900 + +scim (1.4.4-5) unstable; urgency=low + + * Adjust build dependency to X.org package layout: Change x-dev to + x11proto-core-dev, and drop all alternative xlibs-dev dependencies. + * Relibtoolize. Add one big patch 11_relibtoolize.dpatch for all the + autotools generated files. + * Make scim-gtk2-immodule depend on libgtk2.0-bin explicitly as it uses + /usr/sbin/update-gtk-immodules in the maintainer scripts. Thanks to caleb + on OFTC. + * Fix the postrm script of scim-gtk2-immodule so that it can be removed + cleanly when libgtk2.0-bin is already removed (This is Ubuntu bug #52087). + * Update to policy version 3.7.2, no actual changes needed. + + -- Ming Hua Tue, 12 Sep 2006 16:54:30 -0500 + +scim (1.4.4-4) unstable; urgency=low + + * Fixed typo in /etc/X11/xinit/xinput.d/scim-immodule thanks to + AWASHIRO Ikuya. + + -- Osamu Aoki Sun, 18 Jun 2006 01:11:50 +0900 + +scim (1.4.4-3) unstable; urgency=low + + * Fixed typo in /etc/X11/xinit/xinput.d/scim thanks to Ethan + Glasser-Cam. (Closes: #370606) + * Changed to use XIM for all applications for better im-switch + behavior. + * Added scim-immodule choice for im-switch while marking it + deprecated in README.Debian. + + -- Osamu Aoki Sat, 17 Jun 2006 09:55:08 +0900 + +scim (1.4.4-2) unstable; urgency=low + + * Updated documentation and dependency to match m17n-env changes. + * Provided support for im-switch. + + -- Osamu Aoki Sat, 20 May 2006 03:03:39 +0900 + +scim (1.4.4-1) unstable; urgency=low + + * New upstream release. + - The locales that prefer scim as GTK IM module has changed. + - Bump libgtk2.0-dev build dependency to >= 2.4.0. + * Complete documetation rewrite, add two more README files for using SCIM in + different desktop environments. + * Update scim(1) man page. + * Fix typo in reportbug script. + + -- Ming Hua Mon, 16 Jan 2006 21:33:38 -0600 + +scim (1.4.2-1) unstable; urgency=low + + * New upstream release. + * debian/{control,rules,libscim8.install}: C++ ABI transtion, rename binary + package libscim8 to libscim8c2a. (Closes: #339261) + * debian/control: Update Suggests list. Add Japanese IM engines and + replace scim-chinese with scim-pinyin. (Closes: #335909) + * debian/control: Upgrade to policy version 3.6.2 (no actual changes). + * debian/copyright: Update copyright notice and FSF address. + * debian/{control,rules}: Build-Depends on autotools-dev and use the + config.guess and config.sub files from autotools-dev unconditionally. + * debian/control: Use individual X library packages in Build-Depends + instead of the xlibs-dev metapackage. + * debian/{scim.script,rules}: Add reportbug information gathering script. + + -- Ming Hua Fri, 25 Nov 2005 17:55:25 -0600 + +scim (1.4.1-1) unstable; urgency=low + + * New upstream release. + * debian/{libscim6c2,libscim8,libscim-dev,scim,scim-module-socket}.install, + debian/{control,rules}: ABI change. Change binary package libscim6c2 to + libscim8, and all modules are in /usr/lib/scim-1.0/1.4.0/ now. There are + also a new shared library (libscim-x11utils-1.0) and new modules. + * debian/patches/{00list,10gtk-immodule-install-dir.dpatch}: Unfuzzy patch, + and rename it to 10_gtk-immodule-install-dir.dpatch according to new + naming template. + * debian/watch: Track 1.4 series. + * debian/NEWS: Change news entry version from 1.2.3-1 to 1.4.1-1, since + 1.2.3-1 was never released. Also refer to scim 1.4 instead of 1.2. + + -- Ming Hua Thu, 11 Aug 2005 22:38:20 -0500 + +scim (1.2.3-1) unstable; urgency=low + + * New upstream release. (Closes: #308064) + - Build with GCC 4.0. Use libscim6c2 as the shared library package name + to avoid problem with some unofficial builds. [minghua] + * debian/NEWS: Create this file, and add notes about scim 1.0 to 1.2 + upgrade and C++ ABI transtion. [minghua] + * debian/patches/{00list,20-gcc-4.0-ftbfs.dpatch}: Already included by + upstream, removed. [minghua] + * debian/control, debian/{scim,scim-dev,libscim6c2,libscim-dev}.install: + Build separate libscim6c2 and libscim-dev binary packages. [minghua] + * debian/control, debian/scim-config-gconf.{install,prerm,postinst}: Remove + binary package scim-config-gconf, as upstream doesn't provide this module + anymore. [minghua] + * debian/control, debian/scim-{server,config,frontend}-socket.install, + debian/scim-modules-socket.install: Combine configure, front end, and IM + engine modules for socket into one binary package. [minghua] + * debian/rules, debian/scim-modules-socket.install, debian/scim.install: + Change the module path, and adjust to the added and deleted files by + upstream. [minghua] + * debian/control: [minghua] + - Remove old Conflicts, we only support upgrade from sarge from now on. + - Make scim Conflicts with all old dynamic module packages. + - Have libscim-dev depends on libgtk2.0-dev and libpango1.0-dev since + their header files are #included directly. Also remove useless + libc6-dev | libc-dev dependency. + * debian/watch: Track 1.2 series. [minghua] + + -- Ming Hua Sun, 7 Aug 2005 14:18:29 -0500 + +scim (1.0.2-3) unstable; urgency=medium + + * Urgency set to medium to push these documentation changes into sarge. + * debian/README.Debian: Documentation update. [minghua] + - Clarify the situation of skim and scim-qt-immodule in Debian. + - List scim-chewing as available IM engine instead of a potential one since + it's in sarge now. (Closes: #306759) + - List scim-prime and scim-skk as potetial IM engines. + - Remove notes about gksu configurations, since gksu 1.2.4 and higher + doesn't lock XIM anymore. + * debian/control: Make all dynamic loadable module packages depend on scim + (<< 1.1), to smooth future upgrades. [minghua] + + -- Ming Hua Mon, 16 May 2005 21:11:00 -0500 + +scim (1.0.2-2) unstable; urgency=low + + * debian/README.Debian: Fix typo (Thanks, Carlos Z.F. Liu). [alee, minghua] + * debian/control: + - Make scim conflict with all old (<< 1.0.0) modules. [minghua] + - Change the upstream website. [minghua] + * debian/copyright: Change the upstream download repository to SourceForge. + [minghua] + * debian/README.Debian: ~/.scim/config -> ~/.scim/global (Thanks, Florian + Schlichting). (Closes: #291543) [osamu] + * debian/README.Debian: mention gksu configuration. (Closes: #283746) + [osamu] + + -- Ming Hua Wed, 2 Feb 2005 00:19:03 +0100 + +scim (1.0.2-1) unstable; urgency=low + + * New Upstream release. + * debian/control: Make scim conflict with old scim-gtk2-immodule (<< + 1.0.0) to avoid broken upgrade if user choose to upgrade only scim + but not scim-gtk2-immodule. (Closes: #287348) [minghua] + * debian/patches/{00list,20redirect-to-cerr.dpatch,30gnumeric.dpatch}: + Delete old patches that are already included by upstream. [minghua] + * debian/patches/{00list,20-gcc-4.0-ftbfs.dpatch}: Add patch from Andreas + Jochens to fix FTBFS on amd64/gcc-4.0. (Closes: #288470) + [minghua] + * debian/watch: Only track 1.0.x branch on upstream. [osamu,minghua] + + -- Ming Hua Tue, 11 Jan 2005 20:14:17 -0600 + +scim (1.0.1-4) unstable; urgency=low + + * Update README.Debian. [osamu] + * debian/control: Make scim-gtk2-immodule depend on scim-frontend-socket + and scim-config-socket. This prevents IM engine loading each time scim + gtk module is invoked (which happens very often if GTK_IM_MODULE=scim). + (Closes: #285623) [minghua] + * debian/watch: Switch to Sourceforge repository since SCIM isn't hosted + on freedesktop.org anymore. [minghua] + + -- Ming Hua Tue, 21 Dec 2004 20:36:10 -0600 + +scim (1.0.1-3) unstable; urgency=high + + * Patch to prevent data loss in gnumeric while moving cursor + by the upstream (Closes: #280661) + + -- Osamu Aoki Fri, 19 Nov 2004 23:22:41 +0100 + +scim (1.0.1-2) unstable; urgency=high + + * Patch to redirects the messages to standard error per Aaron M. Ucko. + (Closes: #280374) + + -- Osamu Aoki Tue, 09 Nov 2004 07:31:17 +0100 + +scim (1.0.1-1) unstable; urgency=low + + * New upstream release. (Closes: #269946) + + Fix FTBFS problem with gcc-3.4. (Closes: #266045) + * debian/control, debian/rules, debian/patches/: Switch to dpatch system. + * debian/control: Rewrite the descriptions for most packages, and update + Conflict: and Depends: relations. + * debian/scim-dev-doc.doc-base: Rewrite the descriptions. + * debian/scim-config-gconf.{postinst,prerm}: Add scripts to register and + unregister gconf2 schemas. + * debian/watch: Fix source watchfile line format. + * debian/scim.1, debian/scim.manpages: Add man page scim(1), thanks to + Osamu Aoki. + * debian/README.Debian: Update user's manual to reflect 1.0 series changes. + * Added Osamu Aoki as uploader. + * Update README.Debian by Osamu Aoki. + + -- Ming Hua Fri, 29 Oct 2004 20:48:12 +0200 + +scim (0.9.7-3) unstable; urgency=low + + * debian/control: Let scim-gtk2-immodule depends on scim-server-socket, + otherwise GDM will start scim and ignore all character input. + (Closes: #272321) Also have scim-gtk-immodule depends on + scim-frontend-socket and recommends scim-config-socket, so that the GTK IM + module mode works properly. + * debian/rules: Don't install Makefile.* with documents. (Closes: #255336) + * configs/config: Set /FrontEnd/X11/OnTheSpot to false, avoiding glitches + in some applications such as Mozilla and OpenOffice.org. + * debian/README.Debian: Add a brief English user's guide. + * debian/control, debian/copyright: Update upstream website address. + + -- Ming Hua Fri, 24 Sep 2004 21:09:08 -0500 + +scim (0.9.7-2) unstable; urgency=low + + * Add intltool (>= 0.22) to Build-Depends, without it scim FTBFS on all + architectures. (Closes: #255215) + * Fix old directory reference in debian/scim-dev-doc.doc-base to reflect the + new package name. (Closes: #255159) + * Change extras/gtk2_immodule/Makefile.{am,in} to install im-scim.so into + /usr/lib/gtk-2.0/2.4.0/immodules, also add postinst and postrm scripts for + package scim-gtk2-immodule. (Closes: #255177) + + -- Ming Hua Sat, 19 Jun 2004 22:24:09 -0500 + +scim (0.9.7-1) unstable; urgency=low + + * Initial release for upload into the official Debian archive. + * New upstream release. + * Followed the package split in my unofficial scim 0.4.0 package, + and modified according to the upstream scim.spec: + * merged scim-frontend-x11, scim-server-rawcode, scim-server-table, + scim-config-simple into the main scim package; + * removed scim-suite. + * Removed Build-Depends: gif2png. + * Renamed scim-doc as scim-dev-doc. + * The main scim package Suggests: scim-chinese, scim-tables-zh, + scim-tables-ja, scim-tables-ko, scim-tables-additional. + * Updated package descriptions with ideas from + http://freedesktop.org/~suzhe/download.html. + * Many thanks to Ming Hua for packaging + scim 0.9.2 and 0.9.6 on Debian Alioth. + * NMU: I won't have time to maintain this package in the longterm, so... + Ming Hua is the maintainer of this package! :-) + + -- Anthony Fok Sun, 6 Jun 2004 23:26:49 +0800 + +scim (0.9.6-1) unstable; urgency=low + + * New upstream version 0.9.6. + + -- Ming Hua Wed, 28 Apr 2004 16:36:25 -0500 + +scim (0.9.2-1) unstable; urgency=low + + * Initial Release, based on upstream version 0.9.2. + * Debianize as a single binary package, will try to split later. + + -- Ming Hua Sun, 29 Feb 2004 22:12:41 -0600 + +scim (0.4.0-1) unstable; urgency=low + + * Initial Release. + * Applied scim-0.4.0-generic-table.patch by upstream author James Su + to fix a bug reported by WONG Yiu Fai. + + -- Anthony Fok Mon, 21 Apr 2003 22:21:58 +0800 --- scim-1.4.9.orig/debian/patches/50_validate-desktop-entry.dpatch +++ scim-1.4.9/debian/patches/50_validate-desktop-entry.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 50_validate-desktop-entry.dpatch by Ming Hua +## +## All lines beginning with `## DP:' are a description of the patch. +## +## DP: Update to conform Desktop Entry Specification version 1.0. The "Icon" +## DP: key uses a hardcoded path because scim-setup.desktop is generated +## DP: without any variable substitution. Maybe it can use a name without +## DP: path or extension instead, needs more investigation. + +@DPATCH@ +diff -urNad scim-1.4.7~/extras/setup/scim-setup.desktop.in scim-1.4.7/extras/setup/scim-setup.desktop.in +--- scim-1.4.7~/extras/setup/scim-setup.desktop.in 2007-06-26 09:31:50.000000000 -0500 ++++ scim-1.4.7/extras/setup/scim-setup.desktop.in 2008-01-28 09:33:48.000000000 -0600 +@@ -1,10 +1,9 @@ + [Desktop Entry] +-Encoding=UTF-8 + _Name=SCIM Input Method Setup + _Comment=Setup utility for Smart Common Input Method platform + Exec=scim-setup +-Icon=scim-setup.png ++Icon=scim-setup + Terminal=false + Type=Application + StartupNotify=true +-Categories=Applications;Settings; ++Categories=Settings; ++NotShowIn=KDE; ++X-Ubuntu-Gettext-Domain=scim --- scim-1.4.9.orig/debian/patches/60_gcc-4.4-const-char.dpatch +++ scim-1.4.9/debian/patches/60_gcc-4.4-const-char.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## /tmp/gcc.patch.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: daa +## DP: Author: Jari Aalto +## DP: src/ltdl.cpp: Fix Gcc 4.4 error: invalid conversion from const char* to char* + +@DPATCH@ + +diff --git a/src/ltdl.cpp b/src/ltdl.cpp +index e96dda2..b6dc97d 100644 +--- a/src/ltdl.cpp ++++ b/src/ltdl.cpp +@@ -3361,7 +3361,7 @@ lt_dlopenext ( + { + lt_dlhandle handle = 0; + char * tmp = 0; +- char * ext = 0; ++ const char * ext = 0; + size_t len; + int errors = 0; + --- scim-1.4.9.orig/debian/patches/30_scim_x11_frontend-ic-focus-LTC27940-215953.dpatch +++ scim-1.4.9/debian/patches/30_scim_x11_frontend-ic-focus-LTC27940-215953.dpatch @@ -0,0 +1,22 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 30_scim_x11_frontend-ic-focus-LTC27940-215953.dpatch by Ikuya Awashiro +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: This patch should enable input in Java swing apps. It originated from the Fedora Project. +## DP: Fedora stopped applying the patch a while ago, saying it wasn't needed anymore. User comments +## DP: indicate this is not the case. See LP #178742. + +@DPATCH@ +diff -urNad scim-1.4.7~/modules/FrontEnd/scim_x11_frontend.cpp scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp +--- scim-1.4.7~/modules/FrontEnd/scim_x11_frontend.cpp 2007-06-26 14:31:52.000000000 +0000 ++++ scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp 2008-03-15 06:36:15.000000000 +0000 +@@ -1086,7 +1086,8 @@ + // If the ic is not focused, then return. + if (!is_focused_ic (ic)) { + SCIM_DEBUG_FRONTEND(1) << "IC " << call_data->icid << " is not focused, focus it first.\n"; +- ims_set_ic_focus_handler (ims, (IMChangeFocusStruct *) call_data); ++ // ims_set_ic_focus_handler (ims, (IMChangeFocusStruct *) call_data); ++ return 1; + } + + XKeyEvent *event = (XKeyEvent*) &(call_data->event); --- scim-1.4.9.orig/debian/patches/53_scim-1.4.7-trayicon.dpatch +++ scim-1.4.9/debian/patches/53_scim-1.4.7-trayicon.dpatch @@ -0,0 +1,279 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 53_scim-1.4.7-trayicon.dpatch by Ikuya Awashiro +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Use better tray icon +## DP: https://bugzilla.redhat.com/show_bug.cgi?id=447848 + +@DPATCH@ +diff -urNad scim-1.4.9~/extras/panel/scim_panel_gtk.cpp scim-1.4.9/extras/panel/scim_panel_gtk.cpp +--- scim-1.4.9~/extras/panel/scim_panel_gtk.cpp 2008-11-02 06:43:13.000000000 +0000 ++++ scim-1.4.9/extras/panel/scim_panel_gtk.cpp 2009-07-20 11:54:40.000000000 +0000 +@@ -60,7 +60,7 @@ + #include "scimstringview.h" + + #if ENABLE_TRAY_ICON +- #include "scimtrayicon.h" ++// #include "scimtrayicon.h" + #endif + + using namespace scim; +@@ -276,6 +276,13 @@ + #if ENABLE_TRAY_ICON + static void ui_tray_icon_destroy_cb (GtkObject *object, + gpointer user_data); ++static void ui_tray_icon_popup_menu_cb (GtkStatusIcon *status_icon, ++ guint button, ++ guint activate_time, ++ gpointer user_data); ++ ++static void ui_tray_icon_activate_cb (GtkStatusIcon *status_icon, ++ gpointer user_data); + #endif + + // Client Property Callback +@@ -399,9 +406,9 @@ + static PangoFontDescription *_default_font_desc = 0; + + #if ENABLE_TRAY_ICON +-static ScimTrayIcon *_tray_icon = 0; +-static GtkWidget *_tray_icon_factory_button = 0; +-static gulong _tray_icon_destroy_signal_id = 0; ++static GtkStatusIcon *_tray_icon = 0; ++// static GtkWidget *_tray_icon_factory_button = 0; ++// static gulong _tray_icon_destroy_signal_id = 0; + #endif + + static gboolean _input_window_draging = FALSE; +@@ -647,9 +654,9 @@ + + #if ENABLE_TRAY_ICON + if (_tray_icon) { +- g_signal_handler_disconnect (G_OBJECT (_tray_icon), +- _tray_icon_destroy_signal_id); +- gtk_widget_destroy (GTK_WIDGET (_tray_icon)); ++ // g_signal_handler_disconnect (G_OBJECT (_tray_icon), ++ // _tray_icon_destroy_signal_id); ++ g_object_unref (_tray_icon); + } + _tray_icon = 0; + #endif +@@ -1312,9 +1319,9 @@ + } + + #if ENABLE_TRAY_ICON +- if (_tray_icon) { +- gtk_window_set_screen (GTK_WINDOW (_tray_icon), screen); +- } ++ // if (_tray_icon) { ++ // gtk_window_set_screen (GTK_WINDOW (_tray_icon), screen); ++ // } + #endif + + if (_help_dialog) { +@@ -1337,65 +1344,75 @@ + #endif + + #if ENABLE_TRAY_ICON +-static gboolean +-ui_tray_icon_expose_event_cb (GtkWidget *widget, GdkEventExpose *event) +-{ +- gdk_window_clear_area (widget->window, event->area.x, event->area.y, +- event->area.width, event->area.height); +- return FALSE; +-} +- +-static void +-ui_tray_icon_style_set_cb (GtkWidget *widget, GtkStyle *previous_style) +-{ +- gdk_window_set_back_pixmap (widget->window, NULL, TRUE); +-} +- +-static void +-ui_tray_icon_realize_cb (GtkWidget *widget) +-{ +- if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget)) +- return; +- +- gtk_widget_set_app_paintable (widget, TRUE); +- gtk_widget_set_double_buffered (widget, FALSE); +- gdk_window_set_back_pixmap (widget->window, NULL, TRUE); +- g_signal_connect (widget, "expose_event", +- G_CALLBACK (ui_tray_icon_expose_event_cb), NULL); +- g_signal_connect_after (widget, "style_set", +- G_CALLBACK (ui_tray_icon_style_set_cb), NULL); +-} ++// static gboolean ++// ui_tray_icon_expose_event_cb (GtkWidget *widget, GdkEventExpose *event) ++// { ++// gdk_window_clear_area (widget->window, event->area.x, event->area.y, ++// event->area.width, event->area.height); ++// return FALSE; ++// } ++// ++// static void ++// ui_tray_icon_style_set_cb (GtkWidget *widget, GtkStyle *previous_style) ++// { ++// gdk_window_set_back_pixmap (widget->window, NULL, TRUE); ++// } ++// ++// static void ++// ui_tray_icon_realize_cb (GtkWidget *widget) ++// { ++// if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget)) ++// return; ++// ++// gtk_widget_set_app_paintable (widget, TRUE); ++// gtk_widget_set_double_buffered (widget, FALSE); ++// gdk_window_set_back_pixmap (widget->window, NULL, TRUE); ++// g_signal_connect (widget, "expose_event", ++// G_CALLBACK (ui_tray_icon_expose_event_cb), NULL); ++// g_signal_connect_after (widget, "style_set", ++// G_CALLBACK (ui_tray_icon_style_set_cb), NULL); ++// } + + static gboolean + ui_create_tray_icon_when_idle (gpointer data) + { + GtkWidget *image; + +- _tray_icon = scim_tray_icon_new ("SCIM Tray Icon"); +- g_signal_connect (G_OBJECT (_tray_icon), "realize", +- G_CALLBACK (ui_tray_icon_realize_cb), NULL); ++ _tray_icon = gtk_status_icon_new_from_file (SCIM_KEYBOARD_ICON_FILE); ++ // g_signal_connect (G_OBJECT (_tray_icon), "realize", ++ // G_CALLBACK (ui_tray_icon_realize_cb), NULL); + +- _tray_icon_destroy_signal_id = +- g_signal_connect (G_OBJECT (_tray_icon), "destroy", +- G_CALLBACK (ui_tray_icon_destroy_cb), +- 0); ++ // _tray_icon_destroy_signal_id = ++ // g_signal_connect (G_OBJECT (_tray_icon), "destroy", ++ // G_CALLBACK (ui_tray_icon_destroy_cb), ++ // 0); + +- image = ui_create_icon (SCIM_KEYBOARD_ICON_FILE, +- NULL, +- TRAY_ICON_SIZE, +- TRAY_ICON_SIZE, +- true); ++ // image = ui_create_icon (SCIM_KEYBOARD_ICON_FILE, ++ // NULL, ++ // TRAY_ICON_SIZE, ++ // TRAY_ICON_SIZE, ++ // true); + +- _tray_icon_factory_button = gtk_event_box_new (); +- g_signal_connect (G_OBJECT (_tray_icon_factory_button), "realize", +- G_CALLBACK (ui_tray_icon_realize_cb), NULL); +- gtk_container_add (GTK_CONTAINER (_tray_icon_factory_button), image); +- gtk_container_add (GTK_CONTAINER (_tray_icon), _tray_icon_factory_button); +- g_signal_connect (G_OBJECT (_tray_icon_factory_button), "button-release-event", +- G_CALLBACK (ui_factory_button_click_cb), ++ // _tray_icon_factory_button = gtk_event_box_new (); ++ // g_signal_connect (G_OBJECT (_tray_icon_factory_button), "realize", ++ // G_CALLBACK (ui_tray_icon_realize_cb), NULL); ++ // gtk_container_add (GTK_CONTAINER (_tray_icon_factory_button), image); ++ // gtk_container_add (GTK_CONTAINER (_tray_icon), _tray_icon_factory_button); ++ ++ ++ // g_signal_connect (G_OBJECT (_tray_icon_factory_button), "button-release-event", ++ // G_CALLBACK (ui_factory_button_click_cb), ++ // 0); ++ ++ g_signal_connect (G_OBJECT (_tray_icon), "popup-menu", ++ G_CALLBACK (ui_tray_icon_popup_menu_cb), ++ 0); ++ ++ g_signal_connect (G_OBJECT (_tray_icon), "activate", ++ G_CALLBACK (ui_tray_icon_activate_cb), + 0); + +- gtk_widget_show_all (GTK_WIDGET (_tray_icon)); ++ gtk_status_icon_set_visible (_tray_icon, TRUE); + + return FALSE; + } +@@ -1686,6 +1703,19 @@ + } + + static void ++ui_tray_icon_popup_menu_cb (GtkStatusIcon *status_icon, guint button, ++ guint activate_time, gpointer user_data) ++{ ++ action_show_command_menu (); ++} ++ ++static void ++ui_tray_icon_activate_cb (GtkStatusIcon *status_icon, gpointer user_data) ++{ ++ _panel_agent->request_factory_menu (); ++} ++ ++static void + ui_factory_menu_activate_cb (GtkMenuItem *item, + gpointer user_data) + { +@@ -2243,19 +2273,19 @@ + } + + #if ENABLE_TRAY_ICON +-static void +-ui_tray_icon_destroy_cb (GtkObject *object, +- gpointer user_data) +-{ +- SCIM_DEBUG_MAIN (1) << "Tray Icon destroyed!\n"; +- +- gtk_widget_destroy (GTK_WIDGET (object)); +- +- _tray_icon = 0; +- _tray_icon_factory_button = 0; +- +- g_idle_add (ui_create_tray_icon_when_idle, NULL); +-} ++// static void ++// ui_tray_icon_destroy_cb (GtkObject *object, ++// gpointer user_data) ++// { ++// SCIM_DEBUG_MAIN (1) << "Tray Icon destroyed!\n"; ++// ++// gtk_widget_destroy (GTK_WIDGET (object)); ++// ++// _tray_icon = 0; ++// _tray_icon_factory_button = 0; ++// ++// g_idle_add (ui_create_tray_icon_when_idle, NULL); ++// } + #endif + + static void +@@ -2685,18 +2715,21 @@ + } + + #if ENABLE_TRAY_ICON +- if (_tray_icon_factory_button) { +- GtkWidget *icon = gtk_bin_get_child (GTK_BIN (_tray_icon_factory_button)); ++ // if (_tray_icon_factory_button) { ++ // GtkWidget *icon = gtk_bin_get_child (GTK_BIN (_tray_icon_factory_button)); + +- if (icon) +- gtk_container_remove (GTK_CONTAINER (_tray_icon_factory_button), icon); ++ // if (icon) ++ // gtk_container_remove (GTK_CONTAINER (_tray_icon_factory_button), icon); + +- icon = ui_create_icon (info.icon, NULL, TRAY_ICON_SIZE, TRAY_ICON_SIZE, true); ++ // icon = ui_create_icon (info.icon, NULL, TRAY_ICON_SIZE, TRAY_ICON_SIZE, true); + +- gtk_container_add (GTK_CONTAINER (_tray_icon_factory_button), icon); ++ // gtk_container_add (GTK_CONTAINER (_tray_icon_factory_button), icon); + +- if (_tooltips) +- gtk_tooltips_set_tip (_tooltips, _tray_icon_factory_button, info.name.c_str (), NULL); ++ // if (_tooltips) ++ // gtk_tooltips_set_tip (_tooltips, _tray_icon_factory_button, info.name.c_str (), NULL); ++ // } ++ if (_tray_icon) { ++ gtk_status_icon_set_from_file (_tray_icon, info.icon.c_str()); + } + #endif --- scim-1.4.9.orig/debian/patches/00list +++ scim-1.4.9/debian/patches/00list @@ -0,0 +1,21 @@ +# Patch naming guideline: +# - Please use ##_xxx-xxx.dpatch pattern for naming the patch. ## is a +# two digit number, and xxx-xxx describe the content of the patch. +# - Use number 0# for patches pulled from upstream CVS. +# - Group patches of similar usage with the same first digit. +# - Note the patches are applied in the order of their numbers. So if +# you insert a new patch, make sure all the patches after it applies +# correctly. + +#10_gtk-immodule-install-dir.dpatch +#10_remove-deprecated-desktop-entry.dpatch +20_scim_config.dpatch +30_scim_x11_frontend-ic-focus-LTC27940-215953 +40_scim_user_home_overrides.dpatch +50_validate-desktop-entry.dpatch +51_scim-1.4.7-fix-capslock.dpatch +52_scim-1.4.7-imdkit-read-property-properly.dpatch +53_scim-1.4.7-trayicon.dpatch +54_scim-1.4.7-xim-wrong-format.dpatch +60_gcc-4.4-const-char.dpatch +61_fix-disappeared-status-icon.dpatch --- scim-1.4.9.orig/debian/patches/10_gtk-immodule-install-dir.dpatch +++ scim-1.4.9/debian/patches/10_gtk-immodule-install-dir.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_gtk-immodule-install-dir.dpatch by Ming Hua +## +## All lines beginning with `## DP:' are a description of the patch. +## +## DP: Change the gtk immodule installation directory from +## DP: /usr/lib/gtk-2.0/immodules/ to +## DP: /usr/lib/gtk-2.0/$(GTK_BINARY_VERSION)/immodules/. +## DP: +## DP: The GTK+ IM module should be installed in the ABI-specific +## DP: directory instead of the general one to avoid ABI mismatch during +## DP: GTK+ ABI upgrade. +## DP: +## DP: Since GTK+ 2.10, Debian has changed the way to handle the ABI for +## DP: IM modules and GdkPixbuf loaders. For IM modules, the +## DP: /usr/sbin/update-gtk-immodules tool is deprecated and the IM +## DP: module information is not stored in /etc/gtk-2.0/gtk.immodules +## DP: anymore. The debhelper program dh_gtkmodules should be used +## DP: instead to update the IM module information. +## DP: +## DP: NOTE: This patch only changes configure.ac and the change +## DP: necessary for configure is incorporated in +## DP: 90_relibtoolize.dpatch. If the relibtoolize patch is removed, +## DP: this patch should change configure as well. + +@DPATCH@ +diff -urNad scim-1.4.7~/configure.ac scim-1.4.7/configure.ac +--- scim-1.4.7~/configure.ac 2007-06-26 09:31:57.000000000 -0500 ++++ scim-1.4.7/configure.ac 2007-06-26 18:00:43.000000000 -0500 +@@ -235,7 +235,7 @@ + if test -z "$GTK_LIBDIR)"; then + GTK_LIBDIR="$libdir" + fi +- GTK_IM_MODULEDIR=$GTK_LIBDIR/gtk-2.0/immodules ++ GTK_IM_MODULEDIR=$GTK_LIBDIR/gtk-2.0/$GTK_BINARY_VERSION/immodules + AC_SUBST(GTK_LIBDIR) + AC_SUBST(GTK_IM_MODULEDIR) + AC_SUBST(GTK_VERSION) --- scim-1.4.9.orig/debian/patches/51_scim-1.4.7-fix-capslock.dpatch +++ scim-1.4.9/debian/patches/51_scim-1.4.7-fix-capslock.dpatch @@ -0,0 +1,53 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 51_scim-1.4.7-fix-capslock.dpatch by Ikuya Awashiro +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Ignore caps lock to enable switcing input methods with it on +## DP: https://bugzilla.redhat.com/show_bug.cgi?id=431222 + +@DPATCH@ +diff -urNad scim-1.4.9~/utils/scimkeyselection.cpp scim-1.4.9/utils/scimkeyselection.cpp +--- scim-1.4.9~/utils/scimkeyselection.cpp 2008-11-02 06:42:49.000000000 +0000 ++++ scim-1.4.9/utils/scimkeyselection.cpp 2009-07-20 11:47:28.000000000 +0000 +@@ -267,6 +267,11 @@ + gtk_widget_show (keyselection->toggle_hyper); + gtk_box_pack_start (GTK_BOX (hbox), keyselection->toggle_hyper, TRUE, TRUE, 2); + ++ ++ keyselection->toggle_capslock = gtk_check_button_new_with_mnemonic (_("Ca_psLock")); ++ gtk_widget_show (keyselection->toggle_capslock); ++ gtk_box_pack_start (GTK_BOX (hbox), keyselection->toggle_capslock, TRUE, TRUE, 2); ++ + hbox = gtk_hbox_new (TRUE, 0); + gtk_widget_show (hbox); + gtk_box_pack_start (GTK_BOX (keyselection), hbox, FALSE, FALSE, 4); +@@ -319,6 +324,8 @@ + key += String ("Super+"); + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (keyselection->toggle_hyper))) + key += String ("Hyper+"); ++ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (keyselection->toggle_capslock))) ++ key += String ("CapsLock+"); + + key_code = String (gtk_entry_get_text (GTK_ENTRY (keyselection->key_code))); + if (!key_code.length ()){ +@@ -572,6 +579,9 @@ + GTK_TOGGLE_BUTTON (keyselection->toggle_hyper), + event.is_hyper_down ()); + gtk_toggle_button_set_active ( ++ GTK_TOGGLE_BUTTON (keyselection->toggle_capslock), ++ event.is_caps_lock_down ()); ++ gtk_toggle_button_set_active ( + GTK_TOGGLE_BUTTON (keyselection->toggle_release), + event.is_key_release ()); + +diff -urNad scim-1.4.9~/utils/scimkeyselection.h scim-1.4.9/utils/scimkeyselection.h +--- scim-1.4.9~/utils/scimkeyselection.h 2008-11-02 06:42:49.000000000 +0000 ++++ scim-1.4.9/utils/scimkeyselection.h 2009-07-20 11:47:28.000000000 +0000 +@@ -36,6 +36,7 @@ + GtkWidget *toggle_meta; + GtkWidget *toggle_super; + GtkWidget *toggle_hyper; ++ GtkWidget *toggle_capslock; + GtkWidget *toggle_release; + GtkWidget *key_code; + --- scim-1.4.9.orig/debian/patches/61_fix-disappeared-status-icon.dpatch +++ scim-1.4.9/debian/patches/61_fix-disappeared-status-icon.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 61_fix-disappeared-status-icon.dpatch by Mingxi Wu +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: https://bugs.launchpad.net/bugs/475800 + +@DPATCH@ +diff -urNad scim-1.4.9~/extras/panel/scim_panel_gtk.cpp scim-1.4.9/extras/panel/scim_panel_gtk.cpp +--- scim-1.4.9~/extras/panel/scim_panel_gtk.cpp 2008-11-02 06:43:13.000000000 +0000 ++++ scim-1.4.9/extras/panel/scim_panel_gtk.cpp 2010-03-09 13:27:51.000000000 +0000 +@@ -1072,11 +1072,13 @@ + #ifdef GDK_WINDOWING_X11 + // Add an event filter function to observe X root window's properties. + GdkWindow *root_window = gdk_get_default_root_window (); ++ GdkEventMask event_mask; + #if GDK_MULTIHEAD_SAFE + if (_current_screen) + root_window = gdk_screen_get_root_window (_current_screen); + #endif +- gdk_window_set_events (root_window, (GdkEventMask)GDK_PROPERTY_NOTIFY); ++ event_mask = (GdkEventMask) (gdk_window_get_events (root_window) | GDK_PROPERTY_NOTIFY); ++ gdk_window_set_events (root_window, event_mask); + gdk_window_add_filter (root_window, ui_event_filter, NULL); + #endif + +@@ -1323,9 +1325,11 @@ + + #ifdef GDK_WINDOWING_X11 + GdkWindow *root_window = gdk_get_default_root_window (); ++ GdkEventMask event_mask; + if (_current_screen) + root_window = gdk_screen_get_root_window (_current_screen); +- gdk_window_set_events (root_window, (GdkEventMask)GDK_PROPERTY_NOTIFY); ++ event_mask = (GdkEventMask) (gdk_window_get_events (root_window) | GDK_PROPERTY_NOTIFY); ++ gdk_window_set_events (root_window, event_mask); + gdk_window_add_filter (root_window, ui_event_filter, NULL); + #endif + --- scim-1.4.9.orig/debian/patches/54_scim-1.4.7-xim-wrong-format.dpatch +++ scim-1.4.9/debian/patches/54_scim-1.4.7-xim-wrong-format.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 54_scim-1.4.7-xim-wrong-format.dpatch by Ikuya Awashiro +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix incorrect XIM_QUERY_EXTENSION_REPLY message +## DP: https://bugzilla.redhat.com/show_bug.cgi?id=457566 + +@DPATCH@ +diff -urNad scim-1.4.9~/modules/FrontEnd/IMdkit/i18nIMProto.c scim-1.4.9/modules/FrontEnd/IMdkit/i18nIMProto.c +--- scim-1.4.9~/modules/FrontEnd/IMdkit/i18nIMProto.c 2008-11-02 06:42:13.000000000 +0000 ++++ scim-1.4.9/modules/FrontEnd/IMdkit/i18nIMProto.c 2009-07-20 11:55:05.000000000 +0000 +@@ -106,11 +106,11 @@ + + static XimFrameRec ext_fr[] = + { +- _FRAME(BIT16), /* extension major-opcode */ +- _FRAME(BIT16), /* extension minor-opcode */ ++ _FRAME(BIT8), /* extension major-opcode */ ++ _FRAME(BIT8), /* extension minor-opcode */ + _FRAME(BIT16), /* length of extension name */ + _FRAME(BARRAY), /* extension name */ +- _PAD4(2), ++ _PAD4(1), + _FRAME(EOL), + }; + --- scim-1.4.9.orig/debian/patches/40_scim_user_home_overrides.dpatch +++ scim-1.4.9/debian/patches/40_scim_user_home_overrides.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 40_scim_user_home_overrides.dpatch by Colin Watson +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Allow home directory and user name detection to be overridden using +## DP: SCIM_HOME and SCIM_USER environment variables respectively. + +@DPATCH@ +diff -urNad scim-1.4.7~/src/scim_utility.cpp scim-1.4.7/src/scim_utility.cpp +--- scim-1.4.7~/src/scim_utility.cpp 2007-06-26 15:31:38.000000000 +0100 ++++ scim-1.4.7/src/scim_utility.cpp 2008-07-26 11:28:49.000000000 +0100 +@@ -547,6 +547,11 @@ + + struct passwd *pw; + ++ home_dir = getenv ("SCIM_HOME"); ++ if (home_dir && *home_dir) { ++ return String (home_dir); ++ } ++ + setpwent (); + pw = getpwuid (getuid ()); + endpwent (); +@@ -568,6 +573,11 @@ + struct passwd *pw; + const char *user_name; + ++ user_name = getenv ("SCIM_USER"); ++ if (user_name && *user_name) { ++ return String (user_name); ++ } ++ + setpwent (); + pw = getpwuid (getuid ()); + endpwent (); --- scim-1.4.9.orig/debian/patches/52_scim-1.4.7-imdkit-read-property-properly.dpatch +++ scim-1.4.9/debian/patches/52_scim-1.4.7-imdkit-read-property-properly.dpatch @@ -0,0 +1,108 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 52_scim-1.4.7-imdkit-read-property-properly.dpatch by Ikuya Awashiro +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Correctly read XIM_FORWARD_EVENT, triggered when rapidly typing keys +## DP: https://bugzilla.redhat.com/show_bug.cgi?id=466657 + +@DPATCH@ +diff -urNad scim-1.4.9~/modules/FrontEnd/IMdkit/Xi18n.h scim-1.4.9/modules/FrontEnd/IMdkit/Xi18n.h +--- scim-1.4.9~/modules/FrontEnd/IMdkit/Xi18n.h 2008-11-02 06:42:13.000000000 +0000 ++++ scim-1.4.9/modules/FrontEnd/IMdkit/Xi18n.h 2009-07-20 11:48:01.000000000 +0000 +@@ -149,6 +149,8 @@ + */ + int sync; + XIMPending *pending; ++ /* property offset to read next data */ ++ long property_offset; + void *trans_rec; /* contains transport specific data */ + struct _Xi18nClient *next; + } Xi18nClient; +diff -urNad scim-1.4.9~/modules/FrontEnd/IMdkit/i18nUtil.c scim-1.4.9/modules/FrontEnd/IMdkit/i18nUtil.c +--- scim-1.4.9~/modules/FrontEnd/IMdkit/i18nUtil.c 2008-11-02 06:42:13.000000000 +0000 ++++ scim-1.4.9/modules/FrontEnd/IMdkit/i18nUtil.c 2009-07-20 11:48:01.000000000 +0000 +@@ -70,6 +70,7 @@ + client->sync = False; + client->byte_order = '?'; /* initial value */ + memset (&client->pending, 0, sizeof (XIMPending *)); ++ client->property_offset = 0; + client->next = i18n_core->address.clients; + i18n_core->address.clients = client; + +diff -urNad scim-1.4.9~/modules/FrontEnd/IMdkit/i18nX.c scim-1.4.9/modules/FrontEnd/IMdkit/i18nX.c +--- scim-1.4.9~/modules/FrontEnd/IMdkit/i18nX.c 2008-11-02 06:42:12.000000000 +0000 ++++ scim-1.4.9/modules/FrontEnd/IMdkit/i18nX.c 2009-07-20 11:48:01.000000000 +0000 +@@ -29,6 +29,7 @@ + + ******************************************************************/ + ++#include + #include + #include + #include "FrameMgr.h" +@@ -128,6 +129,7 @@ + else if (ev->format == 32) { + /* ClientMessage and WindowProperty */ + unsigned long length = (unsigned long) ev->data.l[0]; ++ unsigned long get_length; + Atom atom = (Atom) ev->data.l[1]; + int return_code; + Atom actual_type_ret; +@@ -136,11 +138,20 @@ + unsigned char *prop; + unsigned long nitems; + ++ /* Round up length to next 4 byte value. */ ++ get_length = length + 3; ++ if (get_length > LONG_MAX) ++ get_length = LONG_MAX; ++ get_length /= 4; ++ if (get_length == 0) { ++ fprintf(stderr, "%s: invalid length 0\n", __FUNCTION__); ++ return NULL; ++ } + return_code = XGetWindowProperty (i18n_core->address.dpy, + x_client->accept_win, + atom, +- 0L, +- length, ++ client->property_offset / 4, ++ get_length, + True, + AnyPropertyType, + &actual_type_ret, +@@ -151,15 +162,27 @@ + if (return_code != Success || actual_format_ret == 0 || nitems == 0) { + if (return_code == Success) + XFree (prop); ++ client->property_offset = 0; + return (unsigned char *) NULL; + } +- if (length != nitems) +- length = nitems; +- if (actual_format_ret == 16) +- length *= 2; +- else if (actual_format_ret == 32) +- length *= 4; +- ++ /* Update the offset to read next time as needed */ ++ if (bytes_after_ret > 0) ++ client->property_offset += length; ++ else ++ client->property_offset = 0; ++ switch (actual_format_ret) { ++ case 8: ++ case 16: ++ case 32: ++ length = nitems * actual_format_ret / 8; ++ break; ++ default: ++ fprintf(stderr, "%s: unknown property return format: %d\n", ++ __FUNCTION__, actual_format_ret); ++ XFree(prop); ++ client->property_offset = 0; ++ return NULL; ++ } + /* if hit, it might be an error */ + if ((p = (unsigned char *) malloc (length)) == NULL) + return (unsigned char *) NULL; --- scim-1.4.9.orig/debian/patches/10_remove-deprecated-desktop-entry.dpatch +++ scim-1.4.9/debian/patches/10_remove-deprecated-desktop-entry.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_remove-deprecated-desktop-entry.dpatch by Ming Hua +## +## All lines beginning with `## DP:' are a description of the patch. +## +## DP: The freedesktop standard desktop entry location [1] is +## DP: /usr/share/applications/, so we stop installing scim-setup.desktop into +## DP: /usr/share/control-center-2.0/capplets/. +## DP: +## DP: NOTE: This patch only changes extras/setup/Makefile.am, and the change +## DP: necessary for extras/setup/Makefile.in is incorporated in +## DP: 90_relibtoolize.dpatch. If the relibtoolize patch is removed, this +## DP: patch should change extras/setup/Makefile.in as well. +## DP: +## DP: 1. For example, see +## DP: http://standards.freedesktop.org/menu-spec/1.0/ar01s02.html + +@DPATCH@ +diff -urNad scim-1.4.7~/extras/setup/Makefile.am scim-1.4.7/extras/setup/Makefile.am +--- scim-1.4.7~/extras/setup/Makefile.am 2007-06-26 09:31:50.000000000 -0500 ++++ scim-1.4.7/extras/setup/Makefile.am 2007-07-22 01:56:58.000000000 -0500 +@@ -68,9 +68,6 @@ + desktopdir = $(datadir)/applications + desktop_in_files = scim-setup.desktop.in + desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +- +-gnomeccdir = $(datadir)/control-center-2.0/capplets +-gnomecc_DATA = $(desktop_in_files:.desktop.in=.desktop) + endif + + EXTRA_DIST = $(desktop_in_files) scim-setup.in --- scim-1.4.9.orig/debian/patches/20_scim_config.dpatch +++ scim-1.4.9/debian/patches/20_scim_config.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_scim_config.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: update the default config (see malone #37687) + +@DPATCH@ +diff -urNad scim-1.4.7~/configs/config scim-1.4.7/configs/config +--- scim-1.4.7~/configs/config 2007-06-26 22:31:56.000000000 +0800 ++++ scim-1.4.7/configs/config 2008-04-07 15:12:54.000000000 +0800 +@@ -10,7 +10,7 @@ + /Hotkeys/FrontEnd/NextFactory = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R + /Hotkeys/FrontEnd/PreviousFactory = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R + /Hotkeys/FrontEnd/ShowFactoryMenu = Control+Alt+Right +-/Hotkeys/FrontEnd/Trigger = Control+space ++/Hotkeys/FrontEnd/Trigger = Control+space,Zenkaku_Hankaku,Hangul + /Hotkeys/FrontEnd/ValidKeyMask = Shift+Control+Alt+Meta+QuirkKanaRo + /Panel/Gtk/Color/ActiveBackground = light sky blue + /Panel/Gtk/Color/ActiveText = black + --- scim-1.4.9.orig/debian/im-switch/scim-immodule +++ scim-1.4.9/debian/im-switch/scim-immodule @@ -0,0 +1,18 @@ +# +# This configuration file for SCIM is deprecated. +# +# Use "X input method" for standard X applications +# Use "SCIM IM module" for GTK and Qt 3 applications +# +# Using this configuration may improve some usability for GTK applications +# such as the location of word selection window. +# + +# You still need these XIM settings for non-GTK and non-Qt3 programs. +XIM=SCIM +XIM_PROGRAM=/usr/bin/scim +XIM_ARGS="-d" +XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes +GTK_IM_MODULE=scim +QT_IM_MODULE=scim +DEPENDS="scim,scim-gtk2-immodule,scim-qtimm,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh" --- scim-1.4.9.orig/debian/im-switch/scim +++ scim-1.4.9/debian/im-switch/scim @@ -0,0 +1,18 @@ +# +# Use "X input Method" for all applications +# +# Per Ming's Documentation in SCIM, XIM Input Method is activated +# not only for old X-applications but also for GTK and QT appplication. +# +# If a user wish to use, GTK Input Method, (s)he can right-click input +# area and select "Input Methods" and change from "X input Method" to +# "SCIM Input Method". +# + +XIM=SCIM +XIM_PROGRAM=/usr/bin/scim +XIM_ARGS="-d" +XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes +GTK_IM_MODULE=xim +QT_IM_MODULE=xim +DEPENDS="scim,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul|scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim|scim-tables-ja|scim-tables-ko|scim-tables-zh"