fbpx
Wikipedia

Hyphen-minus

The hyphen-minus - is the most commonly used type of hyphen, widely used in digital documents. In ASCII or on most keyboards it is the only character that resembles a minus sign or a dash so it is also used for these.[1] The name "hyphen-minus" derives from the original ASCII standard, where it was called "hyphen (minus)".[2][3] The character is referred to as a "hyphen", a "minus sign", or a "dash" according to the context where it is being used.

-
Hyphen-minus
In UnicodeU+002D - HYPHEN-MINUS
Different from
Different fromU+2010 HYPHEN

U+2011 NON-BREAKING HYPHEN
U+2212 MINUS SIGN
U+2013 EN DASH

U+2014 EM DASH

Description

-+
-+
hyphen-minus, plus, and minus signs
in proportional and monospaced fonts

In early monospaced font typewriters and character encodings, a single key/code was almost always used for hyphen, minus, various dashes, and strikethrough, since they all have a roughly similar appearance. The current Unicode Standard specifies distinct characters for a number of different dashes, an unambiguous minus sign ("Unicode minus") at code point U+2212, and various types of hyphen including the unambiguous "Unicode hyphen" at U+2010 and the hyphen-minus at U+002D. When a hyphen is called for, the hyphen-minus is a common choice as it is well known, easy to enter on keyboards, and still the only form recognised by many data formats and computer languages. Though the Unicode Standard states that the U+2010 hyphen is "preferred" over the hyphen-minus,[4] the standard itself uses the hyphen-minus as its hyphen character.[5]

In most modern fonts, the hyphen-minus is either identical or very similar to the "Unicode hyphen".[6][a]

In mathematical texts that include the plus sign, use of the hyphen-minus as a minus sign typically results in an unattractive appearance. Unlike the Unicode minus sign, the hyphen-minus is generally smaller and at a different height than the horizontal line in the plus sign; see the image.[b]

Many word processors will word wrap at a hyphen-minus, but not after the "Unicode hyphen" sign.[citation needed]

Uses

Typing

This character is typed when a hyphen or a minus sign is wanted. Based on old typewriter conventions, it is common to use a pair -- to represent an em dash ,[7][8] and to put spaces around it  -  to represent a spaced en dash  – .[citation needed] Some word processors automatically convert these to the correct dash. The character can also be typed multiple times to simulate a horizontal line (though in most cases, repeated entry of the underscore will produce a solid line). Alternating the hyphen-minus with spaces produces a "dashed" line, often to indicate where paper is to be cut. On a typewriter, over-striking a section of text with this is used for strikethrough.

Programming languages

Most programming languages use the hyphen-minus for denoting subtraction and negation.[9][10] It is almost never used to indicate a range, due to ambiguity with subtraction. Generally other characters, such as the Unicode U+2212 MINUS SIGN are not recognized.[citation needed]

In some programming languages (for example MySQL) -- (two hyphen-minus) mark the beginning of a comment. It can be used to start the signature block in Usenet news system. YAML uses --- (three hyphen-minuses) to end a section.

Command line

The hyphen-minus character is often used when specifying command-line options, a convention popularized by Unix. Examples of the "short" form are -R or -q. A user can specify both by using -Rq. Some implementations allow two hyphen-minuses to specify "long" option names as --recursive or --quiet. These are easier to understand when reading commands (some software does not care about the number of hyphen-minuses, and either does not allow combinations of single-letter options, or requires the user to rearrange them, so they do not match a long option). A double hyphen-minus by itself (followed by a space) indicates that there are no more options, which is useful when one needs to specify a filename that starts with a hyphen-minus. An option of just a hyphen-minus (followed by a space) may be recognized in lieu of a filename and indicates that stdin is to be read.

diff output

- is used to denote deleted lines in diff output in the context format or the unified format.

Encoding

The glyph has a code point in Unicode as U+002D - HYPHEN-MINUS. It is also in ASCII with the same value.

See also

Explanatory notes

  1. ^ In Lucida Sans Unicode, the hyphen-minus is drawn identically to the en dash.
  2. ^ The precise relationships depend on typeface design choices.

