Eberhard Beilharz
3169cc0fa5
feat(linux): implement engine side of SimulateAltGr option
...
- read value from dconf
- set up Core environment
- if dconf value changes re-create the Core environment
Fixes : #7697
2024-06-21 18:27:06 +02:00
Eberhard Beilharz
d93fb6aa0b
refactor(linux): rename methods that deal with keyboard options
...
This renames the existing methods that read and write keyboard options
so that it's visible from the name that they read/write keyboard options.
This is in preparation of new methods that read and write more general
options.
2024-06-21 18:22:29 +02:00
Steven R. Loomis
6706ae0957
chore(core): km_core_cp -> km_core_cu
...
- km_core_cp represents a 16 bit code unit, not a code point.
Fixes : #11033
2024-05-02 17:39:15 -05:00
Eberhard Beilharz
13eb1002ae
refactor(linux): Deal with invalid version numbers
2024-02-01 17:26:38 +01:00
Eberhard Beilharz
02008dc585
fix(linux): Fix version comparison
...
Implement proper comparison of versions so that 1.10 is newer than 1.9.
Fixes #9593 .
2024-01-31 14:47:35 +01:00
Eberhard Beilharz
0eb5065bf4
chore(linux): Unnecessary to check for NULL before calling g_free
...
`g_free` will return if the parameter is NULL, so we don't have to
check for that.
See glib [documentation](https://docs.gtk.org/glib/func.free.html ).
2023-10-16 18:24:56 +02:00
Eberhard Beilharz
b0dd74ca59
feat(linux): Ignore invalid values in custom keyboards list 🏘️
2023-10-12 18:31:42 +02:00
Eberhard Beilharz
8e1ee9ea7b
feat(linux): Allow loading of keyboards with arbitrary language 🏘️
...
Part of #8598 .
2023-10-12 18:31:42 +02:00
Eberhard Beilharz
2a7d1758ae
feat(linux): Store user-added keyboards in GSettings 🏘️
2023-10-12 18:31:41 +02:00
Eberhard Beilharz
7bab603b5b
refactor(linux): Simplify adding keyboard
...
Before we add a keyboard we check if we already added this keyboard
(in a different area). If we did (with the same or newer version) we
skip this keyboard. This change now immediately returns whereas previously
we set a flag and then didn't execute the rest of the method.
2023-10-10 18:00:05 +02:00
Eberhard Beilharz
22126a0eef
refactor(linux): Use auto cleanup
2023-10-10 15:52:51 +02:00
Marc Durdin
db76e2541d
chore: rename KM_KBP_ to KM_CORE_
2023-10-09 14:53:22 +07:00
Marc Durdin
ba5f18defd
chore: rename km_kbp_ to km_core_
2023-10-09 14:53:13 +07:00
Marc Durdin
4ef18f5e29
chore(core): rename keyboardprocessor.h to keyman_core_api.h
...
Fixes #9721 .
Also tweaks some documentation references to keyboardprocessor, but does
not touch those relating to debian/control.
2023-10-09 14:21:01 +07:00
Eberhard Beilharz
4ab6031d0b
chore(linux): Address code review comments
2023-09-29 10:07:11 +02:00
Eberhard Beilharz
3812a1da3b
refactor(linux): Add more tests for keymanutil.c 🏘️
2023-09-28 17:25:11 +02:00
Eberhard Beilharz
a03eca3d81
refactor(linux): Rename defines to clarify purpose 🏘️
2023-09-18 19:00:29 +02:00
Eberhard Beilharz
7c7d46720c
chore(linux): Split startup process
...
This change improves the startup method so that it will also work
if ibus hasn't started yet. Also fixes two memory leaks.
2023-09-15 16:58:34 +02:00
Eberhard Beilharz
5a03371052
fix(linux): Get name, not version
2023-08-03 17:04:17 +02:00
Eberhard Beilharz
81f46e1a6d
feat(linux): Minimize tags before adding keyboards
...
This ensures that bcp47 language tags are in a form the OS
understands.
2023-07-19 16:20:27 +02:00
Eberhard Beilharz
053ee52281
fix(linux): Fix keyboard icon in system tray
...
Show the keyboard specific icon in the system tray on Wasta instead
of the generic keyman one.
Fixes #7547 .
2022-11-10 09:11:44 +01:00
Eberhard Beilharz
d8ee425eb2
chore(linux): fix memory allocation in keymanutil.c
...
Also add unit tests for keyman_put_options_todconf.
2021-11-15 19:22:04 +01:00
Eberhard Beilharz
642bad8d7d
fix(linux): fix freeing of options
2021-11-08 12:38:00 +01:00
Eberhard Beilharz
be7dd09cb0
chore(linux): Address code review comments
2021-11-08 12:02:30 +01:00
Eberhard Beilharz
2095d98c14
chore(linux): Update method comments
2021-11-05 16:27:22 +01:00
Eberhard Beilharz
b4208c90b8
chore(linux): Set correct version number on ibus component
2021-10-28 10:36:23 +02:00
Eberhard Beilharz
c401640c8a
chore(linux): Fix warnings
2021-06-14 17:39:05 +02:00
Darcy Wong
a148463dca
feat(linux): Save new options into DConf
2020-02-01 17:04:09 +07:00
Darcy
12a6d5e95c
feat(linux): Start refactoring the dconf utilities
2020-01-31 17:35:49 +07:00
glasseyes
308c9216a9
'us' is the default us xkb keyboard not 'en'
2018-12-13 09:34:47 +07:00
glasseyes
d2518f319e
check if kmx already processed at >= version
2018-12-06 13:20:41 +07:00
glasseyes
4510bf3863
separate IBus engines for each language
2018-12-04 13:49:47 +07:00
glasseyes
5156dcc98b
change oth lang to other
2018-11-26 11:35:04 +07:00
glasseyes
2cc3cebd8a
cope with keyboard without lang
2018-11-26 10:56:24 +07:00
glasseyes
c20dd60064
add version to engine
...
though ibus doesn't seem to use it anyway
another g_file_test
2018-11-22 15:23:17 +07:00
glasseyes
b240fb50a2
use g_file_test more, add copyright header
2018-11-22 15:08:45 +07:00
glasseyes
c9eca64161
re-enable OSK, more cleanup
2018-11-22 14:58:44 +07:00
glasseyes
d1215444da
remove dead code
2018-11-22 14:11:03 +07:00
glasseyes
1847856510
get keyboards from json
...
instead of looking for .kmx files
put data from json into the engine
2018-11-22 14:01:22 +07:00
glasseyes
53422c5c36
WIP: keyboard management
2018-11-20 17:25:21 +07:00
glasseyes
f32b083485
WIP: giving state the context
...
if ibus's client app/toolkit supports it
2018-11-09 16:53:36 +07:00
glasseyes
32c9ce3e60
get icons working til get them from kmx
2018-11-08 16:40:42 +07:00
glasseyes
4d61385e0e
differentiate dummy keyboard names with number
...
WIP: show icons
2018-11-07 17:16:13 +07:00
glasseyes
3301296789
get kvk and ldml file names from kmx name
2018-11-07 15:45:33 +07:00
glasseyes
67973cd89b
WIP: setting up to use dummy keyboard
2018-11-07 10:15:25 +07:00
glasseyes
c862e7148b
some infrastructure for loading keyboards
...
from libkmfl
2018-11-06 16:07:59 +07:00
glasseyes
d58667dc11
WIP: adapt keymanutil for new processor
2018-11-06 15:15:30 +07:00
glasseyes
37a92339a4
[linux] WIP: preparing to use keyman API
2018-10-05 09:02:22 +07:00
glasseyes
168c693f32
make a copy of ibus-kmfl called ibus-keyman
...
This will be modified to use the new Keyman engine
2018-09-25 17:18:57 +07:00