11 ms·
Additional notes: * In my experience, the hyphen is usually very short in most fonts, the en dash is significantly longer, and the em dash can be much less tha
by o11c 3y ago
Additional notes:
* In my experience, the hyphen is usually very short in most fonts, the en dash is significantly longer, and the em dash can be much less than double the en dash (some of this may be a result of poor font design though. Monospace fonts have it rough!).
* It's widely recommended to avoid writing U+2010 and just use U+002D for hyphens. Hyphens are by far the most common of these punctuation symbols, so it's ludicrous that `man` pages to map them by default; most man pages will never want any kind of dash.
* Soft hyphen support sucks.
* For different reasons, it's rare to manually write U+2212, since you should generally tell your typesetting engine to switch to math mode (which also takes care of inserting the right obscure kinds of spaces).
* En dash is also used as a higher-level hyphen, when the inputs are already compound (not necessarily with hyphens!).
* En dash with spaces around it is an alternate style equivalent to em dash without spaces, for uses like a comma/colon/reverse-colon/parenthesis. A given work should only use one for consistency. In casually written text, space-asciidash-space is almost always intended as an en dash.
* Em dash is also the thing to use for interruption; there are several subcases here. This is the only time an em dash can potentially touch a space, though except for self-interruption they're generally inside quotes so won't actually.
* When there's a parenthetical interruption by the narrator, the em dash goes outside the quotes (“Foo”—bar—“baz”).
* Em dashes are also used for attribution after a quote, or for signatures. This is supposed to always be the start of a line, but if you're sloppy I guess it might be preceded by a space here too.
* U+2012 figure dash is probably the only other dash worth knowing; use it with digits. There's also a "figure space" you should use for monospace-like padding in a non-monospace font.
- wwalexander 3y ago> Em dashes are also used for attribution after a quote I believe the correct code point for quotation attribution is U+2015 HORIZONTAL BAR: > The Unicode standard introduced a separate character U+2015 ― HORIZONTAL BAR to be used as a quotation dash. It may be the same length as an em-dash, which is often used instead. Some software will insert a line break after an em-dash, but not after a quotation dash. ― https://en.m.wikipedia.org/wiki/Quotation_mark#Quotation_dash https://en.m.wikipedia.org/wiki/Quotation_mark#Quotation_das...
- o11c 3y agoI was talking about attribution, not obscure (apparently standard in some languages, but not in English) quote styles. Attribution (including signatures) is always an actual em dash. —o11c
- wwalexander 3y agoI don’t know what you mean by “obscure quote styles”. Did you read the link? You’ll see that it includes > Em-dash, an alternative to the quotation dash You confidently asserted the em-dash as the correct choice for quotation attribution which, if not outright incorrect, is certainly not the most or the only canonical choice. Nothing obscure in style about it!
- LegionMammal978 3y agoThe point is that a "quotation dash" (i.e., a dash that precedes a quotation, used in place of or accompanying quotation marks in many languages, as your link explains) is not the same thing as the dash used for quotation attributions. An em-dash is an alternative to a proper quotation dash when used to precede a quotation, but is generally itself considered the proper dash for attribution [0]. [0] https://en.wikipedia.org/wiki/Dash#Attribution_of_quote_source https://en.wikipedia.org/wiki/Dash#Attribution_of_quote_sour...
- deleted 3y ago[deleted]
- wwalexander 3y agoI stand corrected!
- deleted 3y ago[deleted]