Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Tuesday March 24, 2020 @10:26PM
(#22681450)
TIL U+2103 DEGREE CELSIUS and U+2109 DEGREE FAHRENHEIT.
[ Parent
| on HN ]
Re:Stanford researchers confirm N95 masks can be sterilized ...
by basilgohar on Tuesday March 24, 2020 @10:53PM
(#22681575)
It took me a few passes to realize you were not just being comically excited and typing in all caps, but rather, everything you typed is rather pedantically and accurately capitalized.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Tuesday March 24, 2020 @11:14PM
(#22681657)
I just copied the DuckDuckGo Unicode Instant Answer (https://duck.co/ia/view/unicode) ;)
Re:Stanford researchers confirm N95 masks can be sterilized ...
by bentcorner on Tuesday March 24, 2020 @10:53PM
(#22681580)
On Windows ALT+248 (on keypad) makes a degree symbol: °
IMO it looks better than the single glyph. (°C °F vs ℃ ℉)
Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Tuesday March 24, 2020 @11:11PM
(#22681646)
Unicode agrees:
> Several letterlike symbols are used to indicate units. In most cases, however, such as for SI units (Système International), the use of regular letters or other symbols is preferred.
> In normal use, it is better to represent degrees Celsius “°C” with a sequence of U+00B0 degree sign + U+0043 latin capital letter c, rather than U+2103 degree celsius. For searching, treat these two sequences as identical. Similarly, the sequence U+00B0 degree sign + U+0046 latin capital letter f is preferred over U+2109 degree fahrenheit, and those two sequences should be treated as identical for searching.
(From https://www.unicode.org/versions/Unicode13.0.0/ch22.pdf)
Re:Stanford researchers confirm N95 masks can be sterilized ...
by lone_haxx0r on Wednesday March 25, 2020 @03:56AM
(#22682748)
The why include the symbols in the first place? Just in case?
Re:Stanford researchers confirm N95 masks can be sterilized ...
by yorwba on Wednesday March 25, 2020 @04:24AM
(#22682866)
It's most likely for round-trip compatibility with another encoding. There are many Unicode codepoints that simply represent combinations of other codepoints. If you don't care about round-tripping, just normalize everything to NFKC or NFKD (the difference being that accented letters like á are one codepoint in NFKC and two codepoints for the base letter and combining mark in NFKD).
Re:Stanford researchers confirm N95 masks can be sterilized ...
by bmn__ on Wednesday March 25, 2020 @04:18AM
(#22682841)
For lossless round-tripping with legacy character sets. This is one explicit design goal of Unicode.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by rkagerer on Wednesday March 25, 2020 @04:10AM
(#22682808)
So we can make search that tiny bit more complicated.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by anonsubmit2671 on Tuesday March 24, 2020 @11:40PM
(#22681757)
Does that not appear correctly on your device? Which would that be?
Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Tuesday March 24, 2020 @11:58PM
(#22681825)
No, it does (a bit squashed, but it's perfectly readable). I didn't know there was as specific Unicode character for those.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by lultimouomo on Wednesday March 25, 2020 @03:24AM
(#22682623)
As a rule you can just assume there is, no matter the situation.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by dionian on Tuesday March 24, 2020 @10:34PM
(#22681494)
if you're on a Mac, you can use alt-0 for a degrees symbol too
Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Tuesday March 24, 2020 @10:39PM
(#22681519)
That's actually U+00BA MASCULINE ORDINAL INDICATOR. You want U+00B0 DEGREE SIGN, which is ⌥⇧8.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by doctorhandshake on Tuesday March 24, 2020 @11:03PM
(#22681604)
Upvoted as one of the most HN comments I’ve ever seen.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by divbzero on Wednesday March 25, 2020 @12:01AM
(#22681835)
I’m generally amused that a top thread for an N95 sterilization post is a Unicode discussion.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by malandrew on Wednesday March 25, 2020 @02:13AM
(#22682370)
What’s the feminine ordinal indicator. I thought it was a degree sign because as a Portuguese speaker I’ve never noticed the feminine ordinal indicator as an easily accessible option. Are both easily accessible on the iOS keyboard?
Re:Stanford researchers confirm N95 masks can be sterilized ...
by saagarjha on Wednesday March 25, 2020 @03:22AM
(#22682618)
U+00AA FEMININE ORDINAL INDICATOR is ª, accessible via ⌥9 on macOS.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by lone_haxx0r on Wednesday March 25, 2020 @04:01AM
(#22682768)
I just realized I have used the ordinal symbol many times when I should have used the degree sign. Why didn't someone tell me? Oh, I've been making an idiot out of myself.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by hanche on Wednesday March 25, 2020 @11:13AM
(#22685311)
That depends on the keyboard layout. On the Norwegian keyboard for example, ⌥⇧Q produces the degree symbol, whereas ⌥⇧8 produces U+007B LEFT CURLY BRACKET.
Re:Stanford researchers confirm N95 masks can be sterilized ...
by brian_cunnie on Wednesday March 25, 2020 @01:34PM
(#22686705)
You totally blew my mind—I've been using the wrong one for years. Henceforth, ⌥⇧8. Thank you.