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

Bughunt-1.0 VarSet : Unable to create a title in another language #105

Open
2 tasks done
free777cat opened this issue Jun 27, 2024 · 8 comments
Open
2 tasks done
Assignees

Comments

@free777cat
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

It is not possible to create a name in Ukrainian
Зняток екрана як 2024-06-27 20-00-34

Full version info

OS: Linux Mint 22 (MATE/mate)
Word size of Ondsel: 64-bit
Version: 2024.2.0dev.37914 (Git) AppImage
Build type: Release
Branch: flavor
Hash: 88e76e1d516654ee4a020cf4ad676853ca4d2f31
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Ukrainian/Ukraine (uk_UA)
Installed mods: 
  * Ondsel-Lens 2024.1.22.01
  * sheetmetal 0.4.20

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@free777cat free777cat changed the title VarSet : Unable to create a title in another language Bughunt-1.0 VarSet : Unable to create a title in another language Jun 27, 2024
@prokoudine
Copy link

@pieterhijma Are properties ASCII-only in FreeCAD by design?

@free777cat
Copy link
Author

It works here
Зняток екрана як 2024-06-30 19-03-10

It doesn't work here
Зняток екрана як 2024-06-30 18-56-12

@free777cat
Copy link
Author

  1. Good -----> Unicode
  2. Bad -----> ASCII

@pieterhijma
Copy link

Thank you for reporting! Properties can only contain ASCII characters (digits, uppercase and lowercase letters, and underscore). I believe the reason is that they should be used as expressions as well. The optional Sketcher name for the constraints allows unicode characters as input and that seems to me a bug. @free777cat, do you want to create an issue in upstream FreeCAD? I can do this as well if you prefer.

@free777cat
Copy link
Author

Do you want to remove UNICODE?

@free777cat
Copy link
Author

To be honest, I don't really like that you can't use your own language :((

@pieterhijma
Copy link

@free777cat, sorry, my explanation may be a bit unclear. Let me try to clarify: Currently in FreeCAD and Ondsel ES, properties can only consist of ASCII characters. The Sketcher allows Unicode characters as input for named constraints, but this is not aligned with the restriction in FreeCAD and Ondsel ES that defines that properties can only consist of ASCII characters. In that sense, Sketcher has a bug and it should be resolved. So, Sketcher should not allow unicode characters as input for named properties.

However, I fully understand that you would like to be able to create properties with unicode characters. This would not be a bug, but a feature request. I don't think it is very difficult to support this in FreeCAD and I would invite you to create an issue in FreeCAD asking for the feature to support unicode as properties.

@free777cat
Copy link
Author

I will be grateful if you create this "issue".

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

No branches or pull requests

3 participants