Revision as of 02:34, 3 December 2012 editPaleAqua (talk | contribs)Extended confirmed users, Pending changes reviewers5,182 edits Move link to MOS into page header← Previous edit | Latest revision as of 22:36, 19 November 2023 edit undoStephan Leeds (talk | contribs)Extended confirmed users30,524 edits →top: readability | ||
(63 intermediate revisions by 25 users not shown) | |||
Line 1: | Line 1: | ||
{{supplement|pages=]}} | {{supplement|pages=]}} | ||
This essay introduces the basics of ]s, minus signs, ]es, and ]es in one easy lesson. | |||
There are at least eight different horizontal dash-like characters of varying lengths defined in Unicode. Misplaced Pages uses four: the hyphen (sometimes called the hyphen-minus), the minus sign, the en dash, and the em dash. | |||
'''Hyphens''' are used in many ways on Misplaced Pages; see ]. They are the only short, horizontal dashlike character available on most keyboards, and are used as hyphens, minus signs, and dashes, both endash and emdash. For clarity, negative numbers are entered using an endash in newspapers, instead of a minus sign or a hyphen. This is not done in Misplaced Pages. Often a hyphen is used for a minus sign, other than in math formulas, where it is styled as an endash or emdash. | |||
'''Hyphen''' ("<code>-</code>", ]) (actually the '''hyphen-minus''' character in ASCII or Unicode character sets) are used in many ways on Misplaced Pages. They are the only short, horizontal dash-like character available as a separate key on most keyboards. They are used: | |||
In hyphenated names, such as ], a hyphen is used, as is the case in many other proper nouns, such as ], but not ]. This follows Misplaced Pages style guidelines. | |||
* in names, such as "]" and "]", | |||
* in ]s, as in "hard-boiled egg", "small-appliance industry", and "real-valued function", | |||
* for prefixes and suffixes, such as "mid-Atlantic" and "shell-like", | |||
* when prefixing a capitalized word, such as "un-Christian", | |||
* to avoid double vowels, such as "semi-independent" | |||
* when writing out fractions like "one-third" or "three-fifths" | |||
In some styles, minus signs are represented using an en dash instead of a minus sign or a hyphen. This is not done in Misplaced Pages. In math formulas a hyphen-minus codes for a minus sign, but in text <code>&minus;</code> produces the minus sign (see below). | |||
'''En dash''' ("<code>–</code>", ]) are slightly longer than hyphens. They are used: | |||
# - is a hyphen-minus (ASCII keyboard or Unicode 002D) - | |||
* in date ranges, such as 1849–1863, | |||
# ‐ is a hyphen (Unicode 2010) | |||
* to join two names in a phrase, such as the Michelson–Morley experiment, | |||
# ⁃ is a hyphen bullet (Unicode 2043)—it's probably not a good idea to use hyphen bullets for a list such as this one! | |||
* in multi-part prefixes, such as "post–World War II", although for those, either a hyphen or an en dash can be used; British publications use hyphens, and American publications use en dashes.{{dubious|date=August 2015}} | |||
⚫ | # |
||
Spaced en dashes are also used to set aside a phrase – like this – in a sentence; when this is done, it is preferred that a non-breaking space be used before the en dash and a normal one after it: <code>&nbsp;– </code>. | |||
# ‒ is a figure dash (Unicode 2012) | |||
⚫ | # & |
||
⚫ | # & |
||
# ― is a horizontal bar (Unicode 2015) | |||
<!--Source https://en.wikipedia.org/search/?title=User%3AWbm1058&diff=467811755&oldid=423955484 --> | |||
'''Em dash''' ("<code>—</code>", ]) are even longer and are used solely to set aside a phrase—like this—in a sentence. | |||
'''Endashes''' are slightly longer than hyphens and are used in date ranges and to join two names in a phrase, such as 1849–63, or the Michelson–Morley experiment, or to separate phrases – in a sentence. See ]. | |||
Em dashes and en dashes, when used to set off parentheticals, are {{em|interrupters}}, along with parentheses (round brackets) and commas;<ref>{{cite book |url=https://books.google.com/?id=E_YCCsqxuygC&pg=PA118&dq=dash |page=118 |title=English Competence Handbook |author1=Paul Kalkstein |author2=Thomas J. Regan |author3=K. Kelly Wise |publisher=iUniverse |year=2000 |isbn=9780595155873}}</ref> the principal differences are that parentheses are used to offset text of an optional or "aside" nature, commas are used to offset text that flows as an integral part of the sentence, and dashes are used to offset text in an emphasized manner. | |||
'''Emdashes''' are even longer, and are used to set aside a phrase—like this—in a sentence. See ]. A spaced hyphen - like this - can substitute for an emdash. | |||
'''Minus |
'''Minus sign''' ("<code>−</code>", ]) are available for negative numbers such as −4 but can cause difficulties in sorts and searches. | ||
== Entry of these characters == | |||
Hyphens can be used initially for all of the above, although any editor is welcome to later replace them with the more precise form. | |||
{{Anchor|Computer keys for dashes|reason=Old section title.}} | |||
{{main|Misplaced Pages:How to make dashes}} | |||
Since 2014, Misplaced Pages automatically includes the en dash, em dash, and minus characters in the "Insert" tools below the text-entry field when in editing mode. For those who have turned this feature off in their user preferences, the information below may be used to help generate these characters. | |||
Hyphens ("<code>-</code>") can be used for initial entry of an em dash, en dash, or minus sign, which will be replaced with a more precise form may be done by other subsequent editors. Disrupting Misplaced Pages to constantly complain about the consensus for the more precise forms can be annoying. | |||
Many computer devices have special ] (combinations of keys) which can be pressed together to enter various dash characters. | |||
:* On computers with ] or ] (or similar), digits on the ] can be pressed with the ] held then released: | |||
:::* Numeric keypad: {{key press|Alt|0}}{{key press|1}}{{key press|5}}{{key press|0}} for en dash "–" or {{key press|Alt|0}}{{key press|1}}{{key press|5}}{{key press|1}} for em dash "—".<ref name=WSU/> | |||
:* On computers using ]s (]), the ] can be used with hyphen key: | |||
:::* Option key: {{key press|Opt|-}} for en dash "–" or {{key press|Shift|Opt}}{{keypress|-}} for em dash "—". | |||
:* On iOS Devices, tap and hold (long press) the {{key press|-}} on-screen key to display choices for the en dash "–" and em dash "—". | |||
The four hyphen/dash-like characters used in Misplaced Pages are: | |||
# - is a hyphen-minus (ASCII 2D, Unicode 002D), normally used as a hyphen, or in math expressions as a minus sign | |||
⚫ | # – is an en dash (Unicode 2013). This can also be entered from the ''Special characters: Symbols'' bar above the text-entry field; it's between the m³ and — | ||
⚫ | # — is an em dash (Unicode 2014). This can also be entered from the ''Special characters: Symbols'' bar; it's between the – and … | ||
⚫ | # − is a minus (Unicode 2212). This can also be entered from the ''Special characters: Symbols'' bar; it's between the ± and × | ||
These characters may also be generated with character entity reference codes inserted into wikitext: | |||
* En dash: <code>&ndash;</code> a.k.a. <code>&#8211;</code> a.k.a. <code>&#x2013;</code> | |||
* Em dash: <code>&mdash;</code> a.k.a. <code>&#8212;</code> a.k.a. <code>&#x2014;</code> | |||
* Minus: <code>&minus;</code> a.k.a. <code>&#8722;</code> a.k.a. <code>&#x2212;</code> | |||
The hyphen-minus can also be generated this way, but this is rarely necessary except for technical reasons in ] development: | |||
* Hyphen minus: <code>&#45;</code> a.k.a. <code>&#x002D;</code> | |||
==See also== | |||
* ], esp. ] | |||
== References == | |||
{{Reflist|refs= | |||
<ref name="WSU"> | |||
"Typing Special Characters – Microsoft Standard English", | |||
forlang.wsu.edu, 2011, webpage: | |||
. | |||
</ref> | |||
}} | |||
] | |||
] | |||
] |
Latest revision as of 22:36, 19 November 2023
This is an explanatory essay about the Misplaced Pages:Manual of Style. This page provides additional information about concepts in the page(s) it supplements. This page is not one of Misplaced Pages's policies or guidelines as it has not been thoroughly vetted by the community. |
This essay introduces the basics of hyphens, minus signs, en dashes, and em dashes in one easy lesson.
There are at least eight different horizontal dash-like characters of varying lengths defined in Unicode. Misplaced Pages uses four: the hyphen (sometimes called the hyphen-minus), the minus sign, the en dash, and the em dash.
Hyphen ("-
", MOS:HYPHEN) (actually the hyphen-minus character in ASCII or Unicode character sets) are used in many ways on Misplaced Pages. They are the only short, horizontal dash-like character available as a separate key on most keyboards. They are used:
- in names, such as "Julia Louis-Dreyfus" and "Sainte-Ode",
- in compound modifiers, as in "hard-boiled egg", "small-appliance industry", and "real-valued function",
- for prefixes and suffixes, such as "mid-Atlantic" and "shell-like",
- when prefixing a capitalized word, such as "un-Christian",
- to avoid double vowels, such as "semi-independent"
- when writing out fractions like "one-third" or "three-fifths"
In some styles, minus signs are represented using an en dash instead of a minus sign or a hyphen. This is not done in Misplaced Pages. In math formulas a hyphen-minus codes for a minus sign, but in text −
produces the minus sign (see below).
En dash ("–
", MOS:ENDASH) are slightly longer than hyphens. They are used:
- in date ranges, such as 1849–1863,
- to join two names in a phrase, such as the Michelson–Morley experiment,
- in multi-part prefixes, such as "post–World War II", although for those, either a hyphen or an en dash can be used; British publications use hyphens, and American publications use en dashes.
Spaced en dashes are also used to set aside a phrase – like this – in a sentence; when this is done, it is preferred that a non-breaking space be used before the en dash and a normal one after it: –
.
Em dash ("—
", MOS:EMDASH) are even longer and are used solely to set aside a phrase—like this—in a sentence.
Em dashes and en dashes, when used to set off parentheticals, are interrupters, along with parentheses (round brackets) and commas; the principal differences are that parentheses are used to offset text of an optional or "aside" nature, commas are used to offset text that flows as an integral part of the sentence, and dashes are used to offset text in an emphasized manner.
Minus sign ("−
", Misplaced Pages:Manual of Style/Mathematics#Minus sign) are available for negative numbers such as −4 but can cause difficulties in sorts and searches.
Entry of these characters
Main page: Misplaced Pages:How to make dashes
Since 2014, Misplaced Pages automatically includes the en dash, em dash, and minus characters in the "Insert" tools below the text-entry field when in editing mode. For those who have turned this feature off in their user preferences, the information below may be used to help generate these characters.
Hyphens ("-
") can be used for initial entry of an em dash, en dash, or minus sign, which will be replaced with a more precise form may be done by other subsequent editors. Disrupting Misplaced Pages to constantly complain about the consensus for the more precise forms can be annoying.
Many computer devices have special key chords (combinations of keys) which can be pressed together to enter various dash characters.
- On computers with Windows XP or Windows 7 (or similar), digits on the numeric keypad can be pressed with the Alt key held then released:
- Numeric keypad: Alt+0150 for en dash "–" or Alt+0151 for em dash "—".
- On computers using Apple keyboards (Mac OS), the Option key can be used with hyphen key:
- Option key: ⌥ Opt+- for en dash "–" or ⇧ Shift+⌥ Opt- for em dash "—".
- On iOS Devices, tap and hold (long press) the - on-screen key to display choices for the en dash "–" and em dash "—".
The four hyphen/dash-like characters used in Misplaced Pages are:
- - is a hyphen-minus (ASCII 2D, Unicode 002D), normally used as a hyphen, or in math expressions as a minus sign
- – is an en dash (Unicode 2013). This can also be entered from the Special characters: Symbols bar above the text-entry field; it's between the m³ and —
- — is an em dash (Unicode 2014). This can also be entered from the Special characters: Symbols bar; it's between the – and …
- − is a minus (Unicode 2212). This can also be entered from the Special characters: Symbols bar; it's between the ± and ×
These characters may also be generated with character entity reference codes inserted into wikitext:
- En dash:
–
a.k.a.–
a.k.a.–
- Em dash:
—
a.k.a.—
a.k.a.—
- Minus:
−
a.k.a.−
a.k.a.−
The hyphen-minus can also be generated this way, but this is rarely necessary except for technical reasons in template development:
- Hyphen minus:
-
a.k.a.-
See also
- WP:Manual of Style, esp. MOS:DASH
References
- Paul Kalkstein; Thomas J. Regan; K. Kelly Wise (2000). English Competence Handbook. iUniverse. p. 118. ISBN 9780595155873.
- "Typing Special Characters – Microsoft Standard English", forlang.wsu.edu, 2011, webpage: WSU-keys.