3 ms·
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 N
by divbzero 7mo 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 https://norvig.com/spell-correct.html
- Domenic_S 7mo agoYep, 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 https://en.wikipedia.org/wiki/Dash
- divbzero 7mo agoOh 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 (--).
- zahlman 7mo agoMan, every time I see a Norvig blog post makes me regret that I'm not Norvig.
- analog31 7mo agoThis could be an age thing. I’m 62. I didn’t know there was such a thing as an em dash until I was nearly finishing grad school. My buddy had an Apple Mac and was up to date on typography, and told me about em dashes. I ignored him and have continued to use double hyphens — all the way up to this point where my iPad seems to convert them into em dashes.