Skip to content

No word-breaks for CJK locales #19584

@goderbauer

Description

@goderbauer

Internal: b/112618495

Flutter cannot properly detect word breaks in Chinese and Japanese text because the ICU configuration that we ship with Flutter doesn't include the dictionary to provide that functionality.

Chinese example:
Type 你好吗 into a text field. Long-pressing on either of the first two characters should select both characters as they form one word.

Japanese example:
Type 日本語学校 into a text field (means Japanese language school). Long-pressing on either of the last two characters should select them both to select the word school (学校).

Compare the result of the two experiments above between a native textfield and a Flutter text field to see the difference.

Other languages (e.g. English or German words) work fine and long-pressing a word selects the full word.

/cc @cbracken @xster @Hixie

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: chinaChina and its Great Firewalla: internationalizationSupporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.found in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions