Commit Graph

92 Commits

Author SHA1 Message Date
Mike FABIAN
9cfde9d772 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.
2024-07-02 13:47:14 +00:00
Mike FABIAN
e8e13cb593 Resolves: RHEL-36633 Remove dependency on Xvfb from CI tests and Update to 1.17.5
- Drop Python2 support (using pyupgrade --py3-plus *.py)
- Make it possible to use keys with Unicode keysyms in keybindings (requires ibus &gt; 1.5.30)
  (Resolves: https://github.com/mike-fabian/ibus-typing-booster/issues/497, same problem for ibus-table)
- Use `frames_per_buffer=chunk_size` option in `self._paudio.open()`
  (Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2238746#c3)
- Translation update from Weblate (cs 36.6%, ja 45.3%, zh_CN 92.0%)
- Convert to rpm-autospec
2024-06-19 20:01:43 +02:00
Mike FABIAN
41760b9991 Update to 1.17.4
- Fix compose support for ibus >= 1.5.28
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/145)
- Translation update from Weblate (New language, Russian, (ru) 80%)
- Use “<developer><name>…</name></developer>” in ibus-table.appdata.xml instead of “<developer_name>…</developer_name>”
  Because </developer_name> is deprecated and it makes the build fail on Fedora rawhide.
2023-11-10 17:07:07 +01:00
Mike FABIAN
4808380dd5 Update to 1.17.3
- Support several backends for playing sounds
  Resolves: rhbz#2237674 https://bugzilla.redhat.com/show_bug.cgi?id=2237674
- Update Unihan_Variants.txt and regenerate engine/chinese_variants.py to Unicode Version 15.1.0
2023-09-14 11:05:36 +02:00
Mike FABIAN
71e9b53d69 Update to 1.17.2
- Translation update from Weblate (de 100%, tr 100%)
2023-08-21 12:23:00 +02:00
Mike FABIAN
c20027118b Update to 1.17.1
- Fix mypy warnings
- Return empty program_name and window_title in get_active_window_xprop()
  when xprop results are unexpected (Resolves: rhbz#2215466)
- Translation update from Weblate (si 10.0%)
2023-07-10 11:50:35 +02:00
Mike FABIAN
d2a87f510c - Update to 1.17.0
- New option commit_invalid_mode: Choose what happens when a
  character not in valid input characters is typed
  (Resolves: github-mike-fabian-issue#133)
- Translation update from Weblate (de 100%, uk 100%)
2023-04-07 15:08:54 +02:00
Mike FABIAN
795ec5be7a Update to 1.16.14
- Fix a problem in C/POSIX and invalid locales:
  Use lower() on LC_MESSAGES only if it is a string and not None
  Resolves: https://github.com/mike-fabian/ibus-table/issues/130
  Resolves: rhbz#2131410 https://bugzilla.redhat.com/show_bug.cgi?id=2131410
2022-11-10 15:07:17 +01:00
Mike FABIAN
de98c73654 Update to 1.16.13
- Get program name of focused window also when ibus cannot get it
- Use focus id if available (it is available for ibus >= 1.5.27)
- Use IBus.PreeditFocusMode.COMMIT and make sure the input is
  cleared and the UI updated when the focus changes
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/129)
- Do not reset input purpose on focus out
  (See: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5966#note_1576732)
- Do not commit by index when OSK is visible
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/128)
2022-11-01 21:53:42 +01:00
Mike FABIAN
53b063945e Update to 1.16.12
- Stop using locale.getdefaultlocale() because it is deprecated in Python
  3.11 and will be removed in Python 3.13
  Resolves: https://github.com/mike-fabian/ibus-table/issues/120
- Add 128x128, 256x256, and svg (remote) icons to ibus-table.appdata.xml
2022-09-05 19:57:47 +02:00
Mike FABIAN
337e89b26b Update to 1.16.11
- Remove hashbang from chinese_variants.py and tabcreatedb.py
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/118)
2022-08-06 14:14:05 +02:00
Mike FABIAN
c8898fa44f Update to 1.16.10 2022-08-02 20:13:07 +02:00
Mike FABIAN
8183a54608 Update to 1.16.9
- Require Python >= 3.6 to build
- Use a less exact type hint to make building tables from
  sources work with Python 3.6 as well
- Update home page URLs (code.google.com is not used anymore)
2022-06-13 19:31:03 +02:00
Mike FABIAN
27e3fe979e Update to 1.16.8
- Update Unihan_Variants.txt from “2021-12-01 Unicode 15.0.0
  draft” to “2022-04-26 Unicode 15.0.0 draft” and regenerate
  chinese_variants.py. All our fixes to Unihan_Variants.txt
  are included upstream.
- Update translations from Weblate (fa, fr updated)
2022-04-28 11:31:56 +02:00
Mike FABIAN
02a8725f73 Update to 1.16.7
- Ignore MOD3_MASK (Scroll Lock) when matching key bindings
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/102)
- When a Modifier key release matches a hotkey command, return False not True.
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/98)
  (Resolves: rhbz#2038973 https://bugzilla.redhat.com/show_bug.cgi?id=2038973)
2022-01-28 13:01:22 +01:00
Mike FABIAN
4a7c92943e Update to 1.16.4
- Fix more errors in Unihan_Variants.txt by checking against
  a Traditional Chinese dictionary
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/100)
- Fix some errors in Unihan_Variants.txt
- Update translations from Weblate (es updated to 100%)
2022-01-24 22:42:29 +01:00
Mike FABIAN
b362b86f69 Update to 1.16.3
- Fix a few errors in Unihan_Variants.txt
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/96)
- 栗 U+6817 is used in Traditional Chinese as well.
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/95)
- Update Unihan_Variants.txt from “2021-08-06 Unicode 14.0.0
  final” to “2021-12-01 Unicode 1 5.0.0 draft” and regenerate
  engine/chinese_variants.py
