[GH-ISSUE #51] Can't autocomplete Chinese characters #40

Closed
opened 2026-10-30 21:17:44 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @liggest on GitHub (Oct 30, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/51

Originally assigned to: @DominikDoom on GitHub.

Normally, the tag autocomplete works perfectly
examples below use the word ninja (忍者)
normal_typing
But autocomplete dosen't show up after stop inputting Chinese characters
typing

Generally, Chinese native speakers use some kinds of input methods (or 输入法) as an assistance to input Chinese characters
After typing alphabet representations, one could choose right characters by pressing number keys or space (for current choice) or enter(for reserving inputted alphabets)
As shown above, autocomplete dosen't seem to work in these kinds of occasions. I vaguely remember that it was working few versions ago, but I'm not sure about how to test again

In additional, autocomplete for deleting seems to have similar problem
normal_delete
delete

Originally created by @liggest on GitHub (Oct 30, 2022). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/51 Originally assigned to: @DominikDoom on GitHub. Normally, the tag autocomplete works perfectly examples below use the word ninja (忍者) ![normal_typing](https://user-images.githubusercontent.com/43201720/198868307-c9d0664b-1a1b-4469-ba34-a0c4d262eaba.gif) But autocomplete dosen't show up after stop inputting Chinese characters ![typing](https://user-images.githubusercontent.com/43201720/198868455-4c429ebb-2013-49fc-9f0d-3fb624be71b9.gif) Generally, Chinese native speakers use some kinds of input methods (or 输入法) as an assistance to input Chinese characters After typing alphabet representations, one could choose right characters by pressing number keys or space (for current choice) or enter(for reserving inputted alphabets) As shown above, autocomplete dosen't seem to work in these kinds of occasions. I vaguely remember that it was working few versions ago, but I'm not sure about how to test again In additional, autocomplete for deleting seems to have similar problem ![normal_delete](https://user-images.githubusercontent.com/43201720/198868870-bb89a88d-0539-4ed7-910d-69344c22203c.gif) ![delete](https://user-images.githubusercontent.com/43201720/198868875-45346bf4-8e32-4c4c-a7fa-a5181f760360.gif)
bsakaguchi 2026-10-30 21:17:44 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DominikDoom commented on GitHub (Oct 30, 2022):

I don't have a Chinese IME installed so I can't test it at the moment, but I'll try it out later if I have time.

If you want to try out older versions to see where it stopped working, you can find them in https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/releases. That would definitely be helpful.

Also please check if searchByTranslation is true in your config, that should be the only relevant option.

<!-- gh-comment-id:1296175751 --> @DominikDoom commented on GitHub (Oct 30, 2022): I don't have a Chinese IME installed so I can't test it at the moment, but I'll try it out later if I have time. If you want to try out older versions to see where it stopped working, you can find them in https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/releases. That would definitely be helpful. Also please check if searchByTranslation is true in your config, that should be the only relevant option.
Author
Owner

@liggest commented on GitHub (Oct 30, 2022):

Also please check if searchByTranslation is true in your config, that should be the only relevant option.

It's true by default, and I haven't changed it

If you want to try out older versions to see where it stopped working, you can find them in https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/releases.

Thanks for providing this, it helps a lot. Maybe I'll try them later

<!-- gh-comment-id:1296177951 --> @liggest commented on GitHub (Oct 30, 2022): > Also please check if searchByTranslation is true in your config, that should be the only relevant option. It's true by default, and I haven't changed it > If you want to try out older versions to see where it stopped working, you can find them in https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/releases. Thanks for providing this, it helps a lot. Maybe I'll try them later
Author
Owner

@DominikDoom commented on GitHub (Oct 30, 2022):

I just had a look in the code again and am pretty sure I found the issue, before 1.9.0 should work.
I will fix it later today. It's related to the updated regex after 1.9.0 not correctly matching words starting with non-ascii characters.

<!-- gh-comment-id:1296184948 --> @DominikDoom commented on GitHub (Oct 30, 2022): I just had a look in the code again and am pretty sure I found the issue, before 1.9.0 should work. I will fix it later today. It's related to the updated regex after 1.9.0 not correctly matching words starting with non-ascii characters.
Author
Owner

@liggest commented on GitHub (Oct 30, 2022):

I just had a look in the code again and am pretty sure I found the issue, before 1.9.0 should work.

I've just tried version hotfix 1.8.2, it works for me, so I think you're right

I will fix it later today. It's related to the updated regex after 1.9.0 not correctly matching words starting with non-ascii characters.

Thanks for updating so quickly!

<!-- gh-comment-id:1296213235 --> @liggest commented on GitHub (Oct 30, 2022): > I just had a look in the code again and am pretty sure I found the issue, before 1.9.0 should work. I've just tried version hotfix 1.8.2, it works for me, so I think you're right > I will fix it later today. It's related to the updated regex after 1.9.0 not correctly matching words starting with non-ascii characters. Thanks for updating so quickly!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#40
No description provided.