News for hackers. Stuff that matters.
Re:Semantic Linefeeds (2012) by yakubin on Sunday January 22, 2023 @07:03AM (#34476539)
Shouldn't an em dash be surrounded with spaces on each side anyway?
Re:Semantic Linefeeds (2012) by kqr on Sunday January 22, 2023 @07:13AM (#34476601)
Not in English. The two equivalent English alternatives -- as far as I know -- are the en dash surrounded by spaces---or the em dash with no space. I actually like the look of the em dash with no space better, but for the reasons mentioned in the GP I end up using the en dash anyway.

(Another reason is that Swedish, which I also write, only has the en dash, so its nice that I can be consistent.)

Re:Semantic Linefeeds (2012) by kragen on Sunday January 22, 2023 @08:03AM (#34476954)
i've read a lot of books professionally typeset in english that either do or don't space around em dashes — used to denote pauses, in the way we are discussing here. my preference is to space around them, but i prefer using \u2009 'thin space' instead of a full word space. unfortunately hn rewrites that to a full word space.
Re:Semantic Linefeeds (2012) by chrismorgan on Sunday January 22, 2023 @09:52AM (#34477894)
I don’t think I’ve ever seen a professionally-set work using spaces around em dashes. The two popular conventions are space–en-dash–space (“a – b”) and em-dash (“a—b”). I only recall ever encountering space–em-dash–space a few times (one of which was within the last few days, and the previous was probably years ago), in amateur work. THIN SPACE would certainly make me much more amenable to it, but frankly that suggests a font problem (and I do certainly know of fonts where the em dash spacing is awful and if forced to use that font I would insert THIN SPACE (or very occasionally NARROW NO-BREAK SPACE) every time).
Re:Semantic Linefeeds (2012) by kragen on Sunday January 22, 2023 @10:23AM (#34478196)
i think space-em-dash-space was pretty common in both journals and monographs on engineering, science, and math in the 01940s to the 01970s, including some that include really excellent typesetting, though i don't have an excerpt ready to hand to post (and hn isn't really a usable medium for discussing visual things anyway)

i don't remember ever seeing it in fiction

i think of space-en-dash-space as just being an error, and i'm pretty sure i wasn't just misidentifying en dashes with spaces around them as em dashes

Re:Semantic Linefeeds (2012) by jwilk on Sunday January 22, 2023 @11:50AM (#34479265)
> 01940s to the 01970s

Out of interest, why leading zeros?

Re:Semantic Linefeeds (2012) by shanebellone on Sunday January 22, 2023 @10:08AM (#34478055)
Might the em dash convention be a byproduct of the printing press and fixed-width layouts?
Re:Semantic Linefeeds (2012) by kragen on Sunday January 22, 2023 @04:16PM (#34482315)
not in a way that is obvious to me
Re:Semantic Linefeeds (2012) by shanebellone on Tuesday January 24, 2023 @02:00PM (#34508319)
The spaced em dash occupies 10% more space.

The traditional syntax is particularly suited for newspapers who valued typographic density.

Re:Semantic Linefeeds (2012) by kragen on Tuesday January 24, 2023 @04:54PM (#34511052)
oh, i see what you mean now

but wouldn't that still be the case if you were handwriting your newspaper and xeroxing it or something

where does the printing press come in

also though i don't think fine typography is mostly determined by newspapers

Re:Semantic Linefeeds (2012) by shanebellone on Tuesday January 24, 2023 @06:52PM (#34512362)
"Em and en refer to units of typographic measurement, not to the letters M and N. (Yes, the homophony is confusing. To disambiguate, loud print shops referred to them as mutton and nut.) In a traditional metal font, the em was the vertical distance from the top of a piece of type to the bottom. The en was half the size of the em. Originally, the width of the em and en dashes corresponded to these units."

https://practicaltypography.com/hyphens-and-dashes.html

Handwriting allows one to vary the point (width) of individual letters. Printing presses do not afford that luxury.

Re:Semantic Linefeeds (2012) by kragen on Tuesday January 24, 2023 @07:45PM (#34512792)
sure, but you can still leave horizontal space around your dashes—or not

what we nowadays call 'microtypography' and think ourselves very avant-garde for employing is ubiquitous in medieval illuminated manuscripts; every line is full of subtle variations in letterforms to better fit the available space