[whatwg] Proposal: Input Method Editor API
rniwa at webkit.org
Wed Nov 10 18:17:16 PST 2010
There's a typo in CompositionClause section. Namely, the interface is
labelled CompositionAttribute as supposed to CompositionClause.
We should have isEnabled and getCaretRectangle for InputMethodContext. This
section should also be moved before Composition Interface since (I assume)
getInputContext() returns InputMethodContext. You should probably say what
happens when an invalid (or inconsistent) composition object is passed to
setComposition as well.
Does confirmComposition finish the composition and forces UA to "type" the
current composition? i.e. will the current composition be inserted as typed
text? I just don't understand how this function will interact with other
DOM events, APIs, etc.. Could you clarify?
In InputMethodManager section, you should mention that this is added to the
window object. I'm not sure if passing x, y, w, h for setCaretRectangle is
really useful. Wouldn't it be better for setCaretRectangle to take a DOM
node? I would think that the composition text is inside some HTML element
in typical cases and I feel it's an added work for the script to figure out
what x, y, w, and h of the node are. Also, what happens the composition
text spans more than one visible line? As far as I know, the candidate
window is always at the end of the composition text. However, if we have a
composition text that spans more than one visible line, then the area
occupied by the composition text won't be a rectangle. What should the web
page supply as the rectangle in this case?
2010/11/9 Hironori Bono (坊野 博典) <hbono at google.com>
> I'm Hironori Bono, a software engineer of Google. In the
> w3c-international ML, we have been discussing to write a proposal that
> adds an IME API to HTML5. This proposal is not only for web
> applications to control a system IME but also to write an IME in
> would like to post it to whatwg to hear comments from HTML experts.
> Would it be possible to read the following document and give me your
> Thank you for your interest in advance.
> Hironori Bono
> E-mail: hbono at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg