View Single Post
Old 05-31-2020, 04:14 AM   #113
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by thosp View Post
The file in question had this, " -- " or {[space][hyphen][hyphen][space]} and changed it to "—" or (EM DASH}.

The writer meant to have a space before and after the punctuation mark, why was it changed the way it was? The proper change, in my view, would be to " – " or {[space]EN DASH][space]} as this makes the epub a better read.
If you change your "(EM/EN)-Dash Setting" to:

'--' = em dash (no en dash support)

Click image for larger version

Name:	SmartenPunctuation.-.EM.EN.Dash.Setting.png
Views:	408
Size:	4.9 KB
ID:	179611

I tested on this:

Code:
<p>This is a -- sample.</p>
and it changed to this:

Code:
<p>This is a — sample.</p>
Then you could search for (SPACE + EM DASH + SPACE):

Search:

then replace with (SPACE + EN DASH + SPACE):

Replace:

You could setup a Sigil Saved Search if you find you're doing this correction often. Then you could just run SmartenPunctuation, then the Saved Search right after.

Quote:
Originally Posted by DiapDealer View Post
You can easily turn off dash smartening altogether in the plugin's config section if you want to handle your own non-standard manual conversion of the double-dashes. But I'm not changing the default behavior of the plugin's dash smartening to something non-standard.
Agreed. I always keep the options for dashes + ellipses off, then correct that stuff on my own.

But maybe how you have that "(no en dash support)", you can have the opposite:

' -- ' = spaced en dash (no em dash support)

Note: Just tested in LibreOffice / Word, their AutoCorrect by default changes:

"--" -> en dash
" -- " -> spaced en dash
"sample-- " (two hyphens + space) -> unspaced em dash

Quote:
Originally Posted by DiapDealer View Post
Every style guide I know of (with the exception of the Associated Press style guide) states that there should be no spaces between an em dash and the adjacent words.
On parenthetical expressions, also see:

https://en.wikipedia.org/wiki/Dash#P...sentence_level

And I agree with AlanHK. From what I've read over the years:

The spaced EN DASH seems to be used more in British publications (and newspapers).

The EM DASH tends to be used more in American.

Spacing Side Note: On spacing around em dashes... there's "open-set" and "close-set":

Open-set = Both sides use hair or thin space (or, disgustingly, normal spaces)
Close-set = No space on either side

See Robert Bringhurst, "Elements of Typographic Style", Chapter 5:

Quote:
5.2 DASHES, SLASHES & DOTS

5.2.1 Use spaced en dashes – rather than close-set em dashes or spaced hyphens – to set off phrases.


Standard computer keyboards and typewriters include only one dash: the hyphen. Any normal font of text type, either roman or italic, includes at least three. These are the hyphen and two sizes of long dash: the en dash – which is one en (half an em, M/2) in width – and the em dash-which is one em (two ens) wide. Many fonts also include a subtraction sign, which may or may not be the same length and weight as the en dash, and some include a figure dash (equal to the width of a standard numeral). The three-quarter em dash, and the three-to-em dash, which is one third of an em (M/3) in length, are often missing but perfectly easy to make.

In typescript, a double hyphen (--) is often used for a long dash. Double hyphens in a typeset document are a sure sign that the type was set by a typist, not a typographer. A typographer will use an em dash, three-quarter em, or en dash, depending on context or personal style. The em dash is the nineteenth-century standard, still prescribed in many editorial style books, but the em dash is too long for use with the best text faces. Like the oversized space between sentences, it belongs to the padded and corseted aesthetic of Victorian typography.

Used as a phrase marker – thus – the en dash is set with a normal word space either side.

Last edited by Tex2002ans; 05-31-2020 at 04:20 AM.
Tex2002ans is offline   Reply With Quote