Eric Shade
2011-12-31 00:18:11 UTC
The issue of using -- for an en-dash (when --smart is enabled) seems
not to have been conclusively resolved, so I'd like to reopen it.
Pandoc currently renders both -- and --- as an em-dash, and tries to
be smart about converting some uses of the hyphen to an en-dash.
I'm strongly in favor of using -- for an en-dash. But I'm not alone.
History favors the change. John Gruber, creator of Markdown, defined a
SmartyPants extension in 2004 that uses -- for an en-dash. TeX has
been using this convention since 1978.
Precision favors the change. Careful writers need to use both kinds of
dashes. Pandoc doesn't (and really can't) correctly convert *all* uses
of hyphens to en-dashes where appropriate. Pandoc handles numeric
ranges like 15-20 correctly, mishandles numeric dates like 2011-12-31
(where it incorrectly replaces the hyphens with en-dashes), and
mishandles phrases like "pro-Emacs-anti-Vim debate", where the second
hyphen should be an en-dash. Careful writers have no easy way around
this.
Coding theory favors the change. The -- and --- sequences are two of
only a handful that don't "look like markup", thus preserving the
spirit of Markdown. To use *both* of them to mean the same thing is
wasteful. Since we're all agreed that --- means an em-dash, that
leaves -- as the only natural choice for an en-dash.
I18n favors the change. Different languages have different conventions
about dashes, and some don't use the em-dash at all. Allowing writers
to choose for themselves solves the problem.
Time favors the change. The longer the wait to implement the change,
the larger the specter of "backwards compatibility" looms. (If that's
an issue, I suggest an --old-smart option that leaves -- as em-dash.)
The only serious argument *against* using -- as an en-dash seems to be
that some casual writers might be confused, because they'll write --
and expect an em-dash. I don't understand this argument. We're talking
about a group of people who (1) are sophisticated enough to know about
em-dashes, (2) are observant enough to see that the the en-dash they
get from --, though longer than a hyphen, is not long enough to be a
proper em-dash, yet (3) have never heard of en-dashes. How large can
this group be? And is it larger than the group of people who *do* know
the difference and want natural ways to write both kinds of dashes? I
suspect that the Pandoc community is quite sophisticated on the whole,
because most casual writers would never leave the comfort of a WYSIWYG
editor.
(The argument that --- is too long and troublesome to type for an em-
dash is hard to take seriously.)
not to have been conclusively resolved, so I'd like to reopen it.
Pandoc currently renders both -- and --- as an em-dash, and tries to
be smart about converting some uses of the hyphen to an en-dash.
I'm strongly in favor of using -- for an en-dash. But I'm not alone.
History favors the change. John Gruber, creator of Markdown, defined a
SmartyPants extension in 2004 that uses -- for an en-dash. TeX has
been using this convention since 1978.
Precision favors the change. Careful writers need to use both kinds of
dashes. Pandoc doesn't (and really can't) correctly convert *all* uses
of hyphens to en-dashes where appropriate. Pandoc handles numeric
ranges like 15-20 correctly, mishandles numeric dates like 2011-12-31
(where it incorrectly replaces the hyphens with en-dashes), and
mishandles phrases like "pro-Emacs-anti-Vim debate", where the second
hyphen should be an en-dash. Careful writers have no easy way around
this.
Coding theory favors the change. The -- and --- sequences are two of
only a handful that don't "look like markup", thus preserving the
spirit of Markdown. To use *both* of them to mean the same thing is
wasteful. Since we're all agreed that --- means an em-dash, that
leaves -- as the only natural choice for an en-dash.
I18n favors the change. Different languages have different conventions
about dashes, and some don't use the em-dash at all. Allowing writers
to choose for themselves solves the problem.
Time favors the change. The longer the wait to implement the change,
the larger the specter of "backwards compatibility" looms. (If that's
an issue, I suggest an --old-smart option that leaves -- as em-dash.)
The only serious argument *against* using -- as an en-dash seems to be
that some casual writers might be confused, because they'll write --
and expect an em-dash. I don't understand this argument. We're talking
about a group of people who (1) are sophisticated enough to know about
em-dashes, (2) are observant enough to see that the the en-dash they
get from --, though longer than a hyphen, is not long enough to be a
proper em-dash, yet (3) have never heard of en-dashes. How large can
this group be? And is it larger than the group of people who *do* know
the difference and want natural ways to write both kinds of dashes? I
suspect that the Pandoc community is quite sophisticated on the whole,
because most casual writers would never leave the comfort of a WYSIWYG
editor.
(The argument that --- is too long and troublesome to type for an em-
dash is hard to take seriously.)