https://bugzilla.wikimedia.org/show_bug.cgi?id=30130

--- Comment #10 from Junaid <[email protected]> 2011-08-02 11:03:24 UTC ---
@Brion,

I personally keep a standalone version of this tool that is independent of any
external js library (usually jQuery as we do here). It implements its own text
selection, replacement and caret positioning functions (Most of them are
collected from the web :D ).

You can finds its code here:
http://code.google.com/p/naaraayam/source/browse/#svn%2Ftrunk

Just now, I created a test page at:
http://toolserver.org/~junaid/transliteration/test.html
utilising this standalone tool. You may test it.

The tool is working fine for the case 'ma me mi mo mu' = 'म मॆ मि मॊ मु'. So it
is sure we can fix the issue.


It is true that webkit does not allow we to place the caret within a
ligature(?) combination, even programatically. So even using my standalone tool
we cannot change 'म' to 'कम' by simply placing caret before म and typing 'ka'.
Because, when we type 'k' just before to existing म it will form a ligature
'क्म', then webkit will outsmart (as you said) by jumping caret at the end of
'क्म'. But, we can overcome this issue by overwriting entire word.


So current situation can be improved either by improving
jquery.textSelection.js or using code from my standalone version of the tool.


Another reason to like Firefox.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to