[0.16.39] search is case-sensitive for russian language

Things that we don't consider worth fixing at this moment.
diraria
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu May 03, 2018 7:32 pm
Contact:

[0.16.39] search is case-sensitive for russian language

Post by diraria »

Full version of title: "[0.16.39] search in techonologies (and other places) is (wrongly) case-sensitive for non-english languages"

Steps to reproduce:

1. Install factorio
2. Change interface language from English to Russian
3. Start new game
4. Open techonologies tree
5. Type "оптика" (it is russian word "optics", note that it starts with lowercase) in search box

Expected behaviour: optics techonology is displayed
Actual behaviour: no techonologies are displayed

Note: search is also case-sensitive in other places, like inventory.


Thanks for factorio!
Rseding91
Factorio Staff
Factorio Staff
Posts: 14591
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Rseding91 »

Thanks for the report however we don't have any plans to fix this for the foreseeable future.
If you want to get ahold of me I'm almost always on Discord.
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by steinio »

Rseding91 wrote:Thanks for the report however we don't have any plans to fix this for the foreseeable future.
Doesn't lowercase() work for russian?
It's state of the art to compare strings lower or uppercase if case sensitivity isn't necessary.
Image

Transport Belt Repair Man

View unread Posts
Rseding91
Factorio Staff
Factorio Staff
Posts: 14591
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Rseding91 »

steinio wrote:
Rseding91 wrote:Thanks for the report however we don't have any plans to fix this for the foreseeable future.
Doesn't lowercase() work for russian?
It's state of the art to compare strings lower or uppercase if case sensitivity isn't necessary.
If it did, it would work right now :)
If you want to get ahold of me I'm almost always on Discord.
henke37
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Mon Jul 18, 2016 5:43 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by henke37 »

It's wrong to convert case for comparisons. Greek for example has an upper case letter that corresponds to two different lower case letters. And german has a letter that expands to two letters when it turns to upper case.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Bilka »

henke37 wrote:And german has a letter that expands to two letters when it turns to upper case.
What? There's ẞ (uppercase ß), Ö, Ü, and Ä, so what are you talking about?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by steinio »

Bilka wrote:
henke37 wrote:And german has a letter that expands to two letters when it turns to upper case.
What? There's ẞ (uppercase ß), Ö, Ü, and Ä, so what are you talking about?
Uppercase ß is new.
Image

Transport Belt Repair Man

View unread Posts
Shadow_Man
Fast Inserter
Fast Inserter
Posts: 133
Joined: Fri Mar 02, 2018 2:55 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Shadow_Man »

5 years have passed, is there a ray of hope for a fix?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14591
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Rseding91 »

Shadow_Man wrote: Thu Aug 24, 2023 9:33 pm 5 years have passed, is there a ray of hope for a fix?
Nothing has changed about the complexity of any kind of fix to my knowledge.
If you want to get ahold of me I'm almost always on Discord.
Shadow_Man
Fast Inserter
Fast Inserter
Posts: 133
Joined: Fri Mar 02, 2018 2:55 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by Shadow_Man »

Rseding91 wrote: Thu Aug 24, 2023 10:17 pm
Shadow_Man wrote: Thu Aug 24, 2023 9:33 pm 5 years have passed, is there a ray of hope for a fix?
Nothing has changed about the complexity of any kind of fix to my knowledge.
What is the reason for this function not working?
What function is used when comparing strings? Standard or custom?
It seems that the solution is on the surface, but no one sees it.
RobotMan2412
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Aug 28, 2023 11:36 pm
Contact:

Re: [0.16.39] search is case-sensitive for russian language

Post by RobotMan2412 »

Shadow_Man wrote: Thu Aug 24, 2023 10:24 pm
Rseding91 wrote: Thu Aug 24, 2023 10:17 pm
Shadow_Man wrote: Thu Aug 24, 2023 9:33 pm 5 years have passed, is there a ray of hope for a fix?
Nothing has changed about the complexity of any kind of fix to my knowledge.
What is the reason for this function not working?
What function is used when comparing strings? Standard or custom?
It seems that the solution is on the surface, but no one sees it.
I don't work on Factorio but having dealt with unicode and their encoding shenanigans I can attest to the fact that it is not, in fact, trivial to do.
For example, some characters (like ç) can be encoded either as one code point or two.
Couple this with no lower / upper case equivalents which some languages apparently have and now you lowercase() function is not 1 line of C, but maybe 50 including looking up the lowecase characters hidden somewhere in the 16-bit space that is unicode.

Again, I do not work on Factorio, I just play it, but I often see that non-programmers underestimate the effort required for seemingly simple tasks.
Because yes, it would be nice if it were that simple, but it's not.
Post Reply

Return to “Won't fix.”