Hyphen-minus

-
Hyphen-minus
In UnicodeU+002D - HYPHEN-MINUS
Graphical variants
U+FE63 SMALL HYPHEN-MINUS
U+FF0D FULLWIDTH 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

The hyphen-minus symbol - is the form of hyphen most commonly used in digital documents. 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,[2] where it was called hyphen (minus).[3] The character is referred to as a hyphen, a minus sign, or a dash according to the context where it is being used.

Description

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

In early 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 several different dashes, an unambiguous minus sign (sometimes called the Unicode minus) at code point U+2212, an unambiguous hyphen (sometimes called the Unicode hyphen) at U+2010, the hyphen-minus at U+002D and a variety of other hyphen symbols for various uses. 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 recognized 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 computer fonts, the hyphen-minus is either identical or very similar to the Unicode hyphen.[6][a]

In mathematical texts that include the plus sign, the Unicode minus is preferred to the hyphen-minus, because its metrics match the plus sign in level and length.[b]

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] and to put spaces around it  -  to represent a spaced en dash  – ; this practice is deprecated in professional typography.[8] 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.[further explanation needed][9][10] It is rarely used to indicate a range, due to ambiguity with subtraction. Generally, other characters, such as the Unicode U+2212 MINUS SIGN are not recognized as an operator.[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. Archived (PDF) from the original on 21 November 2021. Retrieved 10 December 2021. 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). Archived (PDF) from the original on 9 October 2022. Retrieved 10 December 2021.
  4. ^ "The Unicode Standard, Version 13.0, Chapter 6.2" (PDF). 2020. General Punctuation § Dashes and Hyphens. Archived (PDF) from the original on 22 January 2021. Retrieved 30 December 2020.
  5. ^ Korpela, Jukka. "Dashes and Hyphens § Typographic Usage". Archived from the original on 26 January 2021. Retrieved 30 December 2020.
  6. ^ Marian, Jakub. "Hyphen, minus, en-dash, and em-dash: difference and usage in English". Archived from the original on 25 December 2020. 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. Archived (PDF) from the original on 3 April 2017. Retrieved 7 December 2016.
  10. ^ Marlow, Simon (ed.). Haskell 2010 Language Report (PDF). Archived (PDF) from the original on 4 December 2016. Retrieved 7 December 2016.[page needed]
  • The dictionary definition of - at Wiktionary

Read other articles:

 Ácido ursólico Nombre IUPAC Ácido (1S,2R,4aS,6aR,6aS,6bR,8aR,10S,12aR,14bS)-10-hidroxi-1,2,6a,6b,9,9,12a-heptametil-2,3,4,5,6,6a,7,8,8a,10,11,12,13,14b-tetradecahidro-1H-piceno-4a-carboxílico[1]​GeneralOtros nombres prunol, malol, ácido beta-ursólico, NSC4060, CCRIS 7123, TOS-BB-0966, ácido 3-beta-hidroxiurs-12-en-28-oico[1]​Fórmula estructural Fórmula molecular C30H48O3IdentificadoresNúmero CAS 77-52-1[2]​ChEBI 9908ChEMBL 169ChemSpider 58472DrugBank 15588Pub...

Transport museum located at Brooklands, Weybridge, England 51°21′11″N 0°27′54″W / 51.353°N 0.465°W / 51.353; -0.465 London Bus Museum The London Bus Museum is a purpose-built transport museum, open daily to the public and located at Brooklands in Weybridge, England. Entry is on a joint basis with Brooklands Museum. The museum is operated by the London Bus Preservation Trust and exhibits around thirty-five examples (from its forty+ collection) of London buse...

Longwood Estación del Metro de BostonUbicaciónCoordenadas 42°20′28″N 71°06′37″O / 42.341041666667, -71.110213888889Dirección Chapel y Longwood StreetBoston, MassachusettsDatos de la estaciónInauguración 4 de julio de 1959Servicios N.º de andenes 2 plataformas lateralesN.º de vías 2Propietario Massachusetts Bay Transportation AuthorityOperador Massachusetts Bay Transportation AuthorityAdministración Autoridad de Transporte de la Bahía de MassachusettsLíneas...

Cet article est une ébauche concernant une localité de Pennsylvanie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Pour les articles homonymes, voir Gilberton (homonymie). Gilberton Maison à Gilberton. Administration Pays États-Unis État Pennsylvanie Comté Schuylkill Type de localité Borough Code ZIP 17934, 17949 Code FIPS 42-29088 GNIS 1175604 Indicatif(s) téléphonique(s) local (locaux) 570 - 272 Dém...

La textura es uno de las percepciones sensibles de la comida. Diferentes texturas en un plato (Menestra de verduras de El Bulli, 1989). La textura en boca es la interacción física y química de un producto en la boca, y un aspecto de la reología de los alimentos. Es un concepto empleado en muchas áreas relacionadas con la prueba y evaluación de productos alimenticios, como la cata de vinos. Se evalúa a partir de la percepción inicial sobre el paladar, hasta el primer mordisco, pasando ...

Esqui aquático nosJogos Pan-Americanos de 2023 Santiago, Chile Dados Sede Lagoa Los Morros, San Bernardo Data 21–24 de outubro de 2023 Eventos 10 Participantes 48 de 10 CONs Medalhistas Ouro USA Estados Unidos (5 medalhas) ver a lista completa... Prata CAN Canadá (6 medalhas) ver a lista completa... Bronze CHI Chile (3 medalhas)USA Estados Unidos (3 medalhas) ver a lista completa... ←  2019 2027  → Esqui aquático nosJogos Pan-Americanos de 2023 Slalom masc fem Truqu...

