Input methods are controlled by the browser and user. The lang attribute does not affect this, and there is no other way to HTML. It would be impractical to change the input method for each document, to a lesser extent, for each field, from the method usually used in the browser and accepted by the user (either silently or figuring out how to manage such things).
In some situations, it may be useful to provide special tools to users - not to redefine input methods, but to offer additional features. For example, if the expected language is written in Latin letters with a few additional letters in addition to the base az, you may have buttons for entering them (to help people using keyboards that do not have a convenient way to enter them).
You can create controls that act as input method editors; see, for example, typd.in for Japanese input. But that means using something on top of the input methods that the user uses.
Jukka K. Korpela
source share