References

  1. ^ Korpela, Jukka K. (2006). Unicode explained. O'Reilly. p. 382. ISBN 978-0-596-10121-3.[dead link]
  2. ^ "3.1 General scripts" (PDF). Unicode Version 1.0 · Character Blocks. p. 30. Loose vs. Precise Semantics. Some ASCII characters have multiple uses, either through ambiguity in the original standards or through accumulated reinterpretations of a limited codeset. For example, 27 hex is defined in ANSI X3.4 as apostrophe (closing single quotation mark; acute accent), and 2D hex as hyphen minus. In general, the Unicode standard provides the same interpretation for the equivalent code values, without adding to or subtracting from their semantics. The Unicode standard supplies unambiguous codes elsewhere for the most useful particular interpretations of these ASCII values; the corresponding unambiguous characters are cross-referenced in the character names list for this block. In a few cases, the Unicode standard indicates the generic interpretation of an ASCII code in the name of the corresponding Unicode character, for example U+0027 is APOSTROPHE-QUOTE'.
  3. ^ "American National Standard X3.4-1977: American Standard Code for Information Interchange" (PDF). National Institute of Standards and Technology. p. 10 (4.2 Graphic characters).
  4. ^ "The Unicode Standard, Version 13.0, Chapter 6.2" (PDF). 2020. General Punctuation § Dashes and Hyphens.
  5. ^ Korpela, Jukka. "Dashes and Hyphens § Typographic Usage". Retrieved 30 December 2020.
  6. ^ Marian, Jakub. "Hyphen, minus, en-dash, and em-dash: difference and usage in English". Retrieved 23 December 2020. A hyphen is usually very short (it has its own Unicode character, but you can use the hyphen-minus instead because it looks the same) ...
  7. ^ French, Nigel (2006). InDesign Type: Professional Typography with Adobe InDesign CS2. Adobe Press. p. 72. ISBN 9780321385444. Retrieved 4 July 2020.
  8. ^ Bringhurst, Robert (2004). The elements of typographic style (third ed.). Hartley & Marks, Publishers. p. 80. ISBN 978-0-88179-206-5. Retrieved 10 November 2020. 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.
  9. ^ Ritchie, Dennis (c. 1975). "C Reference Manual" (PDF). Bell Labs. Retrieved 7 December 2016.
  10. ^ Marlow, Simon (ed.). Haskell 2010 Language Report (PDF). Retrieved 7 December 2016.[page needed]

External links

  •   The dictionary definition of - at Wiktionary

