Bracket

([{

Punctuation

apostrophe ( ’ ' )
brackets ( [ ], ( ), { }, ⟨ ⟩ )
colon ( : )
comma ( , )
dash ( , –, —, ― )
ellipsis ( …, ... )
exclamation mark ( ! )
full stop/period ( . )
guillemets ( « » )
hyphen ( -, )
question mark ( ? )
quotation marks ( ‘ ’, “ ” )
semicolon ( ; )
slash/stroke ( / )
solidus ( )
Word dividers
space ( ) ( ) ( ) (␠) (␢) (␣)
interpunct ( · )
General typography
ampersand ( & )
at sign ( @ )
asterisk ( * )
backslash ( \ )
bullet ( )
caret ( ^ )
copyright symbol ( © )
currency (generic) ( ¤ )
currency (specific)
฿ ¢ ₡ ₢ ₠ $ Indian Rupee symbol.svg ƒ ₲ ₴ ₭ ℳ ₥ ₦ ₰ £ ₨ ₪ Kazakhstani tenge symbol.svg ₩ ¥
dagger ( †, ‡ )
degree ( ° )
ditto mark ( )
inverted exclamation mark ( ¡ )
inverted question mark ( ¿ )
number sign/pound/hash ( # )
numero sign ( )
ordinal indicator ( º, ª )
percent etc. ( %, ‰, )
pilcrow ( )
prime ( )
registered trademark ( ® )
section sign ( § )
service mark ( )
sound recording copyright ( )
tilde ( ~ )
trademark ( )
underscore/understrike ( _ )
vertical/broken bar, pipe ( |, ¦ )
Uncommon typography
asterism ( )
tee ( )
up tack ( )
index/fist ( )
therefore sign ( )
because sign ( )
interrobang ( )
irony & sarcasm punctuation ( ؟ )
lozenge ( )
reference mark ( )
tie ( )

Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. In the United States, "bracket" usually refers specifically to the "square" or "box" type;[1][2] in British usage, it normally refers to a parenthesis mark.

Contents

List of types

History

The chevron was the earliest type to appear in written English. Desiderius Erasmus coined the term lunula to refer to the rounded parentheses (), recalling the round shape of the moon.[3]

Usage

In addition to referring to the class of all types of brackets, the unqualified word bracket is most commonly used to refer to a specific type of bracket. In modern American usage this is usually the square bracket whereas in modern British usage it is usually the parenthesis (round bracket).

In American usage, parentheses are usually considered separately from other brackets, and calling them "brackets" at all is unusual even though they serve a similar function. In more formal usage "parenthesis" may refer to the entire bracketed text, not just to the punctuation marks used (so all the text in this set of round brackets may be said to be a parenthesis).

Types

Parentheses ( )

Parentheses (singular, parenthesis)—also called simply brackets (UK), or round brackets, curved brackets, oval brackets, or, colloquially, parens—contain material that could be omitted without destroying or altering the meaning of a sentence.

Parentheses may be used in formal writing to add supplementary information, such as "Sen. John McCain (R., Arizona) spoke at length." They can also indicate shorthand for "either singular or plural" for nouns—e.g., "the claim(s)"— or for "either masculine or feminine" in some languages with grammatical gender.[4]

Parenthetical phrases have been used extensively in informal writing and stream of consciousness literature. Of particular note is the southern American author William Faulkner (see Absalom, Absalom! and the Quentin section of The Sound and the Fury) as well as poet E. E. Cummings. In most writing, overuse of parentheses is usually a sign of a badly structured text. A milder effect may be obtained by using a pair of commas as the delimiter. If the sentence contains commas for other purposes visual confusion may result.

Parentheses have historically been used where the dash is currently used—that is, in order to depict alternatives, such as "parenthesis)(parentheses". Examples of this usage can be seen in editions of Fowler's.

Parentheses may also be nested (with one set (such as this) inside another set). This is not commonly used in formal writing (though sometimes other brackets [especially brackets] will be used for one or more inner set of parentheses [in other words, secondary {or even tertiary} phrases can be found within the main sentence]).

Any punctuation inside parentheses or other brackets is independent of the rest of the text: "Mrs. Pennyfarthing (What? Yes, that was her name!) was my landlady." In this usage the explanatory text in the parentheses is a parenthesis. (Parenthesized text is usually short and within a single sentence. Where several sentences of supplemental material are used in parentheses the final full stop would be within the parentheses. Again, the parenthesis implies that the meaning and flow of the text is supplemental to the rest of the text and the whole would be unchanged were the parenthesized sentences removed.)

Parentheses in mathematics signify a different precedence of operators. Normally, 2 + 3 × 4 would be 14, since the multiplication is done before the addition. On the other hand (2 + 3) × 4 is 20, because the parentheses override normal precedence, causing the addition to be done first. They are also used to set apart the arguments in mathematical functions. For example, f(x) is the function f applied to the variable x. In the Cartesian coordinate system parentheses are used to denote a set of coordinates; so (4, 7) may represent the point located at 4 on the x-axis and 7 on the y-axis. Parentheses may also represent intervals; (0, 5), for example, is the interval between 0 and 5, not including 0 or 5. Parentheses can also represent multiplication, as in the instance of 2(3) = 6. Some authors follow the convention in mathematical equations that, when parentheses have one level of nesting, the inner pair are parentheses and the outer pair are square brackets. Example:

[(2+3)\times4]^2=400

A related convention is that when parentheses have two levels of nesting, braces are the outermost pair.

Parentheses may also be used to represent a binomial coefficient.

Parentheses are used in computer programming, especially in the C programming language and similar languages, to pass parameters or arguments to functions or methods such as in the following example:

printf("hello, world\n");

Square brackets [ ]

Square brackets—also called simply brackets (US)—are mainly used to enclose explanatory or missing material usually added by someone other than the original author, especially in quoted text.[5] Examples include: "I appreciate it [the honor], but I must refuse", and "the future of psionics [see definition] is in doubt". They may also be used to modify quotations. For example, if referring to someone's statement "I hate to do laundry", one could write: She "hate[s] to do laundry".

The bracketed expression "[sic]" is used to indicate errors that are "thus in the original"; a bracketed ellipsis [...] is often used to indicate deleted material; bracketed comments indicate when original text has been modified for clarity: "I'd like to thank [several unimportant people] and my parentals [sic] for their love, tolerance [...] and assistance [emphasis added]".[6]

Brackets are used in mathematics in a variety of notations, including standard notations for intervals, commutators, the floor function the Lie bracket, the Iverson bracket, and matrices.

In translated works, brackets are used to signify the same word or phrase in the original language to avoid ambiguity.[7] For example: He is trained in the way of the open hand [karate].

When nested parentheses are needed, brackets may be used as a substitute for the inner pair of parentheses within the outer pair.[8] When deeper levels of nesting are needed, common conventions are to alternate between parentheses and brackets at each level or to use braces.

A phonetic transcription may be enclosed within brackets[9], often using the International Phonetic Alphabet. Note though that phonemic, rather than phonetic, transcriptions typically use paired slashes rather than brackets.

Brackets can also be used in chemistry to represent the concentration of a chemical substance or to denote a complex ion.

Brackets can be used in computer programming to access array elements, especially in C-like languages. They are used in programming manuals to denote missing or optional parameters.

Brackets are also used for delimiting IPv6 addresses in URL. Sample URL should look like:

ldap://[2001:db8:3c4d:15::abcd:ef12]
http://[2001:db8:3c4d:15::abcd:ef12]:8080

Brackets (called move-left symbols or move right symbols) are added to the sides of text in proofreading to indicate changes in indentation:

Move left [To Fate I sue, of other means bereft, the only refuge for the wretched left.
Center ]Paradise Lost[
Move up Quote to be Moved Up.svg

Brackets are used to denote parts of the text that need to be checked when preparing drafts prior to finalizing a document. They often denote points that have not yet been agreed to in legal drafts and the year in which a report was made for certain case law decisions.

The html entities for the brackets are [ and ]

From the top: brackets, braces, parentheses, angle brackets/chevrons, and (in red) inequality signs

Curly brackets { }

Curly brackets—also called braces (US), flower brackets (India) and also informally called birdie brackets, chicken feet or chicken lips—are sometimes used in prose to indicate a series of equal choices: "Select your animal {goat, sheep, cow, horse} and follow me". They are used in specialized ways in poetry and music (to mark repeats or joined lines). The musical terms for this mark joining staves are accolade and "brace", and connect two or more lines of music that are played simultaneously.[10] In mathematics they delimit sets. In many programming languages, they enclose groups of statements. Such languages (C being one of the best-known examples) are therefore called curly bracket languages. Some people use a brace to signify movement in a particular direction.

Presumably due to the similarity of the words brace and bracket (although they do not share an etymology), many people mistakenly treat brace as a synonym for bracket. Therefore, when it is necessary to avoid any possibility of confusion, such as in computer programming, it may be best to use the term curly bracket rather than brace. However, general usage in North American English favours the latter form. Indian programmers often use the name "flower bracket".[11]

Braces are often used in internet communities and through instant messaging to indicate hugging.[12]

Angle brackets or chevrons ⟨ ⟩

Chevrons (⟨ ⟩[13]; Unicode U+27E8 and U+27E9; and others, see below) are often used to enclose highlighted material. Some dictionaries use chevrons to enclose short excerpts illustrating the usage of words.

In computing, the less-than (<) and greater-than (>) symbols are regularly used in place of angled brackets and, as such, these symbols are often referred to as angled brackets.

In physical sciences, chevrons are used to denote an average over time or another continuous parameter. For example,

\left\langle V(t)^2 \right\rangle = \lim_{T\to\infty} \frac{1}{T}\int_{-T/2}^{T/2} V(t)^2\,{\rm{d}}t.

The inner product of two vectors is commonly written as \langle a, b\rangle, but the notation (a, b) is also used.

Chevrons (see tuples) are used in set theory to denote ordered pairs; otherwise the order is arbitrary.

In linguistics, chevrons indicate orthography, as in "The English word /kæt/ is spelled ⟨cat⟩." In epigraphy, they may be used for mechanical transliterations of a text into the Latin alphabet.

In textual criticism, and hence in many editions of poorly transmitted works, chevrons denote sections of the text which are illegible or otherwise lost; the editor will often insert his own reconstruction where possible within them.

Chevrons are infrequently used to denote dialogue that is thought instead of spoken, such as:

⟨ What a beautiful flower! ⟩

The mathematical or logical symbols for greater-than (>) and less-than (<) are inequality operators, and are not punctuation marks when so used. Nevertheless, since true chevrons are not available on a typical computer keyboard, the "less than" and "greater than" symbols are often used instead. These are often loosely referred to as chevrons when used in this way. For example, the symbols < and > are often used to set apart URLs in text, such as "I found it on Example.com <http://www.example.com/>". It may also often be found to indicate an e-mail address, such as "This photo is copyrighted by John Smith <john@smith.com>", and is the computer-readable form for such in message headers as specified by RFC 2822. Furthermore, right-angle brackets are used in nested Usenet quoting and various e-mail formats, and as such are standard quotation mark glyphs.

Single and double pairs of comparison operators (<<, >>) (meaning much smaller than and much greater than) are sometimes used instead of guillemets («, ») (used as quotation marks in many languages) when the proper glyphs are not available.

In comic books, chevrons are often used to mark dialogue that has been translated notionally from another language; in other words, if a character is speaking another language, instead of writing in the other language and providing a translation, one writes the translated text within chevrons. Of course, since no foreign language is actually written, this is only notionally translated.

Chevron-like symbols are part of standard Chinese, and Korean punctuation, where they generally enclose the titles of books: ︿ and or and for traditional vertical printing, and and or and for horizontal printing.

Angle and half brackets ⸤⸥, 「」

In Chinese punctuation, angle brackets are used as quotation marks. Half brackets are used in English to mark added text, such as in translations: "Bill saw ⸤her⸥".

Computing

Encoding

These various bracket characters are frequently used in many computer languages as operators or for other syntax markup. The more common uses follow.

Uses of "(" and ")"

Uses of "[" and "]"

Uses of "{" and "}"

Uses of "<" and ">"

In computing, the less-than and greater-than symbols are regularly used with a bracket-like function since almost all keyboards lack buttons for actual angled brackets. In this context, the less-than and greater-than symbols are often referred to as angled brackets, diamond brackets, chevrons and so on.

These symbols are used in pairs as if they are brackets,

When not used in pairs to delimit text (not acting as brackets),

Layout styles

In normal writing (prose) an opening bracket is rarely left hanging at the end of a line of text nor is a closing bracket permitted to start one. However, in computer code this is often done intentionally to aid readability. For example, a bracketed list of items separated by semicolons may be written with the brackets on separate lines, and the items, followed by the semicolon, each on one line.

A common error in programming is mismatching braces; accordingly, many IDEs have braces matching to highlight matching pairs.

Mathematics

In addition to the use of parentheses to specify the order of operations, both parentheses and brackets are used to denote an interval, also referred to as a half-open range. The notation [a, c) is used to indicate an interval from a to c that is inclusive of a but exclusive of c. That is, [5, 12) would be the set of all real numbers between 5 and 12, including 5 but not 12. The numbers may come as close as they like to 12, including 11.999 and so forth (with any finite number of 9s), but 12.0 is not included. In Europe, the notation [5,12[ is also used for this. The endpoint adjoining the bracket is known as closed, while the endpoint adjoining the parenthesis is known as open. If both types of brackets are the same, the entire interval may be referred to as closed or open as appropriate. Whenever +∞ or −∞ is used as an endpoint, it is normally considered open and adjoined to a parenthesis. See Interval (mathematics) for a more complete treatment.

In quantum mechanics, chevrons are also used as part of Dirac's formalism, bra-ket notation, to note vectors from the dual spaces of the Bra (<A|) and the Ket (|B>). Mathematicians will also commonly write <a,b> for the inner product of two vectors. In statistical mechanics, Chevrons denote ensemble or time average. Chevrons are used in group theory to write group presentations, and to denote the subgroup generated by a collection of elements.

In group theory and ring theory, brackets denote the commutator. In group theory, the commutator [g,h] is commonly defined as g−1h−1gh. In ring theory, the commutator [a,b] is defined as abba. Furthermore, in ring theory, braces denote the anticommutator where {a,b} is defined as ab + ba. The bracket is also used to denote the Lie derivative, or more generally the Lie bracket in any Lie algebra.

Various notations, like the vinculum have a similar effect to brackets in specifying order of operations, or otherwise grouping several characters together for a common purpose.

In the Z formal specification language, braces define a set and chevrons define a sequence.

Accounting

Traditionally in accounting, negative amounts are placed in parentheses.[17]

Law

Brackets are used in the citation of law reports to identify parallel citations to non-official reporters. For example: Chronicle Pub. Co. v. Superior Court, (1998) 54 Cal.2d 548, [7 Cal.Rptr. 109].

When quoted material is in any way altered, the alterations are enclosed in brackets within the quotation. For example: Plaintiff asserts his cause is just, stating, "[m]y causes is [sic] just." While in the original quoted sentence the word "my" was capitalized, it has been modified in the quotation and the change signalled with brackets. Similarly, where the quotation contained a grammatical error, the quoting author signalled that the error was in the original with "[sic]" (Latin for "thus"). (California Style Manual, section 4:59 (4th ed.))

Sports

Tournament brackets, the diagrammatic representation of the series of games played during a tournament usually leading to a single winner, are so named for their resemblance to brackets or braces.

Typing

In roleplaying, and writing, brackets are used for out-of-speech sentences (otherwise known as OOC, out-of-character). Example:

(What's your name?)

Also in roleplaying, it is sometimes preferred to use double parenthesis for OOC, or sometimes brackets, depending on personal preference.

See also

References

  1. "Bracket", American Heritage Dictionary" at Yahoo Education site
  2. Free Online Dictionary of Computing
  3. Truss, Lynne. Eats, Shoots & Leaves, 2003. p. 161. ISBN 1-59240-087-6.
  4. Slash (punctuation)#Gender-neutrality in Spanish and Portuguese
  5. The Chicago Manual of Style, 15th ed., The University of Chicago Press, 2003, §6.104
  6. The Columbia Guide to Standard American English
  7. The Chicago Manual of Style, 15th ed., The University of Chicago Press, 2003, §6.105
  8. The Chicago Manual of Style, 15th ed., The University of Chicago Press, 2003, §6.102 and §6.106
  9. The Chicago Manual of Style, 15th ed., The University of Chicago Press, 2003, §6.107
  10. decodeunicode.org > U+007B LEFT CURLY BRACKET Retrieved on May 3, 2009
  11. K R Venugopal, Rajkumar Buyya, T Ravishankar. Mastering C++, 1999. p. 34. ISBN 0-07-463454-2.
  12. Messenger Emoticons See Left hug and Right hug
  13. Some fonts don't display these characters correctly. Please refer to the image on the right instead.
  14. Bob, Bemer. "The Great Curly Brace Trace Chase". http://www.bobbemer.com/BRACES.HTM. Retrieved 2009-09-05 
  15. http://www.unicode.org/charts/PDF/U2300.pdf
  16. Bryant, Randal E.; O'Hallaron, David. Computer Systems: A Programmer's Perspective, 2003. p. 794. ISBN 0-13-034074-X.
  17. IBM Information Management Software for z/OS Solutions Information Center

Bibliography