4 ms·
Also, this is locale specific. Here in Germany we use dots instead of commas for that.
by pojntfx 7y ago
Also, this is locale specific. Here in Germany we use dots instead of commas for that.
- jfk13 7y agoFortunately, OpenType fonts can have locale-specific behavior, so as long as your content is appropriately lang-tagged, that shouldn't be a problem. (Though I still don't think doing this in the font is a good idea, in general.)
- Someone 7y agoSo, one could have a font that, say, hides the flag of Taiwan in a Chinese locale? (Yes, there are multiple ‘Chinese’ locales: zh-CN Chinese (Simplified, PRC) zh-SG Chinese (Simplified, Singapore) zh-TW Chinese (Traditional, Taiwan) zh-HK Chinese (Traditional, Hong Kong S.A.R.) zh-MO Chinese (Traditional, Macao S.A.R.) )
- yorwba 7y agoYes, but OpenType only supports 4 different Chinese locales (Chinese, Hong Kong SAR 'ZHH', Chinese Phonetic 'ZHP', Chinese Simplified 'ZHS', Chinese Traditional 'ZHT') https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags https://docs.microsoft.com/en-us/typography/opentype/spec/la... ZHP seems like it's unlikely to be used in the wild.
- weinzierl 7y agoNot just Germany. Comma vs dot is just a big mess with some countries using both[1]. Even in Germany, which is decimal comma country, the dot is ubiquitous in science and technology publications. Best thing is to stick with dot and us neither comma nor dot as thousands separator but a thin, fixed space. This also what NIST recommends[2]: > #16 Digit spacing > The digits of numerical values having more than four digits on either side of the decimal marker are separated into groups of three using a thin, fixed space counting from both the left and right of the decimal marker. Commas are not used to separate digits into groups of three. [1] https://en.wikipedia.org/wiki/Decimal_separator#/media/File:DecimalSeparator.svg https://en.wikipedia.org/wiki/Decimal_separator#/media/File:... [2] https://physics.nist.gov/cuu/Units/checklist.html https://physics.nist.gov/cuu/Units/checklist.html
- Mikhail_Edoshin 7y agoThere are much more variants. E.g. Russia uses space for thousands and decimal comma. And I may be mistaken, but I believe in Japan the grouping is by four digits, not by three.