Matching Brackets in Unicode

Perm url with updates: http://xahlee.org/comp/unicode_matching_brackets.html

Matching Brackets in Unicode

Xah Lee, 2010-08-13

This page collects matching brackets in Unicode.

ASCII: () [] {}

Common quotation: “” ‘’ ‹› «»

Asian: 「」『』 〈〉 《》 【】 〖〗 〔〕 ⦗⦘ 〘〙

Full width variant: [] {}

Half width variant: 「」

Math: ⟮⟯ ⟨⟩ ⟪⟫ ⟦⟧ ⦉⦊ ⦇⦈ ⟬⟭

Decorative: ❛❜ ❝❞ ❨❩ ❪❫ ❬❭ ❮❯ ❰❱ ❲❳ ❴❵

White variants: ⦅⦆ 〚〛 ⦃⦄

Vertical: ⏜⏝ ⎴⎵ ⏞⏟ ⏠⏡

Vertical representation forms: ﹁﹂ ﹃﹄ ︹︺ ︻︼ ︗︘ ︿﹀ ︽︾ ﹇﹈ ︷︸

Other: ﹛﹜ ﹝﹞ ⸢⸣ ⸤⸥ ⦋⦌ ⦍⦎ ⦏⦐ ⁅⁆ 〈〉 ⦑⦒ ⦓⦔ ⦕⦖ ⧼⧽ ⸂⸃ ⸄⸅ ⸉⸊ ⸜⸝ ⸌⸍ 󠁛󠁝 󠁻󠁽

What Chars Are Included

The chars here must be a matching bracket pair with respect to their semantics, as indicated in the char's Unicode name.

In particular, the following chars are not considered a matching bracket:

  • Chars that merely have the appearance of a matching bracket. For example, the ASCII <> are not included.
  • Char pair that are simply mirrors images of each ohter (e.g. many math operators ⊆ ⊇).
  • Chars that are positioned together to form a large bracket, are not included. e.g. those often used in typesetting math.
  • Proper math operators in the form of matching brackets as indicated in unicode char's name are not included here neither. e.g. ⌈ ⌉ ⌊ ⌋ ⦇ ⦈ ⦉ ⦊. See: Math Symbols in Unicode for those.

For a plain text file of unicode brackets, see: unicode_brackets.txt.

The chars collected here is not complete. I estimate there are maybe 20 pairs more that should be added here.

For a guide on how many of these brackets are used in Chinese, see: Intro to Chinese Punctuation with Computer Language Syntax Perspectives.

Popular posts from this blog

11 Years of Writing About Emacs

does md5 creates more randomness?

Google Code shutting down, future of ErgoEmacs