94

什么是每个 unicode 括号状字符的列表(包括,例如:){}[]()<>?什么是搜索 unicode 字符的好方法?

4

8 回答 8

167

Unicode 联盟有一个关于每个 Unicode 字符信息的纯文本数据库;该格式在Unicode Annex #44中进行了描述。主要信息包含在UnicodeData.txt中。在 General_Category 字段(第三个字段,由 分隔)中,开始和结束标点字符用Ps(punctuation start) 和(punctuation end) 表示。寻找那些角色,你会找到你要找的东西。Pe;

请注意,并非所有您认为是括号的字符都可以列出;例如,引号(包括“«»”)。用Piand Pf(初始和最终标点符号)表示,因此您可能也希望包括这些。并且某些字符,如<>,在某些上下文(例如 HTML/XML)中用作括号,而Sm在 UnicodeData.txt 中它们被视为数学符号 ( )。那些你必须手动找到的;没有预先确定的清单。

这是获取此信息及其输出的快速 Bash 脚本。我已经包括了括号和引号。(注意:在某些 Bash 实现中,UTF-8 打印存在一个错误,导致它将 U+00AB "«" 和 U+00BB "»" 打印为 "?",并且某些终端无法呈现所有字符正确。)

while IFS=';' read number name category rest
do 
    if [[ "$category" =~ Ps|Pe|Pi|Pf ]]
    then 
        printf "%s (U+%s, %s): \u"$number"\n" "$name" "$number" "$category"
    fi