2022-01-24 22:42:11 +01:00
Mike FABIAN
d9c244796d Update to 1.16.0
- Make true the default for “rememberinputmode”
- Save “inputmode” to gsettings
  and add a “rememberinputmode” gsettings. This makes it
  possible to change the current input mode from the command
  line. And with “rememberinputmode” one can choose whether
  the last used input mode should be remembered and be used
  again when a new session starts or whether a new session
  should always start in table mode.
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/85)
- Skip cangjie5 and erbi-qs test cases if the tables are too old
- Replace deprecated module “optparse” with “argparse”
2022-01-18 15:08:19 +01:00
Mike FABIAN
caa59dfd3c Update to 1.15.0
- Fix problems with goucima for erbi-qs table
  (Resolves: https://github.com/kaio/ibus-table/issues/77)
- Update Unihan_Variants.txt to “2021-08-06 Unicode 14.0.0 final”
  and regenerate engine/chinese_variants.py
- Fix typo in translatable message, by Rafael Fontenelle
  (https://github.com/mike-fabian/ibus-table/pull/82)
2022-01-11 10:12:11 +01:00
Mike FABIAN
caba761a83 Update to 1.14.1
- If an exception happens when trying to play a sound, catch it.
  I have no idea how to reproduce that bug. But catching the
  exception should fix it, it should make ibus-table continue
  working normally if any such serious problem with playing
  sounds occurs. Without sound of course but it should not
  stop working.
  (Resolves: rhbz#1995955 https://bugzilla.redhat.com/show_bug.cgi?id=1995955)
- When changing the error sound file with the setup tool, play
  it. To make the user hear immediately what kind of sound
  was selected.
- Update translations from Weblate
- Remove colons after “Auto select:”, “Auto wildcard:”, and “Use dark theme:”
  (Resolves: https://github.com/mike-fabian/ibus-table/issues/70#issuecomment-884664898)
2021-08-25 12:48:29 +02:00
Mike FABIAN
3c4e85d923 Update to 1.14.0
- Add option to set dynamic adjust at runtime
- Resolves: https://github.com/mike-fabian/ibus-table/issues/70
- Also add a button to forget all the data learned by typing and selecting candidates.
- Add options to play sound file on error
- Resolves: https://github.com/kaio/ibus-table/issues/75
- Use checkbuttons instead of [Yes/No] comboboxes
- Hide options which make no sense for certain tables instead of just graying them out
- Add “Recommends: python3-simpleaudio” (Without that the new sound option is ignored)
2021-07-21 14:48:50 +02:00
Mike FABIAN
2713f7f9d6 Update to 1.13.3
- Fix a few more bugs in Unihan_Variants.txt, the characters
  着枱云裡復采吓尸揾 are used both in simplified and traditional
  Chinese (some of them in traditional Chinese in Hong Kong only).
  (Resolves: https://github.com/ibus/ibus/issues/2323)
2021-06-09 17:53:40 +02:00
Mike FABIAN
c17ce83564 Update to 1.13.2
- Fix bug in Unihan_Variants.txt, 只 U+53EA is both simplified
  and traditional Chinese
  (Resolves: https://github.com/kaio/ibus-table/issues/74)
- Update Chinese variant detection by Unihan_Variants.txt to
  the version “2021-05-18 Unicode 14.0.0” (draft version of Unicode 14)
- Update translations from Weblate (updates for es (100%), pt_BR (100%))
2021-06-08 15:19:55 +02:00
Mike FABIAN
0a42ea43fc Update to 1.13.1
- Fix reading the source file for the suggestions phrase.txt.bz2
- Update translations from Weblate (updates for ca, fr)
2021-05-16 21:46:56 +02:00
Mike FABIAN
5e884906b6 Update to 1.13.0
- Make switch to pinyin mode also happen immediately even
  when the preedit is not empty (for consistency)
- Make rolling the mouse wheel in the candidate area of the lookup table work
- Commit English input and then switch into direct mode
  (Resolves: https://github.com/kaio/ibus-table/issues/68)
- Apply a couple modes immediately when changed
- Add a dark theme option
  (Resolves: https://github.com/kaio/ibus-table/issues/67)
- Show all the tabkeys when using wildcards
- Remove Python2 compatibility stuff
- Start adding some type hints
- Update translations from Weblate (update for de, ja, tr, uk, zh_CN)
2021-05-06 16:25:11 +02:00
Mike FABIAN
ec259d1ff2 Update to 1.12.6
- In main.py “import factory” only when the --xml option is not used
- Resolves: rhbz#1955283
- Make the keybindings treeview sortable by clicking the column headers
- Update translations from Weblate (update for pt_BR, now 100%)
2021-05-03 09:24:55 +02:00
Mike FABIAN
3ffbe2d7b7 Update to 1.12.5
- Return False in _execute_command_commit_candidate_number(self, number)
  if number out of range
- Resolves: https://github.com/moebiuscurve/ibus-table-others/issues/21
- remove Use-from-unittest-import-mock-instead-of-just-import.patch
  (included upstream)
- Update translations from Weblate (New translation for Sinhala (si) started)
2021-03-05 18:17:07 +01:00
Mike FABIAN
42aca59f7f Update to 1.12.4
- Update translations from Weblate (updated es, cs, fa, pt_BR, zh_CN).
  zh_CN is 100% complete now.
2021-01-24 19:28:55 +01:00
Mike FABIAN
150e0137c4 Update to 1.12.3
- Pass the key for the command 'cancel' (default Esc) through
  if the preedit is empty
- Resolves: https://github.com/kaio/ibus-table/issues/64
2021-01-06 14:02:33 +01:00
Mike FABIAN
df05192a9e Update to 1.12.2
- Update translations from Weblate
  (updated ca, cs, es, fa, ja, pt_BR, pt_PT, tr, zh_CN, zh_HK, zh_TW)
2021-01-04 14:40:43 +01:00
Mike FABIAN
2120a90579 Update to 1.12.1
- Enable compose support.
- Add buttons to move key bindings for a command up or down.
- Make translations of 'Edit key bindings for command “%s”' work
- Added it_util.py to POTFILES, it had translatable strings for
  the “About” dialog and the key settings dialog.
- Update translations from Weblate (updated ca, de, fr, tr, uk)
2020-09-04 12:43:22 +02:00
Mike FABIAN
d0959838b3 Update to 1.12.0
- New setup tool, now keybindings can be configured with a GUI.
- Resolves: https://github.com/kaio/ibus-table/issues/57
- Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1133127
- Put exact (except tone) pinyin matches next after exact
  matches in the candidate list.
- Resolves: https://github.com/kaio/ibus-table/issues/63
- Allow lookup table orientation “System Default” in the setup
- Remove “spacekeybehavior” option, it became useless as all
  keybindings are configurable now.
- Added a “debuglevel” option.
- Update translations from Weblate (updated de)
2020-08-26 14:21:32 +02:00
Mike FABIAN
33026a85f6 Update to 1.11.0
- Make key bindings configurable.
  Only via the command line for the moment, not yet easy to do
  for normal users. I have to rewrite the setup tool eventually
  to make that possible.
- Resolves: https://github.com/ibus/ibus/issues/2241
2020-08-18 19:34:01 +02:00
Mike FABIAN
2a401817cf Update to 1.10.1
- Add GUI test
- Make output of ibus-table-createdb deterministic
- Update translations from Weblate (updated fr, tr, zh_CN)
2020-07-17 13:01:42 +02:00
Mike FABIAN
0b777236a6 Update to 1.10.0
- Add suggestion mode feature
- Resolves: https://github.com/mike-fabian/ibus-table/pull/9
- Resolves: rhbz#835376
- Add test cases for suggestion mode feature
- Fix problems with the behaviour of the property menus
- Use python logging module with log file rotation instead
  of writing to stdout/stderr
- Update translations from Weblate (updated de, es, fr, pt_BR, pt_PT, tr, uk)
2020-07-02 15:04:23 +02:00
Mike FABIAN
d4444691d2 Update to 1.9.25
- Fix crash when changing some options using the menu or the floating panel
- Resolves: rhbz#1803028
- Translation updates (pt_PT)
2020-02-14 15:18:32 +01:00
Mike FABIAN
3c85f62928 Update to 1.9.24
- Fixed two typos in message ids (Thanks to Rafael Fontenelle)
- Translation updates (tr, fr, fa, pt, uk)
- New test cases for ibus-table-others
2020-01-22 16:35:38 +01:00
Mike FABIAN
8a52b66f2e update to 1.9.23
- Add exist_ok=True in os.makedirs(path, exist_ok=True) to
  avoid failure due to race condition.
- Resolves:rhbz#1786652
- Move MockEngine classes into a separate file and make
  test_itb.py runnable standalone
- Translation updates for several languages (French at 100%
  now, Brazilian Portuguese at 100% now, Portuguese
  (Portugal) new and now at 31.5%)
2020-01-07 12:59:52 +01:00
Mike FABIAN
f41808f1b7 update to 1.9.22
- Add Turkish translation from Weblate, 100% translated
- Minor translation fixes in some other languages (Punctuation fixes)
2019-12-17 15:04:04 +01:00
Mike FABIAN
fd1dd5d091 update to 1.9.21
- Migrate IBusConfig to GSettings.
  Resolves: https://github.com/mike-fabian/ibus-table/issues/4
- Add a test suite
- Add missing tags to ibus-table-createdb.sgml.
  Resolves: https://github.com/mike-fabian/ibus-table/issues/3
2018-08-29 12:18:06 +02:00
Mike FABIAN
70f7b2b367 update to 1.9.20
- Draw InputMode text instead of icon into panel on non-Gnome desktops.
  Resolves: https://github.com/mike-fabian/ibus-table/issues/6
  (Thanks to Takao Fujiwara)
- Make it work with Python2 again
2018-05-03 10:07:29 +02:00
Mike FABIAN
08cff723d8 update to 1.9.19
- Sync phrases cache from/to external storage (thanks to heiher).
- Update translations from zanata (cs new)
2018-04-30 14:20:24 +02:00
Mike FABIAN
2799fb6903 update to 1.9.18
- validate ibus-table.appdata.xml in %%check
- Update translations from zanata (pt_BR updated, es new)
- Don't query user database if user define phrase and
  dynamic adjust are disabled (thanks to heiher)
- Enable hash map based cache for user database enabled
  (thanks to heiher)
- Import hash map based cache for table database (thanks to
  heiher)
- Install appstream metadata to /usr/share/metainfo/ (thanks
  to jbicha)
- Fix some appdata validation issues (thanks to jbicha)
- Fix bug in Unihan_Variants.txt, 著 U+8457 is both
  simplified *and* traditional Chinese (thanks to heiher)
2017-08-02 11:33:48 +02:00
Mike FABIAN
7822f8a353 update to 1.9.17
- Load .desktop file for ibus-setup-table correctly under Gnome Wayland
- Set WM_CLASS of ibus-setup-table correctly
2017-06-01 13:32:45 +02:00
Mike FABIAN
812d2dc485 update to 1.9.16
- Avoid running initialization code of ibus_table_location.py
  when using ibus-table-createdb.
- Make it work on Python 3.6 (Unbreak sqlite on Python 3.6)
  (Resolves: rhbz#1413580).
2017-01-16 14:53:45 +01:00
Mike FABIAN
2d25084e26 update to 1.9.15
- Update translations from zanata (ca, de, fr, uk updated)
- Point to new home-page in the “About” tab.
- Improve README
2017-01-16 09:26:03 +01:00
Mike FABIAN
69b0618ca3 update to 1.9.14
- Fix bug in Unihan_Variants.txt, 乾 U+4E7E is both simplified
  and traditional Chinese (thanks to Heiher <r@hev.cc>)
2016-08-24 13:52:13 +02:00
Mike FABIAN
614ad6f392 update to 1.9.13
- When ignoring key release events, “False” should be returned, not “True”
- Resolves: Resolves: rhbz#1369514
- add ibus-table.appdata.xml and make it translatable
- pull some new translations and updates from Zanata
  (ca, fr, pt_BR, and uk are new, ja, zh_CN, and
  zh_TW have updates).
2016-08-24 09:27:14 +02:00
Mike FABIAN
2e09bc3813 update to 1.9.12
- Show the table code in the candidate list when pinyin mode is used
- Resolves: rhbz#1318109
2016-03-16 08:07:46 +01:00
Mike FABIAN
fb5e02f4f2 update to 1.9.11
- Fix bug in Unihan_Variants.txt, U+9762 and U+7CFB are both simplified *and* traditional Chinese
- Resolves: rhbz#1285379
- Add a few more IBus.Text.new_from_string() conversions to make it work on older systems
2015-11-27 10:18:03 +01:00