_ = lambda x : gettext.gettext(x)
+(
+ RESERVED,
+ GB_DICTIONARY,
+ GBK_DICTIONARY,
+ MERGED_DICTIONARY,
+ ART_DICTIONARY,
+ CULTURE_DICTIONARY,
+ ECONOMY_DICTIONARY,
+ GEOLOGY_DICTIONARY,
+ HISTORY_DICTIONARY,
+ LIFE_DICTIONARY,
+ NATURE_DICTIONARY,
+ SCITECH_DICTIONARY,
+ SOCIETY_DICTIONARY,
+ SPORT_DICTIONARY,
+ RESERVED1,
+ USER_DICTIONARY
+) = range(16)
(
COLUMN_SENSITIVE,
) = range(4)
dictionaries = \
- ((False, 1, _("GB Dictionary"), True),
- (True, 2, _("GBK Dictionary"), True))
+ (
+ (True, GBK_DICTIONARY, _("Low Frequent Characters"), True),
+ (True, ART_DICTIONARY, _("Art"), True),
+ (True, CULTURE_DICTIONARY, _("Culture"), True),
+ (True, ECONOMY_DICTIONARY, _("Economy"), True),
+ (True, GEOLOGY_DICTIONARY, _("Geology"), True),
+ (True, HISTORY_DICTIONARY, _("History"), True),
+ (True, LIFE_DICTIONARY, _("Life"), True),
+ (True, NATURE_DICTIONARY, _("Nature"), True),
+ (True, SCITECH_DICTIONARY, _("SciTech"), True),
+ (True, SOCIETY_DICTIONARY, _("Society"), True),
+ (True, SPORT_DICTIONARY, _("Sport"), True)
+ )
class DictionaryTreeView(Gtk.TreeView):
# dictionary tree view
self.__dict_treeview = self.__builder.get_object("Dictionaries")
self.__dict_treeview.show()
- self.__dict_treeview.set_dictionaries(self.__get_value("Dictionaries", "2"))
+ self.__dict_treeview.set_dictionaries(self.__get_value("Dictionaries", "2;4;5;6;7;8;9;10;11;12;13"))
def __notified_dicts_cb(self, param, dialog):
dialog.__set_value("Dictionaries", self.get_dictionaries())
m_init_simp_chinese = TRUE;
m_special_phrases = TRUE;
- m_dictionaries = "2";
+ m_dictionaries = "2;4;5;6;7;8;9;10;11;12;13";
}
static const struct {
g_warn_if_reached ();
}
m_ctrl_switch = read(CONFIG_CTRL_SWITCH, false);
- m_dictionaries = read (CONFIG_DICTIONARIES, std::string("2"));
+ m_dictionaries = read (CONFIG_DICTIONARIES, std::string("2;4;5;6;7;8;9;10;11;12;13"));
/* fuzzy pinyin */
if (read (CONFIG_FUZZY_PINYIN, false))
} else if (CONFIG_CTRL_SWITCH == name) {
m_ctrl_switch = normalizeGVariant (value, false);
} else if (CONFIG_DICTIONARIES == name) {
- m_dictionaries = normalizeGVariant (value, std::string("2"));
+ m_dictionaries = normalizeGVariant (value, std::string("2;4;5;6;7;8;9;10;11;12;13"));
}
/* fuzzy pinyin */
else if (CONFIG_FUZZY_PINYIN == name) {