ChHecker / unify

Format numbers, units, and ranges in Typst correctly.
MIT License
23 stars 17 forks source link

Space before temperature units #21

Closed linux-user36 closed 5 months ago

linux-user36 commented 6 months ago

Typically, the only units you don't use spaces before are a lone-standing degree symbol and primes. This means there should be one if the unit is "°C", "°F" etc., since the "°" has a "suffix" (see e.g. [https://german.stackexchange.com/a/322]).

ilyapopov commented 6 months ago

See also paragraph 5.4.3 in SI Brochure:

This rule means that the symbol °C for the degree Celsius is preceded by a space when one expresses values of Celsius temperature t

ChHecker commented 6 months ago

That's interesting, I didn't know that. Ergo, add the space before temperature units back, but keep it removed for angles, correct?