[Webkit-unassigned] [Bug 27632] New: Expose text segmentation through JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 17:16:30 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27632

           Summary: Expose text segmentation through JavaScript
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xji at chromium.org


specific use case is dictionary, which shows the word definition in its source
language and accept-languages when user mouse over or click the word while
browsing a webpage.

But such feature should be useful and benefit for other clients in other use
cases.

After document.caretRangeFromPoint(), we are able to find out what is the
character offset within an element under the mouse.

To further identify the word (especially for those languages that do not use
space as word breaker), we will need webkit expose text segmentation through
JavaScript.
Maybe by document.wordRangeFromPoint(int x, int y), which could extend
document.caretRangeFromPoint() by create word range using startOfWord() and
endOfWord() on the visible position computed in caretRanageFromPoint().

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list