import CS ibus-typing-booster-2.1.0-7.el8
This commit is contained in:
parent
e9cdc93935
commit
b0c78b6310
@ -0,0 +1,48 @@
|
|||||||
|
diff -ru ibus-typing-booster-2.1.0.orig/engine/itb_util.py ibus-typing-booster-2.1.0/engine/itb_util.py
|
||||||
|
--- ibus-typing-booster-2.1.0.orig/engine/itb_util.py 2018-07-24 08:43:58.000000000 +0200
|
||||||
|
+++ ibus-typing-booster-2.1.0/engine/itb_util.py 2023-10-09 18:24:53.617131025 +0200
|
||||||
|
@@ -1757,6 +1757,9 @@
|
||||||
|
TR9> and its matching PDI or, if it has no matching PDI, the end of the
|
||||||
|
TR9> paragraph
|
||||||
|
|
||||||
|
+ U+2069 POP DIRECTIONAL ISOLATE
|
||||||
|
+ U+2068 FIRST STRONG ISOLATE
|
||||||
|
+
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
>>> is_right_to_left('Hallo!')
|
||||||
|
@@ -1765,16 +1768,16 @@
|
||||||
|
>>> is_right_to_left('﷼')
|
||||||
|
True
|
||||||
|
|
||||||
|
- >>> is_right_to_left('﷼')
|
||||||
|
+ >>> is_right_to_left('\u2068﷼\u2069')
|
||||||
|
False
|
||||||
|
|
||||||
|
- >>> is_right_to_left('﷼﷼')
|
||||||
|
+ >>> is_right_to_left('\u2068﷼\u2069﷼')
|
||||||
|
True
|
||||||
|
|
||||||
|
- >>> is_right_to_left('a﷼﷼')
|
||||||
|
+ >>> is_right_to_left('a\u2068﷼\u2069﷼')
|
||||||
|
False
|
||||||
|
|
||||||
|
- >>> is_right_to_left('a﷼﷼')
|
||||||
|
+ >>> is_right_to_left('\u2068a\u2069\u2068﷼\u2069﷼')
|
||||||
|
True
|
||||||
|
'''
|
||||||
|
skip = False
|
||||||
|
@@ -1806,10 +1809,10 @@
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
>>> bidi_embed('a')
|
||||||
|
- 'a'
|
||||||
|
+ '\u202Aa\u202C'
|
||||||
|
|
||||||
|
>>> bidi_embed('﷼')
|
||||||
|
- '﷼'
|
||||||
|
+ '\u202B﷼\u202C'
|
||||||
|
'''
|
||||||
|
if is_right_to_left(text):
|
||||||
|
return chr(0x202B) + text + chr(0x202C) # RLE + text + PDF
|
||||||
|
ibus-typing-booster-2.1.0/engine のみに存在: itb_util.py.orig
|
@ -1,6 +1,6 @@
|
|||||||
Name: ibus-typing-booster
|
Name: ibus-typing-booster
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
Release: 5%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: A completion input method
|
Summary: A completion input method
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -8,9 +8,9 @@ URL: https://mike-fabian.github.io/ibus-typing-booster/
|
|||||||
Source0: https://github.com/mike-fabian/ibus-typing-booster/releases/download/%{version}/ibus-typing-booster-%{version}.tar.gz
|
Source0: https://github.com/mike-fabian/ibus-typing-booster/releases/download/%{version}/ibus-typing-booster-%{version}.tar.gz
|
||||||
Patch0: gating.patch
|
Patch0: gating.patch
|
||||||
Patch1: Prevent-also-BackSpace-from-reopening-a-preedit-when.patch
|
Patch1: Prevent-also-BackSpace-from-reopening-a-preedit-when.patch
|
||||||
|
Patch2: avoid-verbatim-bidi-formatting-characters-in-the-source.patch
|
||||||
Requires: ibus >= 1.5.3
|
Requires: ibus >= 1.5.3
|
||||||
Requires: m17n-lib
|
Requires: m17n-lib
|
||||||
Requires: python(abi) >= 3.3
|
|
||||||
%{?__python3:Requires: %{__python3}}
|
%{?__python3:Requires: %{__python3}}
|
||||||
Requires: python3-dbus
|
Requires: python3-dbus
|
||||||
Requires: python3-enchant
|
Requires: python3-enchant
|
||||||
@ -80,8 +80,9 @@ Unicode symbols.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .gating
|
%patch -P 0 -p1 -b .gating
|
||||||
%patch1 -p1 -b .backspace
|
%patch -P 1 -p1 -b .backspace
|
||||||
|
%patch -P 2 -p1 -b .avoid-bidi-formatting-characters-in-source
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PYTHON=%{__python3}
|
export PYTHON=%{__python3}
|
||||||
@ -132,10 +133,10 @@ desktop-file-validate \
|
|||||||
$RPM_BUILD_ROOT%{_datadir}/applications/emoji-picker.desktop
|
$RPM_BUILD_ROOT%{_datadir}/applications/emoji-picker.desktop
|
||||||
pushd engine
|
pushd engine
|
||||||
# run doctests
|
# run doctests
|
||||||
python3 hunspell_suggest.py
|
%{__python3} hunspell_suggest.py
|
||||||
python3 m17n_translit.py
|
%{__python3} m17n_translit.py
|
||||||
python3 itb_emoji.py
|
%{__python3} itb_emoji.py
|
||||||
python3 itb_util.py
|
%{__python3} itb_util.py
|
||||||
popd
|
popd
|
||||||
mkdir -p /tmp/glib-2.0/schemas/
|
mkdir -p /tmp/glib-2.0/schemas/
|
||||||
cp org.freedesktop.ibus.engine.typing-booster.gschema.xml \
|
cp org.freedesktop.ibus.engine.typing-booster.gschema.xml \
|
||||||
@ -199,6 +200,15 @@ make check || cat ./tests/test-suite.log
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 09 2023 Mike FABIAN <mfabian@redhat.com> - 2.1.0-7
|
||||||
|
- Avoid verbatim bidi formatting characters in source comments
|
||||||
|
to make rpminspect complain less.
|
||||||
|
- Resolves: RHEL-2237
|
||||||
|
|
||||||
|
* Tue Sep 19 2023 Lumír Balhar <lbalhar@redhat.com> - 2.1.0-6
|
||||||
|
- Fix requirements of Python 3
|
||||||
|
- Resolves: RHEL-2237
|
||||||
|
|
||||||
* Thu Feb 04 2021 Mike FABIAN <mfabian@redhat.com> - 2.1.0-5
|
* Thu Feb 04 2021 Mike FABIAN <mfabian@redhat.com> - 2.1.0-5
|
||||||
- Prevent also BackSpace from reopening a preedit when the
|
- Prevent also BackSpace from reopening a preedit when the
|
||||||
option “Arrow keys can reopen a preedit” is off
|
option “Arrow keys can reopen a preedit” is off
|
||||||
|
Loading…
Reference in New Issue
Block a user