-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable to modify the iBus keyboard layout without the root permission.
Update from the upstream. (BUILD=4220) * Enabled to dynamically generate the entries of iBus engines. * Enabled to modify the iBus keyboard layout without the root permission. ----- After this change, the contents of /usr/share/ibus/component/mozc.xml is changed as follows. Before ``` <component> <name>com.google.IBus.Mozc</name> <description>Mozc Component</description> <exec>/usr/lib/ibus-mozc/ibus-engine-mozc --ibus</exec> <version>0.0.0.0</version> <author>Google Inc.</author> <license>New BSD</license> <homepage>https://github.com/google/mozc</homepage> <textdomain>ibus-mozc</textdomain> <engines> <engine> <description>Mozc (Japanese Input Method)</description> <language>ja</language> <icon>/usr/share/ibus-mozc/product_icon.png</icon> <rank>80</rank> <icon_prop_key>InputMode</icon_prop_key> <symbol>あ</symbol> <setup>/usr/lib/mozc/mozc_tool --mode=config_dialog</setup> <name>mozc-jp</name> <longname>Mozc</longname> <layout>default</layout> </engine> </engines> </component> ``` After ``` <component> <name>com.google.IBus.Mozc</name> <description>Mozc Component</description> <exec>/usr/lib/ibus-mozc/ibus-engine-mozc --ibus</exec> <version>0.0.0.0</version> <author>Google Inc.</author> <license>New BSD</license> <homepage>https://github.com/google/mozc</homepage> <textdomain>ibus-mozc</textdomain> <engines exec="/usr/lib/ibus-mozc/ibus-engine-mozc --xml" /> </component> <!-- Settings of <engines> and <layout> are stored in ibus_config.textproto --> <!-- under the user configuration directory, which is either of: --> <!-- * $XDG_CONFIG_HOME/mozc/ibus_config.textproto --> <!-- * $HOME/.config/mozc/ibus_config.textproto --> <!-- * $HOME/.mozc/ibus_config.textproto --> ``` Then, `/usr/lib/ibus-mozc/ibus-engine-mozc --xml` returns the values of the <engine> tags. If `ibus_config.textproto` exists under the user config directory. (i.e. `~/.mozc/ibus_config.textproto` or `~/.config/mozc/ibus_config.textproto`) Mozc uses the settings in the file. If `ibus_config.textproto` does not exist, it is created with the default values. So, the users do not need to modify `/usr/share/ibus/component/mozc.xml` directly. This is the same mechanism with ibus-anthy. This change will fix two issues. * There was no way to use Kana layout for US keyboard. With this change, if the layout is us, Kana layout for US keyboard is used instead of JP keyboard. * If multilingual layouts were selected, the keyboard layout for Mozc was not stable. For example, when US and FR keyboards were selected in addition to Mozc, Mozc's layout was not stable. This change enables to specify the static layout for Mozc.
- Loading branch information
1 parent
ba7cbec
commit 9ba59b6
Showing
11 changed files
with
462 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.