bidi_brackets.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. * Autogenerated by read_ucd.py from The Unicode Standard 15.0.0
  3. *
  4. * Identify Unicode characters that count as brackets for the purposes of
  5. * bidirectional text layout. For each one, indicate whether it's an open
  6. * or closed bracket, and identify up to two characters that can act as
  7. * its counterpart.
  8. *
  9. * Used by terminal/bidi.c.
  10. */
  11. {0x0028, {0x0029, 0x0000, BT_OPEN}},
  12. {0x0029, {0x0028, 0x0000, BT_CLOSE}},
  13. {0x005b, {0x005d, 0x0000, BT_OPEN}},
  14. {0x005d, {0x005b, 0x0000, BT_CLOSE}},
  15. {0x007b, {0x007d, 0x0000, BT_OPEN}},
  16. {0x007d, {0x007b, 0x0000, BT_CLOSE}},
  17. {0x0f3a, {0x0f3b, 0x0000, BT_OPEN}},
  18. {0x0f3b, {0x0f3a, 0x0000, BT_CLOSE}},
  19. {0x0f3c, {0x0f3d, 0x0000, BT_OPEN}},
  20. {0x0f3d, {0x0f3c, 0x0000, BT_CLOSE}},
  21. {0x169b, {0x169c, 0x0000, BT_OPEN}},
  22. {0x169c, {0x169b, 0x0000, BT_CLOSE}},
  23. {0x2045, {0x2046, 0x0000, BT_OPEN}},
  24. {0x2046, {0x2045, 0x0000, BT_CLOSE}},
  25. {0x207d, {0x207e, 0x0000, BT_OPEN}},
  26. {0x207e, {0x207d, 0x0000, BT_CLOSE}},
  27. {0x208d, {0x208e, 0x0000, BT_OPEN}},
  28. {0x208e, {0x208d, 0x0000, BT_CLOSE}},
  29. {0x2308, {0x2309, 0x0000, BT_OPEN}},
  30. {0x2309, {0x2308, 0x0000, BT_CLOSE}},
  31. {0x230a, {0x230b, 0x0000, BT_OPEN}},
  32. {0x230b, {0x230a, 0x0000, BT_CLOSE}},
  33. {0x2329, {0x232a, 0x3009, BT_OPEN}},
  34. {0x232a, {0x2329, 0x3008, BT_CLOSE}},
  35. {0x2768, {0x2769, 0x0000, BT_OPEN}},
  36. {0x2769, {0x2768, 0x0000, BT_CLOSE}},
  37. {0x276a, {0x276b, 0x0000, BT_OPEN}},
  38. {0x276b, {0x276a, 0x0000, BT_CLOSE}},
  39. {0x276c, {0x276d, 0x0000, BT_OPEN}},
  40. {0x276d, {0x276c, 0x0000, BT_CLOSE}},
  41. {0x276e, {0x276f, 0x0000, BT_OPEN}},
  42. {0x276f, {0x276e, 0x0000, BT_CLOSE}},
  43. {0x2770, {0x2771, 0x0000, BT_OPEN}},
  44. {0x2771, {0x2770, 0x0000, BT_CLOSE}},
  45. {0x2772, {0x2773, 0x0000, BT_OPEN}},
  46. {0x2773, {0x2772, 0x0000, BT_CLOSE}},
  47. {0x2774, {0x2775, 0x0000, BT_OPEN}},
  48. {0x2775, {0x2774, 0x0000, BT_CLOSE}},
  49. {0x27c5, {0x27c6, 0x0000, BT_OPEN}},
  50. {0x27c6, {0x27c5, 0x0000, BT_CLOSE}},
  51. {0x27e6, {0x27e7, 0x0000, BT_OPEN}},
  52. {0x27e7, {0x27e6, 0x0000, BT_CLOSE}},
  53. {0x27e8, {0x27e9, 0x0000, BT_OPEN}},
  54. {0x27e9, {0x27e8, 0x0000, BT_CLOSE}},
  55. {0x27ea, {0x27eb, 0x0000, BT_OPEN}},
  56. {0x27eb, {0x27ea, 0x0000, BT_CLOSE}},
  57. {0x27ec, {0x27ed, 0x0000, BT_OPEN}},
  58. {0x27ed, {0x27ec, 0x0000, BT_CLOSE}},
  59. {0x27ee, {0x27ef, 0x0000, BT_OPEN}},
  60. {0x27ef, {0x27ee, 0x0000, BT_CLOSE}},
  61. {0x2983, {0x2984, 0x0000, BT_OPEN}},
  62. {0x2984, {0x2983, 0x0000, BT_CLOSE}},
  63. {0x2985, {0x2986, 0x0000, BT_OPEN}},
  64. {0x2986, {0x2985, 0x0000, BT_CLOSE}},
  65. {0x2987, {0x2988, 0x0000, BT_OPEN}},
  66. {0x2988, {0x2987, 0x0000, BT_CLOSE}},
  67. {0x2989, {0x298a, 0x0000, BT_OPEN}},
  68. {0x298a, {0x2989, 0x0000, BT_CLOSE}},
  69. {0x298b, {0x298c, 0x0000, BT_OPEN}},
  70. {0x298c, {0x298b, 0x0000, BT_CLOSE}},
  71. {0x298d, {0x2990, 0x0000, BT_OPEN}},
  72. {0x298e, {0x298f, 0x0000, BT_CLOSE}},
  73. {0x298f, {0x298e, 0x0000, BT_OPEN}},
  74. {0x2990, {0x298d, 0x0000, BT_CLOSE}},
  75. {0x2991, {0x2992, 0x0000, BT_OPEN}},
  76. {0x2992, {0x2991, 0x0000, BT_CLOSE}},
  77. {0x2993, {0x2994, 0x0000, BT_OPEN}},
  78. {0x2994, {0x2993, 0x0000, BT_CLOSE}},
  79. {0x2995, {0x2996, 0x0000, BT_OPEN}},
  80. {0x2996, {0x2995, 0x0000, BT_CLOSE}},
  81. {0x2997, {0x2998, 0x0000, BT_OPEN}},
  82. {0x2998, {0x2997, 0x0000, BT_CLOSE}},
  83. {0x29d8, {0x29d9, 0x0000, BT_OPEN}},
  84. {0x29d9, {0x29d8, 0x0000, BT_CLOSE}},
  85. {0x29da, {0x29db, 0x0000, BT_OPEN}},
  86. {0x29db, {0x29da, 0x0000, BT_CLOSE}},
  87. {0x29fc, {0x29fd, 0x0000, BT_OPEN}},
  88. {0x29fd, {0x29fc, 0x0000, BT_CLOSE}},
  89. {0x2e22, {0x2e23, 0x0000, BT_OPEN}},
  90. {0x2e23, {0x2e22, 0x0000, BT_CLOSE}},
  91. {0x2e24, {0x2e25, 0x0000, BT_OPEN}},
  92. {0x2e25, {0x2e24, 0x0000, BT_CLOSE}},
  93. {0x2e26, {0x2e27, 0x0000, BT_OPEN}},
  94. {0x2e27, {0x2e26, 0x0000, BT_CLOSE}},
  95. {0x2e28, {0x2e29, 0x0000, BT_OPEN}},
  96. {0x2e29, {0x2e28, 0x0000, BT_CLOSE}},
  97. {0x2e55, {0x2e56, 0x0000, BT_OPEN}},
  98. {0x2e56, {0x2e55, 0x0000, BT_CLOSE}},
  99. {0x2e57, {0x2e58, 0x0000, BT_OPEN}},
  100. {0x2e58, {0x2e57, 0x0000, BT_CLOSE}},
  101. {0x2e59, {0x2e5a, 0x0000, BT_OPEN}},
  102. {0x2e5a, {0x2e59, 0x0000, BT_CLOSE}},
  103. {0x2e5b, {0x2e5c, 0x0000, BT_OPEN}},
  104. {0x2e5c, {0x2e5b, 0x0000, BT_CLOSE}},
  105. {0x3008, {0x3009, 0x232a, BT_OPEN}},
  106. {0x3009, {0x3008, 0x2329, BT_CLOSE}},
  107. {0x300a, {0x300b, 0x0000, BT_OPEN}},
  108. {0x300b, {0x300a, 0x0000, BT_CLOSE}},
  109. {0x300c, {0x300d, 0x0000, BT_OPEN}},
  110. {0x300d, {0x300c, 0x0000, BT_CLOSE}},
  111. {0x300e, {0x300f, 0x0000, BT_OPEN}},
  112. {0x300f, {0x300e, 0x0000, BT_CLOSE}},
  113. {0x3010, {0x3011, 0x0000, BT_OPEN}},
  114. {0x3011, {0x3010, 0x0000, BT_CLOSE}},
  115. {0x3014, {0x3015, 0x0000, BT_OPEN}},
  116. {0x3015, {0x3014, 0x0000, BT_CLOSE}},
  117. {0x3016, {0x3017, 0x0000, BT_OPEN}},
  118. {0x3017, {0x3016, 0x0000, BT_CLOSE}},
  119. {0x3018, {0x3019, 0x0000, BT_OPEN}},
  120. {0x3019, {0x3018, 0x0000, BT_CLOSE}},
  121. {0x301a, {0x301b, 0x0000, BT_OPEN}},
  122. {0x301b, {0x301a, 0x0000, BT_CLOSE}},
  123. {0xfe59, {0xfe5a, 0x0000, BT_OPEN}},
  124. {0xfe5a, {0xfe59, 0x0000, BT_CLOSE}},
  125. {0xfe5b, {0xfe5c, 0x0000, BT_OPEN}},
  126. {0xfe5c, {0xfe5b, 0x0000, BT_CLOSE}},
  127. {0xfe5d, {0xfe5e, 0x0000, BT_OPEN}},
  128. {0xfe5e, {0xfe5d, 0x0000, BT_CLOSE}},
  129. {0xff08, {0xff09, 0x0000, BT_OPEN}},
  130. {0xff09, {0xff08, 0x0000, BT_CLOSE}},
  131. {0xff3b, {0xff3d, 0x0000, BT_OPEN}},
  132. {0xff3d, {0xff3b, 0x0000, BT_CLOSE}},
  133. {0xff5b, {0xff5d, 0x0000, BT_OPEN}},
  134. {0xff5d, {0xff5b, 0x0000, BT_CLOSE}},
  135. {0xff5f, {0xff60, 0x0000, BT_OPEN}},
  136. {0xff60, {0xff5f, 0x0000, BT_CLOSE}},
  137. {0xff62, {0xff63, 0x0000, BT_OPEN}},
  138. {0xff63, {0xff62, 0x0000, BT_CLOSE}},