Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

AutoCompleteWordCharSet doesn't work

Open maboroshin opened this issue 3 years ago • 11 comments

Limit auto-completion to alpha-num. This restriction does not work and most strings are auto-completed.

[Settings2]
AutoCompleteWordCharSet=_abcdefghijklmnopqrstuvwxyz0123456789

Does not work with v5.21.905.1. It works with v5.21.227.1.

The code disappeared probably in Scintilla 5.0.1(v5.21.411). : https://github.com/rizonesoft/Notepad3/issues/4029#issuecomment-1087130566

maboroshin avatar Mar 31 '22 18:03 maboroshin

Hello @maboroshin , I'm not able to reproduce your issue? 🤔

hpwamr avatar Apr 03 '22 08:04 hpwamr

My explanation was too simple. Maybe the exclusion of Japanese language detection has been restored.

  1. Turn on "Auto Complete Word". image

  2. Set the "AutoCompleteWordCharSet" in Notepad3.ini.

[Settings2]
AutoCompleteWordCharSet=_abcdefghijklmnopqrstuvwxyz0123456789

image

  1. Prepare a non-alphanum sample text.
uuuuuuüüüüüü // Start not specified character. This has always been auto-completed.
いいいいいいい // Start not specified character. Correct behavior: Not detected.
ああ日本語や中国語は空白で区切らない // Because, Japanese and Chinese are not separated by spaces.

  1. Input the text for Auto complete. It is correct that the candidate does not appear for Japanese.
  • cha
  • いい

image

maboroshin avatar Apr 03 '22 10:04 maboroshin

I found "BetaBuild_until_release.7z". I will test each beta version.

maboroshin avatar Apr 03 '22 10:04 maboroshin

I found "BetaBuild_until_release.7z". I will test each beta version.

I've difficulties to reproduce your issue because I don't have a Japanese keyboard installed. 😬

Edit: to imput the Japanese char "い" use "Alt +3044" (with the numeral keyboard) Add a test file: Test_ issue_#4029.txt

All (90) beta files between v5.21.227.1 and v5.21.905.1 are in this file: BetaBuild_until_release_5.21.905.1.7z 🤔

hpwamr avatar Apr 03 '22 18:04 hpwamr

Aug 2018: Implementation of AutoCompleteWordCharSet in Settings2: https://github.com/rizonesoft/Notepad3/issues/552 Sep 2018: Implementation of GetACP() method: https://github.com/rizonesoft/Notepad3/issues/668

maboroshin avatar Apr 04 '22 05:04 maboroshin

  • 5.21.407 AutoComplete OK (Candidate does not appear for Japanese)
  • No executable file between
  • 5.21.411 AutoComplete NG (Include update to Scintilla 5.0.1, And other IME bug*)
  • 5.21.422 AutoComplete NG
  • 5.21.423 AutoComplete NG (Fixed bug* on IME) (Also, Not found issue about IME on April 2021)

The Bug* means large font appear in IME's window: image

  • VKBD: Japanese virtual keyboard: http://www.vector.co.jp/soft/winnt/util/se482003.html (Download is green picture)

When I use VKBD and type "いい" with IME off, Then auto-completion appears. So I think you have disabled Japanese auto-completion when the IME is on. Probably, IMEs are no longer detected when updating to Scintilla 5.0.1.

maboroshin avatar Apr 04 '22 05:04 maboroshin

Question: have you tried with IMEInteraction=1 ? 🤔

2022-04-04_101121

hpwamr avatar Apr 04 '22 08:04 hpwamr

I tried both IMEInteraction=1 and IMEInteraction=0. IMEInteraction works fine.

maboroshin avatar Apr 04 '22 14:04 maboroshin

Simplifying the issue. AutoCompleteWordCharSet may not be necessary for CJ (Chinese Japanese).

If CJ, Then only alphanum* is a candidate. ( alphanum* : _abcdefghijklmnopqrstuvwxyz0123456789 : Basic characters for Programming )

maboroshin avatar Oct 24 '22 00:10 maboroshin

Hello @RaiKoHoff , Is it correct that this issue is still awaiting a solution? 🤔

hpwamr avatar Jul 16 '23 08:07 hpwamr

Hello @hpwamr , I am still analyzing that !

RaiKoHoff avatar Jul 22 '23 05:07 RaiKoHoff