Het graf van Talpiot is een rotsgraf dat in 1980 werd ontdekt bij bouwwerkzaamheden in Talpiot, een wijk van de stad Jeruzalem. Het wordt door sommigen in verband gebracht met Jezus van Nazareth en zijn familie. De vondst De betreffende tombe is een rotsgraf uit de eerste eeuw van de christelijke jaartelling, zoals er zovele in en rond Jeruzalem zijn gevonden. Het graf was sinds de late oudheid niet geschonden en geheel intact. Israëlische archeologen hebben het graf nauwkeurig onderzocht en...

تغلف معوي يوضح التصوير بأشعة إكس على البطن وجود انسداد بالأمعاء الدقيقة والمريض في وضع الوقوف.لاحظ وجود مستويات متعددة من السوائل والغازات.يوضح التصوير بأشعة إكس على البطن وجود انسداد بالأمعاء الدقيقة والمريض في وضع الوقوف.لاحظ وجود مستويات متعددة من السوائل والغازات. معل

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Hotel barge – news · newspapers · books · scholar · JSTOR (March 2015) (Learn how and when to remove this template message) Prospérité Barge in Vandenesse-en-Auxois on Burgundy Canal. Château de Châteauneuf is on the hill in the background. A hotel barge (f...

2013 Russian animated film Ku! Kin-dza-dzaDirected byGeorgy Danelia, Tatyana IlyinaWritten byGeorgy Danelia, Andrey UsachovProduced byKonstantin Ernst, Leonid YarmolnikStarringNikolai Gubenko, Andrei Leonov, Alexei Kolgan, Aleksandr AdabashyanMusic byGiya KancheliDistributed byCTB, Channel One RussiaRelease date April 11, 2013 (2013-04-11) Running time97 minutesCountryRussiaLanguageRussianBudget140 mln. rubles Ku! Kin-dza-dza (rus. Ку! Кин-дза-дза) is a 2013 Russian ...

2016 video game 2016 video gameUntil Dawn: Rush of BloodPAL version cover artDeveloper(s)Supermassive GamesPublisher(s)Sony Interactive EntertainmentComposer(s)Jason GravesEngineDecimaPlatform(s)PlayStation 4ReleaseWW: 13 October 2016Genre(s)Rail shooterMode(s)Single-player Until Dawn: Rush of Blood is a rail shooter developed by Supermassive Games and published by Sony Interactive Entertainment, released on 13 October 2016 worldwide for PlayStation VR headset on PlayStation 4. It is a direct...

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018) محمد رؤوف النجار الرئيس زين العابدين بن علي رئيس الوزراء حامد القروي وزير الشباب والرياضة في المنصب22 ينا...

Athletic facility at Iowa State University State GymnasiumLocationUnion DriveAmes, IA 50011OwnerIowa State UniversityOperatorIowa State UniversityCapacityN/AConstructionBroke groundMay 22, 1911OpenedSpring, 1913Construction cost$150,000ArchitectProudfoot, Bird & RawsonTenantsIowa State University recreational sports Iowa State Cyclones men's basketball (1913-1946) State Gymnasium is an arena on the campus of Iowa State University in Ames, Iowa. It was opened in 1913, and once was the scho...

Species of lizard Plica kathleenae Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Reptilia Order: Squamata Suborder: Iguania Family: Tropiduridae Genus: Plica Species: P. kathleenae Binomial name Plica kathleenaeMurphy & Jowers, 2013 Plica kathleenae, Kathleen's treerunner, is a species of South American lizard in the family Tropiduridae. The species is found in Guyana.[1] References ^ Species Plica kathleenae at The Reptile Database www...

Socio-economic system developed by Chinese agricultural settlers in Johor Chinese workers in a gambier and pepper plantation in Singapore, circa 1900. The Kangchu system was a socio-economic system of organisation and administration developed by Chinese agricultural settlers in Johor[fn 1] during the 19th century. The settlers organised themselves into informal associations (similar to the Kongsi organisations found in other Chinese communities), and chose a leader from among themselv...

1949 American drama film directed by William Wyler This article is about the film. For the play, see The Heiress (1947 play). For other uses, see Heiress. The HeiressTheatrical release posterDirected byWilliam WylerScreenplay byAugustus Goetz Ruth GoetzBased onThe Heiressby Augustus Goetz Ruth GoetzProduced byWilliam WylerStarring Olivia de Havilland Montgomery Clift Ralph Richardson CinematographyLeo ToverEdited byWilliam HornbeckMusic byAaron CoplandColor processBlack and whiteProductioncom...

Character of The Hunchback of Notre-Dame This article is about the character from the 1831 Victor Hugo novel. For the character from the 1996 Disney film, see Claude Frollo (Disney character). This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (August 2009) (Learn how and when to remove this template message) Fictional character MonseigneurClaude FrolloThe Hunchb...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) برايان ديك (بالإنجليزية: Brian Dick)‏  معلومات شخصية الميلاد 11 فبراير 1953 (70 سنة)  سانت كاثرينز  مواطنة كندا  الحياة العملية المهنة مجدف  الرياضة التجد...

The topic of this article may not meet Wikipedia's notability guideline for music. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.Find sources: Essential CeCe Peniston album – news · newspapers · books · scholar ...

American dramatist Oliver Bell BunceBorn(1828-02-08)February 8, 1828New York CityDiedMay 15, 1890(1890-05-15) (aged 62)New York City Oliver Bell Bunce (February 8, 1828 – May 15, 1890) was an American author, editor, and playwright. Life He was born in New York City, in his youth he joined his uncle's stationery house Jansen & Bell. While connected with this house he began writing plays, several of which were brought out. Fate or the Prophecy, a tragedy in blank verso, and Marco Bo...