Skip to content
Commit 9c3a0b79 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Modify Script matching algorithm

First manually match script code based on provided scripts in the
language tag before using UScript to derive script code from tag
and matching that.
Corner case: Uscript.getCode() hard codes script for "ja..." tags
to Japenese, Hirangana and Han scripts even if we provide explicit
"Latn" in the language tag. IME can explicitly say "Latn" in language
tag to allow any KCMs with Latn support and handle composition to
Japense on IME side. So, if explicitly mentioned we should respect
the script code provided.

Test: atest KeyboardLayoutManagerTests
Bug: 272200660
Change-Id: Ic0ffd3aa57d83b7fd8c1fb66ec12581f90c1deaf
parent 1b485a66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment