Last modified: 2013-09-30 04:08:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56775, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54775 - Caret positioning incorrect with complex scripts
Caret positioning incorrect with complex scripts
Status: RESOLVED DUPLICATE of bug 54136
Product: MediaWiki extensions
Classification: Unclassified
CodeEditor (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-30 01:51 UTC by Siddhartha Ghai
Modified: 2013-09-30 04:08 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of caret visible much ahead of end of text (8.80 KB, image/png)
2013-09-30 01:51 UTC, Siddhartha Ghai
Details
Screenshot of caret visible before it's actual position (14.15 KB, image/png)
2013-09-30 02:32 UTC, Siddhartha Ghai
Details

Description Siddhartha Ghai 2013-09-30 01:51:02 UTC
Created attachment 13401 [details]
Screenshot of caret visible much ahead of end of text

System Environment:
Windows7 X64 SP1
Google Chrome 29.0.1547.76 m

Steps:
1 Go to https://en.wikipedia.org/w/index.php?title=Module:Sandbox&action=edit
2 Make sure CodeEditor is enabled
3 Copy-paste the following text: -- अगर मैं कहूँ
4 Try to take the caret to the end of the text

What happens:
Caret moves much ahead than the visible end of text. It probably assigns one visible space to one unicode character with no knowledge of glyphs.
This also means that the selection appears at one place while the text is at another place, effectively meaning that the user has no idea what text is being selected.

I've only tried hindi, but I'm guessing the issue would also show up with any other indic scripts.
Comment 1 Siddhartha Ghai 2013-09-30 02:32:43 UTC
Created attachment 13402 [details]
Screenshot of caret visible before it's actual position

It appears that the caret may also appear before its actual position. See the screenshot for the example.

Alternatively, try moving the caret around with the following text:

local dia = ([ँंः़ािीुूृॅेैॉोौ॒॰])+
Comment 2 Brion Vibber 2013-09-30 04:08:00 UTC

*** This bug has been marked as a duplicate of bug 54136 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links