qubes-doc/customization/language-localization.md

42 lines
1.6 KiB
Markdown
Raw Normal View History

2014-11-12 12:39:22 -05:00
---
2015-04-10 16:17:45 -04:00
layout: doc
title: Language Localization
permalink: /doc/language-localization/
redirect_from:
- /en/doc/language-localization/
- /doc/LanguageLocalization/
- /wiki/LanguageLocalization/
2014-11-12 12:39:22 -05:00
---
Language Localization
=====================
How to set up pinyin input in Qubes
-----------------------------------
2017-03-05 10:26:40 -05:00
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`
2017-03-05 10:26:40 -05:00
2. Close and shut down the TemplateVM.
2017-05-11 20:12:02 -04:00
3. Restart an AppVM which is based on the template you installed `ibus-pinyin` in, and open a terminal.
2017-03-05 10:26:40 -05:00
4. Run `ibus-setup`
2017-03-05 10:26:40 -05:00
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
2017-03-05 10:26:40 -05:00
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.
2017-03-05 10:26:40 -05:00
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.
2017-03-05 10:26:40 -05:00
7. Set up your shortcut for switching between inputs, by default it is super-space.
2017-03-05 10:26:40 -05:00
If ibus-pinyin is not enabled when you restart one of these AppVMs, open a terminal and run `ibus-setup` to activate ibus again.
2017-03-05 10:26:40 -05:00
For further discussion, see [this qubes-users thread](https://groups.google.com/forum/#!searchin/qubes-users/languge/qubes-users/VcNPlhdgVQM/iF9PqSzayacJ).