logoalt Hacker News

divbzerotoday at 2:43 AM2 repliesview on HN

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


Replies

zahlmantoday at 4:37 AM

Man, every time I see a Norvig blog post makes me regret that I'm not Norvig.

Domenic_Stoday at 2:49 AM

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

show 1 reply