<br><br><div class="gmail_quote">On 21 July 2011 11:27, Harshula <span dir="ltr"><<a href="mailto:harshula@gmail.com">harshula@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Shriramana,<br>
<div class="im"><br>
On Thu, 2011-07-21 at 09:27 +0530, Shriramana Sharma wrote:<br>
> On 07/21/2011 09:04 AM, Pravin Satpute wrote:<br>
<br>
</div><div class="im">> > 1) In pango we have faced problem of backspace due to decomposition.<br>
> > i.e. U+0958 was getting decomposed into U+0915 and U+093C, so for<br>
> > entered character was required 2 backspaces to delete.<br>
><br>
> That doesn't sound right. The backspace should erase the last character<br>
> that was input. Rendering engines should only take care of rendering<br>
> whatever sequence of characters has been input and not change the<br>
> sequence of characters right?<br>
<br>
</div>That's a bit simplistic. When a smart input method engine (IME) is<br>
activated, it can make sure that a backspace erases only the part of the<br>
glyph that the last keystroke inserted. e.g. It takes four keystrokes to<br>
generate කෝ (Sinhala syllable) with a particular IM. Another IM requires<br>
only two keystrokes. Each of these IMs controls how the backspace key<br>
operates and only deletes the part of the glyph inserted by the last<br>
keystroke.<br>
<br>
However, when the smart IME is deactivated, backspace then becomes<br>
someone else's responsibility. Here we see behaviour differences. e.g.<br>
For කෝ , Pango/gedit deletes in decomposed form (press backspace 4<br>
times) and ICU/OpenOffice deletes in composed form (press backspace 2<br>
times).<br>
<br>
Perhaps, there should be a separate discussion on which behaviour should<br>
be the default?<br>
<br>
Also, IIRC, Pango had a separate module that handled the cursor<br>
movement. I remember having to modify it for Sinhala.<br><br></blockquote><div><br>Looks like we are going off topic little bit so changed subject line, but i would like to ask one thing<br>is there any standard define for Backspace and Delete keys behaviour? I think Unicode has given this but i have not find it yet<br>
anyone knows anything?<br><br>Regards,<br>Pravin S<br></div></div>