fbpx
Wikipedia

Underscore

An underscore or underline is a line drawn under a segment of text. In proofreading, underscoring is a convention that says "set this text in italic type", traditionally used on manuscript or typescript as an instruction to the printer. Its use to add emphasis in modern documents is a deprecated practice.[1]

_ ◌̲
Underscore
In UnicodeU+005F _ LOW LINE
U+0332 ◌̲ COMBINING LOW LINE
Different from
Different fromU+0331 ◌̱ COMBINING MACRON BELOW
Related
See alsoU+2017 DOUBLE LOW LINE
U+2381 CONTINUOUS UNDERLINE SYMBOL
U+2382 DISCONTINUOUS UNDERLINE SYMBOL
Underscored or underlined text.

The underscore character, _, also called a low line, or low dash, originally appeared on the typewriter so that underscores could be typed. To produce an underscored word, the word was typed, the typewriter carriage was moved back to the beginning of the word, and the word was overtyped with the underscore character.

In modern usage, underscoring is achieved by markup or with the Unicode combining low line. The underscore character is used in strings where spaces are not permitted to create visual spacing, such as in computer filenames, email addresses, and in Internet URLs, for example Mr_John_Smith. It is also used as markup to indicate underscore or italics, for instance _thus_ renders as thus or thus.

Diacritic

The underscore is used as a diacritic mark, "combining low line", ◌̲ , in some languages of Egypt, some languages using the Rapidolangue orthography in Gabon, Izere in Nigeria, and indigenous languages of the Americas such as Shoshoni and Kiowa.

The combining diacritic, ◌̱, (Macron below) is similar to the combining low line but its mark is shorter. The difference between "macron below" and "low line" is that the latter results in an unbroken underline when it is run together: compare a̱ḇc̱ and a̲b̲c̲ (only the latter should look like abc).[2][a]

Modern use

In printed documents underlining is generally avoided, with italics or small caps often used instead, or (especially in headings) using capitalization, bold type or greater body height (font size).[1] In a manuscript to be typeset, various forms of underlining (see below) were therefore conventionally used to indicate that text should be set in special type such as italics, part of a procedure known as markup.

A series of underscores (like __________ ) may be used to create a blank to be filled in by hand on a paper form. It is also sometimes used to create a horizontal line; other symbols with similar graphemes, such as hyphens and dashes, are also used for this purpose.

In German, Slovene and some other Slavic languages, the underscore has recently gained prominence as the punctuation to form gender-neutral suffixes in gendered nouns and other parts of the speech.[3]

Usage in computing

In web browsers, default settings typically distinguish hyperlinks by underlining them (and usually changing their color), but both users and websites can change the settings to make some or all hyperlinks appear differently (or even without distinction from normal text).

History

As early output devices (Teleprinters, CRTs and line printers) could not produce more than one character at a location, it was not possible to underscore text, so early encodings such as ITA2 and the first versions of ASCII had no underscore. IBM's EBCDIC character-coding system, introduced in 1964, added the underscore, which IBM referred to as the "break character". IBM's report on NPL (the early name of what is now called PL/I) leaves the character set undefined, but specifically mentions the break character, and gives RATE_OF_PAY as an example identifier.[4] By 1967 the underscore had spread to ASCII,[5] replacing the similarly shaped left-arrow character, (see also: PIP). C, developed at Bell Labs in the early 1970s, allowed the underscore in identifiers.[6]

Underscore predates the existence of lower-case letters in many systems, so often it had to be used to make multi-word identifiers, since CamelCase (see below) was not available.

Programming conventions

Underscores inserted between letters are very common to make a "multi-word" identifier in languages that cannot handle spaces in identifiers. This convention is known as "snake case" (the other popular method is called camelCase, where capital letters are used to show where the words start).

An underscore as the first character in an ID is often used to indicate an internal implementation that is not considered part of the API and should not be called by code outside that implementation. In Dart, all private properties of classes must start with an underscore; this usage is also common in other languages such as C++ even though those provide keywords to indicate that members are private. It is extensively used to hide variables and functions used for implementations in header files. In fact, the use of a single underscore for this became so common that C compilers had to standardize on a double leading underscore (for instance __DATE__) for actual built-in variables to avoid conflicts with the ones in header files. PHP "reserves all function names starting with __ as magical."[7]

Python uses names that both start and end with double underscores for magic members used for purposes such as operator overloading and reflection, and names starting but not ending with a double underscore to denote private member variables of classes which should be mangled in a manner which prevents them from colliding with members of derived classes unless the classes have the same name (__bar in class Foo will be mangled to _Foo__bar). By convention, members starting with a single underscore are considered private or protected, although this behavior only has inherent effect for modules, where import * statements by default import all names that do not start with an underscore, unless an export list is explicitly defined by the module.

