Aedif / TokenVariants

GNU General Public License v3.0
17 stars 12 forks source link

- fixed the character split problem when searching in Simplified Chinese #154

Closed kagangtuya-star closed 1 month ago

kagangtuya-star commented 3 months ago

I am a TRPG gamer who primarily uses Simplified Chinese. While using this mod, I found that it has some problems with Simplified Chinese search.

For example, for a Simplified Chinese phrase "枭熊(1)", it can't split it, but search it as a whole.A desired result is to use "枭熊" as the search string.

In addition, it ignores two or fewer Simplified Chinese characters, but this is in the Chinese language, where many monsters are represented by fewer characters.

I've added Simplified Chinese punctuation to the character sets used in split, and added a judgement for Chinese phrases of less than two characters (as well as Japanese and Korean).

Now it works much better.