language-indicator icon indicating copy to clipboard operation
language-indicator copied to clipboard

compatible: Google IME

Open superuser7777 opened this issue 1 year ago • 4 comments

Thank you for the great solution! I have been having trouble with IME behavior when switching between apps for many years. I wish I knew sooner...

It did not work in the windows10 google IME environment. Please consider supporting operation in the Google IME environment.

superuser7777 avatar Aug 21 '24 17:08 superuser7777

@superuser7777 What is the easiest way to reproduce the issue?

yakunins avatar Aug 29 '24 02:08 yakunins

Set the windows locale settings to one (for example, englis only) and create an environment where you can use GoogleIME in two or more languages.

Switching the IME (locale switching) is done in the googleIME settings.

When I checked the source, I couldn't read the details with my programming skills, but I thought that the language-indicator locale switch was checking the Windows standard locale.

I found some discussion and code that might be helpful regarding IME recognition and switching. Combination of two Windows APIs: "GetKeyboardLayout" and "ImmGetDescriptionA" - AutoHotkey Community

Sorry, the comment out in the source is in Japanese, but it worked in English/Spanish/French environments. IME_GET() and IME_SET() IMEv2.ahk/IMEv2.ahk at master · k-ayaki/IMEv2.ahk

thank you.

superuser7777 avatar Aug 31 '24 12:08 superuser7777

@superuser7777

create an environment where you can use GoogleIME in two or more languages

How? I tried to google, no results https://www.google.com/search?q=create+environment+GoogleIME

Only found this extension for Chrome https://chromewebstore.google.com/detail/google-input-tools/mclkkofklkfljcocdinagocijmpgbhab?pli=1

Do you consider Chrome with this extension as an envirponment?

yakunins avatar Sep 02 '24 23:09 yakunins

@yakunins

I'm very very sorry, I completely misunderstood. I apologize for ruining your precious time.

I set windows to English locale, downloaded googleIME, and tried the settings.

It turns out that the googleIME I'm using is a special one for local optimization (Japanese speaking areas). (Multi-language switching is possible, mainly Japanese. However, it behaves in a special way.)

Regarding the operation of lib/GetInputLocaleIndex.ahk, I will try my best to replace it with IME.ahk.

superuser7777 avatar Sep 04 '24 08:09 superuser7777