<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi,<div><br></div><div><div>There's a typo in CompositionClause section. Namely, the interface is labelled CompositionAttribute as supposed to CompositionClause.</div>
<div><br></div><div>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.</div>
<div><br></div><div>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?</div>
<div><br></div><div>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?</div>
</div></span><div><br></div><div>Best regards,</div>Ryosuke Niwa<br><font color="#999999">Software Engineer</font><div><font color="#999999">Google Inc.</font></div><div><font class="Apple-style-span" color="#999999"><br>
</font></div><div class="gmail_quote">2010/11/9 Hironori Bono (坊野 博典) <span dir="ltr"><<a href="mailto:hbono@google.com">hbono@google.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Greetings,<br>
<br>
I'm Hironori Bono, a software engineer of Google. In the<br>
w3c-international ML, we have been discussing to write a proposal that<br>
adds an IME API to HTML5. This proposal is not only for web<br>
applications to control a system IME but also to write an IME in<br>
JavaScript. Even though this proposal is still an infant phase, I<br>
would like to post it to whatwg to hear comments from HTML experts.<br>
Would it be possible to read the following document and give me your<br>
comments?<br>
<br>
<a href="https://docs.google.com/fileview?id=0B8eVDHQ9_22-MzJhMTg2YmItNWU3NC00NzJmLThlMTAtYmU1ZTBlZWJhNzM0&hl=en&authkey=CLLHkFw" target="_blank">https://docs.google.com/fileview?id=0B8eVDHQ9_22-MzJhMTg2YmItNWU3NC00NzJmLThlMTAtYmU1ZTBlZWJhNzM0&hl=en&authkey=CLLHkFw</a><br>
<br>
Thank you for your interest in advance.<br>
<br>
Regards,<br>
<br>
Hironori Bono<br>
E-mail: <a href="mailto:hbono@google.com">hbono@google.com</a><br></blockquote></div>