spiegel-keyman/linux/keyman-config
Darcy Wong df5de88d41 fix(linux): Cherrypick linux packaging fixes
Cherrypick linux packaging fixes from #2591, #2599, #2609 into beta
2020-02-11 09:35:52 +07:00
..
debian fix(linux): Cherrypick linux packaging fixes 2020-02-11 09:35:52 +07:00
experiments get un/install from ibus working (for me at least!) 2018-12-19 12:55:26 +07:00
icons icon for .kmp files 2019-01-04 14:55:59 +07:00
keyman_config Merge remote-tracking branch 'origin/beta' into linux-options-dconf 2020-02-05 15:22:33 +07:00
maninc [linux] doc tab completion caveats 2018-10-08 10:13:22 +07:00
com.keyman.gschema.xml feat(linux): Add ability to configure keyboard options 2020-01-31 11:43:58 +07:00
COPYING license file 2018-05-24 16:53:38 +07:00
createkeymandirs.sh missed createkeymandirs.sh 2018-09-01 12:28:16 +07:00
km-config [linux] use long version of args variable names 2018-10-08 17:04:00 +07:00
km-kvk2ldml [linux] use long version of args variable names 2018-10-08 17:04:00 +07:00
km-kvk2ldml.bash-completion [linux] alternative --x options for km scripts 2018-10-08 13:25:03 +07:00
km-package-get [linux] use long version of args variable names 2018-10-08 17:04:00 +07:00
km-package-get.bash-completion [linux] alternative --x options for km scripts 2018-10-08 13:25:03 +07:00
km-package-install Save ico/bmp files to png 2019-09-11 10:06:44 +07:00
km-package-install.bash-completion parameters changed in km-package-install 2018-12-03 11:52:20 +07:00
km-package-list-installed find either package or first keyboard icons 2018-11-23 11:18:43 +07:00
km-package-list-installed.bash-completion [linux] alternative --x options for km scripts 2018-10-08 13:25:03 +07:00
km-package-uninstall [linux] use long version of args variable names 2018-10-08 17:04:00 +07:00
km-package-uninstall.bash-completion [linux] alternative --x options for km scripts 2018-10-08 13:25:03 +07:00
Makefile feat(linux): Add ability to configure keyboard options 2020-01-31 11:43:58 +07:00
MANIFEST.in icons for km-config 2019-01-04 14:43:49 +07:00
README.md fix(linux): Cherrypick linux packaging fixes 2020-02-11 09:35:52 +07:00
setup.py fix(linux): Cleanup qrcode package during uninstall 2020-01-13 12:55:44 +07:00

Linux KMP installer

Preparing to run

If you are running from the repo or installing keyman-config manually rather than from a package then you will need to

sudo apt install python3-lxml python3-magic python3-numpy python3-qrcode python3-pil python3-requests python3-requests-cache python3 python3-gi gir1.2-webkit-2.4 dconf-cli python3-setuptools

You will also need kmflcomp either from a package or built and installed locally.

Run the script ./createkeymandirs.sh to create the directories for these programs to install the packages to

Also copy and compile the GSettings schema

cd keyman_config
sudo cp com.keyman.gschema.xml /usr/share/glib-2.0/schemas
sudo glib-compile-schemas /usr/share/glib-2.0/schemas

Installing manually from the repo

make && sudo make install will install locally to /usr/local python3 setup.py --help install will give you more install options You will need sudo apt install python3-pip to make uninstall

Things to run from the command line

km-config

./km-config

This displays a configuration panel that shows the currently installed Keyman keyboard packages and can download and install additional keyboards.

Buttons
  • Uninstall - uninstall selected keyboard
  • About - show information about selected keyboard
  • Help - display help documentation about selected keyboard
  • Options - display options.htm form for setting keyboard options

  • Refresh - useful if you install or uninstall on the commandline while running km-config.
  • Download - runs DownloadKmpWindow (see below)
  • Install - opens a file choose dialog to choose a kmp file to install and bring up the InstallKmpWindow for more details and to confirm installing.
  • Close - close the configuration panel
Download window

This uses the keyman.com website to install kmps.

Search for a language or keyboard in the search box. Select a keyboard from the list. In 'Downloads for your device' there will be an 'Install keyboard' button for the keyboard for Linux. Click it to download the keyboard and bring up the InstallKmpWindow for more details and to confirm installing.

Secondary-click gives you a menu including 'Back' to go back a page.

km-package-install

km-package-install -p <keyboard package id> install Keyman keyboard package from the keyman.com server

km-package-install -f <kmp file> install Keyman keyboard package from a local .kmp file

km-package-uninstall

km-package-uninstall <keyboard id> uninstall Keyman keyboard package

km-package-uninstall -s <keyboard id> uninstall from shared area /usr/local

km-package-list-installed

km-package-list-installed shows name, version, id, description of each installed keyboard

km-package-list-installed -s shows those installed in shared areas

km-package-list-installed -os shows those installed by the OS

km-package-list-installed -u shows those installed in user areas

km-package-get

km-package-get <keyboard id> download Keyman keyboard package to ~/.cache/keyman

km-kvk2ldml

km-kvk2ldml [-p] [-k] [-o LDMLFILE] <kvk file> Convert a Keyman kvk on-screen keyboard file to an LDML file. Optionally print the details of the kvk file [-p] optionally with all keys [-k].

Building the Debian package

You will need the build dependencies as well as the runtime dependencies above

sudo apt install dh-python python3-all debhelper help2man

Run make deb. This will build the Debian package in the make_deb directory.