Hello community, here is the log from the commit of package fcitx-rime for openSUSE:Factory checked in at 2013-07-06 19:14:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fcitx-rime (Old) and /work/SRC/openSUSE:Factory/.fcitx-rime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fcitx-rime" Changes: -------- --- /work/SRC/openSUSE:Factory/fcitx-rime/fcitx-rime.changes 2013-06-24 09:27:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.fcitx-rime.new/fcitx-rime.changes 2013-07-06 19:14:15.000000000 +0200 @@ -1,0 +2,12 @@ +Fri Jul 5 18:49:29 UTC 2013 - [email protected] + +- add patch: fcitx-rime-0.2.1-Caplocks_never_response_second_request.patch + * Phenomenon: When inputing Chinese, users hit Capslock to enter + Capital letters, then fcitx-rime will enter ASCII mode. But + the second or further Capslock won't change ASCII mode back + to Chinese pinyin mode unless users hit Shift. + * Cause: Rime reads bitmask FcitxKeyState_CapsLock to detect + whether CapsLock is on, but fcitx-rime frontend didn't + provide such use. + +------------------------------------------------------------------- New: ---- fcitx-rime-0.2.1-Caplocks_never_response_second_request.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fcitx-rime.spec ++++++ --- /var/tmp/diff_new_pack.7UyUSl/_old 2013-07-06 19:14:16.000000000 +0200 +++ /var/tmp/diff_new_pack.7UyUSl/_new 2013-07-06 19:14:16.000000000 +0200 @@ -15,26 +15,29 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: fcitx-rime Version: 0.2.1 Release: 0 -License: GPL-2.0+ Summary: Rime input engine support for Fcitx -Url: https://github.com/fcitx/fcitx-rime +License: GPL-2.0+ Group: System/I18n/Chinese +Url: https://github.com/fcitx/fcitx-rime Source: https://fcitx.googlecode.com/files/%{name}-%{version}.tar.xz # remove next version Source1: COPYING +# PATCH-FIX-UPSTREAM [email protected] - After hitting CapsLock to input Capital letters, fcitx-rime can never change back from ascii mode unless you hit Shift. +Patch: fcitx-rime-0.2.1-Caplocks_never_response_second_request.patch +BuildRequires: brise +BuildRequires: cmake BuildRequires: fcitx-devel BuildRequires: fcitx-skin-classic BuildRequires: fcitx-skin-dark -BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: intltool BuildRequires: librime-devel -BuildRequires: brise %if 0%{?fedora_version} # resolve "have choice" BuildRequires: libyaml-cpp0_3 @@ -42,7 +45,7 @@ BuildRequires: xz # explicitly requires brise (rime-data) Requires: brise -Requires: fcitx +%{fcitx_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -55,6 +58,7 @@ %prep %setup -q cp -r %{SOURCE1} ./ +%patch -p1 %build mkdir -p build @@ -82,12 +86,10 @@ %files -f %{name}.lang %defattr(-,root,root) %doc README.md COPYING -%dir %{_datadir}/fcitx/inputmethod/ -%dir %{_datadir}/fcitx/imicon/ -%{_libdir}/fcitx/%{name}.so -%{_datadir}/fcitx/addon/%{name}.conf -%{_datadir}/fcitx/inputmethod/rime.conf -%{_datadir}/fcitx/imicon/rime.png +%{_fcitx_libdir}/%{name}.so +%{_fcitx_addondir}/%{name}.conf +%{_fcitx_inputmethoddir}/rime.conf +%{_fcitx_imicondir}/rime.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %changelog ++++++ fcitx-rime-0.2.1-Caplocks_never_response_second_request.patch ++++++ Index: fcitx-rime-0.2.1/src/fcitx-rime.c =================================================================== --- fcitx-rime-0.2.1.orig/src/fcitx-rime.c +++ fcitx-rime-0.2.1/src/fcitx-rime.c @@ -207,13 +207,13 @@ INPUT_RETURN_VALUE FcitxRimeDoInput(void FcitxInputState *input = FcitxInstanceGetInputState(rime->owner); uint32_t sym = FcitxInputStateGetKeySym(input); uint32_t state = FcitxInputStateGetKeyState(input); - _state &= (FcitxKeyState_SimpleMask); + _state &= (FcitxKeyState_SimpleMask | FcitxKeyState_CapsLock); - if (_state & (~(FcitxKeyState_Ctrl_Alt_Shift))) { + if (_state & (~(FcitxKeyState_Ctrl_Alt_Shift | FcitxKeyState_CapsLock))) { return IRV_TO_PROCESS; } - state &= (FcitxKeyState_SimpleMask); + state &= (FcitxKeyState_SimpleMask | FcitxKeyState_CapsLock); return FcitxRimeDoInputReal(arg, sym, state); } -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
