2

I was thinking that is impossible to use an input method (to enter foreign characters like Chinese or Japanese) in Javascript without an input box and that you can't intercept key events. I found Input Method Editor API - W3C Working Draft but it's only a few months old, so browsers don't implement it for sure. Is there a library in pure Javascript that implements an input method that can be used instead?

Update: I found a library on sourceforge jsime, but it doesn't work at all when I test. In answer to this question, the library is mentionned but it's no longer there.

Community
  • 1
  • 1
jcubic
  • 61,973
  • 54
  • 229
  • 402
  • It's not a standalone library, but you might have a look at [MediaWiki's Narayam Extension](http://www.mediawiki.org/wiki/Extension:Narayam) – Bergi Jul 20 '13 at 12:36
  • @Bergi is there online demo for this extension somewhere? – jcubic Jul 20 '13 at 19:14
  • The successor extension, ["universal language selector"](http://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector), is live on all Wikimedia wikis. In the user navigation bar there's a link which lets you choose input (and display) languages. Narayam itself seems to be active [on only a few wikis](http://wikiapiary.com/wiki/Extension:Narayam). – Bergi Jul 21 '13 at 13:19

1 Answers1

1

jQuery.IME

https://github.com/wikimedia/jquery.ime

It also has browser extension for Chrome and Firefox and customization options.

Merhawi Fissehaye
  • 2,482
  • 2
  • 25
  • 39
  • Thanks, it's probably the same plugin as mention in comment but extracted as separated project, this question is old and just as a side note this type of questions are off topic now on SO. – jcubic Aug 14 '17 at 15:10