hyphen, minus, redirects, here, other, uses, disambiguation, hyphen, minus, most, commonly, used, type, hyphen, widely, used, digital, documents, ascii, most, keyboards, only, character, that, resembles, minus, sign, dash, also, used, these, name, hyphen, minu. redirects here For other uses see disambiguation The hyphen minus is the most commonly used type of hyphen widely used in digital documents In ASCII or on most keyboards it is the only character that resembles a minus sign or a dash so it is also used for these 1 The name hyphen minus derives from the original ASCII standard where it was called hyphen minus 2 3 The character is referred to as a hyphen a minus sign or a dash according to the context where it is being used Hyphen minusIn UnicodeU 002D HYPHEN MINUSDifferent fromDifferent fromU 2010 HYPHEN U 2011 NON BREAKING HYPHEN U 2212 MINUS SIGN U 2013 EN DASH U 2014 EM DASH Contents 1 Description 2 Uses 2 1 Typing 2 2 Programming languages 2 3 Command line 2 4 diff output 3 Encoding 4 See also 5 Explanatory notes 6 References 7 External linksDescription Edit hyphen minus plus and minus signsin proportional and monospaced fontsIn early monospaced font typewriters and character encodings a single key code was almost always used for hyphen minus various dashes and strikethrough since they all have a roughly similar appearance The current Unicode Standard specifies distinct characters for a number of different dashes an unambiguous minus sign Unicode minus at code point U 2212 and various types of hyphen including the unambiguous Unicode hyphen at U 2010 and the hyphen minus at U 002D When a hyphen is called for the hyphen minus is a common choice as it is well known easy to enter on keyboards and still the only form recognised by many data formats and computer languages Though the Unicode Standard states that the U 2010 hyphen is preferred over the hyphen minus 4 the standard itself uses the hyphen minus as its hyphen character 5 In most modern fonts the hyphen minus is either identical or very similar to the Unicode hyphen 6 a In mathematical texts that include the plus sign use of the hyphen minus as a minus sign typically results in an unattractive appearance Unlike the Unicode minus sign the hyphen minus is generally smaller and at a different height than the horizontal line in the plus sign see the image b Many word processors will word wrap at a hyphen minus but not after the Unicode hyphen sign citation needed Uses EditTyping Edit See also Two consecutive hyphens and Three consecutive hyphens This character is typed when a hyphen or a minus sign is wanted Based on old typewriter conventions it is common to use a pair to represent an em dash 7 8 and to put spaces around it to represent a spaced en dash citation needed Some word processors automatically convert these to the correct dash The character can also be typed multiple times to simulate a horizontal line though in most cases repeated entry of the underscore will produce a solid line Alternating the hyphen minus with spaces produces a dashed line often to indicate where paper is to be cut On a typewriter over striking a section of text with this is used for strikethrough Programming languages Edit Most programming languages use the hyphen minus for denoting subtraction and negation 9 10 It is almost never used to indicate a range due to ambiguity with subtraction Generally other characters such as the Unicode U 2212 MINUS SIGN are not recognized citation needed In some programming languages for example MySQL two hyphen minus mark the beginning of a comment It can be used to start the signature block in Usenet news system YAML uses three hyphen minuses to end a section Command line Edit The hyphen minus character is often used when specifying command line options a convention popularized by Unix Examples of the short form are R or q A user can specify both by using Rq Some implementations allow two hyphen minuses to specify long option names as recursive or quiet These are easier to understand when reading commands some software does not care about the number of hyphen minuses and either does not allow combinations of single letter options or requires the user to rearrange them so they do not match a long option A double hyphen minus by itself followed by a space indicates that there are no more options which is useful when one needs to specify a filename that starts with a hyphen minus An option of just a hyphen minus followed by a space may be recognized in lieu of a filename and indicates that stdin is to be read diff output Edit is used to denote deleted lines in diff output in the context format or the unified format Encoding EditThe glyph has a code point in Unicode as U 002D HYPHEN MINUS It is also in ASCII with the same value See also Edit disambiguation Box drawing characters including U 2500 useful for drawing horizontal lines Hyphen Soft hyphenExplanatory notes Edit In Lucida Sans Unicode the hyphen minus is drawn identically to the en dash The precise relationships depend on typeface design choices References Edit Korpela Jukka K 2006 Unicode explained O Reilly p 382 ISBN 978 0 596 10121 3 dead link 3 1 General scripts PDF Unicode Version 1 0 Character Blocks p 30 Loose vs Precise Semantics Some ASCII characters have multiple uses either through ambiguity in the original standards or through accumulated reinterpretations of a limited codeset For example 27 hex is defined in ANSI X3 4 as apostrophe closing single quotation mark acute accent and 2D hex as hyphen minus In general the Unicode standard provides the same interpretation for the equivalent code values without adding to or subtracting from their semantics The Unicode standard supplies unambiguous codes elsewhere for the most useful particular interpretations of these ASCII values the corresponding unambiguous characters are cross referenced in the character names list for this block In a few cases the Unicode standard indicates the generic interpretation of an ASCII code in the name of the corresponding Unicode character for example U 0027 is APOSTROPHE QUOTE American National Standard X3 4 1977 American Standard Code for Information Interchange PDF National Institute of Standards and Technology p 10 4 2 Graphic characters The Unicode Standard Version 13 0 Chapter 6 2 PDF 2020 General Punctuation Dashes and Hyphens Korpela Jukka Dashes and Hyphens Typographic Usage Retrieved 30 December 2020 Marian Jakub Hyphen minus en dash and em dash difference and usage in English Retrieved 23 December 2020 A hyphen is usually very short it has its own Unicode character but you can use the hyphen minus instead because it looks the same French Nigel 2006 InDesign Type Professional Typography with Adobe InDesign CS2 Adobe Press p 72 ISBN 9780321385444 Retrieved 4 July 2020 Bringhurst Robert 2004 The elements of typographic style third ed Hartley amp Marks Publishers p 80 ISBN 978 0 88179 206 5 Retrieved 10 November 2020 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 Ritchie Dennis c 1975 C Reference Manual PDF Bell Labs Retrieved 7 December 2016 Marlow Simon ed Haskell 2010 Language Report PDF Retrieved 7 December 2016 page needed External links Edit The dictionary definition of at Wiktionary Retrieved from https en wikipedia org w index php title Hyphen minus amp oldid 1154295200, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.