Sublime Forum

What's the easiest way to type stressed vowels in Sublime?

#1

Like this: ó ú í á.
Ideally, I would like a macro that puts an emphasis at the previous letter when I press `, for example.

0 Likes

#2

Okay, not especially clean, but working solution is to write a snippet like this for each vowel:
{
“keys”: [“a”, “`”],
“command”: “insert_snippet”,
“args”: {“contents”: “á”}
}

0 Likes

#3

This just works out of the box, on my system, on any application, not just sublime text. Like I press ´ and a, then I got an á

0 Likes

#4

I guess this is due to your keyboard having dead keys

I just switch keyboard layouts in the OS when I need to type characters from other languages

2 Likes

#5

Without changing keyboards, I just type Alt 0225—á. For some reason I find the alt code sequence easier to do than the dead key plus char. Perhaps I think of the alt key as one thing but the dead key as two? Don’t know.

1 Like

#6

My personal preference is to handle this OS-wide instead of specially in Sublime. Most operating systems have a built-in mechanism for inserting accented characters. On Windows in particular, if you’re dissatisfied with the normal mechanism, I’ve had success using AutoHotKey to create my own bindings.

2 Likes

#7

If you are on Mac you can just long-type the letter and choose from the options.
Like this:

0 Likes