create account

A Proper Em Dash by dbooster

View this thread on: hive.blogpeakd.comecency.com
· @dbooster · (edited)
$15.67
A Proper Em Dash
![492319E5-16CC-4759-B75C-E6CC76747C3D.png](https://files.peakd.com/file/peakd-hive/dbooster/23xp4cW34raEacMvNo5xEdozs3qgdPDQ9NysFToFWSJ43xU9gjk8cKNHwtyVKw2GcmTPJ.png)

Being a fan of good typography and proper text styling isn’t the easiest thing in the world on Hive. 

Raw HTML has had basic typography and style support for a while. It has actually been losing support for this since the advent of CSS. Unfortunately Hive doesn’t support CSS so we can’t use it in our posts. Even so, what HTML supports is usually still enough. 

Problem is... it can be ugly. Case in point, the em dash (—). In American English, we use the em dash primarily when there is some kind of break in the sentence. This may be where we would use a semicolon or colon in more formal writing, where we are setting off a side statement with two em dashes, or it could be for effect — to give a bit more pause than a simple comma might. 

In the two most common style guides for US English — AP and Chicago — it is suggested to include a hair space on either side of an em dash. This is primarily for visual appeal, so we don’t get what otherwise might look like a compound word with a longer than usual hyphen. 

In HTML, we can write an em dash with one of the following

     —
     —
     
We can then write a hair space with one of the following

      
      
     
In both of those, the named version of the code might be slightly easier to read, but both are an eyesore. So if I want to write a proper em dash with a hair space on either side, I have to write:

      — 
     
So my writing turns into:

     I went to the store and guess who I saw — Bob and his wife, with a new kid. 
     
That would produce “I went to the store and guess who I saw — Bob and his wife, with a new kid.”   

I guess that’s kind of okay. We could write out our entry in a text app and then do a mass find-and-replace to get the proper style code in there. But then if we ever went back to edit the post, we’d have to deal with the code directly. 

Luckily, Unicode support is pretty good across the board these days — amazingly, at Hive too! Well, kind of[^1] — and so we can use it directly without fear of it being stripped out or altered in some way. 

[^1]: Peakd maintains the Unicode hair spaces, but some of the various portals for second layer tokens and communities strip them out. *Le sigh*...

Inserting an em dash directly as we write is easy enough. On Mac, it is the simple keyboard combination Option-Shift-Hyphen. On Windows, it’s a bit harder, but still not bad. Hold Alt and type 0151. Microsoft Word makes it even easier by automatically replacing -- with an em dash. 

But what about the hair spaces on either side? There is no easy keyboard combination to place them. 

I created a text expansion using Keyboard Maestro. I’ve talked about text expansions before — they are small bits of text that are automatically replaced by other bits of text. Microsoft Word replacing -- with — is a perfect example.

My text expansion replaces an em dash with an em dash surrounded by hair spaces. Depending on your system font, it may be hard to see, but compare:

A simple  typographical element—an em dash.
A simple  typographical element — an em dash.

<center>![][divider]</center>

Was that too much work for something 99% of the people on Hive won’t even notice? Maybe. But writing this post took longer than making that text expansion — and now, every time I hit publish, I’ll know my posts look just a little bit better.

[Oh, this isn’t the only finicky styling I do of my posts. The well-trained eye might notice more.]

[divider]: http://laspina.org/images/misc/hive_divider.png
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 331 others
properties (23)
authordbooster
permlinka-proper-em-dash
categoryhive-199275
json_metadata{"app":"peakd/2025.4.6","format":"markdown","image":["https://files.peakd.com/file/peakd-hive/dbooster/23xp4cW34raEacMvNo5xEdozs3qgdPDQ9NysFToFWSJ43xU9gjk8cKNHwtyVKw2GcmTPJ.png","http://laspina.org/images/misc/hive_divider.png"],"tags":["typography","thealliance","pimp","creativecoin","bbh","neoxian","archon","proofofbrain","cent","indiaunited"],"users":[]}
created2025-05-03 00:11:00
last_update2025-05-03 00:37:18
depth0
children11
last_payout2025-05-10 00:11:00
cashout_time1969-12-31 23:59:59
total_payout_value7.818 HBD
curator_payout_value7.851 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,729
author_reputation1,036,923,593,858,796
root_title"A Proper Em Dash"
beneficiaries
0.
accounthive-199275
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,474,130
net_rshares47,482,531,155,687
author_curate_reward""
vote details (395)
@bozz ·
$0.05
I always called it a hyphen.
👍  
properties (23)
authorbozz
permlinkre-dbooster-202552t223334706z
categoryhive-199275
json_metadata{"type":"comment","tags":["hive-199275","typography","thealliance","pimp","creativecoin","bbh","neoxian","archon","proofofbrain","cent","indiaunited"],"app":"ecency/3.3.2-mobile","format":"markdown+html"}
created2025-05-03 02:33:33
last_update2025-05-03 02:33:33
depth1
children4
last_payout2025-05-10 02:33:33
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation2,283,798,352,901,984
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,475,606
net_rshares159,590,382,979
author_curate_reward""
vote details (1)
@dbooster ·
$0.03
Most people probably do 😃 I think I called it "a long hyphen" before I got more into typography and learned its real name and function. 
👍  
properties (23)
authordbooster
permlinkre-bozz-svosqc
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6"}
created2025-05-03 13:13:24
last_update2025-05-03 13:13:24
depth2
children1
last_payout2025-05-10 13:13:24
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.017 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length136
author_reputation1,036,923,593,858,796
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,482,998
net_rshares100,927,431,686
author_curate_reward""
vote details (1)
@bozz ·
$0.05
Interesting!
👍  
properties (23)
authorbozz
permlinkre-dbooster-svrdwo
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-05-04 22:46:00
last_update2025-05-04 22:46:00
depth3
children0
last_payout2025-05-11 22:46:00
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.025 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation2,283,798,352,901,984
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,514,089
net_rshares139,486,375,705
author_curate_reward""
vote details (1)
@jacobtothe ·
$0.04
There are several similar but distinct marks: hyphen, dash, en-dash, and em-dash. The last two are so named because they are about the lengths of the letters 'n' and 'm,' respectively. Most word processors nowadays use the same key for each, and automatically correct the length contextually.
👍  , ,
properties (23)
authorjacobtothe
permlinkre-bozz-svr57b
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6"}
created2025-05-04 19:37:57
last_update2025-05-04 19:37:57
depth2
children1
last_payout2025-05-11 19:37:57
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length292
author_reputation568,545,716,293,678
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,510,832
net_rshares105,532,859,751
author_curate_reward""
vote details (3)
@bozz ·
Interesting. I didn't know that. I think I know what you are talking about the autocorrect feature.
👍  
properties (23)
authorbozz
permlinkre-jacobtothe-svrdld
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-05-04 22:39:15
last_update2025-05-04 22:39:15
depth3
children0
last_payout2025-05-11 22:39:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length99
author_reputation2,283,798,352,901,984
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,514,001
net_rshares0
author_curate_reward""
vote details (1)
@jacobtothe ·
$0.05
I saw your comment on @Riverflows' post, and had to see if this post had actually been published by now. I see it has. Yes, an emdash is sometimes used as a parenthetical tool that is visually less disruptive, but also as a way to splice sentences and clauses without a comma. I mainly use it was a tool for attributing quotes, and I've trained myself to use the alt+0151 method on a WIndows machine with a full number pad keyboard. Like this:

> I've trained myself to use the alt+0151 method on a WIndows machine with a full number pad keyboard.
—me, just above this bit
👍  ,
properties (23)
authorjacobtothe
permlinkre-dbooster-svr53y
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6","image":[],"users":["riverflows"]}
created2025-05-04 19:35:57
last_update2025-05-04 19:35:57
depth1
children1
last_payout2025-05-11 19:35:57
cashout_time1969-12-31 23:59:59
total_payout_value0.025 HBD
curator_payout_value0.025 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length572
author_reputation568,545,716,293,678
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,510,789
net_rshares142,858,688,863
author_curate_reward""
vote details (2)
@dbooster ·
$0.09
Ah yes, I didn't mention using it for quotes. A really useful punctuation mark!
👍  
properties (23)
authordbooster
permlinkre-jacobtothe-svweqz
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6"}
created2025-05-07 15:52:12
last_update2025-05-07 15:52:12
depth2
children0
last_payout2025-05-14 15:52:12
cashout_time1969-12-31 23:59:59
total_payout_value0.044 HBD
curator_payout_value0.045 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation1,036,923,593,858,796
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,580,180
net_rshares246,754,778,758
author_curate_reward""
vote details (1)
@ssg-community ·
You received an upvote of 90% from Precious the Silver Mermaid!

Please remember to contribute great content to the #SilverGoldStackers tag to create another Precious Gem.
properties (22)
authorssg-community
permlinkdbooster-ssg-community-20250503t001558293z
categoryhive-199275
json_metadata{"app":"precious/2.0"}
created2025-05-03 00:15:57
last_update2025-05-03 00:15:57
depth1
children0
last_payout2025-05-10 00:15:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length171
author_reputation94,495,024,675,532
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,474,184
net_rshares0
@thekittygirl ·
$0.36
I usually put a "non-breaking space" before the mdash. Otherwise, you might get something that looks a bit like this:

<blockquote><em>There are some good people on Hive<br>— such as dbooster and enginewitty.</em></blockquote>

But with a "non-breaking space" (`&nbsp;`) before the mdash code (`&nbsp;&mdash;`), the mdash will never appear at the beginning of a line after a line-break:

<blockquote><em>There are some good people on Hive —<br>such as dbooster and enginewitty.</em></blockquote>

I love the <b>mdash</b> and the <b>ndash</b>, too. I also wrote about them in my blog maybe seven years ago. So, <em>"Kudos!"</em> to you for doing the same! 😃
👍  , ,
👎  
properties (23)
authorthekittygirl
permlinkre-dbooster-svp5xb
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-05-03 17:58:24
last_update2025-05-03 17:58:24
depth1
children2
last_payout2025-05-10 17:58:24
cashout_time1969-12-31 23:59:59
total_payout_value0.181 HBD
curator_payout_value0.181 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length656
author_reputation238,154,027,024,072
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,489,507
net_rshares1,051,390,495,245
author_curate_reward""
vote details (4)
@dbooster ·
I hadn't even thought of that case. Hmm... is there a non-breaking hairspace in html code? I'll have to check on that!
properties (22)
authordbooster
permlinkre-thekittygirl-svwesl
categoryhive-199275
json_metadata{"tags":["hive-199275"],"app":"peakd/2025.4.6"}
created2025-05-07 15:53:09
last_update2025-05-07 15:53:09
depth2
children0
last_payout2025-05-14 15:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length118
author_reputation1,036,923,593,858,796
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,580,200
net_rshares0
@topcomment ·
<center>
**Your reply is upvoted by [@topcomment](https://peakd.com/@topcomment); a manual curation service that rewards meaningful and engaging comments.**
<center>
**[More Info](https://peakd.com/hive-148441/@topcomment/rewarding-meaningful-comments-with-topcomment) - [Support us!](https://peakd.com/hive/@topcomment/support-topcomment-a-delegation-and-earn-80percent-curation-rewards) - [Reports](https://peakd.com/created/topcommentreport) - [Discord Channel](https://discord.gg/u7ebA2QKCd)**
</center>
[![image.png](https://files.peakd.com/file/peakd-hive/topcomment/EpGRgMJ92JzvktbWphJhBiKrsNYoqLrXvTGH5yP9offkMeLLFZ7PrCbT1T4SfMDC5NS.png)](https://peakd.com/@topcomment)<hr><center><b>Curated by <a href="/@friendlymoose">friendlymoose</a></b></center>
properties (22)
authortopcomment
permlinkre-thekittygirl-1746309003
categoryhive-199275
json_metadata"{"tags": ["hive-199275"], "app": "HiveDiscoMod"}"
created2025-05-03 21:50:03
last_update2025-05-03 21:50:03
depth2
children0
last_payout2025-05-10 21:50:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length759
author_reputation7,862,075,640,306
root_title"A Proper Em Dash"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,492,888
net_rshares0