termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
34.76k stars 3.66k forks source link

halfwidth/fullwidth key doesn't work since 0.38 #137

Open igrep opened 8 years ago

igrep commented 8 years ago

Problem

When inputting Japanese characters (Kanji, Hiragana, Katakana), we usually toggle Japanese-input mode by halfwidth/fullwidth (半角/全角) key (see wikipedia for details). I used to love to write blog posts on vim on termux using the hardware key.

But since 0.38 (as long as I remember), the halfwidth/fullwidth key doesn't make any effect on termux. So I couldn't input any Japanese characters on termux now. Could you please fix it? :pray:

About my environment

Model: Xperia Z4 Tablet (SGP712) Attached keyboard: BKB50 (The official Z4 Tablet's Bluetooth keyboard) Android version: 6.0.1 Software keyboard (enabled when inputting Japanese then suggests words): POBox Plus (The default software Japanese keyboard of SGP712. Version unknown)

fornwall commented 8 years ago

@igrep Thanks for the description!

Could you try out https://fornwall.net/termux-0.39-issue137.apk and see if that build fixes the problem?

igrep commented 8 years ago

It works! 😄 🇯🇵

fornwall commented 8 years ago

Great! I'll have that change in the next v0.40 update shortly, thanks for your help!

igrep commented 8 years ago

Hmmm, I found a new bug with termux-0.39-issue137.apk. The last input Japanese word is unexpectedly echoed when turning off fullwidth mode by the halfwidth/fullwidth key. For example:

  1. Press halfwidth/fullwidth key (h/f key) to start inputting Japanese words.
  2. Input the first word (in this case あいうえお)

    あいうえお
  3. Press Enter to confirm あいうえお.
  4. Input the next word (in this case かきくけこ)

    あいうえおかきくけこ
  5. Press Enter to confirm かきくけこ.
  6. Press h/f key to turn off Japanese input.
  7. かきくけこ is appended again.

    あいうえおかきくけこかきくけこ

Should I submit a new issue?

fornwall commented 8 years ago

We can keep it here without creating a new issue, I'm looking into it!

fornwall commented 8 years ago

There seems to be the same problem with Google Japanese Input, right?

fornwall commented 8 years ago

@igrep Could you try the build at https://fornwall.net/termux-0.39-issue137-clear-on-commit.apk and if that fixes the issue?

igrep commented 8 years ago

Okay, I'll try both of them later. Maybe by tomorrow JST.

igrep commented 8 years ago

There seems to be the same problem with Google Japanese Input, right?

Found the same problem with the first one: halfwidth/fullwidth key doesn't make any effect on termux. (Tried https://fornwall.net/termux-0.39-issue137.apk)

And https://fornwall.net/termux-0.39-issue137-clear-on-commit.apk works perfectly with POBox Plus!! Thanks! ❤️

Update: Oh, but the first problem still happenes with Google Japanese Input... (But I don't care personally. I'm satisfied with POBox Plus... 😏 )

fornwall commented 8 years ago

@igrep Could you try out https://fornwall.net/t40-pre1.apk, a new experimental preview, and tell me if that works?

igrep commented 8 years ago

Tried. 😰 h/f key doesn't make any effect on termux. Both with POBox Plus and Google Japanese Input...

igrep commented 7 years ago

ping. What's going on about this issue?