def setup(self): config = { "input-method": "telex", "output-charset": "utf-8", "skip-non-vietnamese": True, "auto-capitalize-abbreviations": False, "default-input-methods": { "telex": { "a": "a^", "o": "o^", "e": "e^", "w": ["u*", "o*", "a+", "<ư"], "d": "d-", "f": "\\", "s": "/", "r": "?", "x": "~", "j": ".", "]": "<ư", "[": "<ơ", "}": "<Ư", "{": "<Ơ" }, } } self.eng = BaseBackend() self.eng.reset() self.eng.config = config self.eng.expander = AbbreviationExpander()
def setup(self): self.abbr = AbbreviationExpander()