Pipe Symbol
   HOME

TheInfoList



OR:

The vertical bar, , is a
glyph A glyph () is any kind of purposeful mark. In typography, a glyph is "the specific shape, design, or representation of a character". It is a particular graphical representation, in a particular typeface, of an element of written language. A g ...
with various uses in
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
,
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes, and development of both hardware and software. Computing has scientific, e ...
, and
typography Typography is the art and technique of arranging type to make written language legible, readable and appealing when displayed. The arrangement of type involves selecting typefaces, point sizes, line lengths, line-spacing ( leading), and ...
. It has many names, often related to particular meanings:
Sheffer stroke In Boolean functions and propositional calculus, the Sheffer stroke denotes a logical operation that is equivalent to the logical negation, negation of the logical conjunction, conjunction operation, expressed in ordinary language as "not both". ...
(in
logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premises ...
), pipe, bar, or (literally the word "or"), vbar, and others.


Usage


Mathematics

The vertical bar is used as a
mathematical symbol A mathematical symbol is a figure or a combination of figures that is used to represent a mathematical object, an action on mathematical objects, a relation between mathematical objects, or for structuring the other symbols that occur in a formula. ...
in numerous ways: *
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
: , x, , read "the ''absolute value'' of ''x''" *
cardinality In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
: , S, , read "the ''cardinality'' of the
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
''S''" *
conditional probability In probability theory, conditional probability is a measure of the probability of an event occurring, given that another event (by assumption, presumption, assertion or evidence) has already occurred. This particular method relies on event B occur ...
: P(X, Y), reads "the
probability Probability is the branch of mathematics concerning numerical descriptions of how likely an Event (probability theory), event is to occur, or how likely it is that a proposition is true. The probability of an event is a number between 0 and ...
of ''X'' ''given'' ''Y''" *
determinant In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It characterizes some properties of the matrix and the linear map represented by the matrix. In particular, the determinant is nonzero if and ...
: , A, , read "the ''determinant'' of the
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
''A''". When the matrix entries are written out, the determinant is denoted by surrounding the matrix entries by vertical bars instead of the usual brackets or parentheses of the matrix, as in \begin a & b \\ c & d\end. *
distance Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
: P, ab, denoting the shortest ''distance'' between point P to line ab, so line P, ab is perpendicular to line ab *
divisibility In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a multiple of m. An integer n is divisible or evenly divisible by ...
: a \mid b, read "''a'' ''divides'' ''b''" or "''a'' is a ''factor'' of ''b''", though Unicode also provides special 'divides' and 'does not divide' symbols (U+2223 and U+2224: ∣, ∤) *
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
evaluation: f(x), _, read "''f'' of ''x'', evaluated at ''x'' equals 4" (see
subscripts A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, whil ...
at Wikibooks) * length: , s, , read "the ''length'' of the
string String or strings may refer to: *String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects Arts, entertainment, and media Films * ''Strings'' (1991 film), a Canadian anim ...
''s''" *
norm Naturally occurring radioactive materials (NORM) and technologically enhanced naturally occurring radioactive materials (TENORM) consist of materials, usually industrial wastes or by-products enriched with radioactive elements found in the envir ...
: , \mathbf, , read "the ''norm'' of the (greater-than-one-dimensional) vector \mathbf" (note that absolute value is a one-dimensional norm), although a double vertical bar (see below) is more often used to avoid ambiguity. *
order Order, ORDER or Orders may refer to: * Categorization, the process in which ideas and objects are recognized, differentiated, and understood * Heterarchy, a system of organization wherein the elements have the potential to be ranked a number of d ...
: , G, , read "the ''order'' of the
group A group is a number of persons or things that are located, gathered, or classed together. Groups of people * Cultural group, a group whose members share the same cultural identity * Ethnic group, a group whose members share the same ethnic iden ...
''G''" *
restriction Restriction, restrict or restrictor may refer to: Science and technology * restrict, a keyword in the C programming language used in pointer declarations * Restriction enzyme, a type of enzyme that cleaves genetic material Mathematics and logi ...
: f, _, denoting the ''restriction'' of the function f, with a domain that is a superset of A, to just A *
set-builder notation In set theory and its applications to logic, mathematics, and computer science, set-builder notation is a mathematical notation for describing a set by enumerating its elements, or stating the properties that its members must satisfy. Defining ...
: \, read "the set of ''x'' ''such that'' ''x'' is
less than In mathematics, an inequality is a relation which makes a non-equal comparison between two numbers or other mathematical expressions. It is used most often to compare two numbers on the number line by their size. There are several different n ...
two". Often, a colon ':' is used instead of a vertical bar * the
Sheffer stroke In Boolean functions and propositional calculus, the Sheffer stroke denotes a logical operation that is equivalent to the logical negation, negation of the logical conjunction, conjunction operation, expressed in ordinary language as "not both". ...
in
logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premises ...
: a, b, read "''a'' ''nand'' ''b''" *
subtraction Subtraction is an arithmetic operation that represents the operation of removing objects from a collection. Subtraction is signified by the minus sign, . For example, in the adjacent picture, there are peaches—meaning 5 peaches with 2 taken ...
: f(x) \vert _a ^b, read "''f(x)'' ''from'' ''a'' ''to'' ''b''", denoting f(b) - f(a). Used in the context of a definite integral with variable ''x''. * A vertical bar can be used to separate variables from fixed parameters in a function, for example f(x, \mu,\sigma), or in the notation for
elliptic integrals In integral calculus, an elliptic integral is one of a number of related functions defined as the value of certain integrals, which were first studied by Giulio Fagnano and Leonhard Euler (). Their name originates from their originally arising in ...
. The double vertical bar, \, , is also employed in mathematics. * parallelism: AB \parallel CD, read "the line AB ''is parallel to'' the line CD" *
Norm Naturally occurring radioactive materials (NORM) and technologically enhanced naturally occurring radioactive materials (TENORM) consist of materials, usually industrial wastes or by-products enriched with radioactive elements found in the envir ...
: \, \mathbf\, , read "the ''norm'' (length, size, magnitude etc.) of the
vector Vector most often refers to: *Euclidean vector, a quantity with a magnitude and a direction *Vector (epidemiology), an agent that carries and transmits an infectious pathogen into another living organism Vector may also refer to: Mathematic ...
x". People sometimes use two single bars in analogy to the absolute value, which is a one-dimensional norm. * Propositional truncation (a type former that truncates a type down to a mere proposition in
homotopy type theory In mathematical logic and computer science, homotopy type theory (HoTT ) refers to various lines of development of intuitionistic type theory, based on the interpretation of types as objects to which the intuition of (abstract) homotopy theory ...
): for any a : A (read "term a of type A") we have , a, : \left\, A \right\, (here , a, reads "''
image An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensiona ...
'' of a : A in \left\, A \right\, " and , a, : \left\, A \right\, reads "''propositional truncation'' of A") In
LaTeX Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latexes are found in nature, but synthetic latexes are common as well. In nature, latex is found as a milky fluid found in 10% of all flowering plants (angiosperms ...
mathematical mode, the ASCII vertical bar produces a vertical line, and \, creates a double vertical line (a , b \, c is set as a , b \, c). This has different spacing from \mid and \parallel, which are
relational operator In computer science, a relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities. These include numerical equality (''e.g.'', ) and inequalities (''e.g.'', ). In prog ...
s: a \mid b \parallel c is set as a \mid b \parallel c. See below about LaTeX in text mode.


Physics

The vertical bar is used in
bra–ket notation In quantum mechanics, bra–ket notation, or Dirac notation, is used ubiquitously to denote quantum states. The notation uses angle brackets, and , and a vertical bar , to construct "bras" and "kets". A ket is of the form , v \rangle. Mathema ...
in
quantum physics Quantum mechanics is a fundamental theory in physics that provides a description of the physical properties of nature at the scale of atoms and subatomic particles. It is the foundation of all quantum physics including quantum chemistry, qua ...
. Examples: * , \psi\rangle: the quantum physical state \psi * \langle\psi, : the
dual state Austria-Hungary, often referred to as the Austro-Hungarian Empire,, the Dual Monarchy, or Austria, was a constitutional monarchy and great power in Central Europe between 1867 and 1918. It was formed with the Austro-Hungarian Compromise of ...
corresponding to the state above * \langle\psi, \rho\rangle: the
inner product In mathematics, an inner product space (or, rarely, a Hausdorff space, Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation (mathematics), operation called an inner product. The inner product of two ve ...
of states \psi and \rho * Supergroups in physics are denoted ''G''(''N'', ''M''), which reads "''G'', ''M'' vertical bar ''N''"; here ''G'' denotes any supergroup, ''M'' denotes the
bosonic dimensions Superspace is the coordinate space of a theory exhibiting supersymmetry. In such a formulation, along with ordinary space dimensions ''x'', ''y'', ''z'', ..., there are also "anticommuting" dimensions whose coordinates are labeled in Grassmann num ...
, and ''N'' denotes the
Grassmann dimensions Superspace is the coordinate space of a theory exhibiting supersymmetry. In such a formulation, along with ordinary space dimensions ''x'', ''y'', ''z'', ..., there are also "anticommuting" dimensions whose coordinates are labeled in Grassmann numb ...
.


Computing


Pipe

A
pipe Pipe(s), PIPE(S) or piping may refer to: Objects * Pipe (fluid conveyance), a hollow cylinder following certain dimension rules ** Piping, the use of pipes in industry * Smoking pipe ** Tobacco pipe * Half-pipe and quarter pipe, semi-circula ...
is an
inter-process communication In computer science, inter-process communication or interprocess communication (IPC) refers specifically to the mechanisms an operating system provides to allow the processes to manage shared data. Typically, applications can use IPC, categori ...
mechanism originating in
Unix Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and ot ...
, which directs the output (standard out and, optionally, standard error) of one process to the input (standard in) of another. In this way, a series of commands can be "piped" together, giving users the ability to quickly perform complex multi-stage processing from the
command line A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
or as part of a
Unix shell script A shell script is a computer program designed to be run by a Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manip ...
("bash file"). In most
Unix shell A Unix shell is a command-line Interpreter (computing), interpreter or shell (computing), shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command language and a scripting langua ...
s (command interpreters), this is represented by the vertical bar character. For example:
grep grep is a command-line utility for searching plain-text data sets for lines that match a regular expression. Its name comes from the ed command ''g/re/p'' (''globally search for a regular expression and print matching lines''), which has the sam ...
-i 'blair' filename.log ,
more More or Mores may refer to: Computing * MORE (application), outline software for Mac OS * more (command), a shell command * MORE protocol, a routing protocol * Missouri Research and Education Network Music Albums * ''More!'' (album), by Booka ...
where the output from the grep process (all lines containing 'blair') is piped to the more process (which allows a command line user to read through results one page at a time). The same "pipe" feature is also found in later versions of
DOS DOS is shorthand for the MS-DOS and IBM PC DOS family of operating systems. DOS may also refer to: Computing * Data over signalling (DoS), multiplexing data onto a signalling channel * Denial-of-service attack (DoS), an attack on a communicatio ...
and Microsoft Windows. This usage has led to the character itself being called "pipe".


Disjunction

In many programming languages, the vertical bar is used to designate the logic operation ''or'', either bitwise ''or'' or
logical Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premises ...
''or''. Specifically, in C and other languages following
C syntax C, or c, is the third letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''cee'' (pronounced ), plural ''cees''. History "C" ...
conventions, such as
C++ C++ (pronounced "C plus plus") is a high-level general-purpose programming language created by Danish computer scientist Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significan ...
,
Perl Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages. "Perl" refers to Perl 5, but from 2000 to 2019 it also referred to its redesigned "sister language", Perl 6, before the latter's name was offici ...
,
Java Java (; id, Jawa, ; jv, ꦗꦮ; su, ) is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea to the north. With a population of 151.6 million people, Java is the world's List ...
and C#, a , b denotes a bitwise ''or''; whereas a double vertical bar a , , b denotes a ( short-circuited) logical ''or''. Since the character was originally not available in all
code page In computing, a code page is a character encoding and as such it is a specific association of a set of printable characters and control characters with unique numbers. Typically each number represents the binary value in a single byte. (In some co ...
s and keyboard layouts,
ANSI C ANSI C, ISO C, and Standard C are successive standards for the C programming language published by the American National Standards Institute (ANSI) and ISO/IEC JTC 1/SC 22/WG 14 of the International Organization for Standardization (ISO) and the ...
can transcribe it in form of the trigraph ??!, which, outside string literals, is equivalent to the , character. In
regular expression A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text. Usually such patterns are used by string-searching algorithms for "find" or ...
syntax, the vertical bar again indicates logical ''or'' ( alternation). For example: the Unix command
grep grep is a command-line utility for searching plain-text data sets for lines that match a regular expression. Its name comes from the ed command ''g/re/p'' (''globally search for a regular expression and print matching lines''), which has the sam ...
-E 'fu, bar'
matches lines containing 'fu' or 'bar'.


Concatenation

The double vertical bar operator ", , " denotes
string String or strings may refer to: *String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects Arts, entertainment, and media Films * ''Strings'' (1991 film), a Canadian anim ...
concatenation In formal language, formal language theory and computer programming, string concatenation is the operation of joining character string (computer science), character strings wikt:end-to-end, end-to-end. For example, the concatenation of "sno ...
in
PL/I PL/I (Programming Language One, pronounced and sometimes written PL/1) is a procedural, imperative computer programming language developed and published by IBM. It is designed for scientific, engineering, business and system programming. I ...
, standard ANSI SQL, and theoretical computer science (particularly
cryptography Cryptography, or cryptology (from grc, , translit=kryptós "hidden, secret"; and ''graphein'', "to write", or ''-logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adver ...
).


Delimiter

Although not as common as commas or tabs, the vertical bar can be used as a
delimiter A delimiter is a sequence of one or more characters for specifying the boundary between separate, independent regions in plain text, mathematical expressions or other data streams. An example of a delimiter is the comma character, which acts a ...
in a
flat file A flat-file database is a database stored in a file called a flat file. Records follow a uniform format, and there are no structures for indexing or recognizing relationships between records. The file is simple. A flat file can be a plain ...
. Examples of a pipe-delimited standard data format are
LEDES The Legal Electronic Data Exchange Standard is a set of file format specifications intended to facilitate electronic data transmission in the legal industry. The phrase is abbreviated LEDES and is usually pronounced as "leeds". The LEDES specifica ...
1998B and
HL7 Health Level Seven or HL7 refers to a set of international standards for transfer of clinical and administrative data between software applications used by various healthcare providers. These standards focus on the application layer, which is "la ...
. It is frequently used because vertical bars are typically uncommon in the data itself. Similarly, the vertical bar may see use as a delimiter for
regular expression A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text. Usually such patterns are used by string-searching algorithms for "find" or ...
operations (e.g. in
sed sed ("stream editor") is a Unix utility that parses and transforms text, using a simple, compact programming language. It was developed from 1973 to 1974 by Lee E. McMahon of Bell Labs, and is available today for most operating systems. sed wa ...
). This is useful when the regular expression contains instances of the more common forward slash (/) delimiter; using a vertical bar eliminates the need to escape all instances of the forward slash. However, this makes the bar unusable as the regular expression "alternative" operator.


Backus–Naur form

In
Backus–Naur form In computer science, Backus–Naur form () or Backus normal form (BNF) is a metasyntax notation for context-free grammars, often used to describe the syntax of languages used in computing, such as computer programming languages, document formats ...
, an expression consists of sequences of symbols and/or sequences separated by ', ', indicating a
choice A choice is the range of different things from which a being can choose. The arrival at a choice may incorporate motivators and models. For example, a traveler might choose a route for a journey based on the preference of arriving at a giv ...
, the whole being a possible substitution for the symbol on the left.


Concurrency operator

In calculi of communicating processes (like pi-calculus), the vertical bar is used to indicate that processes execute in parallel.


APL

The pipe in APL is the modulo or ''residue'' function between two operands and the absolute value function next to one operand.


List comprehensions

The vertical bar is used for list comprehensions in some functional languages, e.g.
Haskell Haskell () is a general-purpose, statically-typed, purely functional programming language with type inference and lazy evaluation. Designed for teaching, research and industrial applications, Haskell has pioneered a number of programming lang ...
and Erlang. Compare
set-builder notation In set theory and its applications to logic, mathematics, and computer science, set-builder notation is a mathematical notation for describing a set by enumerating its elements, or stating the properties that its members must satisfy. Defining ...
.


Text markup

The vertical bar is used as a special character in
lightweight markup language A lightweight markup language (LML), also termed a simple or humane markup language, is a markup language with simple, unobtrusive syntax. It is designed to be easy to write using any generic text editor and easy to read in its raw form. Lightwei ...
s, notably
MediaWiki MediaWiki is a free and open-source wiki software. It is used on Wikipedia and almost all other Wikimedia websites, including Wiktionary, Wikimedia Commons and Wikidata; these sites define a large part of the requirement set for MediaWiki ...
's
Wikitext A wiki ( ) is an online hypertext publication Collaborative editing, collaboratively edited and managed by its own audience, using a web browser. A typical wiki contains multiple pages for the subjects or scope of the project, and could be ...
(in the templates and internal links). In LaTeX text mode, the vertical bar produces an
em dash The dash is a punctuation mark consisting of a long horizontal line. It is similar in appearance to the hyphen but is longer and sometimes higher from the baseline. The most common versions are the endash , generally longer than the hyphen b ...
(—). The \textbar command can be used to produce a vertical bar.


Phonetics and orthography

In the
Khoisan languages The Khoisan languages (; also Khoesan or Khoesaan) are a group of African languages originally classified together by Joseph Greenberg. Khoisan languages share click consonants and do not belong to other African language families. For much of th ...
and the
International Phonetic Alphabet The International Phonetic Alphabet (IPA) is an alphabetic system of phonetic transcription, phonetic notation based primarily on the Latin script. It was devised by the International Phonetic Association in the late 19th century as a standa ...
, the vertical bar is used to write the
dental click Dental (or more precisely denti-alveolar) clicks are a family of click consonants found, as constituents of words, only in Africa and in the Damin ritual jargon of Australia. In English, the ''tut-tut!'' (British spelling, "tutting") or ''ts ...
(). A double vertical bar is used to write the
alveolar lateral click The lateral clicks are a family of click consonants found only in African languages. The clicking sound used by equestrians to urge on their horses is a lateral click, although it is not a speech sound in that context. Lateral clicks are found t ...
(). Since these are technically letters, they have their own
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology Technical standard, standard for the consistent character encoding, encoding, representation, and handling of Character (computing), text expre ...
code points in the
Latin Extended-B Latin Extended-B is the fourth block (0180-024F) of the Unicode Standard. It has been included since version 1.0, where it was only allocated to the code points 0180-01FF and contained 113 characters. During unification with ISO 10646 for version ...
range: U+01C0 for the single bar and U+01C1 for the double bar. Some
Northwest The points of the compass are a set of horizontal, radially arrayed compass directions (or azimuths) used in navigation and cartography. A compass rose is primarily composed of four cardinal directions—north, east, south, and west—each sep ...
and
Northeast Caucasian languages The Northeast Caucasian languages, also called East Caucasian, Nakh-Daghestani or ''Vainakh-Daghestani'', is a family of languages spoken in the Russian republics of Dagestan, Chechnya and Ingushetia and in Northern Azerbaijan as well as in ...
written in the
Cyrillic script The Cyrillic script ( ), Slavonic script or the Slavic script, is a writing system used for various languages across Eurasia. It is the designated national script in various Slavic languages, Slavic, Turkic languages, Turkic, Mongolic languages, ...
have a vertical bar called
palochka The palochka or palotchka () ( rus, палочка, p=ˈpaɫətɕkə, r=palochka, literally "a stick") is a letter in the Cyrillic script. The letter usually has only a capital form, which is also used in lowercase text. The capital form of the ...
( rus, палочка, 5=little stick), indicating the preceding consonant is an
ejective In phonetics, ejective consonants are usually voiceless consonants that are pronounced with a glottalic egressive airstream. In the phonology of a particular language, ejectives may contrast with aspirated, voiced and tenuis consonants. Some l ...
. Longer single and double vertical bars are used to mark
prosodic In linguistics, prosody () is concerned with elements of speech that are not individual phonetic segments (vowels and consonants) but are properties of syllables and larger units of speech, including linguistic functions such as intonation, str ...
boundaries in the IPA.


Literature


Punctuation

In medieval European manuscripts, a single vertical bar was a common variant of the virgula used as a
period Period may refer to: Common uses * Era, a length or span of time * Full stop (or period), a punctuation mark Arts, entertainment, and media * Period (music), a concept in musical composition * Periodic sentence (or rhetorical period), a concept ...
,
scratch comma The slash is the oblique slanting line punctuation mark . Also known as a stroke, a solidus or several other historical or technical names including oblique and virgule. Once used to mark periods and commas, the slash is now used to represe ...
,. and
caesura image:Music-caesura.svg, 300px, An example of a caesura in modern western music notation A caesura (, . caesuras or caesurae; Latin for "cutting"), also written cæsura and cesura, is a Metre (poetry), metrical pause or break in a Verse (poetry), ...
mark. In
Sanskrit Sanskrit (; attributively , ; nominally , , ) is a classical language belonging to the Indo-Aryan branch of the Indo-European languages. It arose in South Asia after its predecessor languages had diffused there from the northwest in the late ...
and other Indian languages, a single vertical mark, a
danda In Indic scripts, the daṇḍa (Sanskrit: दण्ड ' "stick") is a punctuation mark. The glyph consists of a single vertical stroke. Use The daṇḍa marks the end of a sentence or line, comparable to a full stop (period) as commonly u ...
, has a similar function as a period (full stop). Two bars , , (a 'double danda') is the equivalent of a
pilcrow The pilcrow, ¶, is a handwritten or typographical character used to identify a paragraph. It is also called the paragraph mark (or sign or symbol), paraph, or blind P. The pilcrow may be used at the start of separate paragraphs or to ...
in marking the end of a
stanza In poetry, a stanza (; from Italian language, Italian ''stanza'' , "room") is a group of lines within a poem, usually set off from others by a blank line or Indentation (typesetting), indentation. Stanzas can have regular rhyme scheme, rhyme and ...
, paragraph or section. The danda has its own Unicode code point, U+0964.


Poetry

A double vertical bar or is the standard caesura mark in English
literary criticism Literary criticism (or literary studies) is the study, evaluation, and interpretation of literature. Modern literary criticism is often influenced by literary theory, which is the philosophical discussion of literature's goals and methods. Th ...
and analysis. It marks the strong break or
caesura image:Music-caesura.svg, 300px, An example of a caesura in modern western music notation A caesura (, . caesuras or caesurae; Latin for "cutting"), also written cæsura and cesura, is a Metre (poetry), metrical pause or break in a Verse (poetry), ...
common to many forms of
poetry Poetry (derived from the Greek ''poiesis'', "making"), also called verse, is a form of literature that uses aesthetic and often rhythmic qualities of language − such as phonaesthetics, sound symbolism, and metre − to evoke meanings i ...
, particularly Old English verse. It is also traditionally used to mark the division between lines of verse printed as prose (the style preferred by
Oxford University Press Oxford University Press (OUP) is the university press of the University of Oxford. It is the largest university press in the world, and its printing history dates back to the 1480s. Having been officially granted the legal right to print books ...
), though it is now often replaced by the
forward slash The slash is the oblique slanting line punctuation mark . Also known as a stroke, a solidus or several other historical or technical names including oblique and virgule. Once used to mark periods and commas, the slash is now used to represe ...
.


Notation

In the
Geneva Bible The Geneva Bible is one of the most historically significant translations of the Bible into English, preceding the King James Version by 51 years. It was the primary Bible of 16th-century English Protestantism and was used by William Shakespear ...
and early printings of the
King James Version The King James Version (KJV), also the King James Bible (KJB) and the Authorized Version, is an Bible translations into English, English translation of the Christian Bible for the Church of England, which was commissioned in 1604 and publis ...
, a double vertical bar is used to mark margin notes that contain an alternative translation from the original text. These margin notes always begin with the conjunction "Or". In later printings of the King James Version, the double vertical bar is irregularly used to mark any comment in the margins.


Music scoring

In music, when writing chord sheets, single vertical bars associated with a colon (, : A / / / :, ) represents the beginning and end of a section (e.g. Intro, Interlude, Verse, Chorus) of music. Single bars can also represent the beginning and end of measures (, : A / / / , D / / / , E / / / :, ). A double vertical bar associated with a colon can represent the repeat of a given section (, , : A / / / :, , - play twice).


Encoding


Solid vertical bar vs broken bar

Many early video terminals and
dot-matrix printers Dot matrix printing, sometimes called impact matrix printing, is a computer printing process in which ink is applied to a surface using a relatively low-resolution dot matrix for layout. Dot matrix printers typically use a print head that moves ...
rendered the vertical bar character as the
allograph Allography, from the Greek for "other writing", has several meanings which all relate to how words and sounds are written down. Authorship An allograph may be the opposite of an autograph – i.e. a person's words or name (signature) written by so ...
broken bar . This may have been to distinguish the character from the lower-case 'L' and the upper-case '' on these limited-resolution devices, and to make a vertical line of them look more like a horizontal line of dashes. It was also (briefly) part of the
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because of ...
standard. An initial draft for a 7-bit character set that was published by the X3.2 subcommittee for Coded Character Sets and Data Format on June 8, 1961, was the first to include the vertical bar in a standard set. The bar was intended to be used as the representation for the
logical OR In logic, disjunction is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is raining or it is snowing" can be represented in logic using the disjunctive formula R \lor S ...
symbol. A subsequent draft on May 12, 1966, places the vertical bar in column 7 alongside regional entry codepoints, and formed the basis for the original draft proposal used by the
International Standards Organisation The International Organization for Standardization (ISO ) is an international standard development organization composed of representatives from the national standards organizations of member countries. Membership requirements are given in Art ...
. This draft received opposition from the IBM user group SHARE, with its chairman, H. W. Nelson, writing a letter to the
American Standards Association The American National Standards Institute (ANSI ) is a private non-profit organization that oversees the development of voluntary consensus standards Standardization or standardisation is the process of implementing and developing techn ...
titled "The Proposed revised American Standard Code for Information Interchange does NOT meet the needs of computer programmers!"; in this letter, he argues that no characters within the international subset designated at columns 2-5 of the character set would be able to adequately represent logical OR and
logical NOT In logic, negation, also called the logical complement, is an operation that takes a proposition P to another proposition "not P", written \neg P, \mathord P or \overline. It is interpreted intuitively as being true when P is false, and false ...
in languages such as IBM's
PL/I PL/I (Programming Language One, pronounced and sometimes written PL/1) is a procedural, imperative computer programming language developed and published by IBM. It is designed for scientific, engineering, business and system programming. I ...
universally on all platforms. As a compromise, a requirement was introduced where the
exclamation mark The exclamation mark, , or exclamation point (American English), is a punctuation mark usually used after an interjection or exclamation to indicate strong feelings or to show emphasis. The exclamation mark often marks the end of a sentence, f ...
(!) and
circumflex The circumflex () is a diacritic in the Latin and Greek scripts that is also used in the written forms of many languages and in various romanization and transcription schemes. It received its English name from la, circumflexus "bent around"a ...
(^) would display as logical OR (, ) and logical NOT (¬) respectively in use cases such as programming, while outside of these use cases they would represent their original typographic symbols: The original vertical bar encoded at 0x7C in the original May 12, 1966 draft was then broken as , so it could not be confused with the unbroken logical OR. In the 1967 revision of ASCII, along with the equivalent ISO 464 code published the same year, the code point was defined to be a broken vertical bar, and the exclamation mark character was allowed to be rendered as a solid vertical bar. However, the 1977 revision (ANSI X.3-1977) undid the changes made in the 1967 revision, enforcing that the circumflex could no longer be stylised as a logical NOT symbol, the exclamation mark likewise no longer allowing stylisation as a vertical bar, and defining the code point originally set to the broken bar as a solid vertical bar instead; the same changes were also reverted in ISO 646-1973 published four years prior. Some variants of
EBCDIC Extended Binary Coded Decimal Interchange Code (EBCDIC; ) is an eight-bit character encoding used mainly on IBM mainframe and IBM midrange computer operating systems. It descended from the code used with punched cards and the corresponding six- ...
included both versions of the character as different code points. The broad implementation of the
extended ASCII Extended ASCII is a repertoire of character encodings that include (most of) the original 96 ASCII character set, plus up to 128 additional characters. There is no formal definition of "extended ASCII", and even use of the term is sometimes critic ...
ISO/IEC 8859 ISO/IEC 8859 is a joint ISO and IEC series of standards for 8-bit character encodings. The series of standards consists of numbered parts, such as ISO/IEC 8859-1, ISO/IEC 8859-2, etc. There are 15 parts, excluding the abandoned ISO/IEC 8859-12. ...
series in the 1990s also made a distinction between the two forms. This was preserved in Unicode as a separate character at U+00A6 BROKEN BAR (the term "parted rule" is used sometimes in Unicode documentation). Some fonts draw the characters the same (both are solid vertical bars, or both are broken vertical bars). The broken bar does not appear to have any clearly identified uses distinct from those of the vertical bar. In non-computing use — for example in mathematics, physics and general typography — the broken bar is not an acceptable substitute for the vertical bar. US International keyboard showing broken bar on the keycap, even though typing shift+that key produces the solid vertical bar. Many keyboards with US or US-International layout display the broken bar on a keycap even though the solid vertical bar character is produced in modern operating systems. This includes many German QWERTZ keyboards. This is a legacy of keyboards manufactured during the 1980s and 1990s for
IBM PC compatible IBM PC compatible computers are similar to the original IBM PC, XT, and AT, all from computer giant IBM, that are able to use the same software and expansion cards. Such computers were referred to as PC clones, IBM clones or IBM PC clones. ...
computers featuring the broken bar, as such computers used IBM's 8-bit
Code page 437 Code page 437 (CCSID 437) is the character set of the original IBM PC (personal computer). It is also known as CP437, OEM-US, OEM 437, PC-8, or DOS Latin US. The set includes all printable ASCII characters as well as some accented letters (diacri ...
character set based on ASCII, which continued to display the glyph for the broken bar at codepoint 7C on displays from
MDA MDA, mda, or ''variation'', may refer to: Places * Moldova, a country in Europe with the ISO 3166-1 country code MDA Politics * Meghalaya Democratic Alliance (2018), ruling coalition government in the Indian State of Meghalaya led by National Pe ...
(1981) to
VGA Video Graphics Array (VGA) is a video display controller and accompanying de facto graphics standard, first introduced with the IBM PS/2 line of computers in 1987, which became ubiquitous in the PC industry within three years. The term can now ...
(1987) despite the changes made to ASCII in 1977. The broken bar character can be typed (depending on the layout) as or or on Windows and on Linux. It can be inserted into HTML as In some dictionaries, the broken bar is used to mark stress that may be either primary or secondary. That is, covers the pronunciations and .For example, .


Unicode code points

These glyphs are encoded in Unicode as follows: * (single vertical line) * (single broken line) * (double vertical line ( \, ): used in pairs to indicate
norm Naturally occurring radioactive materials (NORM) and technologically enhanced naturally occurring radioactive materials (TENORM) consist of materials, usually industrial wastes or by-products enriched with radioactive elements found in the envir ...
) * (
Fullwidth form In CJK (Chinese, Japanese and Korean) computing, graphic characters are traditionally classed into fullwidth (in Taiwan and Hong Kong: 全形; in CJK: 全角) and halfwidth (in Taiwan and Hong Kong: 半形; in CJK: 半角) characters. Unlike ...
) * * * * * (and various other box drawing characters in the range U+2500 to U+257F) * *


Code pages and other historical encodings


See also

* *


Notes


References

{{navbox punctuation Punctuation Typographical symbols Logic symbols