A variable named with just an underscore often has special meaning. $_ or _ is the previous command or result in many interactive shells, such as those of Python, Ruby, and Perl. In Perl, @_ is a special array variable that holds the arguments to a function. In Clojure, it indicates an argument whose value will be ignored.[8]

In some languages with pattern matching, such as Prolog, Standard ML, Scala, OCaml, Haskell, Erlang, and the Wolfram Language, the pattern _ matches any value, but does not perform binding.

HTML <u> and CSS

The ASCII underscore character can be inserted with the entities &lowbar; or &UnderBar; (or &#95; or &#x5F;).

HTML has a presentational element <u> that was originally used to underline text; this usage was deprecated in HTML4 in favor of the CSS style {text-decoration: underline}.[9] In HTML5, the tag reappeared but its meaning was changed significantly: it now "represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation".[9] This facility is intended for example to provide a red wavy line underline to flag spelling errors at input time but which are not to be embedded in any stored file (unlike an emphasis mark, which would be).

The elements may also exist in other markup languages, such as MediaWiki. The Text Encoding Initiative (TEI) provides an extensive selection of related elements for marking editorial activity (insertion, deletion, correction, addition, etc.).

Unicode

Unicode has a free-standing underscore _ at U+005F, which is a legacy of the typewriter practice of underlining using backspace and overtype. Modern practice uses the combining diacritic "combining low line" at U+0332 ◌̲ that results in an underline when run together: u̲n̲d̲e̲r̲l̲i̲n̲e̲. Unicode also has the combining macron below, a single letter diacritic.[2]

  • single underline: a̲b̲c̲d̲e̲f̲g̲h̲i̲j̲k̲l̲m̲n̲o̲p̲q̲r̲s̲t̲u̲v̲w̲x̲y̲z̲0̲1̲2̲3̲4̲5̲6̲7̲8̲9̲
  • double underline: a̲̲b̲̲c̲̲d̲̲e̲̲f̲̲g̲̲h̲̲i̲̲j̲̲k̲̲l̲̲m̲̲n̲̲o̲̲p̲̲q̲̲r̲̲s̲̲t̲̲u̲̲v̲̲w̲̲x̲̲y̲̲z̲̲0̲̲1̲̲2̲̲3̲̲4̲̲5̲̲6̲̲7̲̲8̲̲9̲̲
  • single underline capitalized: A̲B̲C̲D̲E̲F̲G̲H̲I̲J̲K̲L̲M̲N̲O̲P̲Q̲R̲S̲T̲U̲V̲W̲X̲Y̲Z̲
  • double underline capitalized: A̲̲B̲̲C̲̲D̲̲E̲̲F̲̲G̲̲H̲̲I̲̲J̲̲K̲̲L̲̲M̲̲N̲̲O̲̲P̲̲Q̲̲R̲̲S̲̲T̲̲U̲̲V̲̲W̲̲X̲̲Y̲̲Z̲̲

"Simulated" underlines in plain-text

In plain-text applications, including plain-text e-mails, where emphasis markup is not possible, the desired emphasis is often indicated by surrounding words with underscore characters. For example, "You must use an _emulsion_ paint on the ceiling".

Some applications will automatically add emphasis to text manually bracketed by underscores, either by underlining or by italicizing it (e.g. _string_ may render string or string).

As a marker for incorrectness

Underline (typically red or wavy or both) is often used by spell checkers (and grammar checkers) to denote misspelled or otherwise incorrect text.

Manuscripts

Depending on local conventions, the following kinds of underlines may be used inline on manuscripts to indicate the special typefaces to be used:[10][11]

  • single dashed underline for stet, 'let it stand', proof-reading mark cancelled.
  • single straight underline for italic type
  • single wavy underline for bold type
  • double straight underline for SMALL CAPS
  • double underline of one straight line and one wavy line for bold italic
  • triple underline for FULL CAPITAL LETTERS (used among small caps or to change text already typed as lower case).

Underlines in Chinese

In Chinese, the underline is a little-used punctuation mark for proper names (simplified Chinese: 专名号; traditional Chinese: 專名號; pinyin: zhuānmínghào; literally "proper name mark", used for personal and geographic names). Its meaning is somewhat akin to capitalization in English and should never be used for emphasis even if the influence of English computing makes the latter sometimes occur. A wavy underline (simplified Chinese: 书名号; traditional Chinese: 書名號; pinyin: shūmínghào; literally, "book title mark") serves a similar function, but marks names of literary works instead of proper names.

In the case of two or more adjacent proper names, each individual proper name is separately underlined so there should be a slight gap between the underlining of each proper name.

See also

Notes

  1. ^ This text describes how 'low line' should be implemented and in most cases it usually is (for example, Windows+Firefox, ChromeOS+Chrome). However, it has been observed that the Chrome Browser on at least some releases of Android fails to do so correctly and the line is broken. This is an implementation error.

References

  1. ^ a b Butterick, Matthew. "Underlining: absolutely not". Practical Typography. Retrieved 5 August 2015.
  2. ^ a b "6.2 General Punctuation" (PDF). The Unicode Standard. Version 11.0.0. Mountain View, CA: The Unicode Consortium. 2018. p. 273. ISBN 978-1-936213-19-1. Retrieved 2018-12-12. Spacing Overscores and Underscores. U+203E OVERLINE is the above-the-line counterpart to U+005F low line. It is a spacing character, not to be confused with U+0305 COMBINING OVERLINE. As with all overscores and underscores, a sequence of these characters should connect in an unbroken line. The overscoring characters also must be distinguished from U+0304 COMBINING MACRON, which does not connect horizontally in this way.
  3. ^ "Pisanje moških in ženskih oblik in uporaba podčrtaja za izražanje »spolne nebinarnosti«" [Writing masculine and feminine forms and using the underline to express "gender non-binary"]. Jezikovna svetovalnica [Language Advisory Service] (in Slovenian). 2017. Retrieved 27 January 2023.
  4. ^ NPL Technical Report (PDF). IBM. 1964. p. 23. Retrieved 2011-06-09.
  5. ^ Fischer, Eric. (PDF). Archived from the original (PDF) on 2017-03-18. Retrieved 2016-11-16. {{cite journal}}: Cite journal requires |journal= (help)
  6. ^ Ritchie, Dennis (c. 1975). "C Reference Manual" (PDF). Retrieved 2011-06-09. {{cite journal}}: Cite journal requires |journal= (help)
  7. ^ "Magic Methods". php.net. August 28, 2004. from the original on August 30, 2004. Retrieved February 3, 2020.
  8. ^ Bozhidar Batsov. "The Clojure Style Guide". GitHub. Retrieved 2019-09-05.
  9. ^ a b "<u>: The Unarticulated Annotation (Underline) element". mozilla.org. 1 August 2020. Retrieved 9 October 2020.
  10. ^ "Proofreading Marks Chart -Some of the Most Common Proofreading Marks". graphic-design-employment.com. Retrieved 9 October 2020.
  11. ^ Writers' & Artists' Yearbook 2020. Bloomsbury. 5 September 2019. ISBN 9781472947512.

External links

  • "Ngram Viewer: comparison of usage of 'underscore' and 'underline'". books.google.com. Retrieved 9 October 2020.

underscore, other, uses, disambiguation, underscore, underline, line, drawn, under, segment, text, proofreading, underscoring, convention, that, says, this, text, italic, type, traditionally, used, manuscript, typescript, instruction, printer, emphasis, modern. For other uses see Underscore disambiguation An underscore or underline is a line drawn under a segment of text In proofreading underscoring is a convention that says set this text in italic type traditionally used on manuscript or typescript as an instruction to the printer Its use to add emphasis in modern documents is a deprecated practice 1 UnderscoreIn UnicodeU 005F LOW LINE U 0332 COMBINING LOW LINEDifferent fromDifferent fromU 0331 COMBINING MACRON BELOWRelatedSee alsoU 2017 DOUBLE LOW LINE U 2381 CONTINUOUS UNDERLINE SYMBOL U 2382 DISCONTINUOUS UNDERLINE SYMBOLUnderscored or underlined text The underscore character also called a low line or low dash originally appeared on the typewriter so that underscores could be typed To produce an underscored word the word was typed the typewriter carriage was moved back to the beginning of the word and the word was overtyped with the underscore character In modern usage underscoring is achieved by markup or with the Unicode combining low line The underscore character is used in strings where spaces are not permitted to create visual spacing such as in computer filenames email addresses and in Internet URLs for example Mr John Smith It is also used as markup to indicate underscore or italics for instance thus renders as thus or thus Contents 1 Diacritic 2 Modern use 3 Usage in computing 3 1 History 3 2 Programming conventions 3 3 HTML lt u gt and CSS 3 4 Unicode 3 5 Simulated underlines in plain text 3 6 As a marker for incorrectness 4 Manuscripts 5 Underlines in Chinese 6 See also 7 Notes 8 References 9 External linksDiacritic EditSee also Macron below and Numero sign The underscore is used as a diacritic mark combining low line in some languages of Egypt some languages using the Rapidolangue orthography in Gabon Izere in Nigeria and indigenous languages of the Americas such as Shoshoni and Kiowa The combining diacritic Macron below is similar to the combining low line but its mark is shorter The difference between macron below and low line is that the latter results in an unbroken underline when it is run together compare a ḇc and a b c only the latter should look like abc 2 a Modern use EditIn printed documents underlining is generally avoided with italics or small caps often used instead or especially in headings using capitalization bold type or greater body height font size 1 In a manuscript to be typeset various forms of underlining see below were therefore conventionally used to indicate that text should be set in special type such as italics part of a procedure known as markup A series of underscores like may be used to create a blank to be filled in by hand on a paper form It is also sometimes used to create a horizontal line other symbols with similar graphemes such as hyphens and dashes are also used for this purpose In German Slovene and some other Slavic languages the underscore has recently gained prominence as the punctuation to form gender neutral suffixes in gendered nouns and other parts of the speech 3 Usage in computing EditIn web browsers default settings typically distinguish hyperlinks by underlining them and usually changing their color but both users and websites can change the settings to make some or all hyperlinks appear differently or even without distinction from normal text History Edit As early output devices Teleprinters CRTs and line printers could not produce more than one character at a location it was not possible to underscore text so early encodings such as ITA2 and the first versions of ASCII had no underscore IBM s EBCDIC character coding system introduced in 1964 added the underscore which IBM referred to as the break character IBM s report on NPL the early name of what is now called PL I leaves the character set undefined but specifically mentions the break character and gives RATE OF PAY as an example identifier 4 By 1967 the underscore had spread to ASCII 5 replacing the similarly shaped left arrow character see also PIP C developed at Bell Labs in the early 1970s allowed the underscore in identifiers 6 Underscore predates the existence of lower case letters in many systems so often it had to be used to make multi word identifiers since CamelCase see below was not available Programming conventions Edit Underscores inserted between letters are very common to make a multi word identifier in languages that cannot handle spaces in identifiers This convention is known as snake case the other popular method is called camelCase where capital letters are used to show where the words start An underscore as the first character in an ID is often used to indicate an internal implementation that is not considered part of the API and should not be called by code outside that implementation In Dart all private properties of classes must start with an underscore this usage is also common in other languages such as C even though those provide keywords to indicate that members are private It is extensively used to hide variables and functions used for implementations in header files In fact the use of a single underscore for this became so common that C compilers had to standardize on a double leading underscore for instance DATE for actual built in variables to avoid conflicts with the ones in header files PHP reserves all function names starting with as magical 7 Python uses names that both start and end with double underscores for magic members used for purposes such as operator overloading and reflection and names starting but not ending with a double underscore to denote private member variables of classes which should be mangled in a manner which prevents them from colliding with members of derived classes unless the classes have the same name bar in class Foo will be mangled to Foo bar By convention members starting with a single underscore are considered private or protected although this behavior only has inherent effect for modules where import statements by default import all names that do not start with an underscore unless an export list is explicitly defined by the module A variable named with just an underscore often has special meaning or is the previous command or result in many interactive shells such as those of Python Ruby and Perl In Perl is a special array variable that holds the arguments to a function In Clojure it indicates an argument whose value will be ignored 8 In some languages with pattern matching such as Prolog Standard ML Scala OCaml Haskell Erlang and the Wolfram Language the pattern matches any value but does not perform binding HTML lt u gt and CSS Edit The ASCII underscore character can be inserted with the entities amp lowbar or amp UnderBar or amp 95 or amp x5F HTML has a presentational element lt u gt that was originally used to underline text this usage was deprecated in HTML4 in favor of the CSS style text decoration underline 9 In HTML5 the tag reappeared but its meaning was changed significantly it now represents a span of inline text which should be rendered in a way that indicates that it has a non textual annotation 9 This facility is intended for example to provide a red wavy line underline to flag spelling errors at input time but which are not to be embedded in any stored file unlike an emphasis mark which would be The elements may also exist in other markup languages such as MediaWiki The Text Encoding Initiative TEI provides an extensive selection of related elements for marking editorial activity insertion deletion correction addition etc Unicode Edit Unicode has a free standing underscore at U 005F which is a legacy of the typewriter practice of underlining using backspace and overtype Modern practice uses the combining diacritic combining low line at U 0332 that results in an underline when run together u n d e r l i n e Unicode also has the combining macron below a single letter diacritic 2 single underline a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 double underline a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 single underline capitalized A B C D E F G H I J K L M N O P Q R S T U V W X Y Z double underline capitalized A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Simulated underlines in plain text Edit In plain text applications including plain text e mails where emphasis markup is not possible the desired emphasis is often indicated by surrounding words with underscore characters For example You must use an emulsion paint on the ceiling Some applications will automatically add emphasis to text manually bracketed by underscores either by underlining or by italicizing it e g string may render string or string As a marker for incorrectness Edit Underline typically red or wavy or both is often used by spell checkers and grammar checkers to denote misspelled or otherwise incorrect text Manuscripts EditMain article List of proofreader s marks Depending on local conventions the following kinds of underlines may be used inline on manuscripts to indicate the special typefaces to be used 10 11 single dashed underline for stet let it stand proof reading mark cancelled single straight underline for italic type single wavy underline for bold type double straight underline for SMALL CAPS double underline of one straight line and one wavy line for bold italic triple underline for FULL CAPITAL LETTERS used among small caps or to change text already typed as lower case Underlines in Chinese EditThis section does not cite any sources Please help improve this section by adding citations to reliable sources Unsourced material may be challenged and removed March 2022 Learn how and when to remove this template message In Chinese the underline is a little used punctuation mark for proper names simplified Chinese 专名号 traditional Chinese 專名號 pinyin zhuanminghao literally proper name mark used for personal and geographic names Its meaning is somewhat akin to capitalization in English and should never be used for emphasis even if the influence of English computing makes the latter sometimes occur A wavy underline simplified Chinese 书名号 traditional Chinese 書名號 pinyin shuminghao literally book title mark serves a similar function but marks names of literary works instead of proper names In the case of two or more adjacent proper names each individual proper name is separately underlined so there should be a slight gap between the underlining of each proper name See also EditSpace Character Overline Strikethrough Undertie Visible spaceNotes Edit This text describes how low line should be implemented and in most cases it usually is for example Windows Firefox ChromeOS Chrome However it has been observed that the Chrome Browser on at least some releases of Android fails to do so correctly and the line is broken This is an implementation error References Edit a b Butterick Matthew Underlining absolutely not Practical Typography Retrieved 5 August 2015 a b 6 2 General Punctuation PDF The Unicode Standard Version 11 0 0 Mountain View CA The Unicode Consortium 2018 p 273 ISBN 978 1 936213 19 1 Retrieved 2018 12 12 Spacing Overscores and Underscores U 203E OVERLINE is the above the line counterpart to U 005F low line It is a spacing character not to be confused with U 0305 COMBINING OVERLINE As with all overscores and underscores a sequence of these characters should connect in an unbroken line The overscoring characters also must be distinguished from U 0304 COMBINING MACRON which does not connect horizontally in this way Pisanje moskih in zenskih oblik in uporaba podcrtaja za izrazanje spolne nebinarnosti Writing masculine and feminine forms and using the underline to express gender non binary Jezikovna svetovalnica Language Advisory Service in Slovenian 2017 Retrieved 27 January 2023 NPL Technical Report PDF IBM 1964 p 23 Retrieved 2011 06 09 Fischer Eric The Evolution of Character Codes 1874 1968 PDF Archived from the original PDF on 2017 03 18 Retrieved 2016 11 16 a href Template Cite journal html title Template Cite journal cite journal a Cite journal requires journal help Ritchie Dennis c 1975 C Reference Manual PDF Retrieved 2011 06 09 a href Template Cite journal html title Template Cite journal cite journal a Cite journal requires journal help Magic Methods php net August 28 2004 Archived from the original on August 30 2004 Retrieved February 3 2020 Bozhidar Batsov The Clojure Style Guide GitHub Retrieved 2019 09 05 a b lt u gt The Unarticulated Annotation Underline element mozilla org 1 August 2020 Retrieved 9 October 2020 Proofreading Marks Chart Some of the Most Common Proofreading Marks graphic design employment com Retrieved 9 October 2020 Writers amp Artists Yearbook 2020 Bloomsbury 5 September 2019 ISBN 9781472947512 External links Edit Look up underscore underline or Appendix Underline in Wiktionary the free dictionary Ngram Viewer comparison of usage of underscore and underline books google com Retrieved 9 October 2020 Retrieved from https en wikipedia org w index php title Underscore amp oldid 1135837416 Unicode, 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.