diff --git a/customization/language-localization.md b/customization/language-localization.md index 65287741..81f327fb 100644 --- a/customization/language-localization.md +++ b/customization/language-localization.md @@ -14,42 +14,28 @@ Language Localization How to set up pinyin input in Qubes ----------------------------------- -1. Don't try to install anything in Dom0. +1. In the TemplateVM in which the AppVMs you would like to use pinyin input is based, please install `ibus-pinyin` via the package manager or terminal. If the template is Fedora-based, run `sudo dnf install ibus-pinyin`, if the template is Debian-based, run `sudo apt install ibus-pinyin` -2. Choose a TemplateVM in which you will be using pinyin input on AppVM - instances thereof and open a terminal there. +2. Close and shut down the TemplateVM. -3. Issue `sudo yum install ibus-pinyin` (or, for a Debian template, - `sudo apt-get install ibus-pinyin`). - -4. Close and shut down the TemplateVM. - -5. Restart an AppVM which inherits from the template and open a terminal. +3. Restart an AppVM which based on the template you installed `ibus-pinyin` and open a terminal. -6. Issue `ibus-setup`. +4. Run `ibus-setup` -7. You will likely get the error message telling you to paste +5. You will likely get the error message telling you to paste the following into your bashrc: export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus - into your bashrc. - - Copy the text, and then issue: `sudo nano ~/.bashrc` - Paste the text into the bottom of the file and press ctrl-x to save and - close. + Copy the text into your `~/.bashrc` file with your favorite text editor. You will need to do this on any AppVM in which you wish to use pinyin input. -8. Setup ibus input as you like using the graphical menu (add pinyin or - intelligent pinyin to selections). You can bring the menu back by issuing - `ibus-setup` from a terminal. +6. Set up ibus input as you like using the graphical menu (add pinyin or intelligent pinyin to selections). You can bring the menu back by issuing `ibus-setup` from a terminal. -9. Use super-space as you are used to using to switch between pinyin-unicode and - Latin character input. +7. Set up your shortcut for switching between inputs, by default it is super-space. -10. Whenever you restart one of these AppVMs, you will need to open a terminal - and issue `imsettings-switch ibus` to activate ibus. +If ibus-pinyin is not enabled when you restart one of these AppVMs, open a terminal and run `ibus-setup` to activate ibus again. -For further discussion, see [this thread](https://groups.google.com/forum/#!searchin/qubes-users/languge/qubes-users/VcNPlhdgVQM/iF9PqSzayacJ). +For further discussion, see [this qubes-users thread](https://groups.google.com/forum/#!searchin/qubes-users/languge/qubes-users/VcNPlhdgVQM/iF9PqSzayacJ).