Underscore (music)
   HOME

TheInfoList



OR:

An underscore or underline is a line drawn under a segment of text. In
proofreading Proofreading is the reading of a galley proof or an electronic copy of a publication to find and correct reproduction errors of text or art. Proofreading is the final step in the editorial cycle before publication. Professional Traditional ...
, 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. 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 Markup or mark-up can refer to: * Markup language, a standardized set of notations used to annotate a plain-text document's content to give information regarding the structure of the text or instructions for how it is to be displayed ** Lightweigh ...
or with the Unicode
combining low line An underscore, ; also called an underline, low line, or low dash; 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 ...
. The underscore character is used in strings where spaces are not permitted to create visual spacing, such as in computer
filename A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths. A filename may (depending on the file system) include: * name &ndas ...
s, email addresses, and in Internet
URL A Uniform Resource Locator (URL), colloquially termed as a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identifie ...
s, for example . It is also used as markup to indicate underscore or italics, for instance renders as or ''thus''.


Diacritic

The underscore is used as a
diacritic A diacritic (also diacritical mark, diacritical point, diacritical sign, or accent) is a glyph added to a letter or to a basic glyph. The term derives from the Ancient Greek (, "distinguishing"), from (, "to distinguish"). The word ''diacriti ...
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 and (only the latter should look like abc).


Modern use

In printed documents underlining is generally avoided, with italics or
small caps In typography, small caps (short for "small capitals") are characters typeset with glyphs that resemble uppercase letters (capitals) but reduced in height and weight close to the surrounding lowercase letters or text figures. This is technicall ...
often used instead, or (especially in headings) using capitalization, bold type or greater
body height Human height or stature is the distance from the bottom of the feet to the top of the head in a human body, standing erect. It is measured using a stadiometer, in centimetres when using the metric system or SI system, or feet and inches when us ...
(font size). In a manuscript to be typeset, various forms of underlining (see
below Below may refer to: *Earth *Ground (disambiguation) *Soil *Floor *Bottom (disambiguation) Bottom may refer to: Anatomy and sex * Bottom (BDSM), the partner in a BDSM who takes the passive, receiving, or obedient role, to that of the top or ...
) were therefore conventionally used to indicate that text should be set in special type such as italics, part of a procedure known as
markup Markup or mark-up can refer to: * Markup language, a standardized set of notations used to annotate a plain-text document's content to give information regarding the structure of the text or instructions for how it is to be displayed ** Lightweigh ...
. 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.


Usage in computing

In web browsers, default settings typically distinguish
hyperlink In computing, a hyperlink, or simply a link, is a digital reference to data that the user can follow or be guided by clicking or tapping. A hyperlink points to a whole document or to a specific element within a document. Hypertext is text wit ...
s 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,
CRT CRT or Crt may refer to: Science, technology, and mathematics Medicine and biology * Calreticulin, a protein *Capillary refill time, for blood to refill capillaries *Cardiac resynchronization therapy and CRT defibrillator (CRT-D) * Catheter-re ...
s 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 as an example identifier. By 1967 the underscore had spread to ASCII, replacing the similarly shaped left-arrow character, (see also: PIP). C, developed at Bell Labs in the early 1970s, allowed the underscore in identifiers. 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 Spaces may refer to: * Google Spaces (app), a cross-platform application for group messaging and sharing * Windows Live Spaces, the next generation of MSN Spaces * Spaces (software), a virtual desktop manager implemented in Mac OS X Leopard * Spac ...
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." 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 ( in class will be mangled to ). By convention, members starting with a single underscore are considered private or protected, although this behavior only has inherent effect for modules, where 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
argument An argument is a statement or group of statements called premises intended to determine the degree of truth or acceptability of another statement called conclusion. Arguments can be studied from three main perspectives: the logical, the dialectic ...
s to a function. In Clojure, it indicates an argument whose value will be ignored. In some languages with pattern matching, such as Prolog,
Standard ML Standard ML (SML) is a general-purpose, modular, functional programming language with compile-time type checking and type inference. It is popular among compiler writers and programming language researchers, as well as in the development of the ...
, Scala,
OCaml OCaml ( , formerly Objective Caml) is a general-purpose programming language, general-purpose, multi-paradigm programming language which extends the Caml dialect of ML (programming language), ML with object-oriented programming, object-oriented ...
, 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 An entity is something that exists as itself, as a subject or as an object, actually or potentially, concretely or abstractly, physically or not. It need not be of material existence. In particular, abstractions and legal fictions are usually r ...
or (or or ). HTML has a presentational element that was originally used to underline text; this usage was deprecated in HTML4 in favor of the
CSS Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
style . 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". 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 language Markup language refers to a text-encoding system consisting of a set of symbols inserted in a text document to control its structure, formatting, or the relationship between its parts. Markup is often used to control the display of the document ...
s, 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 In digital typography, combining characters are characters that are intended to modify other characters. The most common combining characters in the Latin script are the combining diacritical marks (including combining accents). Unicode also ...
"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 Macron below is a combining diacritical mark that is used in various orthographies. A non-combining form is . It is not to be confused with , and . The difference between "macron below" and "low line" is that the latter results in an unbroken ...
, a single letter diacritic. * ''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. may render or ''string'').


As a marker for incorrectness

Underline (typically red or wavy or both) is often used by
spell checker In software, a spell checker (or spelling checker or spell check) is a software feature that checks for misspellings in a text. Spell-checking features are often embedded in software or services, such as a word processor, email client, electronic di ...
s (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: *single dashed underline for , 'let it stand', proof-reading mark cancelled. *single straight underline for ''italic type'' *single wavy underline for bold type *double straight underline for *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 (; 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 (; 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

* Space Character * Overline *
Strikethrough Strikethrough is a typographical presentation of words with a horizontal line through their center, resulting in . Contrary to censored or sanitized (redacted) texts, the words remain readable. This presentation signifies one of two meanings. In ...
* Undertie *
Visible space In computer programming, whitespace is any character or series of characters that represent horizontal or vertical space in typography. When rendered, a whitespace character does not correspond to a visible mark, but typically does occupy an area ...


Notes


References


External links

* {{Typography terms Punctuation Typography Typographical symbols