proplist.cpp 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178
  1. /* PropList APIs.
  2. *
  3. * Copyright (C) 2017 Reece H. Dunn
  4. *
  5. * This file is part of ucd-tools.
  6. *
  7. * ucd-tools is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * ucd-tools is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with ucd-tools. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "ucd.h"
  21. static ucd_property properties_Cc(codepoint_t c)
  22. {
  23. if (c >= 0x0009 && c <= 0x000D) return UCD_PROPERTY_WHITE_SPACE | UCD_PROPERTY_PATTERN_WHITE_SPACE;
  24. if (c == 0x0085) return UCD_PROPERTY_WHITE_SPACE | UCD_PROPERTY_PATTERN_WHITE_SPACE;
  25. return 0;
  26. }
  27. static ucd_property properties_Cf(codepoint_t c)
  28. {
  29. switch (c & 0xFFFFFF00)
  30. {
  31. case 0x0000:
  32. if (c == 0x00AD) return UCD_PROPERTY_HYPHEN;
  33. break;
  34. case 0x0600:
  35. if (c >= 0x0600 && c <= 0x0605) return UCD_PROPERTY_PREPENDED_CONCATENATION_MARK;
  36. if (c == 0x061C) return UCD_PROPERTY_BIDI_CONTROL;
  37. if (c == 0x06DD) return UCD_PROPERTY_PREPENDED_CONCATENATION_MARK;
  38. break;
  39. case 0x0700:
  40. if (c == 0x070F) return UCD_PROPERTY_PREPENDED_CONCATENATION_MARK;
  41. break;
  42. case 0x0800:
  43. if (c == 0x08E2) return UCD_PROPERTY_PREPENDED_CONCATENATION_MARK;
  44. break;
  45. case 0x2000:
  46. if (c == 0x200C) return UCD_PROPERTY_JOIN_CONTROL | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  47. if (c == 0x200D) return UCD_PROPERTY_JOIN_CONTROL;
  48. if (c >= 0x200E && c <= 0x200F) return UCD_PROPERTY_BIDI_CONTROL | UCD_PROPERTY_PATTERN_WHITE_SPACE;
  49. if (c >= 0x202A && c <= 0x202E) return UCD_PROPERTY_BIDI_CONTROL;
  50. if (c >= 0x2061 && c <= 0x2064) return UCD_PROPERTY_OTHER_MATH;
  51. if (c >= 0x2066 && c <= 0x2069) return UCD_PROPERTY_BIDI_CONTROL;
  52. if (c >= 0x206A && c <= 0x206F) return UCD_PROPERTY_DEPRECATED;
  53. break;
  54. case 0x011000:
  55. if (c == 0x0110BD) return UCD_PROPERTY_PREPENDED_CONCATENATION_MARK;
  56. break;
  57. case 0x0E0000:
  58. if (c == 0x0E0001) return UCD_PROPERTY_DEPRECATED;
  59. if (c == 0x0E0021) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  60. if (c == 0x0E002C) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_COMMA;
  61. if (c == 0x0E002E) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_FULL_STOP;
  62. if (c == 0x0E003A) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_COLON;
  63. if (c == 0x0E003B) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_SEMI_COLON;
  64. if (c == 0x0E003F) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND | ESPEAKNG_PROPERTY_QUESTION_MARK;
  65. if (c >= 0x0E0020 && c <= 0x0E007F) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  66. break;
  67. }
  68. return 0;
  69. }
  70. static ucd_property properties_Cn(codepoint_t c)
  71. {
  72. switch (c & 0xFFFFFF00)
  73. {
  74. case 0x2000:
  75. if (c == 0x2065) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  76. break;
  77. case 0x2400:
  78. if (c >= 0x2427 && c <= 0x243F) return UCD_PROPERTY_PATTERN_SYNTAX;
  79. if (c >= 0x244B && c <= 0x245F) return UCD_PROPERTY_PATTERN_SYNTAX;
  80. break;
  81. case 0x2B00:
  82. if (c >= 0x2B74 && c <= 0x2B75) return UCD_PROPERTY_PATTERN_SYNTAX;
  83. if (c >= 0x2B96 && c <= 0x2B97) return UCD_PROPERTY_PATTERN_SYNTAX;
  84. if (c >= 0x2BBA && c <= 0x2BBC) return UCD_PROPERTY_PATTERN_SYNTAX;
  85. if (c == 0x2BC9) return UCD_PROPERTY_PATTERN_SYNTAX;
  86. if (c >= 0x2BD3 && c <= 0x2BEB) return UCD_PROPERTY_PATTERN_SYNTAX;
  87. if (c >= 0x2BF0 && c <= 0x2BFF) return UCD_PROPERTY_PATTERN_SYNTAX;
  88. break;
  89. case 0x2E00:
  90. if (c >= 0x2E45 && c <= 0x2E7F) return UCD_PROPERTY_PATTERN_SYNTAX;
  91. break;
  92. case 0xFD00:
  93. if (c >= 0xFDD0 && c <= 0xFDEF) return UCD_PROPERTY_NONCHARACTER_CODE_POINT;
  94. break;
  95. case 0xFF00:
  96. if (c >= 0xFFF0 && c <= 0xFFF8) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  97. break;
  98. case 0x0E0000:
  99. if (c == 0xE0000) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  100. if (c >= 0xE0002 && c <= 0xE001F) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  101. if (c >= 0xE0080 && c <= 0xE00FF) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  102. break;
  103. case 0x0E0100:
  104. if (c >= 0xE01F0) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  105. break;
  106. case 0x0E0200:
  107. case 0x0E0300:
  108. case 0x0E0400:
  109. case 0x0E0500:
  110. case 0x0E0600:
  111. case 0x0E0700:
  112. case 0x0E0800:
  113. case 0x0E0900:
  114. case 0x0E0A00:
  115. case 0x0E0B00:
  116. case 0x0E0C00:
  117. case 0x0E0D00:
  118. case 0x0E0E00:
  119. case 0x0E0F00:
  120. return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  121. }
  122. if ((c & 0x0000FFFF) >= 0xFFFE) return UCD_PROPERTY_NONCHARACTER_CODE_POINT;
  123. return 0;
  124. }
  125. static ucd_property properties_Ll(codepoint_t c)
  126. {
  127. switch (c & 0xFFFFFF00)
  128. {
  129. case 0x0000:
  130. if (c >= 0x0061 && c <= 0x0066) return UCD_PROPERTY_HEX_DIGIT | UCD_PROPERTY_ASCII_HEX_DIGIT;
  131. if (c >= 0x0069 && c <= 0x006A) return UCD_PROPERTY_SOFT_DOTTED;
  132. break;
  133. case 0x0100:
  134. if (c == 0x012F) return UCD_PROPERTY_SOFT_DOTTED;
  135. if (c == 0x0149) return UCD_PROPERTY_DEPRECATED;
  136. break;
  137. case 0x0200:
  138. if (c == 0x0249) return UCD_PROPERTY_SOFT_DOTTED;
  139. if (c == 0x0268) return UCD_PROPERTY_SOFT_DOTTED;
  140. if (c == 0x029D) return UCD_PROPERTY_SOFT_DOTTED;
  141. break;
  142. case 0x0300:
  143. if (c >= 0x03D0 && c <= 0x03D2) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  144. if (c == 0x03D5) return UCD_PROPERTY_OTHER_MATH;
  145. if (c >= 0x03F0 && c <= 0x03F1) return UCD_PROPERTY_OTHER_MATH;
  146. if (c == 0x03F3) return UCD_PROPERTY_SOFT_DOTTED;
  147. if (c >= 0x03F4 && c <= 0x03F5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  148. break;
  149. case 0x0400:
  150. if (c == 0x0456) return UCD_PROPERTY_SOFT_DOTTED;
  151. if (c == 0x0458) return UCD_PROPERTY_SOFT_DOTTED;
  152. break;
  153. case 0x1D00:
  154. if (c == 0x1D96) return UCD_PROPERTY_SOFT_DOTTED;
  155. break;
  156. case 0x1E00:
  157. if (c == 0x1E2D) return UCD_PROPERTY_SOFT_DOTTED;
  158. if (c == 0x1ECB) return UCD_PROPERTY_SOFT_DOTTED;
  159. break;
  160. case 0x2100:
  161. if (c >= 0x210A && c <= 0x2113) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  162. if (c >= 0x212F && c <= 0x2131) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  163. if (c >= 0x2133 && c <= 0x2134) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  164. if (c == 0x2139) return UCD_PROPERTY_EMOJI;
  165. if (c >= 0x213C && c <= 0x213F) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  166. if (c >= 0x2145 && c <= 0x2147) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  167. if (c >= 0x2148 && c <= 0x2149) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  168. break;
  169. case 0xFF00:
  170. if (c >= 0xFF41 && c <= 0xFF46) return UCD_PROPERTY_HEX_DIGIT;
  171. break;
  172. case 0x01D400:
  173. if (c >= 0x01D422 && c <= 0x01D423) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  174. if (c >= 0x01D400 && c <= 0x01D454) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  175. if (c >= 0x01D456 && c <= 0x01D457) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  176. if (c >= 0x01D48A && c <= 0x01D48B) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  177. if (c >= 0x01D458 && c <= 0x01D49C) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  178. if (c >= 0x01D4AE && c <= 0x01D4B9) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  179. if (c == 0x01D4BB) return UCD_PROPERTY_OTHER_MATH;
  180. if (c >= 0x01D4BE && c <= 0x01D4BF) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  181. if (c >= 0x01D4BD && c <= 0x01D4C3) return UCD_PROPERTY_OTHER_MATH;
  182. if (c >= 0x01D4F2 && c <= 0x01D4F3) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  183. if (c >= 0x01D4C5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  184. break;
  185. case 0x01D500:
  186. if (c <= 0x01D505) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  187. if (c >= 0x01D526 && c <= 0x01D527) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  188. if (c >= 0x01D51E && c <= 0x01D539) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  189. if (c >= 0x01D55A && c <= 0x01D55B) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  190. if (c >= 0x01D58E && c <= 0x01D58F) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  191. if (c >= 0x01D5C2 && c <= 0x01D5C3) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  192. if (c >= 0x01D5F6 && c <= 0x01D5F7) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  193. if (c >= 0x01D552) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  194. break;
  195. case 0x01D600:
  196. if (c >= 0x01D62A && c <= 0x01D62B) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  197. if (c >= 0x01D65E && c <= 0x01D65F) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  198. if (c >= 0x01D692 && c <= 0x01D693) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_SOFT_DOTTED;
  199. if (c <= 0x01D6A5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  200. if (c >= 0x01D6C2 && c <= 0x01D6DA) return UCD_PROPERTY_OTHER_MATH;
  201. if (c >= 0x01D6DC && c <= 0x01D6FA) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  202. if (c >= 0x01D6FC) return UCD_PROPERTY_OTHER_MATH;
  203. break;
  204. case 0x01D700:
  205. if (c <= 0x01D714) return UCD_PROPERTY_OTHER_MATH;
  206. if (c >= 0x01D716 && c <= 0x01D734) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  207. if (c >= 0x01D736 && c <= 0x01D74E) return UCD_PROPERTY_OTHER_MATH;
  208. if (c >= 0x01D750 && c <= 0x01D76E) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  209. if (c >= 0x01D770 && c <= 0x01D788) return UCD_PROPERTY_OTHER_MATH;
  210. if (c >= 0x01D78A && c <= 0x01D7A8) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  211. if (c >= 0x01D7AA && c <= 0x01D7C2) return UCD_PROPERTY_OTHER_MATH;
  212. if (c >= 0x01D7C4 && c <= 0x01D7CB) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  213. break;
  214. }
  215. return 0;
  216. }
  217. static ucd_property properties_Lm(codepoint_t c)
  218. {
  219. switch (c & 0xFFFFFF00)
  220. {
  221. case 0x0200:
  222. if (c == 0x02B2) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_SOFT_DOTTED;
  223. if (c >= 0x02B0 && c <= 0x02B8) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  224. if (c >= 0x02B9 && c <= 0x02BF) return UCD_PROPERTY_DIACRITIC;
  225. if (c >= 0x02C0 && c <= 0x02C1) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  226. if (c >= 0x02C6 && c <= 0x02CF) return UCD_PROPERTY_DIACRITIC;
  227. if (c >= 0x02D0 && c <= 0x02D1) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER;
  228. if (c >= 0x02E0 && c <= 0x02E4) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  229. if (c == 0x02EC) return UCD_PROPERTY_DIACRITIC;
  230. if (c == 0x02EE) return UCD_PROPERTY_DIACRITIC;
  231. break;
  232. case 0x0300:
  233. if (c == 0x0374) return UCD_PROPERTY_DIACRITIC;
  234. if (c == 0x037A) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  235. break;
  236. case 0x0500:
  237. if (c == 0x0559) return UCD_PROPERTY_DIACRITIC;
  238. break;
  239. case 0x0600:
  240. if (c == 0x0640) return UCD_PROPERTY_EXTENDER;
  241. if (c >= 0x06E5 && c <= 0x06E6) return UCD_PROPERTY_DIACRITIC;
  242. break;
  243. case 0x0700:
  244. if (c >= 0x07F4 && c <= 0x07F5) return UCD_PROPERTY_DIACRITIC;
  245. if (c == 0x07FA) return UCD_PROPERTY_EXTENDER;
  246. break;
  247. case 0x0900:
  248. if (c == 0x0971) return UCD_PROPERTY_DIACRITIC;
  249. break;
  250. case 0x0E00:
  251. if (c == 0x0E46) return UCD_PROPERTY_EXTENDER;
  252. if (c == 0x0EC6) return UCD_PROPERTY_EXTENDER;
  253. break;
  254. case 0x1800:
  255. if (c == 0x1843) return UCD_PROPERTY_EXTENDER;
  256. break;
  257. case 0x1A00:
  258. if (c == 0x1AA7) return UCD_PROPERTY_EXTENDER;
  259. break;
  260. case 0x1C00:
  261. if (c == 0x1C7B) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER;
  262. if (c >= 0x1C78 && c <= 0x1C7D) return UCD_PROPERTY_DIACRITIC;
  263. break;
  264. case 0x1D00:
  265. if (c == 0x1D62) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_SOFT_DOTTED;
  266. if (c >= 0x1D2C && c <= 0x1D6A) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_DIACRITIC;
  267. if (c == 0x1D78) return UCD_PROPERTY_OTHER_LOWERCASE;
  268. if (c == 0x1DA4) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_SOFT_DOTTED;
  269. if (c == 0x1DA8) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_SOFT_DOTTED;
  270. if (c >= 0x1D9B && c <= 0x1DBF) return UCD_PROPERTY_OTHER_LOWERCASE;
  271. break;
  272. case 0x2000:
  273. if (c == 0x2071) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_SOFT_DOTTED;
  274. if (c == 0x207F) return UCD_PROPERTY_OTHER_LOWERCASE;
  275. if (c >= 0x2090 && c <= 0x209C) return UCD_PROPERTY_OTHER_LOWERCASE;
  276. break;
  277. case 0x2C00:
  278. if (c == 0x2C7C) return UCD_PROPERTY_OTHER_LOWERCASE | UCD_PROPERTY_SOFT_DOTTED;
  279. if (c == 0x2C7D) return UCD_PROPERTY_OTHER_LOWERCASE;
  280. break;
  281. case 0x2E00:
  282. if (c == 0x2E2F) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_PATTERN_SYNTAX;
  283. break;
  284. case 0x3000:
  285. if (c == 0x3005) return UCD_PROPERTY_EXTENDER;
  286. if (c >= 0x3031 && c <= 0x3035) return UCD_PROPERTY_EXTENDER;
  287. if (c >= 0x309D && c <= 0x309E) return UCD_PROPERTY_EXTENDER;
  288. if (c == 0x30FC) return UCD_PROPERTY_EXTENDER | UCD_PROPERTY_DIACRITIC;
  289. if (c >= 0x30FD && c <= 0x30FE) return UCD_PROPERTY_EXTENDER;
  290. break;
  291. case 0xA000:
  292. if (c == 0xA015) return UCD_PROPERTY_EXTENDER;
  293. break;
  294. case 0xA600:
  295. if (c == 0xA60C) return UCD_PROPERTY_EXTENDER;
  296. if (c == 0xA67F) return UCD_PROPERTY_DIACRITIC;
  297. if (c >= 0xA69C && c <= 0xA69D) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  298. break;
  299. case 0xA700:
  300. if (c >= 0xA717 && c <= 0xA71F) return UCD_PROPERTY_DIACRITIC;
  301. if (c == 0xA770) return UCD_PROPERTY_OTHER_LOWERCASE;
  302. if (c == 0xA788) return UCD_PROPERTY_DIACRITIC;
  303. if (c >= 0xA7F8 && c <= 0xA7F9) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  304. break;
  305. case 0xA900:
  306. if (c == 0xA9CF) return UCD_PROPERTY_EXTENDER;
  307. if (c == 0xA9E6) return UCD_PROPERTY_EXTENDER;
  308. break;
  309. case 0xAA00:
  310. if (c == 0xAA70) return UCD_PROPERTY_EXTENDER;
  311. if (c == 0xAADD) return UCD_PROPERTY_EXTENDER;
  312. if (c >= 0xAAF3 && c <= 0xAAF4) return UCD_PROPERTY_EXTENDER;
  313. break;
  314. case 0xAB00:
  315. if (c >= 0xAB5C && c <= 0xAB5F) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_LOWERCASE;
  316. break;
  317. case 0xFF00:
  318. if (c == 0xFF70) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER;
  319. if (c >= 0xFF9E && c <= 0xFF9F) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  320. break;
  321. case 0x016B00:
  322. if (c >= 0x016B42 && c <= 0x016B43) return UCD_PROPERTY_EXTENDER;
  323. break;
  324. case 0x016F00:
  325. if (c >= 0x016F93 && c <= 0x016F9F) return UCD_PROPERTY_DIACRITIC;
  326. if (c >= 0x016FE0 && c <= 0x016FE1) return UCD_PROPERTY_EXTENDER;
  327. break;
  328. }
  329. return 0;
  330. }
  331. static ucd_property properties_Lo(codepoint_t c)
  332. {
  333. switch (c & 0xFFFFFF00)
  334. {
  335. case 0x0000:
  336. if (c == 0x00AA) return UCD_PROPERTY_OTHER_LOWERCASE;
  337. if (c == 0x00BA) return UCD_PROPERTY_OTHER_LOWERCASE;
  338. break;
  339. case 0x0600:
  340. if (c == 0x0673) return UCD_PROPERTY_DEPRECATED;
  341. break;
  342. case 0x0E00:
  343. if (c >= 0x0E40 && c <= 0x0E44) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  344. if (c == 0x0EAF) return ESPEAKNG_PROPERTY_ELLIPSIS;
  345. if (c >= 0x0EC0 && c <= 0x0EC4) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  346. break;
  347. case 0x1100:
  348. if (c >= 0x115F && c <= 0x1160) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  349. break;
  350. case 0x1700:
  351. if (c >= 0x17A3 && c <= 0x17A4) return UCD_PROPERTY_DEPRECATED;
  352. break;
  353. case 0x1900:
  354. if (c >= 0x19B5 && c <= 0x19B7) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  355. if (c == 0x19BA) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  356. break;
  357. case 0x2100:
  358. if (c >= 0x2135 && c <= 0x2138) return UCD_PROPERTY_OTHER_MATH;
  359. break;
  360. case 0x3000:
  361. if (c == 0x3006) return UCD_PROPERTY_IDEOGRAPHIC;
  362. break;
  363. case 0x3100:
  364. if (c == 0x3164) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  365. break;
  366. case 0xAA00:
  367. if (c >= 0xAAB5 && c <= 0xAAB6) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  368. if (c == 0xAAB9) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  369. if (c >= 0xAABB && c <= 0xAABC) return UCD_PROPERTY_LOGICAL_ORDER_EXCEPTION;
  370. if (c == 0xAAC0) return UCD_PROPERTY_DIACRITIC;
  371. if (c == 0xAAC2) return UCD_PROPERTY_DIACRITIC;
  372. break;
  373. case 0xFA00:
  374. if (c >= 0xFA0E && c <= 0xFA0F) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  375. if (c == 0xFA11) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  376. if (c >= 0xFA13 && c <= 0xFA14) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  377. if (c == 0xFA1F) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  378. if (c == 0xFA21) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  379. if (c >= 0xFA23 && c <= 0xFA24) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  380. if (c >= 0xFA27 && c <= 0xFA29) return UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  381. break;
  382. case 0xFF00:
  383. if (c == 0xFFA0) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  384. break;
  385. case 0x11300:
  386. if (c == 0x01135D) return UCD_PROPERTY_EXTENDER;
  387. break;
  388. case 0x1EE00:
  389. return UCD_PROPERTY_OTHER_MATH;
  390. }
  391. return 0;
  392. }
  393. static ucd_property properties_Lo_ideographic(codepoint_t c)
  394. {
  395. switch (c & 0xFFFF0000)
  396. {
  397. case 0x000000:
  398. if (c >= 0x3400 && c <= 0x4DB5) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  399. if (c >= 0x4E00 && c <= 0x9FEA) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  400. if (c >= 0xF900 && c <= 0xFA6D) return UCD_PROPERTY_IDEOGRAPHIC;
  401. if (c >= 0xFA70 && c <= 0xFAD9) return UCD_PROPERTY_IDEOGRAPHIC;
  402. break;
  403. case 0x010000:
  404. if (c >= 0x017000 && c <= 0x0187EC) return UCD_PROPERTY_IDEOGRAPHIC;
  405. if (c >= 0x018800 && c <= 0x018AF2) return UCD_PROPERTY_IDEOGRAPHIC;
  406. if (c >= 0x01B170 && c <= 0x01B2FB) return UCD_PROPERTY_IDEOGRAPHIC;
  407. break;
  408. case 0x020000:
  409. if (c >= 0x020000 && c <= 0x02A6D6) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  410. if (c >= 0x02A700 && c <= 0x02B734) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  411. if (c >= 0x02B740 && c <= 0x02B81D) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  412. if (c >= 0x02B820 && c <= 0x02CEA1) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  413. if (c >= 0x02CEB0 && c <= 0x02EBE0) return UCD_PROPERTY_IDEOGRAPHIC | UCD_PROPERTY_UNIFIED_IDEOGRAPH;
  414. if (c >= 0x02F800 && c <= 0x02FA1D) return UCD_PROPERTY_IDEOGRAPHIC;
  415. break;
  416. }
  417. return 0;
  418. }
  419. static ucd_property properties_Lu(codepoint_t c)
  420. {
  421. switch (c & 0xFFFFFF00)
  422. {
  423. case 0x0000:
  424. if (c >= 0x0041 && c <= 0x0046) return UCD_PROPERTY_HEX_DIGIT | UCD_PROPERTY_ASCII_HEX_DIGIT;
  425. break;
  426. case 0x0300:
  427. if (c >= 0x03D0 && c <= 0x03D2) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  428. if (c >= 0x03F4 && c <= 0x03F5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  429. break;
  430. case 0xFF00:
  431. if (c >= 0xFF21 && c <= 0xFF26) return UCD_PROPERTY_HEX_DIGIT;
  432. break;
  433. case 0x2100:
  434. if (c == 0x2102) return UCD_PROPERTY_OTHER_MATH;
  435. if (c == 0x2107) return UCD_PROPERTY_OTHER_MATH;
  436. if (c >= 0x210A && c <= 0x2113) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  437. if (c == 0x2115) return UCD_PROPERTY_OTHER_MATH;
  438. if (c >= 0x2119 && c <= 0x211D) return UCD_PROPERTY_OTHER_MATH;
  439. if (c == 0x2124) return UCD_PROPERTY_OTHER_MATH;
  440. if (c == 0x2128) return UCD_PROPERTY_OTHER_MATH;
  441. if (c >= 0x212C && c <= 0x212D) return UCD_PROPERTY_OTHER_MATH;
  442. if (c >= 0x212F && c <= 0x2131) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  443. if (c >= 0x2133 && c <= 0x2134) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  444. if (c >= 0x213C && c <= 0x213F) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  445. if (c >= 0x2145 && c <= 0x2149) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  446. break;
  447. case 0x01D400:
  448. if (c >= 0x01D400 && c <= 0x01D454) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  449. if (c >= 0x01D456 && c <= 0x01D49C) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  450. if (c >= 0x01D49E && c <= 0x01D49F) return UCD_PROPERTY_OTHER_MATH;
  451. if (c == 0x01D4A2) return UCD_PROPERTY_OTHER_MATH;
  452. if (c >= 0x01D4A5 && c <= 0x01D4A6) return UCD_PROPERTY_OTHER_MATH;
  453. if (c >= 0x01D4A9 && c <= 0x01D4AC) return UCD_PROPERTY_OTHER_MATH;
  454. if (c >= 0x01D4AE && c <= 0x01D4B9) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  455. if (c >= 0x01D4C5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  456. break;
  457. case 0x01D500:
  458. if (c <= 0x01D505) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  459. if (c >= 0x01D507 && c <= 0x01D50A) return UCD_PROPERTY_OTHER_MATH;
  460. if (c >= 0x01D50D && c <= 0x01D514) return UCD_PROPERTY_OTHER_MATH;
  461. if (c >= 0x01D516 && c <= 0x01D51C) return UCD_PROPERTY_OTHER_MATH;
  462. if (c >= 0x01D51E && c <= 0x01D539) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  463. if (c >= 0x01D53B && c <= 0x01D53E) return UCD_PROPERTY_OTHER_MATH;
  464. if (c >= 0x01D540 && c <= 0x01D544) return UCD_PROPERTY_OTHER_MATH;
  465. if (c == 0x01D546) return UCD_PROPERTY_OTHER_MATH;
  466. if (c >= 0x01D54A && c <= 0x01D550) return UCD_PROPERTY_OTHER_MATH;
  467. if (c >= 0x01D552) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  468. break;
  469. case 0x01D600:
  470. if (c <= 0x01D6A5) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  471. if (c >= 0x01D6A8 && c <= 0x01D6C0) return UCD_PROPERTY_OTHER_MATH;
  472. if (c >= 0x01D6DC && c <= 0x01D6FA) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  473. break;
  474. case 0x01D700:
  475. if (c >= 0x01D716 && c <= 0x01D734) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  476. if (c >= 0x01D750 && c <= 0x01D76E) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  477. if (c >= 0x01D78A && c <= 0x01D7A8) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  478. if (c >= 0x01D7C4 && c <= 0x01D7CB) return UCD_PROPERTY_OTHER_MATH; /* Ll|Lu */
  479. break;
  480. }
  481. return 0;
  482. }
  483. static ucd_property properties_Mc(codepoint_t c)
  484. {
  485. switch (c & 0xFFFFFF00)
  486. {
  487. case 0x0900:
  488. if (c == 0x0903) return UCD_PROPERTY_OTHER_ALPHABETIC;
  489. if (c == 0x093B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  490. if (c >= 0x093E && c <= 0x0940) return UCD_PROPERTY_OTHER_ALPHABETIC;
  491. if (c >= 0x0949 && c <= 0x094C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  492. if (c >= 0x094E && c <= 0x094F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  493. if (c >= 0x0982 && c <= 0x0983) return UCD_PROPERTY_OTHER_ALPHABETIC;
  494. if (c == 0x09BE) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  495. if (c >= 0x09BF && c <= 0x09C0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  496. if (c >= 0x09C7 && c <= 0x09C8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  497. if (c >= 0x09CB && c <= 0x09CC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  498. if (c == 0x09D7) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  499. break;
  500. case 0x0A00:
  501. if (c == 0x0A03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  502. if (c >= 0x0A3E && c <= 0x0A40) return UCD_PROPERTY_OTHER_ALPHABETIC;
  503. if (c == 0x0A83) return UCD_PROPERTY_OTHER_ALPHABETIC;
  504. if (c >= 0x0ABE && c <= 0x0AC0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  505. if (c == 0x0AC9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  506. if (c >= 0x0ACB && c <= 0x0ACC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  507. break;
  508. case 0x0B00:
  509. if (c >= 0x0B02 && c <= 0x0B03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  510. if (c == 0x0B3E) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  511. if (c == 0x0B40) return UCD_PROPERTY_OTHER_ALPHABETIC;
  512. if (c >= 0x0B47 && c <= 0x0B48) return UCD_PROPERTY_OTHER_ALPHABETIC;
  513. if (c >= 0x0B4B && c <= 0x0B4C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  514. if (c == 0x0B57) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  515. if (c == 0x0BBE) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  516. if (c == 0x0BBF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  517. if (c >= 0x0BC1 && c <= 0x0BC2) return UCD_PROPERTY_OTHER_ALPHABETIC;
  518. if (c >= 0x0BC6 && c <= 0x0BC8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  519. if (c >= 0x0BCA && c <= 0x0BCC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  520. if (c == 0x0BD7) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  521. break;
  522. case 0x0C00:
  523. if (c >= 0x0C01 && c <= 0x0C03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  524. if (c >= 0x0C41 && c <= 0x0C44) return UCD_PROPERTY_OTHER_ALPHABETIC;
  525. if (c >= 0x0C82 && c <= 0x0C83) return UCD_PROPERTY_OTHER_ALPHABETIC;
  526. if (c == 0x0CBE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  527. if (c >= 0x0CC0 && c <= 0x0CC1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  528. if (c == 0x0CC2) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  529. if (c >= 0x0CC3 && c <= 0x0CC4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  530. if (c >= 0x0CC7 && c <= 0x0CC8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  531. if (c >= 0x0CCA && c <= 0x0CCB) return UCD_PROPERTY_OTHER_ALPHABETIC;
  532. if (c >= 0x0CD5 && c <= 0x0CD6) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  533. break;
  534. case 0x0D00:
  535. if (c >= 0x0D02 && c <= 0x0D03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  536. if (c == 0x0D3E) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  537. if (c >= 0x0D3F && c <= 0x0D40) return UCD_PROPERTY_OTHER_ALPHABETIC;
  538. if (c >= 0x0D46 && c <= 0x0D48) return UCD_PROPERTY_OTHER_ALPHABETIC;
  539. if (c >= 0x0D4A && c <= 0x0D4C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  540. if (c == 0x0D57) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  541. if (c >= 0x0D82 && c <= 0x0D83) return UCD_PROPERTY_OTHER_ALPHABETIC;
  542. if (c == 0x0DCF) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  543. if (c >= 0x0DD0 && c <= 0x0DD1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  544. if (c >= 0x0DD8 && c <= 0x0DDE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  545. if (c == 0x0DDF) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  546. if (c >= 0x0DF2 && c <= 0x0DF3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  547. break;
  548. case 0x0F00:
  549. if (c >= 0x0F3E && c <= 0x0F3F) return UCD_PROPERTY_DIACRITIC;
  550. if (c == 0x0F7F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  551. break;
  552. case 0x1000:
  553. if (c >= 0x102B && c <= 0x102C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  554. if (c == 0x1031) return UCD_PROPERTY_OTHER_ALPHABETIC;
  555. if (c == 0x1038) return UCD_PROPERTY_OTHER_ALPHABETIC;
  556. if (c >= 0x103B && c <= 0x103C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  557. if (c >= 0x1056 && c <= 0x1057) return UCD_PROPERTY_OTHER_ALPHABETIC;
  558. if (c == 0x1062) return UCD_PROPERTY_OTHER_ALPHABETIC;
  559. if (c >= 0x1067 && c <= 0x1068) return UCD_PROPERTY_OTHER_ALPHABETIC;
  560. if (c >= 0x1083 && c <= 0x1084) return UCD_PROPERTY_OTHER_ALPHABETIC;
  561. if (c >= 0x1087 && c <= 0x108C) return UCD_PROPERTY_DIACRITIC;
  562. if (c == 0x108F) return UCD_PROPERTY_DIACRITIC;
  563. if (c >= 0x109A && c <= 0x109B) return UCD_PROPERTY_DIACRITIC;
  564. if (c == 0x109C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  565. break;
  566. case 0x1700:
  567. if (c == 0x17B6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  568. if (c >= 0x17BE && c <= 0x17C5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  569. if (c >= 0x17C7 && c <= 0x17C8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  570. break;
  571. case 0x1900:
  572. if (c >= 0x1923 && c <= 0x1926) return UCD_PROPERTY_OTHER_ALPHABETIC;
  573. if (c >= 0x1929 && c <= 0x192B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  574. if (c >= 0x1930 && c <= 0x1931) return UCD_PROPERTY_OTHER_ALPHABETIC;
  575. if (c >= 0x1933 && c <= 0x1938) return UCD_PROPERTY_OTHER_ALPHABETIC;
  576. break;
  577. case 0x1A00:
  578. if (c >= 0x1A19 && c <= 0x1A1A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  579. if (c == 0x1A55) return UCD_PROPERTY_OTHER_ALPHABETIC;
  580. if (c == 0x1A57) return UCD_PROPERTY_OTHER_ALPHABETIC;
  581. if (c == 0x1A61) return UCD_PROPERTY_OTHER_ALPHABETIC;
  582. if (c >= 0x1A63 && c <= 0x1A64) return UCD_PROPERTY_OTHER_ALPHABETIC;
  583. if (c >= 0x1A6D && c <= 0x1A72) return UCD_PROPERTY_OTHER_ALPHABETIC;
  584. break;
  585. case 0x1B00:
  586. if (c == 0x1B04) return UCD_PROPERTY_OTHER_ALPHABETIC;
  587. if (c == 0x1B35) return UCD_PROPERTY_OTHER_ALPHABETIC;
  588. if (c == 0x1B3B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  589. if (c >= 0x1B3D && c <= 0x1B41) return UCD_PROPERTY_OTHER_ALPHABETIC;
  590. if (c == 0x1B43) return UCD_PROPERTY_OTHER_ALPHABETIC;
  591. if (c == 0x1B44) return UCD_PROPERTY_DIACRITIC;
  592. if (c == 0x1B82) return UCD_PROPERTY_OTHER_ALPHABETIC;
  593. if (c == 0x1BA1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  594. if (c >= 0x1BA6 && c <= 0x1BA7) return UCD_PROPERTY_OTHER_ALPHABETIC;
  595. if (c == 0x1BAA) return UCD_PROPERTY_DIACRITIC;
  596. if (c == 0x1BE7) return UCD_PROPERTY_OTHER_ALPHABETIC;
  597. if (c >= 0x1BEA && c <= 0x1BEC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  598. if (c == 0x1BEE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  599. break;
  600. case 0x1C00:
  601. if (c >= 0x1C24 && c <= 0x1C2B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  602. if (c >= 0x1C34 && c <= 0x1C35) return UCD_PROPERTY_OTHER_ALPHABETIC;
  603. if (c == 0x1CE1) return UCD_PROPERTY_DIACRITIC;
  604. if (c >= 0x1CF2 && c <= 0x1CF3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  605. if (c == 0x1CF7) return UCD_PROPERTY_DIACRITIC;
  606. break;
  607. case 0x3000:
  608. if (c >= 0x302E && c <= 0x302F) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  609. break;
  610. case 0xA800:
  611. if (c >= 0xA823 && c <= 0xA824) return UCD_PROPERTY_OTHER_ALPHABETIC;
  612. if (c == 0xA827) return UCD_PROPERTY_OTHER_ALPHABETIC;
  613. if (c >= 0xA880 && c <= 0xA881) return UCD_PROPERTY_OTHER_ALPHABETIC;
  614. if (c >= 0xA8B4 && c <= 0xA8C3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  615. break;
  616. case 0xA900:
  617. if (c == 0xA952) return UCD_PROPERTY_OTHER_ALPHABETIC;
  618. if (c == 0xA953) return UCD_PROPERTY_DIACRITIC;
  619. if (c == 0xA983) return UCD_PROPERTY_OTHER_ALPHABETIC;
  620. if (c >= 0xA9B4 && c <= 0xA9B5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  621. if (c >= 0xA9BA && c <= 0xA9BB) return UCD_PROPERTY_OTHER_ALPHABETIC;
  622. if (c >= 0xA9BD && c <= 0xA9BF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  623. if (c == 0xA9C0) return UCD_PROPERTY_DIACRITIC;
  624. break;
  625. case 0xAA00:
  626. if (c >= 0xAA2F && c <= 0xAA30) return UCD_PROPERTY_OTHER_ALPHABETIC;
  627. if (c >= 0xAA33 && c <= 0xAA34) return UCD_PROPERTY_OTHER_ALPHABETIC;
  628. if (c == 0xAA4D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  629. if (c == 0xAA7B) return UCD_PROPERTY_DIACRITIC;
  630. if (c == 0xAA7D) return UCD_PROPERTY_DIACRITIC;
  631. if (c == 0xAAEB) return UCD_PROPERTY_OTHER_ALPHABETIC;
  632. if (c >= 0xAAEE && c <= 0xAAEF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  633. if (c == 0xAAF5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  634. break;
  635. case 0xAB00:
  636. if (c >= 0xABE3 && c <= 0xABE4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  637. if (c >= 0xABE6 && c <= 0xABE7) return UCD_PROPERTY_OTHER_ALPHABETIC;
  638. if (c >= 0xABE9 && c <= 0xABEA) return UCD_PROPERTY_OTHER_ALPHABETIC;
  639. if (c == 0xABEC) return UCD_PROPERTY_DIACRITIC;
  640. break;
  641. case 0x011000:
  642. if (c == 0x011000) return UCD_PROPERTY_OTHER_ALPHABETIC;
  643. if (c == 0x011002) return UCD_PROPERTY_OTHER_ALPHABETIC;
  644. if (c == 0x011082) return UCD_PROPERTY_OTHER_ALPHABETIC;
  645. if (c >= 0x0110B0 && c <= 0x0110B2) return UCD_PROPERTY_OTHER_ALPHABETIC;
  646. if (c >= 0x0110B7 && c <= 0x0110B8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  647. break;
  648. case 0x011100:
  649. if (c == 0x01112C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  650. if (c == 0x011182) return UCD_PROPERTY_OTHER_ALPHABETIC;
  651. if (c >= 0x0111B3 && c <= 0x0111B5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  652. if (c == 0x0111BF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  653. if (c == 0x0111C0) return UCD_PROPERTY_DIACRITIC;
  654. break;
  655. case 0x011200:
  656. if (c >= 0x01122C && c <= 0x01122E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  657. if (c >= 0x011232 && c <= 0x011233) return UCD_PROPERTY_OTHER_ALPHABETIC;
  658. if (c == 0x011235) return UCD_PROPERTY_DIACRITIC;
  659. if (c >= 0x0112E0 && c <= 0x0112E2) return UCD_PROPERTY_OTHER_ALPHABETIC;
  660. break;
  661. case 0x011300:
  662. if (c >= 0x011302 && c <= 0x011303) return UCD_PROPERTY_OTHER_ALPHABETIC;
  663. if (c == 0x01133E) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  664. if (c == 0x01133F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  665. if (c >= 0x011341 && c <= 0x011344) return UCD_PROPERTY_OTHER_ALPHABETIC;
  666. if (c >= 0x011347 && c <= 0x011348) return UCD_PROPERTY_OTHER_ALPHABETIC;
  667. if (c >= 0x01134B && c <= 0x01134C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  668. if (c == 0x01134D) return UCD_PROPERTY_DIACRITIC;
  669. if (c == 0x011357) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  670. if (c >= 0x011362 && c <= 0x011363) return UCD_PROPERTY_OTHER_ALPHABETIC;
  671. break;
  672. case 0x011400:
  673. if (c >= 0x011435 && c <= 0x011437) return UCD_PROPERTY_OTHER_ALPHABETIC;
  674. if (c >= 0x011440 && c <= 0x011441) return UCD_PROPERTY_OTHER_ALPHABETIC;
  675. if (c == 0x011445) return UCD_PROPERTY_OTHER_ALPHABETIC;
  676. if (c == 0x0114B0) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  677. if (c >= 0x0114B1 && c <= 0x0114B2) return UCD_PROPERTY_OTHER_ALPHABETIC;
  678. if (c == 0x0114B9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  679. if (c >= 0x0114BB && c <= 0x0114BC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  680. if (c == 0x0114BD) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  681. if (c == 0x0114BE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  682. if (c == 0x0114C1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  683. break;
  684. case 0x011500:
  685. if (c == 0x0115AF) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  686. if (c >= 0x0115B0 && c <= 0x0115B1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  687. if (c >= 0x0115B8 && c <= 0x0115BB) return UCD_PROPERTY_OTHER_ALPHABETIC;
  688. if (c == 0x0115BE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  689. break;
  690. case 0x011600:
  691. if (c >= 0x011630 && c <= 0x011632) return UCD_PROPERTY_OTHER_ALPHABETIC;
  692. if (c >= 0x01163B && c <= 0x01163C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  693. if (c == 0x01163E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  694. if (c == 0x0116AC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  695. if (c >= 0x0116AE && c <= 0x0116AF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  696. if (c == 0x0116B6) return UCD_PROPERTY_DIACRITIC;
  697. break;
  698. case 0x011700:
  699. if (c >= 0x011720 && c <= 0x011721) return UCD_PROPERTY_OTHER_ALPHABETIC;
  700. if (c == 0x011726) return UCD_PROPERTY_OTHER_ALPHABETIC;
  701. break;
  702. case 0x011A00:
  703. if (c >= 0x011A07 && c <= 0x011A08) return UCD_PROPERTY_OTHER_ALPHABETIC;
  704. if (c == 0x011A39) return UCD_PROPERTY_OTHER_ALPHABETIC;
  705. if (c >= 0x011A57 && c <= 0x011A58) return UCD_PROPERTY_OTHER_ALPHABETIC;
  706. if (c == 0x011A97) return UCD_PROPERTY_OTHER_ALPHABETIC;
  707. break;
  708. case 0x011C00:
  709. if (c == 0x011C2F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  710. if (c == 0x011C3E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  711. if (c == 0x011CA9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  712. if (c == 0x011CB1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  713. if (c == 0x011CB4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  714. break;
  715. case 0x01D100:
  716. if (c == 0x01D165) return UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  717. if (c == 0x01D16D) return UCD_PROPERTY_DIACRITIC;
  718. if (c >= 0x01D16E && c <= 0x01D172) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_GRAPHEME_EXTEND;
  719. break;
  720. case 0x016F00:
  721. if (c >= 0x016F51 && c <= 0x016F7E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  722. break;
  723. }
  724. return 0;
  725. }
  726. static ucd_property properties_Mn(codepoint_t c)
  727. {
  728. switch (c & 0xFFFFFF00)
  729. {
  730. case 0x0300:
  731. if (c >= 0x0300 && c <= 0x0344) return UCD_PROPERTY_DIACRITIC;
  732. if (c == 0x0345) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_LOWERCASE;
  733. if (c >= 0x0346 && c <= 0x034E) return UCD_PROPERTY_DIACRITIC;
  734. if (c == 0x034F) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  735. if (c >= 0x0350 && c <= 0x0357) return UCD_PROPERTY_DIACRITIC;
  736. if (c >= 0x035D && c <= 0x0362) return UCD_PROPERTY_DIACRITIC;
  737. break;
  738. case 0x0400:
  739. if (c >= 0x0483 && c <= 0x0487) return UCD_PROPERTY_DIACRITIC;
  740. break;
  741. case 0x0500:
  742. if (c >= 0x0591 && c <= 0x05A1) return UCD_PROPERTY_DIACRITIC;
  743. if (c >= 0x05A3 && c <= 0x05AF) return UCD_PROPERTY_DIACRITIC;
  744. if (c >= 0x05B0 && c <= 0x05BD) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  745. if (c == 0x05BF) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  746. if (c >= 0x05C1 && c <= 0x05C2) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  747. if (c == 0x05C4) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  748. if (c == 0x05C5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  749. if (c == 0x05C7) return UCD_PROPERTY_OTHER_ALPHABETIC;
  750. break;
  751. case 0x0600:
  752. if (c >= 0x0610 && c <= 0x061A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  753. if (c >= 0x064B && c <= 0x0652) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  754. if (c >= 0x0653 && c <= 0x0656) return UCD_PROPERTY_OTHER_ALPHABETIC;
  755. if (c == 0x0657) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  756. if (c == 0x0658) return UCD_PROPERTY_DIACRITIC;
  757. if (c >= 0x0659 && c <= 0x065F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  758. if (c == 0x0670) return UCD_PROPERTY_OTHER_ALPHABETIC;
  759. if (c >= 0x06D6 && c <= 0x06DC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  760. if (c >= 0x06DF && c <= 0x06E0) return UCD_PROPERTY_DIACRITIC;
  761. if (c >= 0x06E1 && c <= 0x06E4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  762. if (c >= 0x06E7 && c <= 0x06E8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  763. if (c >= 0x06EA && c <= 0x06EC) return UCD_PROPERTY_DIACRITIC;
  764. if (c == 0x06ED) return UCD_PROPERTY_OTHER_ALPHABETIC;
  765. break;
  766. case 0x0700:
  767. if (c == 0x0711) return UCD_PROPERTY_OTHER_ALPHABETIC;
  768. if (c >= 0x0730 && c <= 0x073F) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  769. if (c >= 0x0740 && c <= 0x074A) return UCD_PROPERTY_DIACRITIC;
  770. if (c >= 0x07A6 && c <= 0x07B0) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  771. if (c >= 0x07EB && c <= 0x07F3) return UCD_PROPERTY_DIACRITIC;
  772. break;
  773. case 0x0800:
  774. if (c >= 0x0816 && c <= 0x0817) return UCD_PROPERTY_OTHER_ALPHABETIC;
  775. if (c >= 0x0818 && c <= 0x0819) return UCD_PROPERTY_DIACRITIC;
  776. if (c >= 0x081B && c <= 0x0823) return UCD_PROPERTY_OTHER_ALPHABETIC;
  777. if (c >= 0x0825 && c <= 0x0827) return UCD_PROPERTY_OTHER_ALPHABETIC;
  778. if (c >= 0x0829 && c <= 0x082C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  779. if (c >= 0x08D4 && c <= 0x08DF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  780. if (c >= 0x08E3 && c <= 0x08E9) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  781. if (c >= 0x08EA && c <= 0x08EF) return UCD_PROPERTY_DIACRITIC;
  782. if (c >= 0x08F0 && c <= 0x08FE) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  783. if (c == 0x08FF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  784. break;
  785. case 0x0900:
  786. if (c <= 0x0902) return UCD_PROPERTY_OTHER_ALPHABETIC;
  787. if (c == 0x093A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  788. if (c == 0x093C) return UCD_PROPERTY_DIACRITIC;
  789. if (c >= 0x0941 && c <= 0x0948) return UCD_PROPERTY_OTHER_ALPHABETIC;
  790. if (c == 0x094D) return UCD_PROPERTY_DIACRITIC;
  791. if (c >= 0x0951 && c <= 0x0954) return UCD_PROPERTY_DIACRITIC;
  792. if (c >= 0x0955 && c <= 0x0957) return UCD_PROPERTY_OTHER_ALPHABETIC;
  793. if (c >= 0x0962 && c <= 0x0963) return UCD_PROPERTY_OTHER_ALPHABETIC;
  794. if (c == 0x0981) return UCD_PROPERTY_OTHER_ALPHABETIC;
  795. if (c == 0x09BC) return UCD_PROPERTY_DIACRITIC;
  796. if (c >= 0x09C1 && c <= 0x09C4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  797. if (c == 0x09CD) return UCD_PROPERTY_DIACRITIC;
  798. if (c >= 0x09E2 && c <= 0x09E3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  799. break;
  800. case 0x0A00:
  801. if (c >= 0x0A01 && c <= 0x0A02) return UCD_PROPERTY_OTHER_ALPHABETIC;
  802. if (c == 0x0A3C) return UCD_PROPERTY_DIACRITIC;
  803. if (c >= 0x0A41 && c <= 0x0A42) return UCD_PROPERTY_OTHER_ALPHABETIC;
  804. if (c >= 0x0A47 && c <= 0x0A48) return UCD_PROPERTY_OTHER_ALPHABETIC;
  805. if (c >= 0x0A4B && c <= 0x0A4C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  806. if (c == 0x0A4D) return UCD_PROPERTY_DIACRITIC;
  807. if (c == 0x0A51) return UCD_PROPERTY_OTHER_ALPHABETIC;
  808. if (c >= 0x0A70 && c <= 0x0A71) return UCD_PROPERTY_OTHER_ALPHABETIC;
  809. if (c == 0x0A75) return UCD_PROPERTY_OTHER_ALPHABETIC;
  810. if (c >= 0x0A81 && c <= 0x0A82) return UCD_PROPERTY_OTHER_ALPHABETIC;
  811. if (c == 0x0ABC) return UCD_PROPERTY_DIACRITIC;
  812. if (c >= 0x0AC1 && c <= 0x0AC5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  813. if (c >= 0x0AC7 && c <= 0x0AC8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  814. if (c == 0x0ACD) return UCD_PROPERTY_DIACRITIC;
  815. if (c >= 0x0AE2 && c <= 0x0AE3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  816. if (c >= 0x0AFA && c <= 0x0AFC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  817. if (c >= 0x0AFD && c <= 0x0AFF) return UCD_PROPERTY_DIACRITIC;
  818. break;
  819. case 0x0B00:
  820. if (c == 0x0B01) return UCD_PROPERTY_OTHER_ALPHABETIC;
  821. if (c == 0x0B3C) return UCD_PROPERTY_DIACRITIC;
  822. if (c == 0x0B3F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  823. if (c >= 0x0B41 && c <= 0x0B44) return UCD_PROPERTY_OTHER_ALPHABETIC;
  824. if (c == 0x0B4D) return UCD_PROPERTY_DIACRITIC;
  825. if (c == 0x0B56) return UCD_PROPERTY_OTHER_ALPHABETIC;
  826. if (c >= 0x0B62 && c <= 0x0B63) return UCD_PROPERTY_OTHER_ALPHABETIC;
  827. if (c == 0x0B82) return UCD_PROPERTY_OTHER_ALPHABETIC;
  828. if (c == 0x0BC0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  829. if (c == 0x0BCD) return UCD_PROPERTY_DIACRITIC;
  830. break;
  831. case 0x0C00:
  832. if (c == 0x0C00) return UCD_PROPERTY_OTHER_ALPHABETIC;
  833. if (c >= 0x0C3E && c <= 0x0C40) return UCD_PROPERTY_OTHER_ALPHABETIC;
  834. if (c >= 0x0C46 && c <= 0x0C48) return UCD_PROPERTY_OTHER_ALPHABETIC;
  835. if (c >= 0x0C4A && c <= 0x0C4C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  836. if (c == 0x0C4D) return UCD_PROPERTY_DIACRITIC;
  837. if (c >= 0x0C55 && c <= 0x0C56) return UCD_PROPERTY_OTHER_ALPHABETIC;
  838. if (c >= 0x0C62 && c <= 0x0C63) return UCD_PROPERTY_OTHER_ALPHABETIC;
  839. if (c == 0x0C81) return UCD_PROPERTY_OTHER_ALPHABETIC;
  840. if (c == 0x0CBC) return UCD_PROPERTY_DIACRITIC;
  841. if (c == 0x0CBF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  842. if (c == 0x0CC6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  843. if (c == 0x0CCC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  844. if (c == 0x0CCD) return UCD_PROPERTY_DIACRITIC;
  845. if (c >= 0x0CE2 && c <= 0x0CE3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  846. break;
  847. case 0x0D00:
  848. if (c >= 0x0D00 && c <= 0x0D01) return UCD_PROPERTY_OTHER_ALPHABETIC;
  849. if (c >= 0x0D3B && c <= 0x0D3C) return UCD_PROPERTY_DIACRITIC;
  850. if (c >= 0x0D41 && c <= 0x0D44) return UCD_PROPERTY_OTHER_ALPHABETIC;
  851. if (c == 0x0D4D) return UCD_PROPERTY_DIACRITIC;
  852. if (c >= 0x0D62 && c <= 0x0D63) return UCD_PROPERTY_OTHER_ALPHABETIC;
  853. if (c == 0x0DCA) return UCD_PROPERTY_DIACRITIC;
  854. if (c >= 0x0DD2 && c <= 0x0DD4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  855. if (c == 0x0DD6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  856. break;
  857. case 0x0E00:
  858. if (c == 0x0E31) return UCD_PROPERTY_OTHER_ALPHABETIC;
  859. if (c >= 0x0E34 && c <= 0x0E3A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  860. if (c >= 0x0E47 && c <= 0x0E4C) return UCD_PROPERTY_DIACRITIC;
  861. if (c == 0x0E4D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  862. if (c == 0x0E4E) return UCD_PROPERTY_DIACRITIC;
  863. if (c == 0x0EB1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  864. if (c >= 0x0EB4 && c <= 0x0EB9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  865. if (c >= 0x0EBB && c <= 0x0EBC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  866. if (c >= 0x0EC8 && c <= 0x0ECC) return UCD_PROPERTY_DIACRITIC;
  867. if (c == 0x0ECD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  868. break;
  869. case 0x0F00:
  870. if (c >= 0x0F18 && c <= 0x0F19) return UCD_PROPERTY_DIACRITIC;
  871. if (c == 0x0F35) return UCD_PROPERTY_DIACRITIC;
  872. if (c == 0x0F37) return UCD_PROPERTY_DIACRITIC;
  873. if (c == 0x0F39) return UCD_PROPERTY_DIACRITIC;
  874. if (c == 0x0F77) return UCD_PROPERTY_DEPRECATED | UCD_PROPERTY_OTHER_ALPHABETIC;
  875. if (c == 0x0F79) return UCD_PROPERTY_DEPRECATED | UCD_PROPERTY_OTHER_ALPHABETIC;
  876. if (c >= 0x0F71 && c <= 0x0F7E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  877. if (c >= 0x0F80 && c <= 0x0F81) return UCD_PROPERTY_OTHER_ALPHABETIC;
  878. if (c >= 0x0F82 && c <= 0x0F84) return UCD_PROPERTY_DIACRITIC;
  879. if (c >= 0x0F86 && c <= 0x0F87) return UCD_PROPERTY_DIACRITIC;
  880. if (c >= 0x0F8D && c <= 0x0F97) return UCD_PROPERTY_OTHER_ALPHABETIC;
  881. if (c >= 0x0F99 && c <= 0x0FBC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  882. if (c == 0x0FC6) return UCD_PROPERTY_DIACRITIC;
  883. break;
  884. case 0x1000:
  885. if (c >= 0x102D && c <= 0x1030) return UCD_PROPERTY_OTHER_ALPHABETIC;
  886. if (c >= 0x1032 && c <= 0x1036) return UCD_PROPERTY_OTHER_ALPHABETIC;
  887. if (c == 0x1037) return UCD_PROPERTY_DIACRITIC;
  888. if (c >= 0x1039 && c <= 0x103A) return UCD_PROPERTY_DIACRITIC;
  889. if (c >= 0x103D && c <= 0x103E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  890. if (c >= 0x1058 && c <= 0x1059) return UCD_PROPERTY_OTHER_ALPHABETIC;
  891. if (c >= 0x105E && c <= 0x1060) return UCD_PROPERTY_OTHER_ALPHABETIC;
  892. if (c >= 0x1071 && c <= 0x1074) return UCD_PROPERTY_OTHER_ALPHABETIC;
  893. if (c == 0x1082) return UCD_PROPERTY_OTHER_ALPHABETIC;
  894. if (c >= 0x1085 && c <= 0x1086) return UCD_PROPERTY_OTHER_ALPHABETIC;
  895. if (c == 0x108D) return UCD_PROPERTY_DIACRITIC;
  896. if (c == 0x109D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  897. break;
  898. case 0x1300:
  899. if (c == 0x135F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  900. break;
  901. case 0x1700:
  902. if (c >= 0x1712 && c <= 0x1713) return UCD_PROPERTY_OTHER_ALPHABETIC;
  903. if (c >= 0x1732 && c <= 0x1733) return UCD_PROPERTY_OTHER_ALPHABETIC;
  904. if (c >= 0x1752 && c <= 0x1753) return UCD_PROPERTY_OTHER_ALPHABETIC;
  905. if (c >= 0x1772 && c <= 0x1773) return UCD_PROPERTY_OTHER_ALPHABETIC;
  906. if (c >= 0x17B4 && c <= 0x17B5) return UCD_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT;
  907. if (c >= 0x17B7 && c <= 0x17BD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  908. if (c == 0x17C6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  909. if (c >= 0x17C9 && c <= 0x17D3) return UCD_PROPERTY_DIACRITIC;
  910. if (c == 0x17DD) return UCD_PROPERTY_DIACRITIC;
  911. break;
  912. case 0x1800:
  913. if (c >= 0x180B && c <= 0x180D) return UCD_PROPERTY_VARIATION_SELECTOR;
  914. if (c >= 0x1885 && c <= 0x1886) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_ID_START;
  915. if (c == 0x18A9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  916. break;
  917. case 0x1900:
  918. if (c >= 0x1920 && c <= 0x1922) return UCD_PROPERTY_OTHER_ALPHABETIC;
  919. if (c >= 0x1927 && c <= 0x1928) return UCD_PROPERTY_OTHER_ALPHABETIC;
  920. if (c == 0x1932) return UCD_PROPERTY_OTHER_ALPHABETIC;
  921. if (c >= 0x1939 && c <= 0x193B) return UCD_PROPERTY_DIACRITIC;
  922. break;
  923. case 0x1A00:
  924. if (c >= 0x1A17 && c <= 0x1A18) return UCD_PROPERTY_OTHER_ALPHABETIC;
  925. if (c == 0x1A1B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  926. if (c == 0x1A56) return UCD_PROPERTY_OTHER_ALPHABETIC;
  927. if (c >= 0x1A58 && c <= 0x1A5E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  928. if (c == 0x1A62) return UCD_PROPERTY_OTHER_ALPHABETIC;
  929. if (c >= 0x1A65 && c <= 0x1A6C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  930. if (c >= 0x1A73 && c <= 0x1A74) return UCD_PROPERTY_OTHER_ALPHABETIC;
  931. if (c >= 0x1A75 && c <= 0x1A7C) return UCD_PROPERTY_DIACRITIC;
  932. if (c == 0x1A7F) return UCD_PROPERTY_DIACRITIC;
  933. if (c >= 0x1AB0 && c <= 0x1ABD) return UCD_PROPERTY_DIACRITIC;
  934. break;
  935. case 0x1B00:
  936. if (c >= 0x1B00 && c <= 0x1B03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  937. if (c == 0x1B34) return UCD_PROPERTY_DIACRITIC;
  938. if (c >= 0x1B36 && c <= 0x1B3A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  939. if (c == 0x1B3C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  940. if (c == 0x1B42) return UCD_PROPERTY_OTHER_ALPHABETIC;
  941. if (c >= 0x1B6B && c <= 0x1B73) return UCD_PROPERTY_DIACRITIC;
  942. if (c >= 0x1B80 && c <= 0x1B81) return UCD_PROPERTY_OTHER_ALPHABETIC;
  943. if (c >= 0x1BA2 && c <= 0x1BA5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  944. if (c >= 0x1BA8 && c <= 0x1BA9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  945. if (c == 0x1BAB) return UCD_PROPERTY_DIACRITIC;
  946. if (c >= 0x1BAC && c <= 0x1BAD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  947. if (c >= 0x1BE8 && c <= 0x1BE9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  948. if (c == 0x1BED) return UCD_PROPERTY_OTHER_ALPHABETIC;
  949. if (c >= 0x1BEF && c <= 0x1BF1) return UCD_PROPERTY_OTHER_ALPHABETIC;
  950. break;
  951. case 0x1C00:
  952. if (c >= 0x1C2C && c <= 0x1C33) return UCD_PROPERTY_OTHER_ALPHABETIC;
  953. if (c == 0x1C36) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER;
  954. if (c == 0x1C37) return UCD_PROPERTY_DIACRITIC;
  955. if (c >= 0x1CD0 && c <= 0x1CD2) return UCD_PROPERTY_DIACRITIC;
  956. if (c >= 0x1CD4 && c <= 0x1CE0) return UCD_PROPERTY_DIACRITIC;
  957. if (c >= 0x1CE2 && c <= 0x1CE8) return UCD_PROPERTY_DIACRITIC;
  958. if (c == 0x1CED) return UCD_PROPERTY_DIACRITIC;
  959. if (c == 0x1CF4) return UCD_PROPERTY_DIACRITIC;
  960. if (c >= 0x1CF8 && c <= 0x1CF9) return UCD_PROPERTY_DIACRITIC;
  961. break;
  962. case 0x1D00:
  963. if (c >= 0x1DC4 && c <= 0x1DCF) return UCD_PROPERTY_DIACRITIC;
  964. if (c >= 0x1DE7 && c <= 0x1DF4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  965. if (c >= 0x1DF5 && c <= 0x1DF9) return UCD_PROPERTY_DIACRITIC;
  966. if (c >= 0x1DFD && c <= 0x1DFF) return UCD_PROPERTY_DIACRITIC;
  967. break;
  968. case 0x2000:
  969. if (c >= 0x20D0 && c <= 0x20DC) return UCD_PROPERTY_OTHER_MATH;
  970. if (c == 0x20E1) return UCD_PROPERTY_OTHER_MATH;
  971. if (c >= 0x20E5 && c <= 0x20E6) return UCD_PROPERTY_OTHER_MATH;
  972. if (c >= 0x20EB && c <= 0x20EF) return UCD_PROPERTY_OTHER_MATH;
  973. break;
  974. case 0x2C00:
  975. if (c >= 0x2CEF && c <= 0x2CF1) return UCD_PROPERTY_DIACRITIC;
  976. break;
  977. case 0x2D00:
  978. if (c >= 0x2DE0 && c <= 0x2DFF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  979. break;
  980. case 0x3000:
  981. if (c >= 0x302A && c <= 0x302D) return UCD_PROPERTY_DIACRITIC;
  982. if (c >= 0x3099 && c <= 0x309A) return UCD_PROPERTY_DIACRITIC;
  983. break;
  984. case 0xA600:
  985. if (c == 0xA66F) return UCD_PROPERTY_DIACRITIC;
  986. if (c >= 0xA674 && c <= 0xA67B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  987. if (c >= 0xA67C && c <= 0xA67D) return UCD_PROPERTY_DIACRITIC;
  988. if (c >= 0xA69E && c <= 0xA69F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  989. if (c >= 0xA6F0 && c <= 0xA6F1) return UCD_PROPERTY_DIACRITIC;
  990. break;
  991. case 0xA800:
  992. if (c >= 0xA825 && c <= 0xA826) return UCD_PROPERTY_OTHER_ALPHABETIC;
  993. if (c == 0xA8C4) return UCD_PROPERTY_DIACRITIC;
  994. if (c == 0xA8C5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  995. if (c >= 0xA8E0 && c <= 0xA8F1) return UCD_PROPERTY_DIACRITIC;
  996. break;
  997. case 0xA900:
  998. if (c >= 0xA926 && c <= 0xA92A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  999. if (c >= 0xA92B && c <= 0xA92D) return UCD_PROPERTY_DIACRITIC;
  1000. if (c >= 0xA947 && c <= 0xA951) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1001. if (c >= 0xA980 && c <= 0xA982) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1002. if (c == 0xA9B3) return UCD_PROPERTY_DIACRITIC;
  1003. if (c >= 0xA9B6 && c <= 0xA9B9) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1004. if (c == 0xA9BC) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1005. if (c == 0xA9E5) return UCD_PROPERTY_DIACRITIC;
  1006. break;
  1007. case 0xAA00:
  1008. if (c >= 0xAA29 && c <= 0xAA2E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1009. if (c >= 0xAA31 && c <= 0xAA32) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1010. if (c >= 0xAA35 && c <= 0xAA36) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1011. if (c == 0xAA43) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1012. if (c == 0xAA4C) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1013. if (c == 0xAA7C) return UCD_PROPERTY_DIACRITIC;
  1014. if (c == 0xAAB0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1015. if (c >= 0xAAB2 && c <= 0xAAB4) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1016. if (c >= 0xAAB7 && c <= 0xAAB8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1017. if (c == 0xAABE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1018. if (c == 0xAABF) return UCD_PROPERTY_DIACRITIC;
  1019. if (c == 0xAAC1) return UCD_PROPERTY_DIACRITIC;
  1020. if (c >= 0xAAEC && c <= 0xAAED) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1021. if (c == 0xAAF6) return UCD_PROPERTY_DIACRITIC;
  1022. break;
  1023. case 0xAB00:
  1024. if (c == 0xABE5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1025. if (c == 0xABE8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1026. if (c == 0xABED) return UCD_PROPERTY_DIACRITIC;
  1027. break;
  1028. case 0xFB00:
  1029. if (c == 0xFB1E) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ALPHABETIC;
  1030. break;
  1031. case 0xFE00:
  1032. if (c >= 0xFE00 && c <= 0xFE0F) return UCD_PROPERTY_VARIATION_SELECTOR;
  1033. if (c >= 0xFE20 && c <= 0xFE2F) return UCD_PROPERTY_DIACRITIC;
  1034. break;
  1035. case 0x010200:
  1036. if (c == 0x0102E0) return UCD_PROPERTY_DIACRITIC;
  1037. break;
  1038. case 0x010300:
  1039. if (c >= 0x010376 && c <= 0x01037A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1040. break;
  1041. case 0x010A00:
  1042. if (c >= 0x010A01 && c <= 0x010A03) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1043. if (c >= 0x010A05 && c <= 0x010A06) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1044. if (c >= 0x010A0C && c <= 0x010A0F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1045. if (c >= 0x010AE5 && c <= 0x010AE6) return UCD_PROPERTY_DIACRITIC;
  1046. break;
  1047. case 0x011000:
  1048. if (c == 0x011001) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1049. if (c >= 0x011038 && c <= 0x011045) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1050. if (c >= 0x0110B3 && c <= 0x0110B6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1051. if (c >= 0x0110B9 && c <= 0x0110BA) return UCD_PROPERTY_DIACRITIC;
  1052. break;
  1053. case 0x011100:
  1054. if (c >= 0x011100 && c <= 0x011102) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1055. if (c >= 0x011127 && c <= 0x01112B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1056. if (c >= 0x01112D && c <= 0x011132) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1057. if (c >= 0x011133 && c <= 0x011134) return UCD_PROPERTY_DIACRITIC;
  1058. if (c == 0x011173) return UCD_PROPERTY_DIACRITIC;
  1059. if (c >= 0x011180 && c <= 0x011181) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1060. if (c >= 0x0111B6 && c <= 0x0111BE) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1061. if (c >= 0x0111CA && c <= 0x0111CC) return UCD_PROPERTY_DIACRITIC;
  1062. break;
  1063. case 0x011200:
  1064. if (c >= 0x01122F && c <= 0x011231) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1065. if (c == 0x011234) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1066. if (c == 0x011236) return UCD_PROPERTY_DIACRITIC;
  1067. if (c == 0x011237) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1068. if (c == 0x01123E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1069. if (c == 0x0112DF) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1070. if (c >= 0x0112E3 && c <= 0x0112E8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1071. if (c >= 0x0112E9 && c <= 0x0112EA) return UCD_PROPERTY_DIACRITIC;
  1072. break;
  1073. case 0x011300:
  1074. if (c >= 0x011300 && c <= 0x011301) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1075. if (c == 0x01133C) return UCD_PROPERTY_DIACRITIC;
  1076. if (c == 0x011340) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1077. if (c >= 0x011366 && c <= 0x01136C) return UCD_PROPERTY_DIACRITIC;
  1078. if (c >= 0x011370 && c <= 0x011374) return UCD_PROPERTY_DIACRITIC;
  1079. break;
  1080. case 0x011400:
  1081. if (c >= 0x011438 && c <= 0x01143F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1082. if (c == 0x011442) return UCD_PROPERTY_DIACRITIC;
  1083. if (c >= 0x011443 && c <= 0x011444) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1084. if (c == 0x011446) return UCD_PROPERTY_DIACRITIC;
  1085. if (c >= 0x0114B3 && c <= 0x0114B8) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1086. if (c == 0x0114BA) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1087. if (c >= 0x0114BF && c <= 0x0114C0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1088. if (c >= 0x0114C2 && c <= 0x0114C3) return UCD_PROPERTY_DIACRITIC;
  1089. break;
  1090. case 0x011500:
  1091. if (c >= 0x0115B2 && c <= 0x0115B5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1092. if (c >= 0x0115BC && c <= 0x0115BD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1093. if (c >= 0x0115BF && c <= 0x0115C0) return UCD_PROPERTY_DIACRITIC;
  1094. if (c >= 0x0115DC && c <= 0x0115DD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1095. break;
  1096. case 0x011600:
  1097. if (c >= 0x011633 && c <= 0x01163A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1098. if (c == 0x01163D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1099. if (c == 0x01163F) return UCD_PROPERTY_DIACRITIC;
  1100. if (c == 0x011640) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1101. if (c == 0x0116AB) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1102. if (c == 0x0116AD) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1103. if (c >= 0x0116B0 && c <= 0x0116B5) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1104. if (c == 0x0116B7) return UCD_PROPERTY_DIACRITIC;
  1105. break;
  1106. case 0x011700:
  1107. if (c >= 0x01171D && c <= 0x01171F) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1108. if (c >= 0x011722 && c <= 0x011725) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1109. if (c >= 0x011727 && c <= 0x01172A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1110. if (c == 0x01172B) return UCD_PROPERTY_DIACRITIC;
  1111. break;
  1112. case 0x011A00:
  1113. if (c >= 0x011A01 && c <= 0x011A0A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1114. if (c == 0x011A34) return UCD_PROPERTY_DIACRITIC;
  1115. if (c >= 0x011A35 && c <= 0x011A3E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1116. if (c == 0x011A47) return UCD_PROPERTY_DIACRITIC;
  1117. if (c >= 0x011A51 && c <= 0x011A5B) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1118. if (c >= 0x011A8A && c <= 0x011A96) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1119. if (c == 0x011A98) return UCD_PROPERTY_EXTENDER;
  1120. if (c == 0x011A99) return UCD_PROPERTY_DIACRITIC;
  1121. break;
  1122. case 0x011C00:
  1123. if (c >= 0x011C30 && c <= 0x011C36) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1124. if (c >= 0x011C38 && c <= 0x011C3D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1125. if (c == 0x011C3F) return UCD_PROPERTY_DIACRITIC;
  1126. if (c >= 0x011C92 && c <= 0x011CA7) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1127. if (c >= 0x011CAA && c <= 0x011CB0) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1128. if (c >= 0x011CB2 && c <= 0x011CB3) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1129. if (c >= 0x011CB5 && c <= 0x011CB6) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1130. break;
  1131. case 0x011D00:
  1132. if (c >= 0x011D31 && c <= 0x011D36) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1133. if (c == 0x011D3A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1134. if (c >= 0x011D3C && c <= 0x011D3D) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1135. if (c >= 0x011D3F && c <= 0x011D41) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1136. if (c == 0x011D42) return UCD_PROPERTY_DIACRITIC;
  1137. if (c == 0x011D43) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1138. if (c >= 0x011D44 && c <= 0x011D45) return UCD_PROPERTY_DIACRITIC;
  1139. if (c == 0x011D47) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1140. break;
  1141. case 0x016A00:
  1142. if (c >= 0x016AF0 && c <= 0x016AF4) return UCD_PROPERTY_DIACRITIC;
  1143. break;
  1144. case 0x016B00:
  1145. if (c >= 0x016B30 && c <= 0x016B36) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1146. break;
  1147. case 0x016F00:
  1148. if (c >= 0x016F8F && c <= 0x016F92) return UCD_PROPERTY_DIACRITIC;
  1149. break;
  1150. case 0x01BC00:
  1151. if (c == 0x01BC9E) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1152. break;
  1153. case 0x01D100:
  1154. if (c >= 0x01D167 && c <= 0x01D169) return UCD_PROPERTY_DIACRITIC;
  1155. if (c >= 0x01D17B && c <= 0x01D182) return UCD_PROPERTY_DIACRITIC;
  1156. if (c >= 0x01D185 && c <= 0x01D18B) return UCD_PROPERTY_DIACRITIC;
  1157. if (c >= 0x01D1AA && c <= 0x01D1AD) return UCD_PROPERTY_DIACRITIC;
  1158. break;
  1159. case 0x01E000:
  1160. if (c >= 0x01E000 && c <= 0x01E006) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1161. if (c >= 0x01E008 && c <= 0x01E018) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1162. if (c >= 0x01E01B && c <= 0x01E021) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1163. if (c >= 0x01E023 && c <= 0x01E024) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1164. if (c >= 0x01E026 && c <= 0x01E02A) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1165. break;
  1166. case 0x01E800:
  1167. if (c >= 0x01E8D0 && c <= 0x01E8D6) return UCD_PROPERTY_DIACRITIC;
  1168. break;
  1169. case 0x01E900:
  1170. if (c >= 0x01E944 && c <= 0x01E946) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER;
  1171. if (c == 0x01E947) return UCD_PROPERTY_OTHER_ALPHABETIC;
  1172. if (c >= 0x01E948 && c <= 0x01E94A) return UCD_PROPERTY_DIACRITIC;
  1173. break;
  1174. case 0x0E0100:
  1175. if (c >= 0x0E0100 && c <= 0x0E01EF) return UCD_PROPERTY_VARIATION_SELECTOR;
  1176. break;
  1177. }
  1178. return 0;
  1179. }
  1180. static ucd_property properties_Nd(codepoint_t c)
  1181. {
  1182. switch (c & 0xFFFFFF00)
  1183. {
  1184. case 0x0000:
  1185. if (c >= 0x0030 && c <= 0x0039) return UCD_PROPERTY_HEX_DIGIT | UCD_PROPERTY_ASCII_HEX_DIGIT | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_COMPONENT;
  1186. break;
  1187. case 0xFF00:
  1188. if (c >= 0xFF10 && c <= 0xFF19) return UCD_PROPERTY_HEX_DIGIT;
  1189. break;
  1190. case 0x01D700:
  1191. if (c >= 0x01D7CE && c <= 0x01D7FF) return UCD_PROPERTY_OTHER_MATH;
  1192. break;
  1193. }
  1194. return 0;
  1195. }
  1196. static ucd_property properties_Nl(codepoint_t c)
  1197. {
  1198. switch (c & 0xFFFFFF00)
  1199. {
  1200. case 0x2100:
  1201. if (c >= 0x2160 && c <= 0x216F) return UCD_PROPERTY_OTHER_UPPERCASE;
  1202. if (c >= 0x2170 && c <= 0x217F) return UCD_PROPERTY_OTHER_LOWERCASE;
  1203. break;
  1204. case 0x3000:
  1205. if (c == 0x3007) return UCD_PROPERTY_IDEOGRAPHIC;
  1206. if (c >= 0x3021 && c <= 0x3029) return UCD_PROPERTY_IDEOGRAPHIC;
  1207. if (c >= 0x3038 && c <= 0x303A) return UCD_PROPERTY_IDEOGRAPHIC;
  1208. break;
  1209. }
  1210. return 0;
  1211. }
  1212. static ucd_property properties_No(codepoint_t c)
  1213. {
  1214. switch (c & 0xFFFFFF00)
  1215. {
  1216. case 0x1300:
  1217. if (c >= 0x1369 && c <= 0x1371) return UCD_PROPERTY_OTHER_ID_CONTINUE;
  1218. break;
  1219. case 0x1900:
  1220. if (c == 0x19DA) return UCD_PROPERTY_OTHER_ID_CONTINUE;
  1221. break;
  1222. case 0x2400:
  1223. if (c >= 0x2488 && c <= 0x249B) return ESPEAKNG_PROPERTY_FULL_STOP;
  1224. break;
  1225. case 0x01F100:
  1226. if (c == 0x01F100) return ESPEAKNG_PROPERTY_FULL_STOP;
  1227. if (c >= 0x01F101 && c <= 0x01F10A) return ESPEAKNG_PROPERTY_COMMA;
  1228. break;
  1229. }
  1230. return 0;
  1231. }
  1232. static ucd_property properties_Pc(codepoint_t c)
  1233. {
  1234. switch (c & 0xFFFFFF00)
  1235. {
  1236. case 0x2000:
  1237. if (c == 0x2040) return UCD_PROPERTY_OTHER_MATH;
  1238. break;
  1239. }
  1240. return 0;
  1241. }
  1242. static ucd_property properties_Pd(codepoint_t c)
  1243. {
  1244. switch (c & 0xFFFFFF00)
  1245. {
  1246. case 0x0000:
  1247. return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN | UCD_PROPERTY_PATTERN_SYNTAX;
  1248. case 0x0500:
  1249. if (c == 0x058A) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN;
  1250. break;
  1251. case 0x1800:
  1252. if (c == 0x1806) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN;
  1253. break;
  1254. case 0x2000:
  1255. if (c >= 0x2010 && c <= 0x2011) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN | UCD_PROPERTY_PATTERN_SYNTAX;
  1256. if (c >= 0x2013 && c <= 0x2014) return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXTENDED_DASH;
  1257. return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX;
  1258. case 0x2E00:
  1259. if (c == 0x2E17) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN | UCD_PROPERTY_PATTERN_SYNTAX;
  1260. if (c >= 0x2E3A && c <= 0x2E3B) return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXTENDED_DASH;
  1261. return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX;
  1262. case 0x3000:
  1263. if (c == 0x301C) return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX;
  1264. if (c == 0x3030) return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1265. break;
  1266. case 0xFE00:
  1267. if (c >= 0xFE31 && c <= 0xFE32) return UCD_PROPERTY_DASH | ESPEAKNG_PROPERTY_EXTENDED_DASH;
  1268. if (c == 0xFE63) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN | UCD_PROPERTY_OTHER_MATH;
  1269. break;
  1270. case 0xFF00:
  1271. if (c == 0xFF0D) return UCD_PROPERTY_DASH | UCD_PROPERTY_HYPHEN;
  1272. break;
  1273. }
  1274. return UCD_PROPERTY_DASH;
  1275. }
  1276. static ucd_property properties_Pe(codepoint_t c)
  1277. {
  1278. switch (c & 0xFFFFFF00)
  1279. {
  1280. case 0x0000:
  1281. return UCD_PROPERTY_PATTERN_SYNTAX;
  1282. case 0x2000:
  1283. if (c == 0x2046) return UCD_PROPERTY_PATTERN_SYNTAX;
  1284. if (c == 0x207E) return UCD_PROPERTY_OTHER_MATH;
  1285. if (c == 0x208E) return UCD_PROPERTY_OTHER_MATH;
  1286. break;
  1287. case 0x2300:
  1288. if (c == 0x2309) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1289. if (c == 0x230B) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1290. if (c == 0x232A) return UCD_PROPERTY_DEPRECATED | UCD_PROPERTY_PATTERN_SYNTAX;
  1291. break;
  1292. case 0x2700:
  1293. if (c == 0x27C6) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1294. if (c >= 0x27E6 && c <= 0x27EF) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX; /* Pe|Ps */
  1295. return UCD_PROPERTY_PATTERN_SYNTAX;
  1296. case 0x2900:
  1297. return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX; /* Pe|Ps */
  1298. case 0x2E00:
  1299. return UCD_PROPERTY_PATTERN_SYNTAX;
  1300. case 0x3000:
  1301. if (c == 0x300D) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_QUOTATION_MARK;
  1302. if (c == 0x300F) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_QUOTATION_MARK;
  1303. if (c >= 0x301E && c <= 0x301F) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_QUOTATION_MARK;
  1304. return UCD_PROPERTY_PATTERN_SYNTAX;
  1305. case 0xFD00:
  1306. if (c == 0xFD3E) return UCD_PROPERTY_PATTERN_SYNTAX;
  1307. break;
  1308. case 0xFE00:
  1309. if (c == 0xFE42) return UCD_PROPERTY_QUOTATION_MARK;
  1310. if (c == 0xFE44) return UCD_PROPERTY_QUOTATION_MARK;
  1311. break;
  1312. case 0xFF00:
  1313. if (c == 0xFF63) return UCD_PROPERTY_QUOTATION_MARK;
  1314. break;
  1315. }
  1316. return 0;
  1317. }
  1318. static ucd_property properties_Pf(codepoint_t c)
  1319. {
  1320. switch (c & 0xFFFFFF00)
  1321. {
  1322. case 0x0000:
  1323. case 0x2000:
  1324. return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1325. case 0x2E00:
  1326. return UCD_PROPERTY_PATTERN_SYNTAX;
  1327. }
  1328. return 0;
  1329. }
  1330. static ucd_property properties_Pi(codepoint_t c)
  1331. {
  1332. switch (c & 0xFFFFFF00)
  1333. {
  1334. case 0x0000:
  1335. case 0x2000:
  1336. return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1337. case 0x2E00:
  1338. return UCD_PROPERTY_PATTERN_SYNTAX;
  1339. }
  1340. return 0;
  1341. }
  1342. static ucd_property properties_Po(codepoint_t c)
  1343. {
  1344. switch (c & 0xFFFFFF00)
  1345. {
  1346. case 0x0000:
  1347. if (c == 0x0021) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1348. if (c == 0x0022) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1349. if (c == 0x0023) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI_COMPONENT;
  1350. if (c == 0x0027) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1351. if (c == 0x002A) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI_COMPONENT;
  1352. if (c == 0x002C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COMMA;
  1353. if (c == 0x002E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_FULL_STOP;
  1354. if (c == 0x003A) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COLON;
  1355. if (c == 0x003B) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_SEMI_COLON;
  1356. if (c == 0x003F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1357. if (c == 0x00A1) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER | ESPEAKNG_PROPERTY_INVERTED_TERMINAL_PUNCTUATION;
  1358. if (c == 0x00B7) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_EXTENDER | UCD_PROPERTY_OTHER_ID_CONTINUE;
  1359. if (c == 0x00BF) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER | ESPEAKNG_PROPERTY_INVERTED_TERMINAL_PUNCTUATION;
  1360. return UCD_PROPERTY_PATTERN_SYNTAX;
  1361. case 0x0300:
  1362. if (c == 0x037E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1363. if (c == 0x0387) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_OTHER_ID_CONTINUE | ESPEAKNG_PROPERTY_SEMI_COLON;
  1364. break;
  1365. case 0x0500:
  1366. if (c >= 0x055B && c <= 0x055C) return ESPEAKNG_PROPERTY_EXCLAMATION_MARK | ESPEAKNG_PROPERTY_PUNCTUATION_IN_WORD;
  1367. if (c == 0x055D) return ESPEAKNG_PROPERTY_COMMA;
  1368. if (c == 0x055E) return ESPEAKNG_PROPERTY_QUESTION_MARK | ESPEAKNG_PROPERTY_PUNCTUATION_IN_WORD;
  1369. if (c == 0x0589) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1370. if (c == 0x05C3) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1371. break;
  1372. case 0x0600:
  1373. if (c == 0x060C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1374. if (c == 0x061B) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1375. if (c == 0x061F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1376. if (c == 0x06D4) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1377. break;
  1378. case 0x0700:
  1379. if (c == 0x0700) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  1380. if (c == 0x0701) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1381. if (c == 0x0702) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_COMMA;
  1382. if (c == 0x0703) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1383. if (c == 0x0704) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_FULL_STOP;
  1384. if (c == 0x0705) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1385. if (c >= 0x0706 && c <= 0x0707) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1386. if (c == 0x0708) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1387. if (c == 0x0709) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1388. if (c == 0x070A) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1389. if (c == 0x070C) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1390. if (c == 0x07F8) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1391. if (c == 0x07F9) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1392. break;
  1393. case 0x0800:
  1394. if (c >= 0x0830 && c <= 0x083E) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1395. if (c == 0x085E) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1396. break;
  1397. case 0x0900:
  1398. if (c == 0x0964) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1399. if (c == 0x0965) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  1400. break;
  1401. case 0x0D00:
  1402. if (c == 0x0DF4) return ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1403. break;
  1404. case 0x0E00:
  1405. if (c >= 0x0E5A && c <= 0x0E5B) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1406. break;
  1407. case 0x0F00:
  1408. if (c == 0x0F08) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1409. if (c == 0x0F0D) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1410. if (c == 0x0F0E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  1411. if (c >= 0x0F0E && c <= 0x0F12) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1412. if (c == 0x0F14) return ESPEAKNG_PROPERTY_COMMA;
  1413. break;
  1414. case 0x1000:
  1415. if (c >= 0x104A && c <= 0x104B) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1416. if (c == 0x10FB) return ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  1417. break;
  1418. case 0x1300:
  1419. if (c == 0x1361) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1420. if (c == 0x1362) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1421. if (c == 0x1363) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1422. if (c == 0x1364) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1423. if (c >= 0x1365 && c <= 0x1366) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1424. if (c == 0x1367) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1425. if (c == 0x1368) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  1426. break;
  1427. case 0x1600:
  1428. if (c == 0x166D) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1429. if (c == 0x166E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1430. if (c >= 0x16EB && c <= 0x16ED) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1431. break;
  1432. case 0x1700:
  1433. if (c >= 0x1735 && c <= 0x1736) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1434. if (c >= 0x17D4 && c <= 0x17D6) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1435. if (c == 0x17DA) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1436. break;
  1437. case 0x1800:
  1438. if (c == 0x1801) return ESPEAKNG_PROPERTY_ELLIPSIS;
  1439. if (c == 0x1802) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1440. if (c == 0x1803) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1441. if (c == 0x1804) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1442. if (c == 0x1805) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1443. if (c == 0x1808) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1444. if (c == 0x1809) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1445. if (c == 0x180A) return UCD_PROPERTY_EXTENDER;
  1446. break;
  1447. case 0x1900:
  1448. if (c == 0x1944) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1449. if (c == 0x1945) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1450. break;
  1451. case 0x1A00:
  1452. if (c >= 0x1AA8 && c <= 0x1AAB) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1453. break;
  1454. case 0x1B00:
  1455. if (c >= 0x1B5A && c <= 0x1B5B) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1456. if (c == 0x1B5D) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1457. if (c >= 0x1B5E && c <= 0x1B5F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1458. break;
  1459. case 0x1C00:
  1460. if (c >= 0x1C3B && c <= 0x1C3C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1461. if (c >= 0x1C3D && c <= 0x1C3F) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1462. if (c >= 0x1C7E && c <= 0x1C7F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1463. if (c == 0x1CD3) return UCD_PROPERTY_DIACRITIC;
  1464. break;
  1465. case 0x2000:
  1466. if (c == 0x2016) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1467. if (c == 0x2017) return UCD_PROPERTY_PATTERN_SYNTAX;
  1468. if (c == 0x2026) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_ELLIPSIS;
  1469. if (c >= 0x2020 && c <= 0x2027) return UCD_PROPERTY_PATTERN_SYNTAX;
  1470. if (c >= 0x2032 && c <= 0x2034) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_OTHER_MATH;
  1471. if (c >= 0x2030 && c <= 0x2038) return UCD_PROPERTY_PATTERN_SYNTAX;
  1472. if (c == 0x203C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | UCD_PROPERTY_EMOJI;
  1473. if (c == 0x203D) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX;
  1474. if (c >= 0x203B && c <= 0x203E) return UCD_PROPERTY_PATTERN_SYNTAX;
  1475. if (c >= 0x2041 && c <= 0x2043) return UCD_PROPERTY_PATTERN_SYNTAX;
  1476. if (c == 0x2047) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1477. if (c == 0x2048) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1478. if (c == 0x2049) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | UCD_PROPERTY_EMOJI;
  1479. if (c == 0x204F) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_SEMI_COLON;
  1480. if (c >= 0x204A && c <= 0x2051) return UCD_PROPERTY_PATTERN_SYNTAX;
  1481. if (c == 0x2053) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_DASH;
  1482. if (c >= 0x2055 && c <= 0x205E) return UCD_PROPERTY_PATTERN_SYNTAX;
  1483. break;
  1484. case 0x2C00:
  1485. if (c == 0x2CF9) return ESPEAKNG_PROPERTY_FULL_STOP;
  1486. if (c >= 0x2CFA && c <= 0x2CFB) return ESPEAKNG_PROPERTY_QUESTION_MARK;
  1487. if (c == 0x2CFE) return ESPEAKNG_PROPERTY_FULL_STOP;
  1488. break;
  1489. case 0x2E00:
  1490. if (c == 0x2E2E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX;
  1491. if (c == 0x2E32) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COMMA;
  1492. if (c == 0x2E33) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_FULL_STOP;
  1493. if (c == 0x2E34) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COMMA;
  1494. if (c == 0x2E35) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_SEMI_COLON;
  1495. if (c == 0x2E3C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_FULL_STOP;
  1496. if (c == 0x2E41) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COMMA;
  1497. return UCD_PROPERTY_PATTERN_SYNTAX;
  1498. case 0x3000:
  1499. if (c == 0x3001) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COMMA | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1500. if (c == 0x3002) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1501. if (c == 0x3003) return UCD_PROPERTY_PATTERN_SYNTAX;
  1502. if (c == 0x303D) return UCD_PROPERTY_EMOJI;
  1503. if (c == 0x30FB) return UCD_PROPERTY_HYPHEN;
  1504. break;
  1505. case 0xA400:
  1506. if (c == 0xA4FE) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1507. if (c == 0xA4FF) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1508. break;
  1509. case 0xA600:
  1510. if (c == 0xA60D) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1511. if (c == 0xA60E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1512. if (c == 0xA60F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1513. if (c == 0xA6F3) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1514. if (c == 0xA6F4) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1515. if (c == 0xA6F5) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1516. if (c == 0xA6F6) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1517. if (c == 0xA6F7) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1518. break;
  1519. case 0xA800:
  1520. if (c >= 0xA876 && c <= 0xA877) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1521. if (c >= 0xA8CE && c <= 0xA8CF) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1522. break;
  1523. case 0xA900:
  1524. if (c == 0xA92E) return UCD_PROPERTY_DIACRITIC;
  1525. if (c == 0xA92F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1526. if (c == 0xA9C7) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1527. if (c >= 0xA9C8 && c <= 0xA9C9) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1528. break;
  1529. case 0xAA00:
  1530. if (c >= 0xAA5D && c <= 0xAA5F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1531. if (c == 0xAADF) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1532. if (c >= 0xAAF0 && c <= 0xAAF1) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1533. break;
  1534. case 0xAB00:
  1535. if (c == 0xABEB) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1536. break;
  1537. case 0xFE00:
  1538. if (c >= 0xFE10 && c <= 0xFE11) return ESPEAKNG_PROPERTY_COMMA;
  1539. if (c == 0xFE12) return ESPEAKNG_PROPERTY_FULL_STOP;
  1540. if (c == 0xFE13) return ESPEAKNG_PROPERTY_COLON;
  1541. if (c == 0xFE14) return ESPEAKNG_PROPERTY_SEMI_COLON;
  1542. if (c == 0xFE15) return ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1543. if (c == 0xFE16) return ESPEAKNG_PROPERTY_QUESTION_MARK;
  1544. if (c == 0xFE19) return ESPEAKNG_PROPERTY_ELLIPSIS;
  1545. if (c >= 0xFE45 && c <= 0xFE46) return UCD_PROPERTY_PATTERN_SYNTAX;
  1546. if (c >= 0xFE50 && c <= 0xFE51) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1547. if (c == 0xFE52) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1548. if (c == 0xFE54) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1549. if (c == 0xFE55) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1550. if (c == 0xFE56) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1551. if (c == 0xFE57) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1552. if (c == 0xFE61) return UCD_PROPERTY_OTHER_MATH;
  1553. if (c == 0xFE68) return UCD_PROPERTY_OTHER_MATH;
  1554. break;
  1555. case 0xFF00:
  1556. if (c == 0xFF01) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1557. if (c == 0xFF02) return UCD_PROPERTY_QUOTATION_MARK;
  1558. if (c == 0xFF07) return UCD_PROPERTY_QUOTATION_MARK;
  1559. if (c == 0xFF0C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1560. if (c == 0xFF0E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1561. if (c == 0xFF3C) return UCD_PROPERTY_OTHER_MATH;
  1562. if (c == 0xFF65) return UCD_PROPERTY_HYPHEN;
  1563. if (c == 0xFF1A) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1564. if (c == 0xFF1B) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1565. if (c == 0xFF1F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK | ESPEAKNG_PROPERTY_OPTIONAL_SPACE_AFTER;
  1566. if (c == 0xFF61) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1567. if (c == 0xFF64) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1568. break;
  1569. case 0x10300:
  1570. if (c == 0x01039F) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1571. if (c == 0x0103D0) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1572. break;
  1573. case 0x10800:
  1574. if (c == 0x010857) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1575. break;
  1576. case 0x10900:
  1577. if (c == 0x01091F) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1578. break;
  1579. case 0x10A00:
  1580. if (c >= 0x010A56 && c <= 0x010A57) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1581. if (c >= 0x010AF0 && c <= 0x010AF5) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1582. break;
  1583. case 0x10B00:
  1584. if (c >= 0x010B3A && c <= 0x010B3F) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1585. if (c >= 0x010B99 && c <= 0x010B9C) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1586. break;
  1587. case 0x11000:
  1588. if (c >= 0x011047 && c <= 0x011048) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1589. if (c >= 0x011049 && c <= 0x01104D) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1590. if (c >= 0x0110BE && c <= 0x0110C1) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1591. break;
  1592. case 0x11100:
  1593. if (c >= 0x011141 && c <= 0x011142) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1594. if (c == 0x011143) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_QUESTION_MARK;
  1595. if (c >= 0x0111C5 && c <= 0x0111C6) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1596. if (c == 0x0111CD) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1597. if (c >= 0x0111DE && c <= 0x0111DF) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1598. break;
  1599. case 0x11200:
  1600. if (c == 0x01123A) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1601. if (c >= 0x011238 && c <= 0x01123C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1602. if (c == 0x0112A9) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1603. break;
  1604. case 0x11400:
  1605. if (c >= 0x01144B && c <= 0x01144C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1606. if (c == 0x01144D) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1607. if (c == 0x01145B) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1608. break;
  1609. case 0x11500:
  1610. if (c >= 0x0115C2 && c <= 0x0115C3) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1611. if (c >= 0x0115C4 && c <= 0x0115C5) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1612. if (c >= 0x0115C6 && c <= 0x0115C8) return UCD_PROPERTY_EXTENDER;
  1613. if (c >= 0x0115C9 && c <= 0x0115D7) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1614. break;
  1615. case 0x11600:
  1616. if (c >= 0x011641 && c <= 0x011642) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1617. break;
  1618. case 0x11700:
  1619. if (c >= 0x01173C && c <= 0x01173E) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1620. break;
  1621. case 0x11A00:
  1622. if (c >= 0x011A42 && c <= 0x011A43) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1623. if (c >= 0x011A9B && c <= 0x011A9C) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1624. if (c >= 0x011AA1 && c <= 0x011AA2) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1625. break;
  1626. case 0x11C00:
  1627. if (c >= 0x011C41 && c <= 0x011C42) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1628. if (c == 0x011C43) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1629. if (c == 0x011C71) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1630. break;
  1631. case 0x12400:
  1632. if (c >= 0x012471 && c <= 0x012472) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1633. if (c >= 0x012470 && c <= 0x012474) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1634. break;
  1635. case 0x16A00:
  1636. if (c >= 0x016A6E && c <= 0x016A6F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1637. if (c == 0x016AF5) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1638. break;
  1639. case 0x16B00:
  1640. if (c >= 0x016B37 && c <= 0x016B38) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1641. if (c == 0x016B39) return UCD_PROPERTY_TERMINAL_PUNCTUATION;
  1642. if (c == 0x016B44) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL;
  1643. break;
  1644. case 0x1BC00:
  1645. if (c == 0x01BC9F) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1646. break;
  1647. case 0x1DA00:
  1648. if (c == 0x01DA87) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COMMA;
  1649. if (c == 0x01DA88) return UCD_PROPERTY_TERMINAL_PUNCTUATION | UCD_PROPERTY_SENTENCE_TERMINAL | ESPEAKNG_PROPERTY_FULL_STOP;
  1650. if (c == 0x01DA89) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_SEMI_COLON;
  1651. if (c == 0x01DA8A) return UCD_PROPERTY_TERMINAL_PUNCTUATION | ESPEAKNG_PROPERTY_COLON;
  1652. break;
  1653. case 0x1E900:
  1654. if (c == 0x01E95E) return ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1655. if (c == 0x01E95F) return ESPEAKNG_PROPERTY_QUESTION_MARK;
  1656. break;
  1657. }
  1658. return 0;
  1659. }
  1660. static ucd_property properties_Ps(codepoint_t c)
  1661. {
  1662. switch (c & 0xFFFFFF00)
  1663. {
  1664. case 0x0000:
  1665. return UCD_PROPERTY_PATTERN_SYNTAX;
  1666. case 0x2000:
  1667. if (c == 0x201A) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1668. if (c == 0x201E) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1669. if (c == 0x2045) return UCD_PROPERTY_PATTERN_SYNTAX;
  1670. if (c == 0x207D) return UCD_PROPERTY_OTHER_MATH;
  1671. if (c == 0x208D) return UCD_PROPERTY_OTHER_MATH;
  1672. break;
  1673. case 0x2300:
  1674. if (c == 0x2308) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1675. if (c == 0x230A) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1676. if (c == 0x2329) return UCD_PROPERTY_DEPRECATED | UCD_PROPERTY_PATTERN_SYNTAX;
  1677. break;
  1678. case 0x2700:
  1679. if (c == 0x27C5) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1680. if (c >= 0x27E6 && c <= 0x27EF) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX; /* Pe|Ps */
  1681. return UCD_PROPERTY_PATTERN_SYNTAX;
  1682. case 0x2900:
  1683. return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1684. case 0x2E00:
  1685. if (c == 0x2E42) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1686. return UCD_PROPERTY_PATTERN_SYNTAX;
  1687. case 0x3000:
  1688. if (c == 0x300C) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1689. if (c == 0x300E) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1690. if (c == 0x301D) return UCD_PROPERTY_QUOTATION_MARK | UCD_PROPERTY_PATTERN_SYNTAX;
  1691. return UCD_PROPERTY_PATTERN_SYNTAX;
  1692. case 0xFD00:
  1693. if (c == 0xFD3F) return UCD_PROPERTY_PATTERN_SYNTAX;
  1694. break;
  1695. case 0xFE00:
  1696. if (c == 0xFE41) return UCD_PROPERTY_QUOTATION_MARK;
  1697. if (c == 0xFE43) return UCD_PROPERTY_QUOTATION_MARK;
  1698. break;
  1699. case 0xFF00:
  1700. if (c == 0xFF62) return UCD_PROPERTY_QUOTATION_MARK;
  1701. break;
  1702. }
  1703. return 0;
  1704. }
  1705. static ucd_property properties_Sc(codepoint_t c)
  1706. {
  1707. switch (c & 0xFFFFFF00)
  1708. {
  1709. case 0x0000:
  1710. return UCD_PROPERTY_PATTERN_SYNTAX;
  1711. }
  1712. return 0;
  1713. }
  1714. static ucd_property properties_Sk(codepoint_t c)
  1715. {
  1716. switch (c & 0xFFFFFF00)
  1717. {
  1718. case 0x0000:
  1719. if (c == 0x005E) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_PATTERN_SYNTAX;
  1720. if (c == 0x0060) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_PATTERN_SYNTAX;
  1721. if (c == 0x00A8) return UCD_PROPERTY_DIACRITIC;
  1722. if (c == 0x00AF) return UCD_PROPERTY_DIACRITIC;
  1723. if (c == 0x00B4) return UCD_PROPERTY_DIACRITIC;
  1724. if (c == 0x00B8) return UCD_PROPERTY_DIACRITIC;
  1725. break;
  1726. case 0x0200:
  1727. if (c >= 0x02C2 && c <= 0x02C5) return UCD_PROPERTY_DIACRITIC;
  1728. if (c >= 0x02D2 && c <= 0x02DF) return UCD_PROPERTY_DIACRITIC;
  1729. if (c >= 0x02E5 && c <= 0x02EB) return UCD_PROPERTY_DIACRITIC;
  1730. if (c == 0x02ED) return UCD_PROPERTY_DIACRITIC;
  1731. if (c >= 0x02EF && c <= 0x02FF) return UCD_PROPERTY_DIACRITIC;
  1732. break;
  1733. case 0x0300:
  1734. if (c == 0x0375) return UCD_PROPERTY_DIACRITIC;
  1735. if (c >= 0x0384 && c <= 0x0385) return UCD_PROPERTY_DIACRITIC;
  1736. break;
  1737. case 0x1F00:
  1738. if (c == 0x1FBD) return UCD_PROPERTY_DIACRITIC;
  1739. if (c >= 0x1FBF && c <= 0x1FC1) return UCD_PROPERTY_DIACRITIC;
  1740. if (c >= 0x1FCD && c <= 0x1FCF) return UCD_PROPERTY_DIACRITIC;
  1741. if (c >= 0x1FDD && c <= 0x1FDF) return UCD_PROPERTY_DIACRITIC;
  1742. if (c >= 0x1FED && c <= 0x1FEF) return UCD_PROPERTY_DIACRITIC;
  1743. if (c >= 0x1FFD && c <= 0x1FFE) return UCD_PROPERTY_DIACRITIC;
  1744. break;
  1745. case 0x3000:
  1746. if (c >= 0x309B && c <= 0x309C) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_ID_START;
  1747. break;
  1748. case 0xA700:
  1749. if (c >= 0xA720 && c <= 0xA721) return UCD_PROPERTY_DIACRITIC;
  1750. break;
  1751. case 0xAB00:
  1752. if (c == 0xAB5B) return UCD_PROPERTY_DIACRITIC;
  1753. break;
  1754. case 0xFF00:
  1755. if (c == 0xFF3E) return UCD_PROPERTY_DIACRITIC | UCD_PROPERTY_OTHER_MATH;
  1756. if (c == 0xFF40) return UCD_PROPERTY_DIACRITIC;
  1757. if (c == 0xFFE3) return UCD_PROPERTY_DIACRITIC;
  1758. break;
  1759. case 0x01F300:
  1760. return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER | UCD_PROPERTY_EMOJI_COMPONENT;
  1761. }
  1762. return 0;
  1763. }
  1764. static ucd_property properties_Sm(codepoint_t c)
  1765. {
  1766. switch (c & 0xFFFFFF00)
  1767. {
  1768. case 0x0000:
  1769. return UCD_PROPERTY_PATTERN_SYNTAX;
  1770. case 0x2000:
  1771. if (c == 0x2044) return UCD_PROPERTY_PATTERN_SYNTAX;
  1772. if (c == 0x2052) return UCD_PROPERTY_PATTERN_SYNTAX;
  1773. if (c == 0x207B) return UCD_PROPERTY_DASH;
  1774. if (c == 0x208B) return UCD_PROPERTY_DASH;
  1775. break;
  1776. case 0x2100:
  1777. if (c == 0x2118) return UCD_PROPERTY_OTHER_ID_START;
  1778. if (c == 0x2194) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1779. if (c >= 0x2190) return UCD_PROPERTY_PATTERN_SYNTAX;
  1780. break;
  1781. case 0x2200:
  1782. if (c == 0x2212) return UCD_PROPERTY_DASH | UCD_PROPERTY_PATTERN_SYNTAX;
  1783. if (c >= 0x22EE && c <= 0x22F1) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_ELLIPSIS;
  1784. return UCD_PROPERTY_PATTERN_SYNTAX;
  1785. case 0x2300:
  1786. return UCD_PROPERTY_PATTERN_SYNTAX;
  1787. case 0x2500:
  1788. if (c >= 0x25FB && c <= 0x25FC) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1789. if (c >= 0x25FD && c <= 0x25FE) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1790. return UCD_PROPERTY_PATTERN_SYNTAX;
  1791. case 0x2600:
  1792. case 0x2700:
  1793. return UCD_PROPERTY_PATTERN_SYNTAX;
  1794. case 0x2900:
  1795. if (c >= 0x2934 && c <= 0x2935) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1796. if (c == 0x2982) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_COLON;
  1797. return UCD_PROPERTY_PATTERN_SYNTAX;
  1798. case 0x2A00:
  1799. case 0x2B00:
  1800. return UCD_PROPERTY_PATTERN_SYNTAX;
  1801. }
  1802. return 0;
  1803. }
  1804. static ucd_property properties_So(codepoint_t c)
  1805. {
  1806. switch (c & 0xFFFFFF00)
  1807. {
  1808. case 0x0000:
  1809. if (c == 0x00A9) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1810. if (c == 0x00AE) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1811. return UCD_PROPERTY_PATTERN_SYNTAX;
  1812. case 0x2100:
  1813. if (c == 0x2122) return UCD_PROPERTY_EMOJI;
  1814. if (c == 0x2129) return UCD_PROPERTY_OTHER_MATH;
  1815. if (c == 0x212E) return UCD_PROPERTY_OTHER_ID_START;
  1816. if (c == 0x21A8) return UCD_PROPERTY_PATTERN_SYNTAX;
  1817. if (c == 0x21A9) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1818. if (c == 0x21AA) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1819. if (c >= 0x2195 && c <= 0x2199) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1820. if (c >= 0x219C && c <= 0x21AD) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1821. if (c >= 0x21B0 && c <= 0x21B1) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1822. if (c >= 0x21B6 && c <= 0x21B7) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1823. if (c >= 0x21AF && c <= 0x21BB) return UCD_PROPERTY_PATTERN_SYNTAX;
  1824. if (c >= 0x21BC && c <= 0x21CD) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1825. if (c >= 0x21D0 && c <= 0x21D1) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1826. if (c == 0x21D3) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1827. if (c >= 0x21D5 && c <= 0x21DB) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1828. if (c == 0x21DD) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1829. if (c >= 0x21E4 && c <= 0x21E5) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1830. if (c >= 0x21D5 && c <= 0x21F3) return UCD_PROPERTY_PATTERN_SYNTAX;
  1831. break;
  1832. case 0x2300:
  1833. if (c <= 0x2307) return UCD_PROPERTY_PATTERN_SYNTAX;
  1834. if (c >= 0x231A && c <= 0x231B) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1835. if (c >= 0x230C && c <= 0x231F) return UCD_PROPERTY_PATTERN_SYNTAX;
  1836. if (c >= 0x2322 && c <= 0x2327) return UCD_PROPERTY_PATTERN_SYNTAX;
  1837. if (c == 0x2328) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1838. if (c >= 0x232B && c <= 0x237B) return UCD_PROPERTY_PATTERN_SYNTAX;
  1839. if (c >= 0x237D && c <= 0x239A) return UCD_PROPERTY_PATTERN_SYNTAX;
  1840. if (c >= 0x23B4 && c <= 0x23B5) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1841. if (c == 0x23B7) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1842. if (c == 0x23CF) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1843. if (c == 0x23D0) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1844. if (c >= 0x23B4 && c <= 0x23DB) return UCD_PROPERTY_PATTERN_SYNTAX;
  1845. if (c == 0x23E2) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1846. if (c >= 0x23E9 && c <= 0x23EC) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1847. if (c == 0x23F0) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1848. if (c == 0x23F3) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1849. if (c >= 0x23E9 && c <= 0x23F3) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1850. if (c >= 0x23F8 && c <= 0x23FA) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1851. if (c >= 0x23E3) return UCD_PROPERTY_PATTERN_SYNTAX;
  1852. break;
  1853. case 0x2400:
  1854. if (c >= 0x2400 && c <= 0x244A) return UCD_PROPERTY_PATTERN_SYNTAX;
  1855. if (c == 0x24C2) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE | UCD_PROPERTY_EMOJI;
  1856. if (c >= 0x24B6 && c <= 0x24CF) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE;
  1857. if (c >= 0x24D0 && c <= 0x24E9) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_LOWERCASE;
  1858. break;
  1859. case 0x2500:
  1860. if (c >= 0x25A0 && c <= 0x25A1) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1861. if (c >= 0x25AA && c <= 0x25AB) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1862. if (c >= 0x25AE && c <= 0x25B5) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1863. if (c == 0x25B6) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1864. if (c >= 0x25BC && c <= 0x25BF) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1865. if (c == 0x25C0) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1866. if (c >= 0x25C6 && c <= 0x25C7) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1867. if (c >= 0x25CA && c <= 0x25CB) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1868. if (c >= 0x25CF && c <= 0x25D3) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1869. if (c == 0x25E2) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1870. if (c == 0x25E4) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1871. if (c >= 0x25E7 && c <= 0x25EC) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1872. return UCD_PROPERTY_PATTERN_SYNTAX;
  1873. case 0x2600:
  1874. if (c <= 0x2604) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1875. if (c >= 0x2605 && c <= 0x2606) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1876. if (c == 0x260E) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1877. if (c == 0x2611) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1878. if (c >= 0x2614 && c <= 0x2615) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1879. if (c == 0x2618) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1880. if (c == 0x261D) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  1881. if (c == 0x2620) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1882. if (c >= 0x2622 && c <= 0x2623) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1883. if (c == 0x2626) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1884. if (c == 0x262A) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1885. if (c >= 0x262E && c <= 0x262F) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1886. if (c >= 0x2638 && c <= 0x263A) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1887. if (c == 0x2640) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1888. if (c == 0x2642) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1889. if (c >= 0x2648 && c <= 0x2653) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1890. if (c == 0x2660) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1891. if (c >= 0x2661 && c <= 0x2662) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1892. if (c == 0x2663) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1893. if (c >= 0x2665 && c <= 0x2666) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1894. if (c == 0x2668) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1895. if (c >= 0x266D && c <= 0x266E) return UCD_PROPERTY_OTHER_MATH | UCD_PROPERTY_PATTERN_SYNTAX;
  1896. if (c == 0x267B) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1897. if (c == 0x267F) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1898. if (c == 0x2693) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1899. if (c >= 0x2692 && c <= 0x2697) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1900. if (c == 0x2699) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1901. if (c >= 0x269B && c <= 0x269C) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1902. if (c == 0x26A0) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1903. if (c == 0x26A1) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1904. if (c >= 0x26AA && c <= 0x26AB) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1905. if (c >= 0x26B0 && c <= 0x26B1) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1906. if (c >= 0x26BD && c <= 0x26BE) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1907. if (c >= 0x26C4 && c <= 0x26C5) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1908. if (c == 0x26C8) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1909. if (c == 0x26CE) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1910. if (c == 0x26CF) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1911. if (c == 0x26D1) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1912. if (c == 0x26D3) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1913. if (c == 0x26D4) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1914. if (c == 0x26E9) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1915. if (c == 0x26EA) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1916. if (c == 0x26F4) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1917. if (c >= 0x26F0 && c <= 0x26F1) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1918. if (c >= 0x26F0 && c <= 0x26F5) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1919. if (c >= 0x26F7 && c <= 0x26F8) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1920. if (c == 0x26F9) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  1921. if (c == 0x26FA) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1922. if (c == 0x26FD) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1923. return UCD_PROPERTY_PATTERN_SYNTAX;
  1924. case 0x2700:
  1925. if (c == 0x2702) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1926. if (c == 0x2705) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1927. if (c >= 0x270A && c <= 0x270B) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  1928. if (c >= 0x270C && c <= 0x270D) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  1929. if (c >= 0x2708 && c <= 0x270D) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1930. if (c == 0x270F) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1931. if (c == 0x2712) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1932. if (c == 0x2714) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1933. if (c == 0x2716) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1934. if (c == 0x271D) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1935. if (c == 0x2721) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1936. if (c == 0x2728) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1937. if (c >= 0x2733 && c <= 0x2734) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1938. if (c == 0x2744) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1939. if (c == 0x2747) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1940. if (c == 0x274C) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1941. if (c == 0x274E) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1942. if (c >= 0x2753 && c <= 0x2754) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_QUESTION_MARK | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1943. if (c == 0x2755) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1944. if (c == 0x2757) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1945. if (c == 0x2762) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK;
  1946. if (c == 0x2763) return UCD_PROPERTY_PATTERN_SYNTAX | ESPEAKNG_PROPERTY_EXCLAMATION_MARK | UCD_PROPERTY_EMOJI;
  1947. if (c == 0x2764) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1948. if (c >= 0x2795 && c <= 0x2797) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1949. if (c == 0x27A1) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1950. if (c == 0x27B0) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1951. if (c == 0x27BF) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1952. return UCD_PROPERTY_PATTERN_SYNTAX;
  1953. case 0x2800:
  1954. return UCD_PROPERTY_PATTERN_SYNTAX;
  1955. case 0x2B00:
  1956. if (c >= 0x2B05 && c <= 0x2B07) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI;
  1957. if (c >= 0x2B1B && c <= 0x2B1C) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1958. if (c == 0x2B50) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1959. if (c == 0x2B55) return UCD_PROPERTY_PATTERN_SYNTAX | UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1960. return UCD_PROPERTY_PATTERN_SYNTAX;
  1961. case 0x2E00:
  1962. if (c >= 0x2E80 && c <= 0x2E99) return UCD_PROPERTY_RADICAL;
  1963. if (c >= 0x2E9B && c <= 0x2EF3) return UCD_PROPERTY_RADICAL;
  1964. break;
  1965. case 0x2F00:
  1966. if (c <= 0x2FD5) return UCD_PROPERTY_RADICAL;
  1967. if (c >= 0x2FF0 && c <= 0x2FF1) return UCD_PROPERTY_IDS_BINARY_OPERATOR;
  1968. if (c >= 0x2FF2 && c <= 0x2FF3) return UCD_PROPERTY_IDS_TRINARY_OPERATOR;
  1969. if (c >= 0x2FF4 && c <= 0x2FFB) return UCD_PROPERTY_IDS_BINARY_OPERATOR;
  1970. break;
  1971. case 0x3000:
  1972. if (c >= 0x3012 && c <= 0x3013) return UCD_PROPERTY_PATTERN_SYNTAX;
  1973. if (c == 0x3020) return UCD_PROPERTY_PATTERN_SYNTAX;
  1974. break;
  1975. case 0x3200:
  1976. if (c == 0x3297) return UCD_PROPERTY_EMOJI;
  1977. if (c == 0x3299) return UCD_PROPERTY_EMOJI;
  1978. break;
  1979. case 0x01F000:
  1980. if (c == 0x01F004) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1981. if (c == 0x01F0CF) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1982. break;
  1983. case 0x01F100:
  1984. if (c >= 0x01F130 && c <= 0x01F149) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE;
  1985. if (c >= 0x01F150 && c <= 0x01F169) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE;
  1986. if (c >= 0x01F170 && c <= 0x01F171) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE | UCD_PROPERTY_EMOJI;
  1987. if (c >= 0x01F17E && c <= 0x01F17F) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE | UCD_PROPERTY_EMOJI;
  1988. if (c >= 0x01F170 && c <= 0x01F189) return UCD_PROPERTY_OTHER_ALPHABETIC | UCD_PROPERTY_OTHER_UPPERCASE;
  1989. if (c == 0x01F18E) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1990. if (c >= 0x01F191 && c <= 0x01F19A) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1991. if (c >= 0x01F1E6) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_REGIONAL_INDICATOR | UCD_PROPERTY_EMOJI_COMPONENT;
  1992. break;
  1993. case 0x01F200:
  1994. if (c == 0x01F201) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1995. if (c == 0x01F202) return UCD_PROPERTY_EMOJI;
  1996. if (c == 0x01F21A) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1997. if (c == 0x01F22F) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  1998. if (c == 0x01F237) return UCD_PROPERTY_EMOJI;
  1999. if (c >= 0x01F232 && c <= 0x01F23A) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2000. if (c >= 0x01F250 && c <= 0x01F251) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2001. break;
  2002. case 0x01F300:
  2003. if (c <= 0x01F320) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2004. if (c == 0x01F321) return UCD_PROPERTY_EMOJI;
  2005. if (c >= 0x01F32D && c <= 0x01F335) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2006. if (c >= 0x01F337 && c <= 0x01F37C) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2007. if (c == 0x01F385) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2008. if (c >= 0x01F37E && c <= 0x01F393) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2009. if (c >= 0x01F324 && c <= 0x01F393) return UCD_PROPERTY_EMOJI;
  2010. if (c >= 0x01F396 && c <= 0x01F397) return UCD_PROPERTY_EMOJI;
  2011. if (c >= 0x01F399 && c <= 0x01F39B) return UCD_PROPERTY_EMOJI;
  2012. if (c >= 0x01F3C2 && c <= 0x01F3C4) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2013. if (c == 0x01F3C7) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2014. if (c >= 0x01F3A0 && c <= 0x01F3C9) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2015. if (c == 0x01F3CA) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2016. if (c >= 0x01F3CB && c <= 0x01F3CC) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2017. if (c >= 0x01F3CF && c <= 0x01F3D3) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2018. if (c >= 0x01F3E0 && c <= 0x01F3F0) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2019. if (c >= 0x01F39E && c <= 0x01F3F0) return UCD_PROPERTY_EMOJI;
  2020. if (c == 0x01F3F3) return UCD_PROPERTY_EMOJI;
  2021. if (c == 0x01F3F4) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2022. if (c == 0x01F3F5) return UCD_PROPERTY_EMOJI;
  2023. if (c == 0x01F3F7) return UCD_PROPERTY_EMOJI;
  2024. if (c >= 0x01F3F8 && c <= 0x01F3FA) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2025. break;
  2026. case 0x01F400:
  2027. if (c == 0x01F43F) return UCD_PROPERTY_EMOJI;
  2028. if (c == 0x01F441) return UCD_PROPERTY_EMOJI;
  2029. if (c >= 0x01F442 && c <= 0x01F443) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2030. if (c >= 0x01F446 && c <= 0x01F450) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2031. if (c >= 0x01F466 && c <= 0x01F469) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2032. if (c == 0x01F46E) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2033. if (c >= 0x01F470 && c <= 0x01F478) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2034. if (c == 0x01F47C) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2035. if (c >= 0x01F481 && c <= 0x01F483) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2036. if (c >= 0x01F485 && c <= 0x01F487) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2037. if (c == 0x01F4AA) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2038. if (c == 0x01F4FE) return 0;
  2039. if (c == 0x01F4FD) return UCD_PROPERTY_EMOJI;
  2040. return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2041. case 0x01F500:
  2042. if (c <= 0x01F53D) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2043. if (c >= 0x01F549 && c <= 0x01F54A) return UCD_PROPERTY_EMOJI;
  2044. if (c >= 0x01F54B && c <= 0x01F54E) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2045. if (c >= 0x01F550 && c <= 0x01F567) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2046. if (c >= 0x01F56F && c <= 0x01F570) return UCD_PROPERTY_EMOJI;
  2047. if (c >= 0x01F574 && c <= 0x01F575) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2048. if (c >= 0x01F573 && c <= 0x01F579) return UCD_PROPERTY_EMOJI;
  2049. if (c == 0x01F57A) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2050. if (c == 0x01F587) return UCD_PROPERTY_EMOJI;
  2051. if (c >= 0x01F58A && c <= 0x01F58D) return UCD_PROPERTY_EMOJI;
  2052. if (c == 0x01F590) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2053. if (c >= 0x01F595 && c <= 0x01F596) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2054. if (c == 0x01F5A4) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2055. if (c == 0x01F5A5) return UCD_PROPERTY_EMOJI;
  2056. if (c == 0x01F5A8) return UCD_PROPERTY_EMOJI;
  2057. if (c >= 0x01F5B1 && c <= 0x01F5B2) return UCD_PROPERTY_EMOJI;
  2058. if (c == 0x01F5BC) return UCD_PROPERTY_EMOJI;
  2059. if (c >= 0x01F5C2 && c <= 0x01F5C4) return UCD_PROPERTY_EMOJI;
  2060. if (c >= 0x01F5D1 && c <= 0x01F5D3) return UCD_PROPERTY_EMOJI;
  2061. if (c >= 0x01F5DC && c <= 0x01F5DE) return UCD_PROPERTY_EMOJI;
  2062. if (c == 0x01F5E1) return UCD_PROPERTY_EMOJI;
  2063. if (c == 0x01F5E3) return UCD_PROPERTY_EMOJI;
  2064. if (c == 0x01F5E8) return UCD_PROPERTY_EMOJI;
  2065. if (c == 0x01F5EF) return UCD_PROPERTY_EMOJI;
  2066. if (c == 0x01F5F3) return UCD_PROPERTY_EMOJI;
  2067. if (c == 0x01F5FA) return UCD_PROPERTY_EMOJI;
  2068. if (c >= 0x01F5FB) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2069. break;
  2070. case 0x01F600:
  2071. if (c >= 0x01F645 && c <= 0x01F647) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2072. if (c >= 0x01F64B && c <= 0x01F64F) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2073. if (c <= 0x01F64F) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2074. if (c == 0x01F6A3) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2075. if (c >= 0x01F6B4 && c <= 0x01F6B6) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2076. if (c == 0x01F6C0) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2077. if (c >= 0x01F680 && c <= 0x01F6C5) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2078. if (c == 0x01F6CC) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2079. if (c >= 0x01F6CB && c <= 0x01F6CF) return UCD_PROPERTY_EMOJI;
  2080. if (c >= 0x01F6D0 && c <= 0x01F6D2) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2081. if (c >= 0x01F6E0 && c <= 0x01F6E5) return UCD_PROPERTY_EMOJI;
  2082. if (c == 0x01F6E9) return UCD_PROPERTY_EMOJI;
  2083. if (c >= 0x01F6EB && c <= 0x01F6EC) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2084. if (c == 0x01F6F0) return UCD_PROPERTY_EMOJI;
  2085. if (c == 0x01F6F3) return UCD_PROPERTY_EMOJI;
  2086. if (c >= 0x01F6F4 && c <= 0x01F6F8) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2087. break;
  2088. case 0x01F900:
  2089. if (c <= 0x01F90B) return 0;
  2090. if (c >= 0x01F918 && c <= 0x01F91C) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2091. if (c >= 0x01F910 && c <= 0x01F91D) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2092. if (c >= 0x01F91E && c <= 0x01F91F) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2093. if (c == 0x01F926) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2094. if (c >= 0x01F920 && c <= 0x01F92F) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2095. if (c >= 0x01F930 && c <= 0x01F932) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2096. if (c == 0x01F93B) return 0;
  2097. if (c >= 0x01F93A && c <= 0x01F93C) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2098. if (c >= 0x01F933 && c <= 0x01F93E) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2099. if (c == 0x01F946) return 0;
  2100. if (c >= 0x01F940 && c <= 0x01F94B) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2101. if (c == 0x01F94C) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2102. if (c >= 0x01F950 && c <= 0x01F95E) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2103. if (c >= 0x01F95F && c <= 0x01F96B) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2104. if (c >= 0x01F980 && c <= 0x01F991) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2105. if (c >= 0x01F992 && c <= 0x01F997) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2106. if (c == 0x01F9C0) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2107. if (c >= 0x01F9D1 && c <= 0x01F9DD) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION | UCD_PROPERTY_EMOJI_MODIFIER_BASE;
  2108. if (c >= 0x01F9D0 && c <= 0x01F9E6) return UCD_PROPERTY_EMOJI | UCD_PROPERTY_EMOJI_PRESENTATION;
  2109. return UCD_PROPERTY_EMOJI;
  2110. }
  2111. return 0;
  2112. }
  2113. static ucd_property properties_Zs(codepoint_t c)
  2114. {
  2115. if (c == 0x0020) return UCD_PROPERTY_WHITE_SPACE | UCD_PROPERTY_PATTERN_WHITE_SPACE;
  2116. return UCD_PROPERTY_WHITE_SPACE;
  2117. }
  2118. ucd_property ucd_properties(codepoint_t c, ucd_category category)
  2119. {
  2120. switch (category)
  2121. {
  2122. case UCD_CATEGORY_Cc: return properties_Cc(c);
  2123. case UCD_CATEGORY_Cf: return properties_Cf(c);
  2124. case UCD_CATEGORY_Cn: return properties_Cn(c);
  2125. case UCD_CATEGORY_Ll: return properties_Ll(c);
  2126. case UCD_CATEGORY_Lm: return properties_Lm(c);
  2127. case UCD_CATEGORY_Lo: return properties_Lo(c) | properties_Lo_ideographic(c);
  2128. case UCD_CATEGORY_Lu: return properties_Lu(c);
  2129. case UCD_CATEGORY_Mc: return properties_Mc(c);
  2130. case UCD_CATEGORY_Mn: return properties_Mn(c);
  2131. case UCD_CATEGORY_Nd: return properties_Nd(c);
  2132. case UCD_CATEGORY_Nl: return properties_Nl(c);
  2133. case UCD_CATEGORY_No: return properties_No(c);
  2134. case UCD_CATEGORY_Pc: return properties_Pc(c);
  2135. case UCD_CATEGORY_Pd: return properties_Pd(c);
  2136. case UCD_CATEGORY_Pe: return properties_Pe(c);
  2137. case UCD_CATEGORY_Pf: return properties_Pf(c);
  2138. case UCD_CATEGORY_Pi: return properties_Pi(c);
  2139. case UCD_CATEGORY_Po: return properties_Po(c);
  2140. case UCD_CATEGORY_Ps: return properties_Ps(c);
  2141. case UCD_CATEGORY_Sc: return properties_Sc(c);
  2142. case UCD_CATEGORY_Sk: return properties_Sk(c);
  2143. case UCD_CATEGORY_Sm: return properties_Sm(c);
  2144. case UCD_CATEGORY_So: return properties_So(c);
  2145. case UCD_CATEGORY_Zl: return UCD_PROPERTY_WHITE_SPACE | UCD_PROPERTY_PATTERN_WHITE_SPACE;
  2146. case UCD_CATEGORY_Zp: return UCD_PROPERTY_WHITE_SPACE | UCD_PROPERTY_PATTERN_WHITE_SPACE | ESPEAKNG_PROPERTY_PARAGRAPH_SEPARATOR;
  2147. case UCD_CATEGORY_Zs: return properties_Zs(c);
  2148. default: return 0; /* Co Cs Ii Lt Me */
  2149. };
  2150. }