本文主要解决的是,通过安装搜狗网站提供的*.deb安装文件,使用ctrl+shift/space无法切换搜狗输入法的问题. 搜狗输入法 for linux:搜狗输入法 for linux,这还不算完: 任务栏右上角的小键盘,下拉框中,选择Configure Current Input Method,点击+表示添加,取消Only Show Current Language选项,便可在下拉列表的末尾找到 Sogou Pinyin了: 在ubuntu下,把安装的中文输入法切换出来
打开Fcitx Configuration,进入Addon标签 选中Simplified Chinese To Traditional Chinese Convert Simplified Chinese To Traditional Chinese 配置,将繁体中文翻译引擎更改为Native 参考博文:ubuntu下sougou输入法候选词处乱码
针对py2,py3不需要这样.#coding=utf8import sysreload(sys)sys.setdefaultencoding('utf8') strx2='你好\u4e2d\u56fd,傻瓜\u65e5\u672c'print strx2print repr(strx2)finds=re.findall(r'\\u[a-z0-9A-Z]{4}',strx2)print repr(finds)for f in finds: strx2=re.sub(r'\\%s'%f,f.deco