Comment by divbzero
6 hours ago
I’ve never seen anyone intentionally render em dash (—) as two hyphens (--). The code OP used to modify Roboto is surprisingly short, almost as concise as the Norvig spellchecker that OP references. https://norvig.com/spell-correct.html
Man, every time I see a Norvig blog post makes me regret that I'm not Norvig.
Yep, I've been writing it that way forever, it just tends to get autocorrected.
> In informal contexts, a hyphen-minus (-) is often used as a substitute for an en dash, as is a pair of hyphen-minuses (--) for an em dash, because the hyphen-minus symbol is readily available on most keyboards. The autocorrection facility of word-processing software often corrects these to the typographically correct form of dash. - https://en.wikipedia.org/wiki/Dash
Oh yes, typing two hyphens (--) to represent an em dash (—) is something I’ve definitely seen and used. I’ve just never seen anyone type an em dash (—) but display it as two hyphens (--).