Skip to content

Commit

Permalink
Blacklist some engines useless under ibus environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed Oct 26, 2011
1 parent e827f59 commit 4a2f327
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/default.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,38 @@
@IBUS_HOTKEYS_XML@
<virtual-keyboard>us</virtual-keyboard>
</engine>
<!-- Blacklist some engines -->
<!-- kbd engines are duplicate of xkb engines -->
<engine>
<name>m17n:*:kbd</name>
<rank>-1</rank>
</engine>
<!-- zh:pinyin is considered as a toy, since it does not
support Han characters -->
<engine>
<name>m17n:zh:pinyin</name>
<rank>-1</rank>
</engine>
<!-- zh:py is superseded by ibus-pinyin etc -->
<engine>
<name>m17n:zh:py</name>
<rank>-1</rank>
</engine>
<!-- ja:anthy is superseded by ibus-anthy -->
<engine>
<name>m17n:ja:anthy</name>
<rank>-1</rank>
</engine>
<!-- ko:han2 is superseded by ibus-hangul -->
<engine>
<name>m17n:ko:han2</name>
<rank>-1</rank>
</engine>
<!-- ko:romaja is superseded by ibus-hangul -->
<engine>
<name>m17n:ko:romaja</name>
<rank>-1</rank>
</engine>
<!-- Indic engines should be selected by default:
https://bugzilla.redhat.com/show_bug.cgi?id=640896 -->
<engine>
Expand Down

3 comments on commit 4a2f327

@thoughtless
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does one go about using one of these blacklisted engines? In particular, I frequently use m17n:zh:pinyin. It is not "a toy" as it is probably the easiest way to input pinyin. It is not meant to support Han characters. It is meant for writing out pronunciation, including the tones.

@ueno
Copy link
Owner Author

@ueno ueno commented on 4a2f327 Feb 13, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't ibus-pinyin have that feature? Anyway I think that I'll extend ibus-setup-m17n (the setup UI of ibus-m17n) to allow users to select blacklisted engines. As a workaround, you could always edit /usr/share/ibus-m17n/setup/default.xml.

@thoughtless
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowing selection of blacklisted engines would be great. If there were a way to just add a config file in ~/.m17n/ to overwrite the default values that would be great.

I have tried poking around with most of the options in the preferences window, but I can't find this feature in ibus-pinyin. (But that doesn't mean it isn't there).

Your suggestion to edit /usr/share/ibus-m17n/setup/default.xml worked. But instead I decided to create a file called ~/.m17n/zh-mypinyin.mim with the following content:

;; zh-mypinyin.mim -- Input method for Chinese Pinyin

(input-method zh mypinyin)

(description "Input method for Chinese Pinyin characters.Note that it's not for inputting Han characters.")

(title "MyPinYin")

(include (zh pinyin) map vowel)
(include (zh pinyin) map tone)

(state
 (init
  (vowel (shift select)))
 (select
  (tone (shift init))))

That felt better than editing a file created by the package. That way my change won't get overwritten by an upgrade.

Please sign in to comment.