出于某种原因,我无法在Sublime Text 3中键入áå,ä等重音字符。 相反,我只得到以下输出'a°a,¨a。当我按下它们的键而不是允许我输入重音字符时,帽子符号会被输入,顺便说一下,我正在使用冰岛语键盘。
Sublime text build 3065,Ubuntu 64 bit。在Ubuntu 14.10上运行。
Ubuntu 14.04上没有出现此问题。
答案 0 :(得分:21)
对于那些使用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": "Ÿ"}}
]
答案 1 :(得分:16)
我找到了解决此问题的方法,在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": "Ÿ"}}
]
答案 2 :(得分:5)
Sublime Text是一个很棒的编辑器,XCompose非常方便快速输入奇怪的Unicode字符。但是,这两者并没有结合:Sublime Text有一个恼人的错误,它阻止了处理XCompose文件的xim输入方法的工作。
Luckely有人做了补丁。如果您想了解更多信息,可以在此处阅读: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
所有学分都归Peter Zotov所有。
答案 3 :(得分:3)
升级到14.10后,我遇到了同样的问题。通过删除并重新添加键映射 EN_US international with dead keys 来解决此问题。它自动更改为 EN_US国际AltGr Unicode合并,这是不正确的。
宝宝步骤:
1)点击打开顶部栏右侧菜单,然后点击设置图标:
2)在“所有设置”中,点击区域&语言强>:
3)在窗口底部的输入源中,点击添加( + )按钮:
4)在添加输入源中,选择英语(美国):
5)现在选择 EN_US international with dead keys ,然后点击添加按钮:
6)回到地区&语言,选择 EN_US国际AltGr Unicode合并,然后点击删除( - )按钮并关闭窗口。
如果你和我有同样的问题,那就解决了。
答案 4 :(得分:1)
与上面相同,这次是捷克变音符号(不必要的完整,但是到底是什么,我用脚本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": "ž"}}
答案 5 :(得分:1)
我已经解决了将“键盘输入法系统”更改为“IBus”的问题。您需要重新启动计算机。
系统设置>语言支持>键盘输入法系统
答案 6 :(得分:0)
以下是Sublime Text的快速修复:
将其添加到代码顶部:
# coding=utf-8
或
-- coding: utf-8 --
两者都有效。