[webkit-dev] Supporting css ime-mode property
rniwa at webkit.org
Thu Jan 13 22:02:19 PST 2011
On my second thought, it seems like all usage could be addressed by WebKit
changing IME status based on lang attribute. e.g. in a page where
lang="ja", we'd expect Japanese IME to be enabled and if any input/textarea
has lang="en", then we can automatically switch to English IME (e.g. IME is
turned off on Windows with Japanese locale).
This seems to serve most of the use cases discussed on this thread and
avoids introducing platform-dependent concept of "IME being off". And it
can further be generalized to pages with multiple forms each of which
requires input in a different language.
On Tue, Oct 5, 2010 at 5:48 PM, Alexey Proskuryakov <ap at webkit.org> wrote:
> On 05.10.2010, at 17:16, Kenichi Ishibashi wrote:
> > Here is another use-case. Some modern CJK web pages provide a way to
> > input Chinese or Japanese text without OS-provided IMEs. You can see
> > an example at http://www.baidu.com/. Click the text next to the search
> > button and select 拼音 or appropriate one, then input text in the search
> > box so you will get the candidate window in a similar way that
> > OS-provided IMEs. When developers want to provide such feature, they
> > might want to control system-level IMEs and the ime-mode property
> > could provide the solution. I think this feature likely to change how
> > people use the Web.
> I'm not sure if I understand the exact use case. Are you saying that the
> page will want to suppress OS provided input methods if it does its own?
> That doesn't seem necessarily useful, and anyway, they don't need ime-mode
> for this - OS provided input methods won't be invoked if the page returns
> false from keydown event handler.
> What I see on baidu.com right now seems much different from an input
> method though - they are just making a guess at what the user intended to
> type. Google search works exactly the same, as long as the page language is
> set appropriately. For Russian, it detects both typing with a wrong keyboard
> layout (if the user forgot to switch it), and transliteration. For Chinese,
> it supports at least transliteration. It also detects and corrects typos.
> All this functionality doesn't seem specific to CJK at all.
> - WBR, Alexey Proskuryakov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev