Caracteres especiales y acentos en Sublime Text
Hace un tiempo venia teniendo problemas con Sublime Text 3 en Ubuntu ya que no me dejaba colocar ni caracteres especiales como la 'ñ' o acentos en las palabras..
Después de investigar un rato, llegué con la solución. Se trata de agregar el siguiente código en nuestro sublime, y lo que hace básicamente es identificar una secuencia de caracteres y convertirlo en otro. Es decir, si coloco el apostrofe mas la letra 'a' ( ´+ a ), sublime lo reemplazará por una 'a' acentuada (á).
Para colocar este código, deben ir a: Preferences > Key Bindings - User y colocar el siguiente código:
- [
- // 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": "Ÿ"}}
- ]
Espero que les sirva!