kde5 needen library and programs moved.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
--- scim-1.4.14/src/scim_hotkey.cpp.bero 2012-06-25 10:04:12.597708463 +0200
|
||||
+++ scim-1.4.14/src/scim_hotkey.cpp 2012-06-25 10:04:30.092707639 +0200
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "scim_private.h"
|
||||
#include "scim.h"
|
||||
#include "scim_stl_map.h"
|
||||
+#include <unistd.h> // for access()
|
||||
|
||||
namespace scim {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
--- configs/global~ 2008-11-09 07:17:11.000000000 +0100
|
||||
+++ configs/global 2008-11-09 07:19:44.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-/SupportedUnicodeLocales = en_US.UTF-8
|
||||
+/SupportedUnicodeLocales = en_US.UTF-8,zh_CN.UTF-8,zh_HK.UTF-8,zh_TW.UTF-8,jp_JP.UTF-8,ko_KR.UTF-8
|
||||
/DefaultPanelProgram = scim-panel-gtk
|
||||
/DefaultConfigModule = simple
|
||||
/DefaultSocketFrontEndAddress = local:/tmp/scim-socket-frontend
|
||||
@@ -0,0 +1,33 @@
|
||||
--- scim-1.4.2/src/scim-restart.in.1-restart 2005-09-02 12:05:35.000000000 +0900
|
||||
+++ scim-1.4.2/src/scim-restart.in 2005-08-25 22:52:29.000000000 +0900
|
||||
@@ -0,0 +1,10 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+SOCKET_CMD="@SCIM_LIBEXECDIR@/scim-launcher -d -c `scim-config-agent -c global -g /DefaultConfigModule` -e all -f socket --no-stay"
|
||||
+XIM_CMD="@SCIM_LIBEXECDIR@/scim-launcher -d -c socket -e socket -f x11"
|
||||
+
|
||||
+OPT="-u `id -u`"
|
||||
+
|
||||
+pkill ${OPT} -f "${SOCKET_CMD}" && ${SOCKET_CMD}
|
||||
+pkill ${OPT} -f "${XIM_CMD}" && ${XIM_CMD}
|
||||
+pkill ${OPT} scim-bridge
|
||||
--- scim-1.4.2/src/Makefile.am.1-restart 2005-07-10 22:32:23.000000000 +0900
|
||||
+++ scim-1.4.2/src/Makefile.am 2005-09-02 11:42:57.000000000 +0900
|
||||
@@ -141,6 +141,7 @@
|
||||
|
||||
|
||||
bin_PROGRAMS = scim scim-config-agent
|
||||
+bin_SCRIPTS = scim-restart
|
||||
|
||||
scim_SOURCES = scim.cpp
|
||||
scim_LDADD = libscim-1.0.la
|
||||
--- scim-1.4.2/configure.ac.1-restart 2005-08-16 15:56:59.000000000 +0900
|
||||
+++ scim-1.4.2/configure.ac 2005-09-02 11:42:57.000000000 +0900
|
||||
@@ -516,6 +516,7 @@
|
||||
intl/Makefile
|
||||
po/Makefile.in
|
||||
src/Makefile
|
||||
+ src/scim-restart
|
||||
src/scim_types.h
|
||||
utils/Makefile
|
||||
data/Makefile
|
||||
@@ -0,0 +1,31 @@
|
||||
--- scim-1.4.5/src/scim_hotkey.cpp.8-hotkey~ 2005-06-18 23:19:35.000000000 +1000
|
||||
+++ scim-1.4.5/src/scim_hotkey.cpp 2007-04-17 10:15:41.000000000 +1000
|
||||
@@ -362,11 +362,26 @@
|
||||
if (config.null () || !config->valid ()) return;
|
||||
|
||||
KeyEventList keys;
|
||||
+ String lang = scim_get_locale_language (scim_get_current_locale ());
|
||||
+ String userconf = scim_get_user_data_dir () + String (SCIM_PATH_DELIM_STRING) + String ("config");
|
||||
+ bool userconf_exist = true;
|
||||
+
|
||||
+ //If this is the first time to run scim on a machine.
|
||||
+ if (access (userconf.c_str (), R_OK) !=0)
|
||||
+ userconf_exist = false;
|
||||
|
||||
// Load the least important hotkeys first.
|
||||
for (int i = SCIM_FRONTEND_HOTKEY_SHOW_FACTORY_MENU; i >= SCIM_FRONTEND_HOTKEY_TRIGGER; --i) {
|
||||
- if (scim_string_to_key_list (keys, config->read (String (__scim_frontend_hotkey_config_paths [i]), String (__scim_frontend_hotkey_defaults [i]))))
|
||||
- m_impl->m_matcher.add_hotkeys (keys, i);
|
||||
+ if (userconf_exist == false ) {
|
||||
+ String config_paths = String (__scim_frontend_hotkey_config_paths [i]) + "/" + lang;
|
||||
+ if (scim_string_to_key_list (keys, config->read (config_paths, String (__scim_frontend_hotkey_defaults [i]))))
|
||||
+ m_impl->m_matcher.add_hotkeys (keys, i);
|
||||
+ config->write (String (__scim_frontend_hotkey_config_paths [i]),
|
||||
+ config->read (config_paths, String (__scim_frontend_hotkey_defaults [i])));
|
||||
+ } else {
|
||||
+ if (scim_string_to_key_list (keys, config->read (String (__scim_frontend_hotkey_config_paths [i]), String (__scim_frontend_hotkey_defaults [i]))))
|
||||
+ m_impl->m_matcher.add_hotkeys (keys, i);
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
# This file is encoded in UTF-8 encoding.
|
||||
/DefaultIMEngineFactory/si_LK = IMEngine-M17N-si-wijesekera
|
||||
/DefaultIMEngineFactory/ta_IN = IMEngine-M17N-ta-tamil99
|
||||
# scim-python pinyin
|
||||
/DefaultIMEngineFactory/zh_CN = 29ab338a-5a27-46b8-96cd-abbe86f17132
|
||||
/DefaultIMEngineFactory/zh_SG = 05235cfc-43ce-490c-b1b1-c5a2185276ae
|
||||
# CangJie3
|
||||
/DefaultIMEngineFactory/zh_HK = 5da9d4ff-ccdd-45af-b1a5-7bd4ac0aeb5f
|
||||
# chewing
|
||||
/DefaultIMEngineFactory/zh_TW = fcff66b6-4d3e-4cf2-833c-01ef66ac6025
|
||||
/FrontEnd/OnTheSpot = true
|
||||
/FrontEnd/Socket/ConfigReadOnly = false
|
||||
/FrontEnd/Socket/MaxClients = 512
|
||||
/FrontEnd/X11/BrokenWchar = true
|
||||
/FrontEnd/X11/Dynamic = false
|
||||
/FrontEnd/X11/OnTheSpot = true
|
||||
/FrontEnd/X11/ServerName = SCIM
|
||||
/Hotkeys/FrontEnd/NextFactory =
|
||||
/Hotkeys/FrontEnd/NextFactory/zh_CN = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R
|
||||
/Hotkeys/FrontEnd/NextFactory/zh_HK = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R
|
||||
/Hotkeys/FrontEnd/NextFactory/zh_SG = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R
|
||||
/Hotkeys/FrontEnd/NextFactory/zh_TW = Control+Alt+Down,Shift+Control+KeyRelease+Shift_L,Shift+Control+KeyRelease+Shift_R
|
||||
/Hotkeys/FrontEnd/PreviousFactory =
|
||||
/Hotkeys/FrontEnd/PreviousFactory/zh_CN = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R
|
||||
/Hotkeys/FrontEnd/PreviousFactory/zh_HK = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R
|
||||
/Hotkeys/FrontEnd/PreviousFactory/zh_SG = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R
|
||||
/Hotkeys/FrontEnd/PreviousFactory/zh_TW = Control+Alt+Up,Shift+Control+KeyRelease+Control_L,Shift+Control+KeyRelease+Control_R
|
||||
/Hotkeys/FrontEnd/ShowFactoryMenu =
|
||||
# disable trigger hotkey by default, except for the locale below:
|
||||
/Hotkeys/FrontEnd/Trigger = Control+space
|
||||
/Hotkeys/FrontEnd/Trigger/ja_JP = Zenkaku_Hankaku,Alt+grave,Control+space
|
||||
/Hotkeys/FrontEnd/Trigger/ko_KR = Alt+Alt_L+KeyRelease,Shift+space,Control+space,Hangul
|
||||
/Hotkeys/FrontEnd/ValidKeyMask = Shift+Control+Alt+Meta+Super+Hyper+CapsLock
|
||||
/Panel/Gtk/Color/ActiveBackground = light sky blue
|
||||
/Panel/Gtk/Color/ActiveText = black
|
||||
/Panel/Gtk/Color/NormalBackground = #F7F3F7
|
||||
/Panel/Gtk/Color/NormalText = black
|
||||
/Panel/Gtk/Font = default
|
||||
/Panel/Gtk/DefaultSticked = false
|
||||
/Panel/Gtk/LookupTableEmbedded = true
|
||||
/Panel/Gtk/LookupTableVertical = true
|
||||
/Panel/Gtk/ShowStatusBox = false
|
||||
/Panel/Gtk/ShowTrayIcon = true
|
||||
/Panel/Gtk/ToolBar/AlwaysShow = false
|
||||
/Panel/Gtk/ToolBar/AutoSnap = true
|
||||
/Panel/Gtk/ToolBar/HideTimeout = 2
|
||||
/Panel/Gtk/ToolBar/POS_X = -1
|
||||
/Panel/Gtk/ToolBar/POS_Y = -1
|
||||
/Panel/Gtk/ToolBar/ShowHelpIcon = true
|
||||
/Panel/Gtk/ToolBar/ShowFactoryIcon = true
|
||||
/Panel/Gtk/ToolBar/ShowFactoryName = true
|
||||
/Panel/Gtk/ToolBar/ShowMenuIcon = true
|
||||
/Panel/Gtk/ToolBar/ShowSetupIcon = true
|
||||
/Panel/Gtk/ToolBar/ShowStickIcon = false
|
||||
/IMEngine/RawCode/Locales = default
|
||||
@@ -0,0 +1,9 @@
|
||||
/SupportedUnicodeLocales = en_US.UTF-8
|
||||
/DefaultPanelProgram = scim-panel-gtk
|
||||
/DefaultConfigModule = simple
|
||||
/DefaultSocketFrontEndAddress = local:/tmp/scim-socket-frontend
|
||||
/DefaultSocketIMEngineAddress = local:/tmp/scim-socket-frontend
|
||||
/DefaultSocketConfigAddress = local:/tmp/scim-socket-frontend
|
||||
/DefaultPanelSocketAddress = local:/tmp/scim-panel-socket
|
||||
/DefaultHelperManagerSocketAddress = local:/tmp/scim-helper-manager-socket
|
||||
/DefaultSocketTimeout = 5000
|
||||
@@ -0,0 +1,5 @@
|
||||
XMODIFIERS="@im=SCIM"
|
||||
export GTK_IM_MODULE="xim"
|
||||
export QT_IM_MODULE="xim"
|
||||
export XIM_PROGRAM="scim -d"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
##start the servers
|
||||
/usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket -v 100 -m all -o /tmp/scim.main.log --no-stay --no-socket
|
||||
/usr/lib/scim-1.0/scim-launcher -d -c socket -e all -f x11 -v 100 -m all -o /tmp/scim.x11.log
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -u scim-1.4.5/extras/panel/scim_panel_gtk.cpp.12-workarea-xprop scim-1.4.5/extras/panel/scim_panel_gtk.cpp
|
||||
--- scim-1.4.5/extras/panel/scim_panel_gtk.cpp.12-workarea-xprop 2006-11-15 11:25:48.000000000 +1000
|
||||
+++ scim-1.4.5/extras/panel/scim_panel_gtk.cpp 2006-11-15 11:25:48.000000000 +1000
|
||||
@@ -3658,6 +3694,11 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+// set Emacs cc-mode style
|
||||
+// Local variables:
|
||||
+// c-file-style: "cc-mode"
|
||||
+// End:
|
||||
+
|
||||
/*
|
||||
vi:ts=4:nowrap:expandtab
|
||||
*/
|
||||
Reference in New Issue
Block a user