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
unicode in labeled combo box for string #4431
Comments
Every thing from the '//' are comments, plain text.
//suite
a=1;// [♔king,♔queen]
Also, for general questions/help please use the OpenSCAD Mailing-list <https://lists.openscad.org/list/discuss.lists.openscad.org> .
GitHub is used for Development and probable Bug Reports.
If unsure of a possible bug, please ask on the Mailing-list first.
…_____
From: sugizo ***@***.***
Sent: Wed, 30 Nov 2022 15:03
To: openscad/openscad
Cc: Subscribed
Subject: [openscad/openscad] unicode in labeled combo box for string (Issue #4431)
text = "\u2654"; // ["\u2654":white king, "\u2655":white queen]
text = "\u2654"; // ["\\u2654":white king, "\\u2655":white queen]
text = "\u2654"; // [\u2654:white king, \u2655:white queen]
text = "\u2654"; // [\\u2654:white king, \\u2655:white queen]
result
u2655
\u2655
\u2655
\\u2655
objective
show unicode in labeled combo box for string
for example on code above shown the white king (♔) and queen (♕) when combo box is selected
question
how to achieve it in openscad way ?
thanks and best regards
—
Reply to this email directly, view it on GitHub <#4431> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAPBVYPVROVPBVCVPRYWRODWK3GWPANCNFSM6AAAAAASPF3OVQ> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AAPBVYJ4WDXX7NBOW5QDORLWK3GWPA5CNFSM6AAAAAASPF3OVSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFPD25E4.gif> Message ID: ***@***.***>
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
|
Oops, test it first!
//suite
a=1;// [0:♔king,1:♔queen]
echo(a);
…_____
From: Michael ***@***.***
Sent: Wed, 30 Nov 2022 15:20
To: openscad/openscad
Cc: Michael; Your activity
Subject: Re: [openscad/openscad] unicode in labeled combo box for string (Issue #4431)
Every thing from the '//' are comments, plain text.
//suite
a=1;// [♔king,♔queen]
Also, for general questions/help please use the OpenSCAD Mailing-list <https://lists.openscad.org/list/discuss.lists.openscad.org> .
GitHub is used for Development and probable Bug Reports.
If unsure of a possible bug, please ask on the Mailing-list first.
_____
From: sugizo ***@***.***
Sent: Wed, 30 Nov 2022 15:03
To: openscad/openscad
Cc: Subscribed
Subject: [openscad/openscad] unicode in labeled combo box for string (Issue #4431)
text = "\u2654"; // ["\u2654":white king, "\u2655":white queen]
text = "\u2654"; // ["\\u2654":white king, "\\u2655":white queen]
text = "\u2654"; // [\u2654:white king, \u2655:white queen]
text = "\u2654"; // [\\u2654:white king, \\u2655:white queen]
result
u2655
\u2655
\u2655
\\u2655
objective
show unicode in labeled combo box for string
for example on code above shown the white king (♔) and queen (♕) when combo box is selected
question
how to achieve it in openscad way ?
thanks and best regards
—
Reply to this email directly, view it on GitHub <#4431> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAPBVYPVROVPBVCVPRYWRODWK3GWPANCNFSM6AAAAAASPF3OVQ> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AAPBVYJ4WDXX7NBOW5QDORLWK3GWPA5CNFSM6AAAAAASPF3OVSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFPD25E4.gif> Message ID: ***@***.***>
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
—
Reply to this email directly, view <#4431 (comment)> it on GitHub, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAPBVYKZHBFFND4CZLKEJATWK3IWNANCNFSM6AAAAAASPF3OVQ> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AAPBVYOHXJD2PQCX6BQAYRDWK3IWNA5CNFSM6AAAAAASPF3OVSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSPL37MA.gif> Message ID: ***@***.***>
|
perhaps not getting what my objective is objective is to create the drop down combo list this work but when turn it into variable is not work not work
perhaps openscad repo can activated the github discussion feature |
Seems escaping doesn't work either .. it is not converted in a symbol anymore.
|
NO. GitHub is for Development purposes including bug reports, and only for matters which cannot be solved by the Mailing-list. There are people on the Mailing-list, including many Developers, who can help you there. Escaping is a property of STRINGS, ie part of statements or expressions.
|
BTW, Customizer has external syntax dependencies with Thingiverse. |
|
@MichaelAtOz But there is some parsing done by the customizer as some are converted to strings and as the escaping does produce the same echo. Or why is the
|
code work
problem |
result
objective
show unicode in labeled combo box for string
for example on code above shown the white king (♔) and queen (♕) when combo box is selected
question
how to achieve it in openscad way ?
thanks and best regards
The text was updated successfully, but these errors were encountered: