roedoejet/AnyLanguage-Word-Guessing-Game

Add support for diacritics

Opened this issue · 2 comments

See this comment by Milind:
image

Note: the "provide a hint" request is not being slated for development.

One way to do this might be to use String.FromCharCode possibly with a helper script or documentation of character codes for common diacritics.

https://github.com/wikimedia/jquery.ime/ - has support for many keyboards, though would also increase application size. Some common diacritical marks are listed at https://en.wikipedia.org/wiki/Combining_Diacritical_Marks . If adds diacritic codes directly in orthography.ts, for example '\u0300' - combining grave, '\u0301' - combining acute, '\u0304' - combining macron, the diacritic mark does appear, but not over the letter as a suffix, rather in its own box. The function onChar is used from Keyboard.tsx and can be modified to check if a suffix character is being added. Alternatively, an onSuffix function can be introduced.