出於某種原因,我無法在Sublime Text 3中輸入重音字符,如áå,ä。 取而代之,我僅獲得以下輸出:'a°a , 一個。當我按下他們的鍵而不是讓我輸入重音字符時,帽子符號會被輸入,我正在使用冰島鍵盤。無法在Sublime Text 3中輸入重音字符(Ubuntu 14.10)
Sublime text build 3065,Ubuntu 64位。在Ubuntu 14.10上運行。
Ubuntu 14.04上未顯示此問題。
出於某種原因,我無法在Sublime Text 3中輸入重音字符,如áå,ä。 取而代之,我僅獲得以下輸出:'a°a , 一個。當我按下他們的鍵而不是讓我輸入重音字符時,帽子符號會被輸入,我正在使用冰島鍵盤。無法在Sublime Text 3中輸入重音字符(Ubuntu 14.10)
Sublime text build 3065,Ubuntu 64位。在Ubuntu 14.10上運行。
Ubuntu 14.04上未顯示此問題。
我找到了解決這個問題的方法,在Sublime Text中首選項>密鑰綁定 - 用戶,將下面的代碼添加到打開Default (Linux).sublime-keymap
並保存它的文件中。
請注意,這是一個hacky修復程序,可能不包含您需要的所有重音字母,在這種情況下,您可以輕鬆地添加這些丟失的字母。另外請注意,此修補程序不會攻擊我認爲與Ubuntu 14.10有關的問題的根源。
[
// missing accented characters fix for ubuntu 14.10
// a, [á, å, ä]
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
{ "keys": ["°","a"], "command": "insert", "args": {"characters": "å"}},
{ "keys": ["¨","a"], "command": "insert", "args": {"characters": "ä"}},
// A, [Á, Å, Ä]
{ "keys": ["´","A"], "command": "insert", "args": {"characters": "Á"}},
{ "keys": ["°","A"], "command": "insert", "args": {"characters": "Å"}},
{ "keys": ["¨","A"], "command": "insert", "args": {"characters": "Ä"}},
// e, [é, ë]
{ "keys": ["´","e"], "command": "insert", "args": {"characters": "é"}},
{ "keys": ["¨","e"], "command": "insert", "args": {"characters": "ë"}},
// E, [É, Ë]
{ "keys": ["´","E"], "command": "insert", "args": {"characters": "É"}},
{ "keys": ["¨","E"], "command": "insert", "args": {"characters": "Ë"}},
// i, [í, ï]
{ "keys": ["´","i"], "command": "insert", "args": {"characters": "í"}},
{ "keys": ["¨","i"], "command": "insert", "args": {"characters": "ï"}},
// I, [Í, Ï]
{ "keys": ["´","I"], "command": "insert", "args": {"characters": "Í"}},
{ "keys": ["¨","I"], "command": "insert", "args": {"characters": "Ï"}},
// o, [ó, ö]
{ "keys": ["´","o"], "command": "insert", "args": {"characters": "ó"}},
{ "keys": ["¨","o"], "command": "insert", "args": {"characters": "ö"}},
// O, [Ó, Ö]
{ "keys": ["´","O"], "command": "insert", "args": {"characters": "Ó"}},
{ "keys": ["¨","O"], "command": "insert", "args": {"characters": "Ö"}},
// u, [ú, ů, ü]
{ "keys": ["´","u"], "command": "insert", "args": {"characters": "ú"}},
{ "keys": ["°","u"], "command": "insert", "args": {"characters": "ů"}},
{ "keys": ["¨","u"], "command": "insert", "args": {"characters": "ü"}},
// U, [Ú, Ů, Ü]
{ "keys": ["´","U"], "command": "insert", "args": {"characters": "Ú"}},
{ "keys": ["°","U"], "command": "insert", "args": {"characters": "Ů"}},
{ "keys": ["¨","U"], "command": "insert", "args": {"characters": "Ü"}},
// y, [ý, ÿ]
{ "keys": ["´","y"], "command": "insert", "args": {"characters": "ý"}},
{ "keys": ["¨","y"], "command": "insert", "args": {"characters": "ÿ"}},
// Y, [Ý, Ÿ]
{ "keys": ["´","Y"], "command": "insert", "args": {"characters": "Ý"}},
{ "keys": ["¨","Y"], "command": "insert", "args": {"characters": "Ÿ"}}
]
對於那些使用ABNT2鍵盤的人來說,我有一些補充,對巴西人很好。
在首選項>鍵綁定 - 用戶,添加以下代碼片段:
[
// missing accented characters fix for ubuntu 14.10
// a, [á, à, ã, â, å, ä]
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
{ "keys": ["`","a"], "command": "insert", "args": {"characters": "à"}},
{ "keys": ["~","a"], "command": "insert", "args": {"characters": "ã"}},
{ "keys": ["^","a"], "command": "insert", "args": {"characters": "â"}},
{ "keys": ["°","a"], "command": "insert", "args": {"characters": "å"}},
{ "keys": ["¨","a"], "command": "insert", "args": {"characters": "ä"}},
// A, [Á, À, Ã, Â, Å, Ä]
{ "keys": ["´","A"], "command": "insert", "args": {"characters": "Á"}},
{ "keys": ["`","A"], "command": "insert", "args": {"characters": "À"}},
{ "keys": ["~","A"], "command": "insert", "args": {"characters": "Ã"}},
{ "keys": ["^","A"], "command": "insert", "args": {"characters": "Â"}},
{ "keys": ["°","A"], "command": "insert", "args": {"characters": "Å"}},
{ "keys": ["¨","A"], "command": "insert", "args": {"characters": "Ä"}},
// e, [é, è, ê, ẽ, ë]
{ "keys": ["´","e"], "command": "insert", "args": {"characters": "é"}},
{ "keys": ["`","e"], "command": "insert", "args": {"characters": "è"}},
{ "keys": ["^","e"], "command": "insert", "args": {"characters": "ê"}},
{ "keys": ["~","e"], "command": "insert", "args": {"characters": "ẽ"}},
{ "keys": ["¨","e"], "command": "insert", "args": {"characters": "ë"}},
// E, [É, È, Ê, Ẽ, Ë]
{ "keys": ["´","E"], "command": "insert", "args": {"characters": "É"}},
{ "keys": ["`","E"], "command": "insert", "args": {"characters": "È"}},
{ "keys": ["^","E"], "command": "insert", "args": {"characters": "Ê"}},
{ "keys": ["~","E"], "command": "insert", "args": {"characters": "Ẽ"}},
{ "keys": ["¨","E"], "command": "insert", "args": {"characters": "Ë"}},
// i, [ì, í, ï]
{ "keys": ["`","i"], "command": "insert", "args": {"characters": "ì"}},
{ "keys": ["´","i"], "command": "insert", "args": {"characters": "í"}},
{ "keys": ["¨","i"], "command": "insert", "args": {"characters": "ï"}},
// I, [Ì, Í, Ï]
{ "keys": ["`","I"], "command": "insert", "args": {"characters": "Ì"}},
{ "keys": ["´","I"], "command": "insert", "args": {"characters": "Í"}},
{ "keys": ["¨","I"], "command": "insert", "args": {"characters": "Ï"}},
// o, [ó, õ, ô, ö]
{ "keys": ["´","o"], "command": "insert", "args": {"characters": "ó"}},
{ "keys": ["~","o"], "command": "insert", "args": {"characters": "õ"}},
{ "keys": ["^","o"], "command": "insert", "args": {"characters": "ô"}},
{ "keys": ["¨","o"], "command": "insert", "args": {"characters": "ö"}},
// O, [Ó, Õ, Ô, Ö]
{ "keys": ["´","O"], "command": "insert", "args": {"characters": "Ó"}},
{ "keys": ["~","O"], "command": "insert", "args": {"characters": "Õ"}},
{ "keys": ["^","O"], "command": "insert", "args": {"characters": "Ô"}},
{ "keys": ["¨","O"], "command": "insert", "args": {"characters": "Ö"}},
// u, [ú, ů, ü]
{ "keys": ["´","u"], "command": "insert", "args": {"characters": "ú"}},
{ "keys": ["°","u"], "command": "insert", "args": {"characters": "ů"}},
{ "keys": ["¨","u"], "command": "insert", "args": {"characters": "ü"}},
// U, [Ú, Ů, Ü]
{ "keys": ["´","U"], "command": "insert", "args": {"characters": "Ú"}},
{ "keys": ["°","U"], "command": "insert", "args": {"characters": "Ů"}},
{ "keys": ["¨","U"], "command": "insert", "args": {"characters": "Ü"}},
// y, [ý, ÿ]
{ "keys": ["´","y"], "command": "insert", "args": {"characters": "ý"}},
{ "keys": ["¨","y"], "command": "insert", "args": {"characters": "ÿ"}},
// Y, [Ý, Ÿ]
{ "keys": ["´","Y"], "command": "insert", "args": {"characters": "Ý"}},
{ "keys": ["¨","Y"], "command": "insert", "args": {"characters": "Ÿ"}}
]
這對我來說訣竅。謝謝你,同胞:D –
我經歷過升級後同樣的問題到14.10。通過刪除並重新添加鍵盤映射EN_US international with dead keys來解決。它被自動更改爲EN_US國際AltGr統一碼合併,這是不正確的。
寶寶步驟:
1)點擊打開頂部欄右鍵菜單,然後單擊設置圖標:
2)中的所有設置,單擊地區&語言:
3)在窗口的底部,在輸入源,單擊Add(+)按鈕:
4)在添加輸入源,選擇英語(美國):
5)現在選擇EN_US國際與死鍵並單擊添加按鈕:
6)爲後盾,以地區&語言,選擇EN_US國際的AltGr統一結合並單擊刪除(-)按鈕,並關閉窗戶。
如果你有同樣的問題,作爲我來說,這將解決這個問題。
Sublime Text是一個非常棒的編輯器,XCompose非常方便快速輸入奇怪的Unicode字符。但是,這兩者並不結合:Sublime Text有一個惱人的錯誤,它會阻止處理XCompose文件的xim輸入方法不起作用。
幸運的是有人做了一個補丁。如果你想知道更多,你可以在這裏閱讀:http://whitequark.org/blog/2014/04/14/xcompose-support-in-sublime-text/
如果你只是想解決這個問題,你可以在你的終端中使用下面的命令(注意:這隻適用於來自官方網站)。
首先添加該存儲庫
sudo add-apt-repository ppa:whitequark/sublime-imethod-fix
其次安裝補丁
sudo apt-get install libsublime-text-3-xim-xcompose
所有學分去彼得·佐托夫製作補丁。
你應該爲你的答案增加更多細節和解釋。如果您要鏈接的內容發生變化或消失,僅鏈接答案無用。 –
這對我來說工作得非常好,它允許我在askubuntu關閉這個問題:http://askubuntu.com/questions/595079/problem-in-sublime-text-3-with-spanish-characters – opensas
與上面相同,這次是捷克的變音符號(不必要的完整,但是到底是什麼,我是通過腳本xD完成的)。添加到首選項>鍵綁定 - 用戶。
//missing composite characters for Czech alphabet
{ "keys": ["´","A"], "command": "insert", "args": {"characters": "Á"}},
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
{ "keys": ["ˇ","C"], "command": "insert", "args": {"characters": "Č"}},
{ "keys": ["ˇ","c"], "command": "insert", "args": {"characters": "č"}},
{ "keys": ["ˇ","D"], "command": "insert", "args": {"characters": "Ď"}},
{ "keys": ["ˇ","d"], "command": "insert", "args": {"characters": "ď"}},
{ "keys": ["´","E"], "command": "insert", "args": {"characters": "É"}},
{ "keys": ["´","e"], "command": "insert", "args": {"characters": "é"}},
{ "keys": ["ˇ","E"], "command": "insert", "args": {"characters": "Ě"}},
{ "keys": ["ˇ","e"], "command": "insert", "args": {"characters": "ě"}},
{ "keys": ["´","I"], "command": "insert", "args": {"characters": "Í"}},
{ "keys": ["´","i"], "command": "insert", "args": {"characters": "í"}},
{ "keys": ["ˇ","N"], "command": "insert", "args": {"characters": "Ň"}},
{ "keys": ["ˇ","n"], "command": "insert", "args": {"characters": "ň"}},
{ "keys": ["´","O"], "command": "insert", "args": {"characters": "Ó"}},
{ "keys": ["´","o"], "command": "insert", "args": {"characters": "ó"}},
{ "keys": ["ˇ","R"], "command": "insert", "args": {"characters": "Ř"}},
{ "keys": ["ˇ","r"], "command": "insert", "args": {"characters": "ř"}},
{ "keys": ["ˇ","S"], "command": "insert", "args": {"characters": "Š"}},
{ "keys": ["ˇ","s"], "command": "insert", "args": {"characters": "š"}},
{ "keys": ["ˇ","T"], "command": "insert", "args": {"characters": "Ť"}},
{ "keys": ["ˇ","t"], "command": "insert", "args": {"characters": "ť"}},
{ "keys": ["´","U"], "command": "insert", "args": {"characters": "Ú"}},
{ "keys": ["´","u"], "command": "insert", "args": {"characters": "ú"}},
{ "keys": ["´","Y"], "command": "insert", "args": {"characters": "Ý"}},
{ "keys": ["´","y"], "command": "insert", "args": {"characters": "ý"}},
{ "keys": ["ˇ","Z"], "command": "insert", "args": {"characters": "Ž"}},
{ "keys": ["ˇ","z"], "command": "insert", "args": {"characters": "ž"}}
這裏是一個快速解決崇高文字:
添加到您的代碼的頂部:
# coding=utf-8
或
-- coding: utf-8 --
兩個工作。
我已經解決了這個問題,改變「鍵盤輸入法」到‘下iBus’,你將需要重新啓動計算機。
系統設置>語言支持>鍵盤輸入法系統
此修復工程對我來說也是如此。 –
我所經歷的升級到14.10後出現同樣的問題解決方法是通過刪除並重新添加帶有死區鍵的EN_US國際鍵盤映射,並將其自動更改爲EN_US國際AltGr Unicode組合,這是不正確的 –
很酷,如果您添加答案,你解決了這個問題(嬰兒步驟的愚蠢)沒有上述黑客我會嘗試一下,如果它的作品,我會接受你的答案:) – Loknar
完成。希望它能幫助你和其他人。但是,對不起,如果不是同樣的問題。 –