done <UnicodeData.txt
左括号 (U+0028, Ps): (
右括号 (U+0029, Pe):)
左方括号(U+005B,Ps):[
右方括号 (U+005D, Pe): ]
左大括号(U+007B,Ps):{
右花括号 (U+007D, Pe): }
左双角引号 (U+00AB, Pi): «
右指向双角引号 (U+00BB, Pf): »
TIBETAN MARK GUG RTAGS GYON (U+0F3A, Ps): ༺
TIBETAN MARK GUG RTAGS GYAS (U+0F3B, Pe): ༻
西藏马克 ANG KHANG GYON (U+0F3C, Ps): ༼
西藏 MARK ANG KHANG GYAS (U+0F3D, Pe): ༽
OGHAM FEATHER MARK (U+169B, Ps): ᚛
OGHAM REVERSED FEATHER MARK (U+169C, Pe): ᚜
左单引号 (U+2018, Pi): '
右单引号 (U+2019, Pf): '
单低 9 引号 (U+201A, Ps): ‚
单高反转 9 引号 (U+201B, Pi):‛
左双引号(U+201C,Pi):“
右双引号(U+201D, Pf):”
双低 9 引号 (U+201E, Ps): „
双高反转 9 引号 (U+201F, Pi): '
单左点角引号 (U+2039, Pi): ‹
单指向右引号 (U+203A, Pf): ›
带羽毛笔的左方括号 (U+2045, Ps):⁅
带套筒的右方括号 (U+2046, Pe): ⁆
上标左括号 (U+207D, Ps): ⁽
上标右括号 (U+207E, Pe): ⁾
左括号 (U+208D, Ps): ₍
右括号 (U+208E, Pe): ₎
左指向角括号 (U+2329, Ps): 〈
直角支架(U+232A,Pe):〉
中左括号装饰 (U+2768, Ps): ❨
中号右括号装饰 (U+2769, Pe): ❩
中等扁平左括号装饰(U + 276A,Ps):❪
中等扁平右括号装饰 (U+276B, Pe): ❫
中左指向角支架装饰 (U+276C, Ps): ❬
中号直角支架装饰 (U+276D, Pe): ❭
重左点角引号装饰 (U+276E, Ps): ❮
重度右指向角引号装饰 (U+276F, Pe): ❯
重型左指向角支架装饰 (U+2770, Ps): ❰
重型右指向角支架装饰 (U+2771, Pe): ❱
轻型左龟壳支架饰品 (U+2772, Ps): ❲
轻型右龟壳支架装饰 (U+2773, Pe): ❳
中号左花括号装饰(U+2774,Ps):❴
中号右花括号装饰 (U+2775, Pe): ❵
左 S 形包分隔符 (U+27C5, Ps): ⟅
右 S 形袋分隔符 (U+27C6, Pe): ⟆
数学左白方括号 (U+27E6, Ps):⟦
数学右白方括号 (U+27E7, Pe): ⟧
数学左角括号 (U+27E8, Ps): ⟨
数学直角括号 (U+27E9, Pe): ⟩
数学左双角括号 (U+27EA, Ps): ⟪
数学右双角括号(U+27EB,Pe):⟫
数学左白龟甲支架(U+27EC,Ps):⟬
数学右白龟甲支架 (U+27ED, Pe): ⟭
数学左平括号 (U+27EE, Ps): ⟮
数学右平括号 (U+27EF, Pe): ⟯
左白花括号 (U+2983, Ps): ⦃
右白花括号 (U+2984, Pe): ⦄
左白括号(U+2985,Ps):⦅
右白括号 (U+2986, Pe): ⦆
Z 符号左图像括号 (U+2987, Ps): ⦇
Z 表示法右图像括号 (U+2988, Pe): ⦈
Z 符号左绑定括号 (U+2989, Ps): ⦉
Z 表示法右装订括号 (U+298A, Pe):⦊
带下划线的左方括号 (U+298B, Ps):⦋
带底条的右方括号 (U+298C, Pe): ⦌
左方括号,顶角有勾号(U+298D,Ps):⦍
右方括号,底角有刻度(U+298E,Pe):⦎
左方括号,底角有刻度(U+298F,Ps):⦏
右上角带勾号的右方括号(U+2990,Pe):⦐
带点的左角括号(U+2991,Ps):⦑
带点直角括号 (U+2992, Pe): ⦒
左圆弧小于括号(U+2993,Ps):⦓
右圆弧大于括号 (U+2994, Pe): ⦔
双左圆弧大于括号 (U+2995, Ps): ⦕
双右圆弧小于括号 (U+2996, Pe): ⦖
左黑龟甲支架 (U+2997, Ps): ⦗
右黑色龟甲支架 (U+2998, Pe): ⦘
左摆动栅栏 (U+29D8, Ps): ⧘
右摆动栅栏 (U+29D9, Pe): ⧙
左双摆动栅栏 (U+29DA, Ps): ⧚
右双摆动栅栏 (U+29DB, Pe): ⧛
左弯角支架 (U+29FC, Ps): ⧼
右弯角支架(U+29FD,Pe):⧽
左替换括号 (U+2E02, Pi): ⸂
右替换括号 (U+2E03, Pf): ⸃
左虚线替换括号(U+2E04,Pi):⸄
右虚线替换括号 (U+2E05, Pf):⸅
左转置括号(U+2E09,Pi):⸉
右转置括号 (U+2E0A, Pf): ⸊
左凸省略括号 (U+2E0C, Pi): ⸌
右凸起省略括号 (U+2E0D, Pf): ⸍
左小括号(U+2E1C,Pi):⸜
右下解释括号(U+2E1D,Pf):⸝
带羽毛笔的左垂直杆 (U+2E20, Pi): ⸠
带套筒的右垂直杆 (U+2E21, Pf): ⸡
左上半括号 (U+2E22, Ps): ⸢
右上半括号 (U+2E23, Pe): ⸣
左下半括号 (U+2E24, Ps): ⸤
右下半括号 (U+2E25, Pe): ⸥
左侧 U 型支架 (U+2E26, Ps): ⸦
右侧 U 型支架 (U+2E27, Pe): ⸧
左双括号 (U+2E28, Ps): ⸨
右双括号 (U+2E29, Pe): ⸩
左角括号 (U+3008, Ps): 〈
直角支架(U+3009,Pe):〉
左双角括号(U+300A,Ps):《
右双角括号(U+300B,Pe):》
左角括号 (U+300C, Ps): 「
右角支架 (U+300D, Pe): ”
左白角括号 (U+300E, Ps): 『
右白角支架 (U+300F, Pe): 』
左黑色柱状括号(U+3010,Ps):【
右黑色柱状支架(U+3011,Pe):】
左玳瑁支架(U+3014,Ps):〔
右玳瑁支架 (U+3015, Pe): 〕
左白色柱状括号 (U+3016, Ps): 〖
右白色柱状括号 (U+3017, Pe): 】
左白龟甲支架(U+3018,Ps):〘
右白龟甲支架 (U+3019, Pe): 〙
左白方括号(U+301A,Ps):〚
右白方括号 (U+301B, Pe): 〛
反双引号 (U+301D, Ps): 〝
双引号 (U+301E, Pe): 〞
低位双引号 (U+301F, Pe): 〟
华丽的左括号 (U+FD3E, Ps): ﴾
右括号(U+FD3F,Pe):﴿
垂直左侧白色柱状支架(U+FE17,Ps)的演示文稿:︗
垂直右白色透镜支架 (U+FE18, Pe) 的演示文稿:︘
竖直左括号 (U+FE35, Ps) 的演示文稿:︵
垂直右括号 (U+FE36, Pe) 的演示文稿:︶
竖直左花括号 (U+FE37, Ps) 的演示文稿:︷
竖直右花括号 (U+FE38, Pe) 的演示文稿:︸
竖式左龟甲支架(U+FE39,Ps)演示表:︹
竖直右龟甲支架(U+FE3A,Pe)演示表:︺
垂直左黑色柱状支架(U+FE3B,Ps)的演示文稿:︻
垂直右黑色柱状支架(U+FE3C,Pe)的介绍表:︼
竖直左双角括号(U+FE3D,Ps)的表示形式:︽
垂直直角双角支架(U+FE3E,Pe)的介绍表:︾
垂直左角支架 (U+FE3F, Ps) 的演示文稿:︿
垂直直角支架(U+FE40,Pe)的介绍表:﹀
垂直左角支架(U+FE41,Ps)的演示文稿:﹁
垂直右角支架(U+FE42,Pe)的介绍表:﹂
垂直左白角支架(U+FE43,Ps)的演示文稿:﹃
垂直右白色角支架(U+FE44,Pe)的演示文稿:﹄
竖直左方括号(U+FE47,Ps)的演示文稿:﹇
竖直右方括号(U+FE48,Pe)的介绍表:﹈
左小括号 (U+FE59, Ps):﹙
右小括号(U+FE5A,Pe):﹚
小左花括号(U+FE5B,Ps):﹛
小右花括号(U+FE5C,Pe):﹜
小左龟壳支架(U+FE5D,Ps):﹝
小右龟甲支架(U+FE5E,Pe):﹞
左括号 (U+FF08, Ps): (
全角右括号 (U+FF09, Pe): )
全宽左方括号(U+FF3B,Ps):[
全宽右方括号 (U+FF3D, Pe): 】
全宽左花括号(U+FF5B,Ps):{
全宽右花括号(U+FF5D,Pe):}
左白括号(U+FF5F,Ps):⦅
全宽右白括号 (U+FF60, Pe): ⦆
半角左角括号 (U+FF62, Ps): 「
半角右角括号 (U+FF63, Pe): 」
于 2012-11-23T20:22:10.823 回答
31

Unicode 中没有这方面的规范列表——您必须定义自己的列表。您可以从使用 Python 的unicodedata模块开始探索 Unicode 数据库。<>请注意,即使它们具有其他官方含义,即作为小于和大于符号,也不会发现类似的东西被用作大括号。

#!/usr/bin/env python2.7

import re
import unicodedata

for i in range(0x10000):
    char = unichr(i)
    category = unicodedata.category(char)
    name = unicodedata.name(char, '')
    if ('bracket' in name.lower() or 'paren' in name.lower()
            or category in ['Ps', 'Pe']):
        print 'U+%04x %s %s %c' % (i, category, name, char)

输出:

U+0028 Ps LEFT PARENTHESIS (
U+0029 Pe RIGHT PARENTHESIS )
U+005b Ps LEFT SQUARE BRACKET [
U+005d Pe RIGHT SQUARE BRACKET ]
U+007b Ps LEFT CURLY BRACKET {
U+007d Pe RIGHT CURLY BRACKET }
U+0f3a Ps TIBETAN MARK GUG RTAGS GYON ༺
U+0f3b Pe TIBETAN MARK GUG RTAGS GYAS ༻
U+0f3c Ps TIBETAN MARK ANG KHANG GYON ༼
U+0f3d Pe TIBETAN MARK ANG KHANG GYAS ༽
U+169b Ps OGHAM FEATHER MARK ᚛
U+169c Pe OGHAM REVERSED FEATHER MARK ᚜
U+201a Ps SINGLE LOW-9 QUOTATION MARK ‚
U+201e Ps DOUBLE LOW-9 QUOTATION MARK „
U+2045 Ps LEFT SQUARE BRACKET WITH QUILL ⁅
U+2046 Pe RIGHT SQUARE BRACKET WITH QUILL ⁆
U+207d Ps SUPERSCRIPT LEFT PARENTHESIS ⁽
U+207e Pe SUPERSCRIPT RIGHT PARENTHESIS ⁾
U+208d Ps SUBSCRIPT LEFT PARENTHESIS ₍
U+208e Pe SUBSCRIPT RIGHT PARENTHESIS ₎
U+2329 Ps LEFT-POINTING ANGLE BRACKET 〈
U+232a Pe RIGHT-POINTING ANGLE BRACKET 〉
U+239b Sm LEFT PARENTHESIS UPPER HOOK ⎛
U+239c Sm LEFT PARENTHESIS EXTENSION ⎜
U+239d Sm LEFT PARENTHESIS LOWER HOOK ⎝
U+239e Sm RIGHT PARENTHESIS UPPER HOOK ⎞
U+239f Sm RIGHT PARENTHESIS EXTENSION ⎟
U+23a0 Sm RIGHT PARENTHESIS LOWER HOOK ⎠
U+23a1 Sm LEFT SQUARE BRACKET UPPER CORNER ⎡
U+23a2 Sm LEFT SQUARE BRACKET EXTENSION ⎢
U+23a3 Sm LEFT SQUARE BRACKET LOWER CORNER ⎣
U+23a4 Sm RIGHT SQUARE BRACKET UPPER CORNER ⎤
U+23a5 Sm RIGHT SQUARE BRACKET EXTENSION ⎥
U+23a6 Sm RIGHT SQUARE BRACKET LOWER CORNER ⎦
U+23a7 Sm LEFT CURLY BRACKET UPPER HOOK ⎧
U+23a8 Sm LEFT CURLY BRACKET MIDDLE PIECE ⎨
U+23a9 Sm LEFT CURLY BRACKET LOWER HOOK ⎩
U+23aa Sm CURLY BRACKET EXTENSION ⎪
U+23ab Sm RIGHT CURLY BRACKET UPPER HOOK ⎫
U+23ac Sm RIGHT CURLY BRACKET MIDDLE PIECE ⎬
U+23ad Sm RIGHT CURLY BRACKET LOWER HOOK ⎭
U+23b0 Sm UPPER LEFT OR LOWER RIGHT CURLY BRACKET SECTION ⎰
U+23b1 Sm UPPER RIGHT OR LOWER LEFT CURLY BRACKET SECTION ⎱
U+23b4 So TOP SQUARE BRACKET ⎴
U+23b5 So BOTTOM SQUARE BRACKET ⎵
U+23b6 So BOTTOM SQUARE BRACKET OVER TOP SQUARE BRACKET ⎶
U+23dc Sm TOP PARENTHESIS ⏜
U+23dd Sm BOTTOM PARENTHESIS ⏝
U+23de Sm TOP CURLY BRACKET ⏞
U+23df Sm BOTTOM CURLY BRACKET ⏟
U+23e0 Sm TOP TORTOISE SHELL BRACKET ⏠
U+23e1 Sm BOTTOM TORTOISE SHELL BRACKET ⏡
U+2474 No PARENTHESIZED DIGIT ONE ⑴
U+2475 No PARENTHESIZED DIGIT TWO ⑵
U+2476 No PARENTHESIZED DIGIT THREE ⑶
U+2477 No PARENTHESIZED DIGIT FOUR ⑷
U+2478 No PARENTHESIZED DIGIT FIVE ⑸
U+2479 No PARENTHESIZED DIGIT SIX ⑹
U+247a No PARENTHESIZED DIGIT SEVEN ⑺
U+247b No PARENTHESIZED DIGIT EIGHT ⑻
U+247c No PARENTHESIZED DIGIT NINE ⑼
U+247d No PARENTHESIZED NUMBER TEN ⑽
U+247e No PARENTHESIZED NUMBER ELEVEN ⑾
U+247f No PARENTHESIZED NUMBER TWELVE ⑿
U+2480 No PARENTHESIZED NUMBER THIRTEEN ⒀
U+2481 No PARENTHESIZED NUMBER FOURTEEN ⒁
U+2482 No PARENTHESIZED NUMBER FIFTEEN ⒂
U+2483 No PARENTHESIZED NUMBER SIXTEEN ⒃
U+2484 No PARENTHESIZED NUMBER SEVENTEEN ⒄
U+2485 No PARENTHESIZED NUMBER EIGHTEEN ⒅
U+2486 No PARENTHESIZED NUMBER NINETEEN ⒆
U+2487 No PARENTHESIZED NUMBER TWENTY ⒇
U+249c So PARENTHESIZED LATIN SMALL LETTER A ⒜
U+249d So PARENTHESIZED LATIN SMALL LETTER B ⒝
U+249e So PARENTHESIZED LATIN SMALL LETTER C ⒞
U+249f So PARENTHESIZED LATIN SMALL LETTER D ⒟
U+24a0 So PARENTHESIZED LATIN SMALL LETTER E ⒠
U+24a1 So PARENTHESIZED LATIN SMALL LETTER F ⒡
U+24a2 So PARENTHESIZED LATIN SMALL LETTER G ⒢
U+24a3 So PARENTHESIZED LATIN SMALL LETTER H ⒣
U+24a4 So PARENTHESIZED LATIN SMALL LETTER I ⒤
U+24a5 So PARENTHESIZED LATIN SMALL LETTER J ⒥
U+24a6 So PARENTHESIZED LATIN SMALL LETTER K ⒦
U+24a7 So PARENTHESIZED LATIN SMALL LETTER L ⒧
U+24a8 So PARENTHESIZED LATIN SMALL LETTER M ⒨
U+24a9 So PARENTHESIZED LATIN SMALL LETTER N ⒩
U+24aa So PARENTHESIZED LATIN SMALL LETTER O ⒪
U+24ab So PARENTHESIZED LATIN SMALL LETTER P ⒫
U+24ac So PARENTHESIZED LATIN SMALL LETTER Q ⒬
U+24ad So PARENTHESIZED LATIN SMALL LETTER R ⒭
U+24ae So PARENTHESIZED LATIN SMALL LETTER S ⒮
U+24af So PARENTHESIZED LATIN SMALL LETTER T ⒯
U+24b0 So PARENTHESIZED LATIN SMALL LETTER U ⒰
U+24b1 So PARENTHESIZED LATIN SMALL LETTER V ⒱
U+24b2 So PARENTHESIZED LATIN SMALL LETTER W ⒲
U+24b3 So PARENTHESIZED LATIN SMALL LETTER X ⒳
U+24b4 So PARENTHESIZED LATIN SMALL LETTER Y ⒴
U+24b5 So PARENTHESIZED LATIN SMALL LETTER Z ⒵
U+2768 Ps MEDIUM LEFT PARENTHESIS ORNAMENT ❨
U+2769 Pe MEDIUM RIGHT PARENTHESIS ORNAMENT ❩
U+276a Ps MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT ❪
U+276b Pe MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT ❫
U+276c Ps MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT ❬
U+276d Pe MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT ❭
U+276e Ps HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT ❮
U+276f Pe HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT ❯
U+2770 Ps HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT ❰
U+2771 Pe HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT ❱
U+2772 Ps LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT ❲
U+2773 Pe LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT ❳
U+2774 Ps MEDIUM LEFT CURLY BRACKET ORNAMENT ❴
U+2775 Pe MEDIUM RIGHT CURLY BRACKET ORNAMENT ❵
U+27c5 Ps LEFT S-SHAPED BAG DELIMITER ⟅
U+27c6 Pe RIGHT S-SHAPED BAG DELIMITER ⟆
U+27e6 Ps MATHEMATICAL LEFT WHITE SQUARE BRACKET ⟦
U+27e7 Pe MATHEMATICAL RIGHT WHITE SQUARE BRACKET ⟧
U+27e8 Ps MATHEMATICAL LEFT ANGLE BRACKET ⟨
U+27e9 Pe MATHEMATICAL RIGHT ANGLE BRACKET ⟩
U+27ea Ps MATHEMATICAL LEFT DOUBLE ANGLE BRACKET ⟪
U+27eb Pe MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET ⟫
U+27ec Ps MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET ⟬
U+27ed Pe MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET ⟭
U+27ee Ps MATHEMATICAL LEFT FLATTENED PARENTHESIS ⟮
U+27ef Pe MATHEMATICAL RIGHT FLATTENED PARENTHESIS ⟯
U+2983 Ps LEFT WHITE CURLY BRACKET ⦃
U+2984 Pe RIGHT WHITE CURLY BRACKET ⦄
U+2985 Ps LEFT WHITE PARENTHESIS ⦅
U+2986 Pe RIGHT WHITE PARENTHESIS ⦆
U+2987 Ps Z NOTATION LEFT IMAGE BRACKET ⦇
U+2988 Pe Z NOTATION RIGHT IMAGE BRACKET ⦈
U+2989 Ps Z NOTATION LEFT BINDING BRACKET ⦉
U+298a Pe Z NOTATION RIGHT BINDING BRACKET ⦊
U+298b Ps LEFT SQUARE BRACKET WITH UNDERBAR ⦋
U+298c Pe RIGHT SQUARE BRACKET WITH UNDERBAR ⦌
U+298d Ps LEFT SQUARE BRACKET WITH TICK IN TOP CORNER ⦍
U+298e Pe RIGHT SQUARE BRACKET WITH TICK IN BOTTOM CORNER ⦎
U+298f Ps LEFT SQUARE BRACKET WITH TICK IN BOTTOM CORNER ⦏
U+2990 Pe RIGHT SQUARE BRACKET WITH TICK IN TOP CORNER ⦐
U+2991 Ps LEFT ANGLE BRACKET WITH DOT ⦑
U+2992 Pe RIGHT ANGLE BRACKET WITH DOT ⦒
U+2993 Ps LEFT ARC LESS-THAN BRACKET ⦓
U+2994 Pe RIGHT ARC GREATER-THAN BRACKET ⦔
U+2995 Ps DOUBLE LEFT ARC GREATER-THAN BRACKET ⦕
U+2996 Pe DOUBLE RIGHT ARC LESS-THAN BRACKET ⦖
U+2997 Ps LEFT BLACK TORTOISE SHELL BRACKET ⦗
U+2998 Pe RIGHT BLACK TORTOISE SHELL BRACKET ⦘
U+29d8 Ps LEFT WIGGLY FENCE ⧘
U+29d9 Pe RIGHT WIGGLY FENCE ⧙
U+29da Ps LEFT DOUBLE WIGGLY FENCE ⧚
U+29db Pe RIGHT DOUBLE WIGGLY FENCE ⧛
U+29fc Ps LEFT-POINTING CURVED ANGLE BRACKET ⧼
U+29fd Pe RIGHT-POINTING CURVED ANGLE BRACKET ⧽
U+2e02 Pi LEFT SUBSTITUTION BRACKET ⸂
U+2e03 Pf RIGHT SUBSTITUTION BRACKET ⸃
U+2e04 Pi LEFT DOTTED SUBSTITUTION BRACKET ⸄
U+2e05 Pf RIGHT DOTTED SUBSTITUTION BRACKET ⸅
U+2e09 Pi LEFT TRANSPOSITION BRACKET ⸉
U+2e0a Pf RIGHT TRANSPOSITION BRACKET ⸊
U+2e0c Pi LEFT RAISED OMISSION BRACKET ⸌
U+2e0d Pf RIGHT RAISED OMISSION BRACKET ⸍
U+2e1c Pi LEFT LOW PARAPHRASE BRACKET ⸜
U+2e1d Pf RIGHT LOW PARAPHRASE BRACKET ⸝
U+2e22 Ps TOP LEFT HALF BRACKET ⸢
U+2e23 Pe TOP RIGHT HALF BRACKET ⸣
U+2e24 Ps BOTTOM LEFT HALF BRACKET ⸤
U+2e25 Pe BOTTOM RIGHT HALF BRACKET ⸥
U+2e26 Ps LEFT SIDEWAYS U BRACKET ⸦
U+2e27 Pe RIGHT SIDEWAYS U BRACKET ⸧
U+2e28 Ps LEFT DOUBLE PARENTHESIS ⸨
U+2e29 Pe RIGHT DOUBLE PARENTHESIS ⸩
U+3008 Ps LEFT ANGLE BRACKET 〈
U+3009 Pe RIGHT ANGLE BRACKET 〉
U+300a Ps LEFT DOUBLE ANGLE BRACKET 《
U+300b Pe RIGHT DOUBLE ANGLE BRACKET 》
U+300c Ps LEFT CORNER BRACKET 「
U+300d Pe RIGHT CORNER BRACKET 」
U+300e Ps LEFT WHITE CORNER BRACKET 『
U+300f Pe RIGHT WHITE CORNER BRACKET 』
U+3010 Ps LEFT BLACK LENTICULAR BRACKET 【
U+3011 Pe RIGHT BLACK LENTICULAR BRACKET 】
U+3014 Ps LEFT TORTOISE SHELL BRACKET 〔
U+3015 Pe RIGHT TORTOISE SHELL BRACKET 〕
U+3016 Ps LEFT WHITE LENTICULAR BRACKET 〖
U+3017 Pe RIGHT WHITE LENTICULAR BRACKET 〗
U+3018 Ps LEFT WHITE TORTOISE SHELL BRACKET 〘
U+3019 Pe RIGHT WHITE TORTOISE SHELL BRACKET 〙
U+301a Ps LEFT WHITE SQUARE BRACKET 〚
U+301b Pe RIGHT WHITE SQUARE BRACKET 〛
U+301d Ps REVERSED DOUBLE PRIME QUOTATION MARK 〝
U+301e Pe DOUBLE PRIME QUOTATION MARK 〞
U+301f Pe LOW DOUBLE PRIME QUOTATION MARK 〟
U+3200 So PARENTHESIZED HANGUL KIYEOK ㈀
U+3201 So PARENTHESIZED HANGUL NIEUN ㈁
U+3202 So PARENTHESIZED HANGUL TIKEUT ㈂
U+3203 So PARENTHESIZED HANGUL RIEUL ㈃
U+3204 So PARENTHESIZED HANGUL MIEUM ㈄
U+3205 So PARENTHESIZED HANGUL PIEUP ㈅
U+3206 So PARENTHESIZED HANGUL SIOS ㈆
U+3207 So PARENTHESIZED HANGUL IEUNG ㈇
U+3208 So PARENTHESIZED HANGUL CIEUC ㈈
U+3209 So PARENTHESIZED HANGUL CHIEUCH ㈉
U+320a So PARENTHESIZED HANGUL KHIEUKH ㈊
U+320b So PARENTHESIZED HANGUL THIEUTH ㈋
U+320c So PARENTHESIZED HANGUL PHIEUPH ㈌
U+320d So PARENTHESIZED HANGUL HIEUH ㈍
U+320e So PARENTHESIZED HANGUL KIYEOK A ㈎
U+320f So PARENTHESIZED HANGUL NIEUN A ㈏
U+3210 So PARENTHESIZED HANGUL TIKEUT A ㈐
U+3211 So PARENTHESIZED HANGUL RIEUL A ㈑
U+3212 So PARENTHESIZED HANGUL MIEUM A ㈒
U+3213 So PARENTHESIZED HANGUL PIEUP A ㈓
U+3214 So PARENTHESIZED HANGUL SIOS A ㈔
U+3215 So PARENTHESIZED HANGUL IEUNG A ㈕
U+3216 So PARENTHESIZED HANGUL CIEUC A ㈖
U+3217 So PARENTHESIZED HANGUL CHIEUCH A ㈗
U+3218 So PARENTHESIZED HANGUL KHIEUKH A ㈘
U+3219 So PARENTHESIZED HANGUL THIEUTH A ㈙
U+321a So PARENTHESIZED HANGUL PHIEUPH A ㈚
U+321b So PARENTHESIZED HANGUL HIEUH A ㈛
U+321c So PARENTHESIZED HANGUL CIEUC U ㈜
U+321d So PARENTHESIZED KOREAN CHARACTER OJEON ㈝
U+321e So PARENTHESIZED KOREAN CHARACTER O HU ㈞
U+3220 No PARENTHESIZED IDEOGRAPH ONE ㈠
U+3221 No PARENTHESIZED IDEOGRAPH TWO ㈡
U+3222 No PARENTHESIZED IDEOGRAPH THREE ㈢
U+3223 No PARENTHESIZED IDEOGRAPH FOUR ㈣
U+3224 No PARENTHESIZED IDEOGRAPH FIVE ㈤
U+3225 No PARENTHESIZED IDEOGRAPH SIX ㈥
U+3226 No PARENTHESIZED IDEOGRAPH SEVEN ㈦
U+3227 No PARENTHESIZED IDEOGRAPH EIGHT ㈧
U+3228 No PARENTHESIZED IDEOGRAPH NINE ㈨
U+3229 No PARENTHESIZED IDEOGRAPH TEN ㈩
U+322a So PARENTHESIZED IDEOGRAPH MOON ㈪
U+322b So PARENTHESIZED IDEOGRAPH FIRE ㈫
U+322c So PARENTHESIZED IDEOGRAPH WATER ㈬
U+322d So PARENTHESIZED IDEOGRAPH WOOD ㈭
U+322e So PARENTHESIZED IDEOGRAPH METAL ㈮
U+322f So PARENTHESIZED IDEOGRAPH EARTH ㈯
U+3230 So PARENTHESIZED IDEOGRAPH SUN ㈰
U+3231 So PARENTHESIZED IDEOGRAPH STOCK ㈱
U+3232 So PARENTHESIZED IDEOGRAPH HAVE ㈲
U+3233 So PARENTHESIZED IDEOGRAPH SOCIETY ㈳
U+3234 So PARENTHESIZED IDEOGRAPH NAME ㈴
U+3235 So PARENTHESIZED IDEOGRAPH SPECIAL ㈵
U+3236 So PARENTHESIZED IDEOGRAPH FINANCIAL ㈶
U+3237 So PARENTHESIZED IDEOGRAPH CONGRATULATION ㈷
U+3238 So PARENTHESIZED IDEOGRAPH LABOR ㈸
U+3239 So PARENTHESIZED IDEOGRAPH REPRESENT ㈹
U+323a So PARENTHESIZED IDEOGRAPH CALL ㈺
U+323b So PARENTHESIZED IDEOGRAPH STUDY ㈻
U+323c So PARENTHESIZED IDEOGRAPH SUPERVISE ㈼
U+323d So PARENTHESIZED IDEOGRAPH ENTERPRISE ㈽
U+323e So PARENTHESIZED IDEOGRAPH RESOURCE ㈾
U+323f So PARENTHESIZED IDEOGRAPH ALLIANCE ㈿
U+3240 So PARENTHESIZED IDEOGRAPH FESTIVAL ㉀
U+3241 So PARENTHESIZED IDEOGRAPH REST ㉁
U+3242 So PARENTHESIZED IDEOGRAPH SELF ㉂
U+3243 So PARENTHESIZED IDEOGRAPH REACH ㉃
U+fd3e Ps ORNATE LEFT PARENTHESIS ﴾
U+fd3f Pe ORNATE RIGHT PARENTHESIS ﴿
U+fe17 Ps PRESENTATION FORM FOR VERTICAL LEFT WHITE LENTICULAR BRACKET ︗
U+fe18 Pe PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET ︘
U+fe35 Ps PRESENTATION FORM FOR VERTICAL LEFT PARENTHESIS ︵
U+fe36 Pe PRESENTATION FORM FOR VERTICAL RIGHT PARENTHESIS ︶
U+fe37 Ps PRESENTATION FORM FOR VERTICAL LEFT CURLY BRACKET ︷
U+fe38 Pe PRESENTATION FORM FOR VERTICAL RIGHT CURLY BRACKET ︸
U+fe39 Ps PRESENTATION FORM FOR VERTICAL LEFT TORTOISE SHELL BRACKET ︹
U+fe3a Pe PRESENTATION FORM FOR VERTICAL RIGHT TORTOISE SHELL BRACKET ︺
U+fe3b Ps PRESENTATION FORM FOR VERTICAL LEFT BLACK LENTICULAR BRACKET ︻
U+fe3c Pe PRESENTATION FORM FOR VERTICAL RIGHT BLACK LENTICULAR BRACKET ︼
U+fe3d Ps PRESENTATION FORM FOR VERTICAL LEFT DOUBLE ANGLE BRACKET ︽
U+fe3e Pe PRESENTATION FORM FOR VERTICAL RIGHT DOUBLE ANGLE BRACKET ︾
U+fe3f Ps PRESENTATION FORM FOR VERTICAL LEFT ANGLE BRACKET ︿
U+fe40 Pe PRESENTATION FORM FOR VERTICAL RIGHT ANGLE BRACKET ﹀
U+fe41 Ps PRESENTATION FORM FOR VERTICAL LEFT CORNER BRACKET ﹁
U+fe42 Pe PRESENTATION FORM FOR VERTICAL RIGHT CORNER BRACKET ﹂
U+fe43 Ps PRESENTATION FORM FOR VERTICAL LEFT WHITE CORNER BRACKET ﹃
U+fe44 Pe PRESENTATION FORM FOR VERTICAL RIGHT WHITE CORNER BRACKET ﹄
U+fe47 Ps PRESENTATION FORM FOR VERTICAL LEFT SQUARE BRACKET ﹇
U+fe48 Pe PRESENTATION FORM FOR VERTICAL RIGHT SQUARE BRACKET ﹈
U+fe59 Ps SMALL LEFT PARENTHESIS ﹙
U+fe5a Pe SMALL RIGHT PARENTHESIS ﹚
U+fe5b Ps SMALL LEFT CURLY BRACKET ﹛
U+fe5c Pe SMALL RIGHT CURLY BRACKET ﹜
U+fe5d Ps SMALL LEFT TORTOISE SHELL BRACKET ﹝
U+fe5e Pe SMALL RIGHT TORTOISE SHELL BRACKET ﹞
U+ff08 Ps FULLWIDTH LEFT PARENTHESIS (
U+ff09 Pe FULLWIDTH RIGHT PARENTHESIS )
U+ff3b Ps FULLWIDTH LEFT SQUARE BRACKET [
U+ff3d Pe FULLWIDTH RIGHT SQUARE BRACKET ]
U+ff5b Ps FULLWIDTH LEFT CURLY BRACKET {
U+ff5d Pe FULLWIDTH RIGHT CURLY BRACKET }
U+ff5f Ps FULLWIDTH LEFT WHITE PARENTHESIS ⦅
U+ff60 Pe FULLWIDTH RIGHT WHITE PARENTHESIS ⦆
U+ff62 Ps HALFWIDTH LEFT CORNER BRACKET 「
U+ff63 Pe HALFWIDTH RIGHT CORNER BRACKET 」
于 2012-11-23T20:28:09.400 回答
23

最近的 Unicode 版本添加了一个属性 Bidi_Paired_Bracket,它给出了 Unicode 认为是这个问题的答案。这与镜像的不同。从 Unicode 8.0 开始有 60 个括号对。下表将每个映射到其配对。第一列给出一个代码点;第二个给出了它被引入的 Unicode 版本;第三个显示映射,最后一列按字符名称给出映射。此外,为了查看 Unicode 字符数据库,Perl5 与模块 Unicode::UCD 打包在一起,具有许多用于检查事物的功能,包括 Perl v5.22 中的新功能,它将输出给定代码点的所有属性的值。CPAN 上的 Unicode::Tussle 提供了类似的功能和其他功能

0028 1.1 '(' => ')';  LEFT PARENTHESIS => RIGHT PARENTHESIS
0029 1.1 ')' => '(';  RIGHT PARENTHESIS => LEFT PARENTHESIS
005B 1.1 '[' => ']';  LEFT SQUARE BRACKET => RIGHT SQUARE BRACKET
005D 1.1 ']' => '[';  RIGHT SQUARE BRACKET => LEFT SQUARE BRACKET
007B 1.1 '{' => '}';  LEFT CURLY BRACKET => RIGHT CURLY BRACKET
007D 1.1 '}' => '{';  RIGHT CURLY BRACKET => LEFT CURLY BRACKET
0F3A 2.0 '༺' => '༻';  TIBETAN MARK GUG RTAGS GYON => TIBETAN MARK GUG RTAGS GYAS
0F3B 2.0 '༻' => '༺';  TIBETAN MARK GUG RTAGS GYAS => TIBETAN MARK GUG RTAGS GYON
0F3C 2.0 '༼' => '༽';  TIBETAN MARK ANG KHANG GYON => TIBETAN MARK ANG KHANG GYAS
0F3D 2.0 '༽' => '༼';  TIBETAN MARK ANG KHANG GYAS => TIBETAN MARK ANG KHANG GYON
169B 3.0 '᚛' => '᚜';  OGHAM FEATHER MARK => OGHAM REVERSED FEATHER MARK
169C 3.0 '᚜' => '᚛';  OGHAM REVERSED FEATHER MARK => OGHAM FEATHER MARK
2045 1.1 '⁅' => '⁆';  LEFT SQUARE BRACKET WITH QUILL => RIGHT SQUARE BRACKET WITH QUILL
2046 1.1 '⁆' => '⁅';  RIGHT SQUARE BRACKET WITH QUILL => LEFT SQUARE BRACKET WITH QUILL
207D 1.1 '⁽' => '⁾';  SUPERSCRIPT LEFT PARENTHESIS => SUPERSCRIPT RIGHT PARENTHESIS
207E 1.1 '⁾' => '⁽';  SUPERSCRIPT RIGHT PARENTHESIS => SUPERSCRIPT LEFT PARENTHESIS
208D 1.1 '₍' => '₎';  SUBSCRIPT LEFT PARENTHESIS => SUBSCRIPT RIGHT PARENTHESIS
208E 1.1 '₎' => '₍';  SUBSCRIPT RIGHT PARENTHESIS => SUBSCRIPT LEFT PARENTHESIS
2308 1.1 '⌈' => '⌉';  LEFT CEILING => RIGHT CEILING
2309 1.1 '⌉' => '⌈';  RIGHT CEILING => LEFT CEILING
230A 1.1 '⌊' => '⌋';  LEFT FLOOR => RIGHT FLOOR
230B 1.1 '⌋' => '⌊';  RIGHT FLOOR => LEFT FLOOR
2329 1.1 '〈' => '〉';  LEFT-POINTING ANGLE BRACKET => RIGHT-POINTING ANGLE BRACKET
232A 1.1 '〉' => '〈';  RIGHT-POINTING ANGLE BRACKET => LEFT-POINTING ANGLE BRACKET
2768 3.2 '❨' => '❩';  MEDIUM LEFT PARENTHESIS ORNAMENT => MEDIUM RIGHT PARENTHESIS ORNAMENT
2769 3.2 '❩' => '❨';  MEDIUM RIGHT PARENTHESIS ORNAMENT => MEDIUM LEFT PARENTHESIS ORNAMENT
276A 3.2 '❪' => '❫';  MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT => MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT
276B 3.2 '❫' => '❪';  MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT => MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT
276C 3.2 '❬' => '❭';  MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT => MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT
276D 3.2 '❭' => '❬';  MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT => MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
276E 3.2 '❮' => '❯';  HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT => HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT
276F 3.2 '❯' => '❮';  HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT => HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT
2770 3.2 '❰' => '❱';  HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT => HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT
2771 3.2 '❱' => '❰';  HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT => HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT
2772 3.2 '❲' => '❳';  LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT => LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT
2773 3.2 '❳' => '❲';  LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT => LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT
2774 3.2 '❴' => '❵';  MEDIUM LEFT CURLY BRACKET ORNAMENT => MEDIUM RIGHT CURLY BRACKET ORNAMENT
2775 3.2 '❵' => '❴';  MEDIUM RIGHT CURLY BRACKET ORNAMENT => MEDIUM LEFT CURLY BRACKET ORNAMENT
27C5 4.1 '⟅' => '⟆';  LEFT S-SHAPED BAG DELIMITER => RIGHT S-SHAPED BAG DELIMITER
27C6 4.1 '⟆' => '⟅';  RIGHT S-SHAPED BAG DELIMITER => LEFT S-SHAPED BAG DELIMITER
27E6 3.2 '⟦' => '⟧';  MATHEMATICAL LEFT WHITE SQUARE BRACKET => MATHEMATICAL RIGHT WHITE SQUARE BRACKET
27E7 3.2 '⟧' => '⟦';  MATHEMATICAL RIGHT WHITE SQUARE BRACKET => MATHEMATICAL LEFT WHITE SQUARE BRACKET
27E8 3.2 '⟨' => '⟩';  MATHEMATICAL LEFT ANGLE BRACKET => MATHEMATICAL RIGHT ANGLE BRACKET
27E9 3.2 '⟩' => '⟨';  MATHEMATICAL RIGHT ANGLE BRACKET => MATHEMATICAL LEFT ANGLE BRACKET
27EA 3.2 '⟪' => '⟫';  MATHEMATICAL LEFT DOUBLE ANGLE BRACKET => MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET
27EB 3.2 '⟫' => '⟪';  MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET => MATHEMATICAL LEFT DOUBLE ANGLE BRACKET
27EC 5.1 '⟬' => '⟭';  MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET => MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET
27ED 5.1 '⟭' => '⟬';  MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET => MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET
27EE 5.1 '⟮' => '⟯';  MATHEMATICAL LEFT FLATTENED PARENTHESIS => MATHEMATICAL RIGHT FLATTENED PARENTHESIS
27EF 5.1 '⟯' => '⟮';  MATHEMATICAL RIGHT FLATTENED PARENTHESIS => MATHEMATICAL LEFT FLATTENED PARENTHESIS
2983 3.2 '⦃' => '⦄';  LEFT WHITE CURLY BRACKET => RIGHT WHITE CURLY BRACKET
2984 3.2 '⦄' => '⦃';  RIGHT WHITE CURLY BRACKET => LEFT WHITE CURLY BRACKET
2985 3.2 '⦅' => '⦆';  LEFT WHITE PARENTHESIS => RIGHT WHITE PARENTHESIS
2986 3.2 '⦆' => '⦅';  RIGHT WHITE PARENTHESIS => LEFT WHITE PARENTHESIS
2987 3.2 '⦇' => '⦈';  Z NOTATION LEFT IMAGE BRACKET => Z NOTATION RIGHT IMAGE BRACKET
2988 3.2 '⦈' => '⦇';  Z NOTATION RIGHT IMAGE BRACKET => Z NOTATION LEFT IMAGE BRACKET
2989 3.2 '⦉' => '⦊';  Z NOTATION LEFT BINDING BRACKET => Z NOTATION RIGHT BINDING BRACKET
298A 3.2 '⦊' => '⦉';  Z NOTATION RIGHT BINDING BRACKET => Z NOTATION LEFT BINDING BRACKET
298B 3.2 '⦋' => '⦌';  LEFT SQUARE BRACKET WITH UNDERBAR => RIGHT SQUARE BRACKET WITH UNDERBAR
298C 3.2 '⦌' => '⦋';  RIGHT SQUARE BRACKET WITH UNDERBAR => LEFT SQUARE BRACKET WITH UNDERBAR
298D 3.2 '⦍' => '⦐';  LEFT SQUARE BRACKET WITH TICK IN TOP CORNER => RIGHT SQUARE BRACKET WITH TICK IN TOP CORNER
298E 3.2 '⦎' => '⦏';  RIGHT SQUARE BRACKET WITH TICK IN BOTTOM CORNER => LEFT SQUARE BRACKET WITH TICK IN BOTTOM CORNER
298F 3.2 '⦏' => '⦎';  LEFT SQUARE BRACKET WITH TICK IN BOTTOM CORNER => RIGHT SQUARE BRACKET WITH TICK IN BOTTOM CORNER
2990 3.2 '⦐' => '⦍';  RIGHT SQUARE BRACKET WITH TICK IN TOP CORNER => LEFT SQUARE BRACKET WITH TICK IN TOP CORNER
2991 3.2 '⦑' => '⦒';  LEFT ANGLE BRACKET WITH DOT => RIGHT ANGLE BRACKET WITH DOT
2992 3.2 '⦒' => '⦑';  RIGHT ANGLE BRACKET WITH DOT => LEFT ANGLE BRACKET WITH DOT
2993 3.2 '⦓' => '⦔';  LEFT ARC LESS-THAN BRACKET => RIGHT ARC GREATER-THAN BRACKET
2994 3.2 '⦔' => '⦓';  RIGHT ARC GREATER-THAN BRACKET => LEFT ARC LESS-THAN BRACKET
2995 3.2 '⦕' => '⦖';  DOUBLE LEFT ARC GREATER-THAN BRACKET => DOUBLE RIGHT ARC LESS-THAN BRACKET
2996 3.2 '⦖' => '⦕';  DOUBLE RIGHT ARC LESS-THAN BRACKET => DOUBLE LEFT ARC GREATER-THAN BRACKET
2997 3.2 '⦗' => '⦘';  LEFT BLACK TORTOISE SHELL BRACKET => RIGHT BLACK TORTOISE SHELL BRACKET
2998 3.2 '⦘' => '⦗';  RIGHT BLACK TORTOISE SHELL BRACKET => LEFT BLACK TORTOISE SHELL BRACKET
29D8 3.2 '⧘' => '⧙';  LEFT WIGGLY FENCE => RIGHT WIGGLY FENCE
29D9 3.2 '⧙' => '⧘';  RIGHT WIGGLY FENCE => LEFT WIGGLY FENCE
29DA 3.2 '⧚' => '⧛';  LEFT DOUBLE WIGGLY FENCE => RIGHT DOUBLE WIGGLY FENCE
29DB 3.2 '⧛' => '⧚';  RIGHT DOUBLE WIGGLY FENCE => LEFT DOUBLE WIGGLY FENCE
29FC 3.2 '⧼' => '⧽';  LEFT-POINTING CURVED ANGLE BRACKET => RIGHT-POINTING CURVED ANGLE BRACKET
29FD 3.2 '⧽' => '⧼';  RIGHT-POINTING CURVED ANGLE BRACKET => LEFT-POINTING CURVED ANGLE BRACKET
2E22 5.1 '⸢' => '⸣';  TOP LEFT HALF BRACKET => TOP RIGHT HALF BRACKET
2E23 5.1 '⸣' => '⸢';  TOP RIGHT HALF BRACKET => TOP LEFT HALF BRACKET
2E24 5.1 '⸤' => '⸥';  BOTTOM LEFT HALF BRACKET => BOTTOM RIGHT HALF BRACKET
2E25 5.1 '⸥' => '⸤';  BOTTOM RIGHT HALF BRACKET => BOTTOM LEFT HALF BRACKET
2E26 5.1 '⸦' => '⸧';  LEFT SIDEWAYS U BRACKET => RIGHT SIDEWAYS U BRACKET
2E27 5.1 '⸧' => '⸦';  RIGHT SIDEWAYS U BRACKET => LEFT SIDEWAYS U BRACKET
2E28 5.1 '⸨' => '⸩';  LEFT DOUBLE PARENTHESIS => RIGHT DOUBLE PARENTHESIS
2E29 5.1 '⸩' => '⸨';  RIGHT DOUBLE PARENTHESIS => LEFT DOUBLE PARENTHESIS
3008 1.1 '〈' => '〉';  LEFT ANGLE BRACKET => RIGHT ANGLE BRACKET
3009 1.1 '〉' => '〈';  RIGHT ANGLE BRACKET => LEFT ANGLE BRACKET
300A 1.1 '《' => '》';  LEFT DOUBLE ANGLE BRACKET => RIGHT DOUBLE ANGLE BRACKET
300B 1.1 '》' => '《';  RIGHT DOUBLE ANGLE BRACKET => LEFT DOUBLE ANGLE BRACKET
300C 1.1 '「' => '」';  LEFT CORNER BRACKET => RIGHT CORNER BRACKET
300D 1.1 '」' => '「';  RIGHT CORNER BRACKET => LEFT CORNER BRACKET
300E 1.1 '『' => '』';  LEFT WHITE CORNER BRACKET => RIGHT WHITE CORNER BRACKET
300F 1.1 '』' => '『';  RIGHT WHITE CORNER BRACKET => LEFT WHITE CORNER BRACKET
3010 1.1 '【' => '】';  LEFT BLACK LENTICULAR BRACKET => RIGHT BLACK LENTICULAR BRACKET
3011 1.1 '】' => '【';  RIGHT BLACK LENTICULAR BRACKET => LEFT BLACK LENTICULAR BRACKET
3014 1.1 '〔' => '〕';  LEFT TORTOISE SHELL BRACKET => RIGHT TORTOISE SHELL BRACKET
3015 1.1 '〕' => '〔';  RIGHT TORTOISE SHELL BRACKET => LEFT TORTOISE SHELL BRACKET
3016 1.1 '〖' => '〗';  LEFT WHITE LENTICULAR BRACKET => RIGHT WHITE LENTICULAR BRACKET
3017 1.1 '〗' => '〖';  RIGHT WHITE LENTICULAR BRACKET => LEFT WHITE LENTICULAR BRACKET
3018 1.1 '〘' => '〙';  LEFT WHITE TORTOISE SHELL BRACKET => RIGHT WHITE TORTOISE SHELL BRACKET
3019 1.1 '〙' => '〘';  RIGHT WHITE TORTOISE SHELL BRACKET => LEFT WHITE TORTOISE SHELL BRACKET
301A 1.1 '〚' => '〛';  LEFT WHITE SQUARE BRACKET => RIGHT WHITE SQUARE BRACKET
301B 1.1 '〛' => '〚';  RIGHT WHITE SQUARE BRACKET => LEFT WHITE SQUARE BRACKET
FE59 1.1 '﹙' => '﹚';  SMALL LEFT PARENTHESIS => SMALL RIGHT PARENTHESIS
FE5A 1.1 '﹚' => '﹙';  SMALL RIGHT PARENTHESIS => SMALL LEFT PARENTHESIS
FE5B 1.1 '﹛' => '﹜';  SMALL LEFT CURLY BRACKET => SMALL RIGHT CURLY BRACKET
FE5C 1.1 '﹜' => '﹛';  SMALL RIGHT CURLY BRACKET => SMALL LEFT CURLY BRACKET
FE5D 1.1 '﹝' => '﹞';  SMALL LEFT TORTOISE SHELL BRACKET => SMALL RIGHT TORTOISE SHELL BRACKET
FE5E 1.1 '﹞' => '﹝';  SMALL RIGHT TORTOISE SHELL BRACKET => SMALL LEFT TORTOISE SHELL BRACKET
FF08 1.1 '(' => ')';  FULLWIDTH LEFT PARENTHESIS => FULLWIDTH RIGHT PARENTHESIS
FF09 1.1 ')' => '(';  FULLWIDTH RIGHT PARENTHESIS => FULLWIDTH LEFT PARENTHESIS
FF3B 1.1 '[' => ']';  FULLWIDTH LEFT SQUARE BRACKET => FULLWIDTH RIGHT SQUARE BRACKET
FF3D 1.1 ']' => '[';  FULLWIDTH RIGHT SQUARE BRACKET => FULLWIDTH LEFT SQUARE BRACKET
FF5B 1.1 '{' => '}';  FULLWIDTH LEFT CURLY BRACKET => FULLWIDTH RIGHT CURLY BRACKET
FF5D 1.1 '}' => '{';  FULLWIDTH RIGHT CURLY BRACKET => FULLWIDTH LEFT CURLY BRACKET
FF5F 3.2 '⦅' => '⦆';  FULLWIDTH LEFT WHITE PARENTHESIS => FULLWIDTH RIGHT WHITE PARENTHESIS
FF60 3.2 '⦆' => '⦅';  FULLWIDTH RIGHT WHITE PARENTHESIS => FULLWIDTH LEFT WHITE PARENTHESIS
FF62 1.1 '「' => '」';  HALFWIDTH LEFT CORNER BRACKET => HALFWIDTH RIGHT CORNER BRACKET
FF63 1.1 '」' => '「';  HALFWIDTH RIGHT CORNER BRACKET => HALFWIDTH LEFT CORNER BRACKET
于 2015-10-26T23:22:45.893 回答
19

如果您想选择不被正式视为分组符号的字符<>您可以按照@roeland here的建议查看http://www.unicode.org/Public/UNIDATA/BidiMirroring.txt。该文件列出了所有应该是彼此镜像的字符对。

这是完整列表:

( ) # { LEFT, RIGHT } PARENTHESIS
< > # { LESS-THAN, GREATER-THAN } SIGN
[ ] # { LEFT, RIGHT } SQUARE BRACKET
{ } # { LEFT, RIGHT } CURLY BRACKET
« » # { LEFT-POINTING, RIGHT-POINTING } DOUBLE ANGLE QUOTATION MARK
༺ ༻ # TIBETAN MARK GUG RTAGS { GYON, GYAS }
༼ ༽ # TIBETAN MARK ANG KHANG { GYON, GYAS }
᚛ ᚜ # OGHAM { , REVERSED } FEATHER MARK
‹ › # SINGLE { LEFT-POINTING, RIGHT-POINTING } ANGLE QUOTATION MARK
⁅ ⁆ # { LEFT, RIGHT } SQUARE BRACKET WITH QUILL
⁽ ⁾ # SUPERSCRIPT { LEFT, RIGHT } PARENTHESIS
₍ ₎ # SUBSCRIPT { LEFT, RIGHT } PARENTHESIS
∈ ∋ # { ELEMENT OF, CONTAINS AS MEMBER }
∉ ∌ # { NOT AN ELEMENT OF, DOES NOT CONTAIN AS MEMBER }
∊ ∍ # SMALL { ELEMENT OF, CONTAINS AS MEMBER }
∼ ∽ # { TILDE OPERATOR, REVERSED TILDE }
≒ ≓ # { APPROXIMATELY EQUAL TO OR THE IMAGE OF, IMAGE OF OR APPROXIMATELY EQUAL TO }
≔ ≕ # { COLON EQUALS, EQUALS COLON }
≤ ≥ # { LESS-THAN, GREATER-THAN } OR EQUAL TO
≦ ≧ # { LESS-THAN, GREATER-THAN } OVER EQUAL TO
≪ ≫ # MUCH { LESS-THAN, GREATER-THAN }
≶ ≷ # { LESS-THAN OR GREATER-THAN, GREATER-THAN OR LESS-THAN }
≺ ≻ # { PRECEDES, SUCCEEDS }
≼ ≽ # { PRECEDES, SUCCEEDS } OR EQUAL TO
⊂ ⊃ # { SUBSET, SUPERSET } OF
⊆ ⊇ # { SUBSET, SUPERSET } OF OR EQUAL TO
⊏ ⊐ # SQUARE { IMAGE, ORIGINAL } OF
⊑ ⊒ # SQUARE { IMAGE, ORIGINAL } OF OR EQUAL TO
⊢ ⊣ # { RIGHT, LEFT } TACK
⊰ ⊱ # { PRECEDES, SUCCEEDS } UNDER RELATION
⊲ ⊳ # { NORMAL SUBGROUP OF, CONTAINS AS NORMAL SUBGROUP }
⊴ ⊵ # { NORMAL SUBGROUP OF, CONTAINS AS NORMAL SUBGROUP } OR EQUAL TO
⊶ ⊷ # { ORIGINAL, IMAGE } OF
⋉ ⋊ # { LEFT, RIGHT } NORMAL FACTOR SEMIDIRECT PRODUCT
⋋ ⋌ # { LEFT, RIGHT } SEMIDIRECT PRODUCT
≃ ⋍ # { ASYMPTOTICALLY EQUAL TO, REVERSED TILDE EQUALS }
⋐ ⋑ # DOUBLE { SUBSET, SUPERSET }
⋖ ⋗ # { LESS-THAN, GREATER-THAN } WITH DOT
⋘ ⋙ # VERY MUCH { LESS-THAN, GREATER-THAN }
⋚ ⋛ # { LESS-THAN EQUAL TO OR GREATER-THAN, GREATER-THAN EQUAL TO OR LESS-THAN }
⋜ ⋝ # EQUAL TO OR { LESS-THAN, GREATER-THAN }
⋞ ⋟ # EQUAL TO OR { PRECEDES, SUCCEEDS }
⋰ ⋱ # { UP, DOWN } RIGHT DIAGONAL ELLIPSIS
⋲ ⋺ # { ELEMENT OF, CONTAINS } WITH LONG HORIZONTAL STROKE
⋳ ⋻ # { ELEMENT OF, CONTAINS } WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
⋴ ⋼ # SMALL { ELEMENT OF, CONTAINS } WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
⋶ ⋽ # { ELEMENT OF, CONTAINS } WITH OVERBAR
⋷ ⋾ # SMALL { ELEMENT OF, CONTAINS } WITH OVERBAR
⌈ ⌉ # { LEFT, RIGHT } CEILING
⌊ ⌋ # { LEFT, RIGHT } FLOOR
〈 〉 # { LEFT-POINTING, RIGHT-POINTING } ANGLE BRACKET
❨ ❩ # MEDIUM { LEFT, RIGHT } PARENTHESIS ORNAMENT
❪ ❫ # MEDIUM FLATTENED { LEFT, RIGHT } PARENTHESIS ORNAMENT
❬ ❭ # MEDIUM { LEFT-POINTING, RIGHT-POINTING } ANGLE BRACKET ORNAMENT
❮ ❯ # HEAVY { LEFT-POINTING, RIGHT-POINTING } ANGLE QUOTATION MARK ORNAMENT
❰ ❱ # HEAVY { LEFT-POINTING, RIGHT-POINTING } ANGLE BRACKET ORNAMENT
❲ ❳ # LIGHT { LEFT, RIGHT } TORTOISE SHELL BRACKET ORNAMENT
❴ ❵ # MEDIUM { LEFT, RIGHT } CURLY BRACKET ORNAMENT
⟃ ⟄ # OPEN { SUBSET, SUPERSET }
⟅ ⟆ # { LEFT, RIGHT } S-SHAPED BAG DELIMITER
⟈ ⟉ # { REVERSE SOLIDUS PRECEDING SUBSET, SUPERSET PRECEDING SOLIDUS }
⟋ ⟍ # MATHEMATICAL { RISING, FALLING } DIAGONAL
⟕ ⟖ # { LEFT, RIGHT } OUTER JOIN
⟝ ⟞ # LONG { RIGHT, LEFT } TACK
⟢ ⟣ # WHITE CONCAVE-SIDED DIAMOND WITH { LEFTWARDS, RIGHTWARDS } TICK
⟤ ⟥ # WHITE SQUARE WITH { LEFTWARDS, RIGHTWARDS } TICK
⟦ ⟧ # MATHEMATICAL { LEFT, RIGHT } WHITE SQUARE BRACKET
⟨ ⟩ # MATHEMATICAL { LEFT, RIGHT } ANGLE BRACKET
⟪ ⟫ # MATHEMATICAL { LEFT, RIGHT } DOUBLE ANGLE BRACKET
⟬ ⟭ # MATHEMATICAL { LEFT, RIGHT } WHITE TORTOISE SHELL BRACKET
⟮ ⟯ # MATHEMATICAL { LEFT, RIGHT } FLATTENED PARENTHESIS
⦃ ⦄ # { LEFT, RIGHT } WHITE CURLY BRACKET
⦅ ⦆ # { LEFT, RIGHT } WHITE PARENTHESIS
⦇ ⦈ # Z NOTATION { LEFT, RIGHT } IMAGE BRACKET
⦉ ⦊ # Z NOTATION { LEFT, RIGHT } BINDING BRACKET
⦋ ⦌ # { LEFT, RIGHT } SQUARE BRACKET WITH UNDERBAR
⦎ ⦏ # { RIGHT, LEFT } SQUARE BRACKET WITH TICK IN BOTTOM CORNER
⦍ ⦐ # { LEFT, RIGHT } SQUARE BRACKET WITH TICK IN TOP CORNER
⦑ ⦒ # { LEFT, RIGHT } ANGLE BRACKET WITH DOT
⦓ ⦔ # { LEFT ARC LESS-THAN, RIGHT ARC GREATER-THAN } BRACKET
⦕ ⦖ # DOUBLE { LEFT ARC GREATER-THAN, RIGHT ARC LESS-THAN } BRACKET
⦗ ⦘ # { LEFT, RIGHT } BLACK TORTOISE SHELL BRACKET
⊘ ⦸ # CIRCLED { DIVISION SLASH, REVERSE SOLIDUS }
⧀ ⧁ # CIRCLED { LESS-THAN, GREATER-THAN }
⧄ ⧅ # SQUARED { RISING, FALLING } DIAGONAL SLASH
⧏ ⧐ # { LEFT TRIANGLE BESIDE VERTICAL BAR, VERTICAL BAR BESIDE RIGHT TRIANGLE }
⧑ ⧒ # BOWTIE WITH { LEFT, RIGHT } HALF BLACK
⧔ ⧕ # TIMES WITH { LEFT, RIGHT } HALF BLACK
⧘ ⧙ # { LEFT, RIGHT } WIGGLY FENCE
⧚ ⧛ # { LEFT, RIGHT } DOUBLE WIGGLY FENCE
∕ ⧵ # { DIVISION SLASH, REVERSE SOLIDUS OPERATOR }
⧸ ⧹ # BIG { , REVERSE } SOLIDUS
⧼ ⧽ # { LEFT-POINTING, RIGHT-POINTING } CURVED ANGLE BRACKET
⨫ ⨬ # MINUS SIGN WITH { FALLING, RISING } DOTS
⨭ ⨮ # PLUS SIGN IN { LEFT, RIGHT } HALF CIRCLE
⨴ ⨵ # MULTIPLICATION SIGN IN { LEFT, RIGHT } HALF CIRCLE
⨼ ⨽ # { , RIGHTHAND } INTERIOR PRODUCT
⩤ ⩥ # Z NOTATION { DOMAIN, RANGE } ANTIRESTRICTION
⩹ ⩺ # { LESS-THAN, GREATER-THAN } WITH CIRCLE INSIDE
⩽ ⩾ # { LESS-THAN, GREATER-THAN } OR SLANTED EQUAL TO
⩿ ⪀ # { LESS-THAN, GREATER-THAN } OR SLANTED EQUAL TO WITH DOT INSIDE
⪁ ⪂ # { LESS-THAN, GREATER-THAN } OR SLANTED EQUAL TO WITH DOT ABOVE
⪃ ⪄ # { LESS-THAN OR SLANTED EQUAL TO WITH DOT ABOVE RIGHT, GREATER-THAN OR SLANTED EQUAL TO WITH DOT ABOVE LEFT }
⪋ ⪌ # { LESS-THAN ABOVE DOUBLE-LINE EQUAL ABOVE GREATER-THAN, GREATER-THAN ABOVE DOUBLE-LINE EQUAL ABOVE LESS-THAN }
⪑ ⪒ # { LESS-THAN ABOVE GREATER-THAN, GREATER-THAN ABOVE LESS-THAN } ABOVE DOUBLE-LINE EQUAL
⪓ ⪔ # { LESS-THAN ABOVE SLANTED EQUAL ABOVE GREATER-THAN, GREATER-THAN ABOVE SLANTED EQUAL ABOVE LESS-THAN } ABOVE SLANTED EQUAL
⪕ ⪖ # SLANTED EQUAL TO OR { LESS-THAN, GREATER-THAN }
⪗ ⪘ # SLANTED EQUAL TO OR { LESS-THAN, GREATER-THAN } WITH DOT INSIDE
⪙ ⪚ # DOUBLE-LINE EQUAL TO OR { LESS-THAN, GREATER-THAN }
⪛ ⪜ # DOUBLE-LINE SLANTED EQUAL TO OR { LESS-THAN, GREATER-THAN }
⪡ ⪢ # DOUBLE NESTED { LESS-THAN, GREATER-THAN }
⪦ ⪧ # { LESS-THAN, GREATER-THAN } CLOSED BY CURVE
⪨ ⪩ # { LESS-THAN, GREATER-THAN } CLOSED BY CURVE ABOVE SLANTED EQUAL
⪪ ⪫ # { SMALLER, LARGER } THAN
⪬ ⪭ # { SMALLER, LARGER } THAN OR EQUAL TO
⪯ ⪰ # { PRECEDES, SUCCEEDS } ABOVE SINGLE-LINE EQUALS SIGN
⪳ ⪴ # { PRECEDES, SUCCEEDS } ABOVE EQUALS SIGN
⪻ ⪼ # DOUBLE { PRECEDES, SUCCEEDS }
⪽ ⪾ # { SUBSET, SUPERSET } WITH DOT
⪿ ⫀ # { SUBSET, SUPERSET } WITH PLUS SIGN BELOW
⫁ ⫂ # { SUBSET, SUPERSET } WITH MULTIPLICATION SIGN BELOW
⫃ ⫄ # { SUBSET, SUPERSET } OF OR EQUAL TO WITH DOT ABOVE
⫅ ⫆ # { SUBSET, SUPERSET } OF ABOVE EQUALS SIGN
⫍ ⫎ # SQUARE { LEFT, RIGHT } OPEN BOX OPERATOR
⫏ ⫐ # CLOSED { SUBSET, SUPERSET }
⫑ ⫒ # CLOSED { SUBSET, SUPERSET } OR EQUAL TO
⫓ ⫔ # { SUBSET ABOVE SUPERSET, SUPERSET ABOVE SUBSET }
⫕ ⫖ # { SUBSET ABOVE SUBSET, SUPERSET ABOVE SUPERSET }
⊦ ⫞ # { ASSERTION, SHORT LEFT TACK }
⊩ ⫣ # { FORCES, DOUBLE VERTICAL BAR LEFT TURNSTILE }
⊨ ⫤ # { TRUE, VERTICAL BAR DOUBLE LEFT TURNSTILE }
⊫ ⫥ # DOUBLE VERTICAL BAR DOUBLE { RIGHT, LEFT } TURNSTILE
⫬ ⫭ # { , REVERSED } DOUBLE STROKE NOT SIGN
⫷ ⫸ # TRIPLE NESTED { LESS-THAN, GREATER-THAN }
⫹ ⫺ # DOUBLE-LINE SLANTED { LESS-THAN, GREATER-THAN } OR EQUAL TO
⸂ ⸃ # { LEFT, RIGHT } SUBSTITUTION BRACKET
⸄ ⸅ # { LEFT, RIGHT } DOTTED SUBSTITUTION BRACKET
⸉ ⸊ # { LEFT, RIGHT } TRANSPOSITION BRACKET
⸌ ⸍ # { LEFT, RIGHT } RAISED OMISSION BRACKET
⸜ ⸝ # { LEFT, RIGHT } LOW PARAPHRASE BRACKET
⸠ ⸡ # { LEFT, RIGHT } VERTICAL BAR WITH QUILL
⸢ ⸣ # TOP { LEFT, RIGHT } HALF BRACKET
⸤ ⸥ # BOTTOM { LEFT, RIGHT } HALF BRACKET
⸦ ⸧ # { LEFT, RIGHT } SIDEWAYS U BRACKET
⸨ ⸩ # { LEFT, RIGHT } DOUBLE PARENTHESIS
〈 〉 # { LEFT, RIGHT } ANGLE BRACKET
《 》 # { LEFT, RIGHT } DOUBLE ANGLE BRACKET
【 】 # { LEFT, RIGHT } BLACK LENTICULAR BRACKET
〔 〕 # { LEFT, RIGHT } TORTOISE SHELL BRACKET
〖 〗 # { LEFT, RIGHT } WHITE LENTICULAR BRACKET
〘 〙 # { LEFT, RIGHT } WHITE TORTOISE SHELL BRACKET
〚 〛 # { LEFT, RIGHT } WHITE SQUARE BRACKET
﹙ ﹚ # SMALL { LEFT, RIGHT } PARENTHESIS
﹛ ﹜ # SMALL { LEFT, RIGHT } CURLY BRACKET
﹝ ﹞ # SMALL { LEFT, RIGHT } TORTOISE SHELL BRACKET
﹤ ﹥ # SMALL { LESS-THAN, GREATER-THAN } SIGN
( ) # FULLWIDTH { LEFT, RIGHT } PARENTHESIS
< > # FULLWIDTH { LESS-THAN, GREATER-THAN } SIGN
[ ] # FULLWIDTH { LEFT, RIGHT } SQUARE BRACKET
{ } # FULLWIDTH { LEFT, RIGHT } CURLY BRACKET
⦅ ⦆ # FULLWIDTH { LEFT, RIGHT } WHITE PARENTHESIS
于 2015-10-04T21:39:08.980 回答
9

什么是搜索 unicode 字符的好方法?

这 - 显然 - 取决于你究竟打算做什么。我建立了网站http://write-math.com。在我的学士学位论文中,我创建了一个符号分类器(现在在这个网站上的“分类”下),它让用户可以绘制一个符号并获得 LaTeX / unicode 结果(目前只支持 369 个符号)。如果您想排版文档并搜索单个特定字符,您知道它们的外观/如何调用它们,但不知道如何用 LaTeX(或您用于排版的任何内容)编写它们,这非常好:

在此处输入图像描述

它还具有符号搜索功能。它仍在大量开发中,但该数据库中有 1166 个符号。

对于您的括号:

unicode.xml(来自http://www.w3.org/2003/entities/2007doc/#source)也值得一试。

于 2015-03-05T15:26:31.680 回答
6

“类括号”字符的概念可能或多或少与 Ps(标点符号,打开)和 Pe(标点符号,关闭)的通用类别 (gc) 属性值相同。这个类别包含几十个成对的标点符号,大部分不包括引号(类别 Pi 和 Pf)。

在编程中,许多语言都有用于测试字符的一般类别的工具,例如\p{Ps}在 Perl 中。

如果您只需要一些列表,您可以使用 fileformat.info 中的Unicode 字符类别信息。

通常,搜索 Unicode 字符的方式取决于您要查找的内容和您的条件。在许多情况下,通用类别是一个很好的起点。

于 2012-11-23T20:22:59.103 回答
3

http://xahlee.info/comp/unicode_matching_brackets.html

这是一个优秀且非常全面的网站(对于括号和其他所有内容),看起来它们都使用 Arial、sans-serif 显示它们,所以如果你能看到这个字符,那么它应该在良好的浏览器支持下工作。

于 2018-03-19T08:18:37.103 回答
0

因为andrewdotn 的回答使用 Python 2,所以这里是 Python 3 版本:

import re
import unicodedata

for i in range(0x10000):
    char = chr(i)
    category = unicodedata.category(char)
    name = unicodedata.name(char, '')
    if ('bracket' in name.lower() or 'paren' in name.lower()
            or category in ['Ps', 'Pe']):
        print('U+%04x %s %s %c' % (i, category, name, char))
于 2021-10-29T04:14:56.140 回答