How to make a key act as acute and apostrophe? Dead keys problem
1
vote
1
answer
725
views
I want to make a keycharmap/keylayout for my Bluetooth keyboard on my Android phone. I want it to behave like a Dvorak-US-international keyboard. So I did all the web research needed but I'm still missing one thing. In my PC, the apostrophe key behaves as an acute key, if I press it once and then press a vowel, it writes the vowel with the acute (my native language is Spanish so I've become dependent on this "feature"), so I want this behavior in android.
In my PC:
APOSTROPHE A = á
APOSTROPHE O = ó
APOSTROPHE Shift+A = Á
APOSTROPHE APOSTROPHE = ´ (lonely acute)
APOSTROPHE SPACE = '
Shift+APOSTROPHE A = ä
Shift+APOSTROPHE Shift+A = Ä
Shift+APOSTROPHE Shift+APOSTROPHE = ¨ (umlaut)
Shift+APOSTROPHE SPACE = "
So I made a keycharmap that has this:
key APOSTROPHE {
label: '\''
base: '\u0301'
shift: '\u0308'
}
(As specified in https://source.android.com/docs/core/interaction/input/key-character-map-files#behaviors)
But what I've got was this behavior:
APOSTROPHE APOSTROPHE = ´ (lonely acute)
APOSTROPHE SPACE = ´ (lonely acute)
Shift+APOSTROPHE Shift+APOSTROPHE = ¨ (umlaut)
Shift+APOSTROPHE SPACE = ¨ (umlaut)
As you can see __I'm missing the quote and double quote__ and I'd really like to have them.
So, I tried something different:
key APOSTROPHE {
label: '\''
base: '\u030D'
shift: '\u030E'
}
(Looking at Android source https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/KeyCharacterMap.java#233 and at unicode "combining character" in Wikipedia)
But didn't get what I wanted either. I saw that the character '\u030E' was comment-out on the source code ok, but I had to try. So the question is:
How do I get the behavior I want in Android? Can't it be done without modifying Android sources? Do I have to use key modifiers (ALT or CTRL) and stick with that?
(I'm using CyanogenMod 11-20140708 based on KitKat 4.4.4 on a LG Nexus 4 (mako))
Asked by gargo
(121 rep)
Jul 19, 2014, 04:08 PM
Last activity: May 11, 2024, 03:04 PM
Last activity: May 11, 2024, 03:04 PM