Case-sensitive search for Cyrillic in invoke_search_popup #47193

Closed
opened 2016-01-17 10:07:18 +01:00 by Mikhail Rachinskiy · 14 comments

System Information
Windows 8.1 x64
Renderer: GeForce GTX 860M/PCIe/SSE2

Blender Version
Broken: 2.76.5 b211e41

Short description of error
Case-sensitive search for Cyrillic using invoke_search_popup

Exact steps for others to reproduce the error

  • Open attached blend file cyr_case.blend
  • Text Editor → Run Script
  • In operator search find two operators:
    • Search Popup: Latin

    Search Popup: Cyrillic

For English speakers here is two Cyrillic characters which you can copy and paste in search popup for testing:
Capital case: "К"
Lower case: "к"

Here is the reult you should get:
cyr_case.png

**System Information** Windows 8.1 x64 Renderer: GeForce GTX 860M/PCIe/SSE2 **Blender Version** Broken: 2.76.5 b211e41 **Short description of error** Case-sensitive search for Cyrillic using `invoke_search_popup` **Exact steps for others to reproduce the error** - Open attached blend file [cyr_case.blend](https://archive.blender.org/developer/F274950/cyr_case.blend) - Text Editor → Run Script - In operator search find two operators: - Search Popup: Latin # Search Popup: Cyrillic For English speakers here is two Cyrillic characters which you can copy and paste in search popup for testing: Capital case: "К" Lower case: "к" Here is the reult you should get: ![cyr_case.png](https://archive.blender.org/developer/F274952/cyr_case.png)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @MikhailRachinskiy

Added subscriber: @MikhailRachinskiy

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2016-01-17 10:39:19 +01:00

Thanks for the report, but this is more a known limitation than a bug - issue is, standard C library embeds helpers to handle case of latin alphabet (limited to non-accented letters though), i.e. basic A-Z letters. To handle cases in all other scripts, one need a dedicated Unicode library, which is much more heavy process.

Currently, in Blender we follow that rule about unicode text: we support it provided it’s not too much work. :/

Thanks for the report, but this is more a known limitation than a bug - issue is, standard C library embeds helpers to handle case of latin alphabet (limited to non-accented letters though), i.e. basic A-Z letters. To handle cases in all other scripts, one need a dedicated Unicode library, which is much more heavy process. Currently, in Blender we follow that rule about unicode text: we support it provided it’s not too much work. :/

Added subscriber: @lowercase

Added subscriber: @lowercase

Maybe related: in spanish you need to be rigorous when searching for accented words, for instance you need to type 'menú' as 'menu' won't do it. But in browsers and other programs you just search without accents and it works fine. Just curious if this could be improved, not a big problem, thanks.

Maybe related: in spanish you need to be rigorous when searching for accented words, for instance you need to type 'menú' as 'menu' won't do it. But in browsers and other programs you just search without accents and it works fine. Just curious if this could be improved, not a big problem, thanks.
Author
Member

These news strike right into my Cyrillic heart.

These news strike right into my Cyrillic heart.

@lowercase yes, as I said even latin accented letters are not working, only 'pure' ASCII a-z ones are handled.

@MikhailRachinskiy Yeah… and think about people using complex scripts from India and other far east countries - they do not even have proper rendering of their languages in blender currently (because those need a complex layout engine).

Note that I just discovered and tried towlower() C func, but result is not really enthusiasming either, depends too much on defined locale to be usable for us.

@lowercase yes, as I said even latin accented letters are not working, only 'pure' ASCII a-z ones are handled. @MikhailRachinskiy Yeah… and think about people using complex scripts from India and other far east countries - they do not even have proper rendering of their languages in blender currently (because those need a complex layout engine). Note that I just discovered and tried `towlower()` C func, but result is not really enthusiasming either, depends too much on defined locale to be usable for us.

Added subscriber: @Vyach

Added subscriber: @Vyach

summon @mont29
poke. Is there new possibilities to fix this?

summon @mont29 poke. Is there new possibilities to fix this?
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

Language-specific comparison and sorting would be a good job for ICU - International Components for Unicode

Language-specific comparison and sorting would be a good job for [ICU - International Components for Unicode ](http://site.icu-project.org/)

Note that I just discovered and tried towlower() C func, but result is not really enthusiasming either, depends too much on defined locale to be usable for us.

Converting to lower case at least can work for alphabetical-based languages, i think.
IMO it is better to make something work than leave issue for all.

Also I am sure, that ppl from different countries will be glad to tell about language spicific and help to fix it.
Looks like it big issue, if it is right inside C.

> Note that I just discovered and tried `towlower()` C func, but result is not really enthusiasming either, depends too much on defined locale to be usable for us. Converting to lower case at least can work for alphabetical-based languages, i think. IMO it is better to make something work than leave issue for all. Also I am sure, that ppl from different countries will be glad to tell about language spicific and help to fix it. Looks like it big issue, if it is right inside C.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
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: blender/blender#47193
No description provided.