[uom] Add Celsius, Fahrenheit and other UoM single glyph aliases#5640
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
Ping @htreu |
…as aliase Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This comment was marked as outdated.
This comment was marked as outdated.
|
bundles/org.openhab.core.model.script/src/org/openhab/core/model/script/Script.xtext contains: It does not contain Nobody has asked for |
|
@dilyanpalauzov thanks for the feedback but excuse me for asking again to be clear .. which characters do you think shall be, and shall not be, added to this PR? From your prior post maybe you are suggesting to add at least the Ω symbol ?? .. but you are suggesting that none of the East Asian single character glyphs for Roman multi character symbols ㎏ ㎡ ㎥ ㎜ ㎝ ㎞ ㏈ shall be included. Or?? EDIT: I think Ω is already inherited from the Indriya library.. |
|
I am drawing the attention that |
Do you know what is the purpose of Script.xtext? |
Parsing DSL scripts, rule bodies and DSL transformations. |
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
There is confusion between the two character symbol adopted by OH for Celsius °C (which is the official standard) and the one character symbol ℃ (which is a compatibility glyph for East Asian languages). This PR hopes to fix it. But I would like OH maintainers to please give feedback over the proposed solutions. And there is the same issue for Fahrenheit, and some other units..
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch
What the AI says about temperature symbols
The internationally accepted SI symbol is unequivocally “°C”.
The single-character symbol “℃” is not an SI‑approved symbol — it is a Unicode compatibility glyph used mainly in East Asian typography.
📌 What the standards say
This is explicitly defined in SI documentation: “degree Celsius °C” [European Patent Office](https://www.epo.org/en/legal/guidelines-epc/2025/f_iia2_1_1_1.html).
Why “℃” is not the standard
Bottom line
If you want, I can also tell you which environments or fonts render “℃” poorly and why it’s avoided in engineering contexts.