Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case sensitive search in non-latin input  #116

Open
codexp opened this issue Jul 8, 2018 · 4 comments
Open

case sensitive search in non-latin input  #116

codexp opened this issue Jul 8, 2018 · 4 comments

Comments

@codexp
Copy link

codexp commented Jul 8, 2018

For non-latin captions search is case sensitive, which means players can't find items by their names if they have capital first letter.

Example: Cyrillic "разетка" won't find "Разетка" item.
Example: Cyrillic "окно" will have different results as "Окно".

for this I also have created an issue on gitlab.

@numberZero
Copy link

numberZero commented Aug 19, 2018

Lua doesn’t support Unicode, and Minetest doesn’t provide any support either.

P.S. «Разетка»? Is that misspelled Russian word, or?..

@codexp
Copy link
Author

codexp commented Aug 21, 2018

sorry, did not study it at all, it's my native language. «Разетка» seems to be Belorussian.

@MoNTE48
Copy link

MoNTE48 commented May 3, 2020

Something like this is needed.
https://github.com/MultiCraft/MultiCraft/tree/master/builtin/utf8lib
Yes, this does not look perfect, but it is the best implementation on pure Lua 5.1! I'll try to do PR in the future.

@adikalon
Copy link

adikalon commented Sep 2, 2024

For the Russian language, there is a function for byte-by-byte character replacement, it can be found here: https://nashitut.ru/posts/35-registronezavisimyi-poisk-v-mode-unified-inventory.html. I think it's possible to do something similar for the most popular languages. Or add the ability to change the lowercase conversion function for third-party mods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants