-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
Cyrillic support via "add_input_text" #2212
Comments
Hello @Den4ina - I wonder if your issue is related to #1075. From your description, it's not exactly the same issue, but may be related. If you are interested in learning more about #1075 - it's actually an issue in Dear ImGui, here's the corresponding ImGui ticket: ocornut/imgui#5725. There's a chance that #1075 can be fixed in DPG, but I don't know for sure yet. As for your issue, I'm not sure what's going on. If I remember correctly, in my tests I was unable to display non-ANSI characters (e.g. Cyrillic) in |
Thank you so much for the quick response! Below I presented a solution based on the information I found. This is far from perfect and clean code, but it is a working draft version that allows me to enter Cyrillic characters and decode the string using the "decode_string" method. A class for correcting Cyrillic characters
Font loading
Reassigning characters for input
Decode the string into normal Cyrillic to save to a file
|
Hello, dear developers!
I have been actively using your project for a long time. Cyrillic characters are displayed in my interface (the appropriate font is installed and a range is added). However, I can't type Cyrillic into text cells when using "Windows 10". In "Linux" everything works fine. I am using "add_char_remap", however when saving the value from the cell using "get_value" in ".json file" I get distorted characters. Therefore, I have to convert them back to the desired code. It sounds very heavy and "crutchy". Maybe I'm not taking something into account.
Is there a ready-made way to support Cyrillic input for win32?
I have reviewed many forums, but have not found a suitable solution.
The Cyrillic alphabet is displayed correctly in the interface and text input fields:
However, when saving, I get a distortion of the characters:
If I have to translate the string back to the correct encoding when saving the file, the question can be closed. But if there is another solution, I will be glad to get answers
The text was updated successfully, but these errors were encountered: