-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The acute accent symbol should be " ´ " and not " ' " #133
Comments
Hi @rafadev! I've had a long discussion via email with someone about this very thing for the Portuguese keyboard layout (coming soon). Basically it comes down to the problem that the U.S. keyboard doesn't have an acute accent ( If you know that your users will always have an acute accent key, then you can add the following code before you initialize the keyboard to remove and add the correct accent key: // Add acute accent combos
$.extend(true, $.keyboard.defaultOptions.combos, {
"\u00b4" : { a:"\u00e1", A:"\u00c1", e:"\u00e9", E:"\u00c9", i:"\u00ed", I:"\u00cd", o:"\u00f3", O:"\u00d3", u:"\u00fa", U:"\u00da", y:"\u00fd", Y:"\u00dd" } // acute
});
// update the accent regex to remove the apostrophe and add the acute accent
$.keyboard.comboRegex = /([`~\^\"ao\u00b4])([a-z])/mig;
// remove the apostrophe combos - this isn't really needed because the apostrophe isn't
// in the regex anymore, but added here for completeness
delete $.keyboard.defaultOptions.combos["'"]; Oh, and in the code above, I'm using unicode 00b4, which is what I think you meant because unicode 0034 is the number 4. |
Thanks Mottie! It did solve the problem, and its working very well. What do you think about adding this to the wiki. I'll go ahead and do it but I didn't know where to add it. Any thoughts? |
Thanks! I would appreciate it!... hmm maybe we need a new wiki page? Or do you think it should go on the Usability page under combos? But that already seems kind of crowded there... Surprise me! :P |
I went ahead and added the above code example to the Usability wiki page, so I can close this issue now ;) |
When using diacritics, the international keyboard has ' as a key for áéí, although the symbol should be ´ (unicode 00b4).
I've tried changing the combos to use this key, but I couldn't get it to work (it just wouldn't type the combo).
Using 1.16
The text was updated successfully, but these errors were encountered: