1

For example, when non-English speaking people have their own language keyobards added in Windows, while typing in unicode language:

qwerty

becomes:

яшерты       //in Russian
手田水口廿卜  //in Chinese
ქწერტყ       //in Georgian

What can I use to convert those Unicode characters back to it's keyboard equivalents? Or conversely, convert qwerty to specific language?

I've tried unicode.net nuget package, but couldn't find a solution.

T.Todua
  • 53,146
  • 19
  • 236
  • 237
  • I don't find how "qwerty" could become "яшерты" in Russian. There may probably be a specific keyboard layout, but for default one this would result into "йцукен". – Yeldar Kurmangaliyev Feb 15 '19 at 17:10
  • 1
    http://pinvoke.net/default.aspx/user32/VkKeyScan.html – Hans Passant Feb 15 '19 at 17:11
  • Ok, I have found it out. Apparently, there is a Russian [phonetic keyboard layout](https://en.wikipedia.org/wiki/Phonetic_keyboard_layout), which I personally never heard about and I am a native Russian speaker. As I said, ["йцукен"](https://en.wikipedia.org/wiki/JCUKEN) is the most popular one. So, basically, you want a mapping of all existing (in Windows) keyboard layouts to the related keys on English qwerty keyboard. – Yeldar Kurmangaliyev Feb 15 '19 at 17:12
  • @YeldarKurmangaliyev http://winrus.com/keyboard.htm – T.Todua Feb 15 '19 at 17:14
  • @T.Todua Amazing. Did never meet a single person using this one :) Perhaps, it makes more sense for non-native speakers or native bilinguals, because it is phonetic. – Yeldar Kurmangaliyev Feb 15 '19 at 17:16
  • I dont know, just in our country, you can't meet anyone using other keyboard, than phonetic. Whatever the English char is on keyboard, on our keyboard it has it's coressponding char (which is pronounced as same phonetically). Actually, i dont know why phonetic keyoard is not universally used, as it seems logically appropriate.. – T.Todua Feb 15 '19 at 17:20
  • 1
    Try to check this thread https://stackoverflow.com/questions/25344066/c-sharp-vs-2012-how-to-send-string-to-other-application-in-russian-language hope, it'll help – Pavel Anikhouski Feb 15 '19 at 18:53
  • @HansPassant thanks! seems interesting – T.Todua Feb 15 '19 at 19:20

1 Answers1

-1

Code below will return the current language layout that you use to type, even if it's different to your default keyboard language.

string lang = InputLanguage.CurrentInputLanguage.Culture.Name;
Jozsef Baksa
  • 104
  • 4