RFR: 8330590: TextInputControl: previous word fails with Bhojpuri characters [v2]

Andy Goryachev angorya at openjdk.org
Mon Apr 29 16:54:10 UTC 2024


On Fri, 19 Apr 2024 20:36:42 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> This change replaces Character.isLetterOrDigit(char) which fails with surrogate characters with  Character.isLetterOrDigit(int).
>
> Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
> 
>  - Merge branch 'master' into 8330590.prev.word
>  - 8330590 TextInputControl: previous word fails with Bhojpuri characters

I think we need to fix endOf/nextWord as well, as the logic seems to be breaking with the surrogate pairs:

![Screenshot 2024-04-29 at 09 48 33](https://github.com/openjdk/jfx/assets/107069028/02a33046-6d15-45c1-a294-57bf609bdc8d)


The issue can also be seen with Awadhi: अवधी/औधी

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1444#issuecomment-2083210649


More information about the openjfx-dev mailing list