Update to 1.17.6

Yet another fix to make it possible again to use keys with Unicode keysyms in keybindings and make it work with all known versions of ibus

Resolves: https://github.com/kaio/ibus-table/issues/85
See also: https://github.com/mike-fabian/ibus-typing-booster/issues/497

This makes the code work both with older ibus (<= 1.5.29) which does

>>> IBus.keyval_name(0x0100263a)
'U+263A'
>>>

and newer ibus (>= 1.5.31 or 1.5.30 with some patches) which does:

>>> IBus.keyval_name(0x0100263a)
'0x100263a'
>>>

So this should work with all currently known versions of ibus.
This commit is contained in:
Mike FABIAN 2024-06-27 15:05:43 +02:00 committed by mfabian5
parent 8ddca0f939
commit 9cfde9d772
3 changed files with 5 additions and 18 deletions

1
.gitignore vendored
View File

@ -98,3 +98,4 @@ ibus-table-1.3.0.20100621.tar.gz
/ibus-table-1.17.3.tar.gz
/ibus-table-1.17.4.tar.gz
/ibus-table-1.17.5.tar.gz
/ibus-table-1.17.6.tar.gz

View File

@ -1,5 +1,5 @@
Name: ibus-table
Version: 1.17.5
Version: 1.17.6
Release: %autorelease
Summary: The Table engine for IBus platform
License: LGPL-2.1-or-later
@ -79,22 +79,8 @@ desktop-file-validate \
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-table.desktop
pushd engine
# run doctests
python3 table.py
# Function to compare two version strings
version_ge() {
[ "$(printf '%s\n' "$1" "$2" | sort -V | head -n1)" = "$2" ]
}
# Get the installed version of ibus-devel
installed_version=$(rpm -q --qf '%%{VERSION}-%%{RELEASE}' ibus-devel)
# Define the minimum required version for the test
required_version="1.5.31-1"
# Compare versions
if version_ge "$installed_version" "$required_version"; then
echo "Running test: ibus-devel version is greater than or equal to $required_version"
python3 it_util.py
else
echo "Skipping python3 it_util.py: ibus-devel version is less than $required_version"
fi
python3 table.py -v
python3 it_util.py -v
popd
mkdir -p /tmp/glib-2.0/schemas/
cp org.freedesktop.ibus.engine.table.gschema.xml \

View File

@ -1 +1 @@
SHA512 (ibus-table-1.17.5.tar.gz) = 176cf01c170d460997797c0f06e18da95bb78beffb439d71831ed4908a93462db00f3ee39a3ddd973d41cb8abbc735e0cf5467c7d6d089031cec2ab4c4f70e50
SHA512 (ibus-table-1.17.6.tar.gz) = 0c3f23595bf1ecc2c3e34962fca3e2317771ba0837c1a04fbcbaae089196994764307184dd482f0a9efcae2106e013ca51cf9530bd1c7cfb29070f54b16a276e