Search Unity

Duplicated string passed to the Input Field for Japanese IME

Discussion in 'UGUI & TextMesh Pro' started by bboydaisuke, Feb 27, 2017.

  1. bboydaisuke

    bboydaisuke

    Joined:
    Jun 14, 2014
    Posts:
    67
    Anyone knows solution for this problem?

    PROBLEM

    Duplicated string passed to the Input Field for Japanese IME.
    Problem occurs when you confirm the interpretation by click instead of hitting Enter.
    Other East Asian languages e.g. Chinese, Korean may be affected by this problem.
    Unity 5.4.1f1 has this problem.

    STEPS TO REPRO
    1. Create new scene and open in Unity Editor.
    2. Put an Input Field in the scene.
    3. Play in editor.
    4. Click Input Field.
    5. Switch Japanese IME to HIRAGANA mode.
    6. Put てすと then hit space to interpret it to テスト. Do NOT hit Enter to confirm.
    7. Click Input Field to confirm the interpretation.
    EXPECTED BEHAVIOR
    "テスト" is confirmed and put in the Input Field.

    ACTUAL RESULT
    "テストテスト" is set in the Input Field.

    NOTES
    Input.inputString passes duplicated string to Input Field on click.
     
    yc960 likes this.
  2. bboydaisuke

    bboydaisuke

    Joined:
    Jun 14, 2014
    Posts:
    67
  3. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The above issue should be fixed in Unity 2018.4.