原文地址: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 [必須此版本]
成功中文輸入。