What
When searching in the character screen for crafting recipes the game treats " " (single ascii space) between two "words" as logical AND, but the same isn't true for " " (Japanese full width space). (Non-Fuzzy search).
Why
When using Japanese input pressing the "space bar" key produces a full-width space because Japanese does not use half-width spaces. This results in rather awkward usage when typing naturally and then remembering that the space needs to be a different one and having to go back to edit it.
I'm assuming this'll be broken for any language that doesn't use ascii space.
(I also noticed that multiple ascii space aren't counted as AND either, but that might be on purpose?)
[1.1.33] Ctrl+F find treats full-width space differently from ascii space
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
[1.1.33] Ctrl+F find treats full-width space differently from ascii space
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [1.1.33] Ctrl+F find treats full-width space differently from ascii space
Thanks for the report however I don't believe we intend to do anything about this. The search logic doesn't do any kind of language specific processing and I don't believe we intend to add any.
If you want to get ahold of me I'm almost always on Discord.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [1.1.33] Ctrl+F find treats full-width space differently from ascii space
That is quite sad to hear. Also I wasn't asking for language specific processing. The Japanese examples are just what I happend to experience myself. A generic solution that splits the string using an equivalent of "%s" for "space" that includes all unicode whitespace should work. Aka a unicode-aware string library.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.