Hyphen-minus

From Hidden Wiki
Revision as of 16:53, 7 April 2019 by Doremi (talk | contribs) (Created page with "{{short description|Character primarily used to represent a hyphen}} {{Redirect|-}} {{Use dmy dates|date=June 2017}} {{Punctuation marks|-}}__NOTOC__ The '''hyphen-minus''' ('...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Redirect Template:Use dmy dates Template:Punctuation marks The hyphen-minus (-) is a character used in digital documents and computing to represent a hyphen (‐) or a minus sign (−).[1]

It is present in Unicode as code point Template:Nobr; it is also in ASCII with the same value.

Description

File:Fünfundvierzig-nc-.svg
The glyph for the hyphen-minus is not as wide as that of the plus sign.

The use of a single character for both hyphen and minus was a compromise made in the early days of fixed-width typewriters and computer displays.[2] However, in proper typesetting and graphic design, there are distinct characters for hyphens, dashes, and the minus sign. Usage of the hyphen-minus nonetheless persists in many contexts, as it is well-known, easy to enter on keyboards, and in the same location in all common character sets.

As the minus sign

Most programming languages, restricting themselves to 7-bit ASCII, use the hyphen-minus, rather than the Unicode character Template:Unichar, for denoting subtraction and negative numbers.[3][4]

The minus sign is nominally the same width as the plus sign. In proportional typefaces it is longer than a hyphen. During typesetting a word wrap may also occur following a hyphen-minus, unlike the minus sign proper which is treated as a mathematical symbol. These differences make "-" as a substitute for minus signs undesirable in professional typography.

Other uses

On typewriters, it was conventional to use a pair of hyphens to represent an em dash, and this convention is still sometimes used in computer text.

The hyphen-minus is often used to represent an en dash, which may be used to indicate ranges (such as a time range of "2000–2004"), direction (as in "The Los Angeles–London flight"), and other cases of connection. The en dash is normally longer (the width of a letter "n") than a hyphen, though in a fixed-pitch or typewriter font there is no difference. The hyphen connects closely, the en dash less closely, while the em dash (the width of a letter "m") separates.[5]Template:Failed verification.

See also

References

1 }}
     | references-column-width 
     | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 
   | {{#iferror: {{#ifexpr: 1 > 1 }}
     | Template:Column-width
     | Template:Column-count }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">

Template:Typography terms