I'm working on Debian Wheezy Linux. I've seen some posts using pinyin tone marks.
- I was wondering if I can do that in Linux (Debian Wheezy).
- How can I configure it?
Chinese Language Stack Exchange is a question and answer site for students, teachers, and linguists wanting to discuss the finer points of the Chinese language. It only takes a minute to sign up.Sign up to join this community
You can install ibus and ibus-pinyin (there's also google pinyin but I personally prefer ibus-pinyin) or scim. Scim is more the historical software, but ibus is definitely better.
You will probably have to restart (!), but then there's about no configuration: at most, you learn the shortcuts to switch between input methods.
As mentioned by vermillion, various IME's include this functionality. But there are other ways of doing this.
One way could be with a script similar to this one for windows Autohotkey_L. However, Autohotkey is not available for Gnu/Linux, so this would need to be reworked. A good text expansion app for Gnu/Linux is AutoKey.
I made an example that can be imported to AutoKey. Since AutoKey supports auto capitalization with text expansion, i removed the case duplicates present in the above sample. Not tested extensively, but works-for-me (tm). I'm using Kubuntu 11.04 and installed the gtk version of AutoKey. From within AutoKey GUI, select File / Import to pull in this example.
Newer versions of AutoKey lack an import function. Import can be achieved by saving above example to /home/username/.config/autokey/autokey.json. Subsequently launching AutoKey results in import. Rename to avoid overwriting existing AutoKeys. Data from any compatible .json file will be merged with existing AutoKeys. Note that there are issues with AutoKey and Xubuntu 14.04.
Made an ibus-tables tone-marked pinyin entry method. Because ibus chinese IME on my system doesn't allow for tone marked pinyin entry.
Finally figured out that one needs to install ibus-m17n to get access to tone based pinyin entry under Chinese layout (sudo apt-get install ibus-m17n). This is better than the ibus-tables approach as it doesn't have the annoying pop-up window while typing pinyin.
ibus-m17n zh-pinyin.mim handles this well. However, whenever you type a v it puts a ü. Other than that you can type normally in English and switch to pinyin just by adding numbers. So i changed it by adding a fifth tone, the neutral tone. If v is typed, v is displayed. If u5 is typed (or u:) then ü is displayed. If you want this functionality, after backing up /usr/share/m17n/zh-pinyin.mim, place the above file in it's place and restart ibus.
Another approach, unfortunately restricted to working within LibreOffice or OpenOffice is to use a macro (scroll down to OpenOffice subtitle).
Try this to see if it's helpful: