File tree Expand file tree Collapse file tree
bundles/org.openhab.core/src/main/java/org/openhab/core/library/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public final class ImperialUnits extends CustomUnits {
118118 SimpleUnitFormat .getInstance ().label (POUND_FORCE_SQUARE_INCH , POUND_FORCE_SQUARE_INCH .getSymbol ());
119119 SimpleUnitFormat .getInstance ().label (GRAIN , GRAIN .getSymbol ());
120120
121- // Add the single character ℉ as an alias to improve support of East Asian languages
121+ // Add the single character ℉ glyph as an alias to improve support of East Asian languages
122122 SimpleUnitFormat .getInstance ().alias (FAHRENHEIT , "℉" );
123123 }
124124
Original file line number Diff line number Diff line change @@ -53,8 +53,14 @@ public final class SIUnits extends CustomUnits {
5353 // Override the default unit symbol ℃ to better support TTS and UIs:
5454 SimpleUnitFormat .getInstance ().label (CELSIUS , "°C" );
5555
56- // Add the single character ℃ as an alias to improve support of East Asian languages
56+ // Add some single character glyphs as aliases to improve support of East Asian languages
5757 SimpleUnitFormat .getInstance ().alias (CELSIUS , "℃" );
58+ SimpleUnitFormat .getInstance ().alias (METRE .multiply (0.001 ), "㎜" );
59+ SimpleUnitFormat .getInstance ().alias (METRE .multiply (0.01 ), "㎝" );
60+ SimpleUnitFormat .getInstance ().alias (METRE .multiply (1000 ), "㎞" );
61+ SimpleUnitFormat .getInstance ().alias (KILOGRAM , "㎏" );
62+ SimpleUnitFormat .getInstance ().alias (SQUARE_METRE , "㎡" );
63+ SimpleUnitFormat .getInstance ().alias (CUBIC_METRE , "㎥" );
5864 }
5965
6066 private SIUnits () {
Original file line number Diff line number Diff line change @@ -355,6 +355,9 @@ public final class Units extends CustomUnits {
355355 SimpleUnitFormat .getInstance ().alias (MONTH , "mo" );
356356 SimpleUnitFormat .getInstance ().alias (WEEK , "wk" );
357357 SimpleUnitFormat .getInstance ().alias (YEAR , "y" );
358+
359+ // Add the single character ㏈ glyph as an alias to improve support of East Asian languages
360+ SimpleUnitFormat .getInstance ().alias (DECIBEL , "㏈" );
358361 }
359362
360363 private Units () {
You can’t perform that action at this time.
0 commit comments