We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4783 - cannot get IME target range
Summary: cannot get IME target range
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: All Windows 10
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-02 14:17 UTC by tamo
Modified: 2019-09-02 14:17 UTC (History)
0 users

See Also:


Attachments
implement target range in edit event (6.38 KB, patch)
2019-09-02 14:17 UTC, tamo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tamo 2019-09-02 14:17:35 UTC
Created attachment 3945 [details]
implement target range in edit event

Looking at bug 4782, I found that SDL didn't provide a way to get IME target range.
(I had thought I could get it as event.edit.start and event.edit.length, but they are just a readingstring range, which Japanese IMEs rarely use.)

You can see what the "target" means by seeing the picture attached to bug 4782.
To liken IME to an translator, she may translate "I love you" to "Je vous aime." But you may tell her to use "te" instead of "vous." In this case, your target is "vous."