Linux下Sublime Text 2中文显示及中文输入问题[转][ubuntu 10.10]

原文地址:http://huobazi.aspxboy.com/2012/02/04/ubuntu-sublime-text-chinese/

Sublime text 2在mac os 下用的很舒服,今天尝试在ubuntu下使用一下,发现汉字显示不了,

后来找到方法:

菜单栏 -> Preferences -> File Settings - User,在配置文件中增加:

// Settings in here override those in "Default/Base File.sublime-settings", and
// are overridden in turn by file type specific settings. Place your settings
// here, to ensure they're preserved when upgrading.
{
    "font_face": "WenQuanYi Micro Hei Mono"
}
就OK了,其中文泉驿是著名的开源字体 http://wenq.org/

然后我们来解决中文输入的问题

sudo apt-get install scim

sudo apt-get install scim-pinyin

在“系统-首选项-scim设置里“

scim设置->全局设置->将预编辑字符串嵌入到客户端中  勾去掉
scim设置->gtk->嵌入式候选词标 勾去掉

下来 在“系统-语言支持”里面选上“scim-bridge”就可以了,记得这些修改完要注销重新登录进来哦。

或者 ,打开终端,输入 pkill scim,然后输入 scim -d,如果不起作用,那还是建议你注销一下

注销后,验证可行,截图如下:

 

但使用过程中,中文输入可能出现异常,如 候选词列表消失,需要重启sublimeText即可,建议多用英文。

更新:

ubuntu 10.10

sublime text 2.0.1

fcitx 4.1.2 [必须此版本]

 成功中文输入。

原文地址:https://www.cnblogs.com/xfiver/p/2365560.html