htmlparser.nim 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079
  1. #
  2. #
  3. # Nim's Runtime Library
  4. # (c) Copyright 2013 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. ## **NOTE**: The behaviour might change in future versions as it is not
  10. ## clear what "*wild* HTML the real world uses" really implies.
  11. ##
  12. ## It can be used to parse a wild HTML document and output it as valid XHTML
  13. ## document (well, if you are lucky):
  14. ## ```Nim
  15. ## echo loadHtml("mydirty.html")
  16. ## ```
  17. ##
  18. ## Every tag in the resulting tree is in lower case.
  19. ##
  20. ## **Note:** The resulting `XmlNode` already uses the `clientData` field,
  21. ## so it cannot be used by clients of this library.
  22. ##
  23. ## Example: Transforming hyperlinks
  24. ## ================================
  25. ##
  26. ## This code demonstrates how you can iterate over all the tags in an HTML file
  27. ## and write back the modified version. In this case we look for hyperlinks
  28. ## ending with the extension `.rst` and convert them to `.html`.
  29. ##
  30. ## ```Nim test
  31. ## import std/htmlparser
  32. ## import std/xmltree # To use '$' for XmlNode
  33. ## import std/strtabs # To access XmlAttributes
  34. ## import std/os # To use splitFile
  35. ## import std/strutils # To use cmpIgnoreCase
  36. ##
  37. ## proc transformHyperlinks() =
  38. ## let html = loadHtml("input.html")
  39. ##
  40. ## for a in html.findAll("a"):
  41. ## if a.attrs.hasKey "href":
  42. ## let (dir, filename, ext) = splitFile(a.attrs["href"])
  43. ## if cmpIgnoreCase(ext, ".rst") == 0:
  44. ## a.attrs["href"] = dir / filename & ".html"
  45. ##
  46. ## writeFile("output.html", $html)
  47. ## ```
  48. {.deprecated: "use `nimble install htmlparser` and import `pkg/htmlparser` instead".}
  49. import std/[strutils, streams, parsexml, xmltree, unicode, strtabs]
  50. when defined(nimPreviewSlimSystem):
  51. import std/syncio
  52. type
  53. HtmlTag* = enum ## list of all supported HTML tags; order will always be
  54. ## alphabetically
  55. tagUnknown, ## unknown HTML element
  56. tagA, ## the HTML `a` element
  57. tagAbbr, ## the deprecated HTML `abbr` element
  58. tagAcronym, ## the HTML `acronym` element
  59. tagAddress, ## the HTML `address` element
  60. tagApplet, ## the deprecated HTML `applet` element
  61. tagArea, ## the HTML `area` element
  62. tagArticle, ## the HTML `article` element
  63. tagAside, ## the HTML `aside` element
  64. tagAudio, ## the HTML `audio` element
  65. tagB, ## the HTML `b` element
  66. tagBase, ## the HTML `base` element
  67. tagBdi, ## the HTML `bdi` element
  68. tagBdo, ## the deprecated HTML `dbo` element
  69. tagBasefont, ## the deprecated HTML `basefont` element
  70. tagBig, ## the HTML `big` element
  71. tagBlockquote, ## the HTML `blockquote` element
  72. tagBody, ## the HTML `body` element
  73. tagBr, ## the HTML `br` element
  74. tagButton, ## the HTML `button` element
  75. tagCanvas, ## the HTML `canvas` element
  76. tagCaption, ## the HTML `caption` element
  77. tagCenter, ## the deprecated HTML `center` element
  78. tagCite, ## the HTML `cite` element
  79. tagCode, ## the HTML `code` element
  80. tagCol, ## the HTML `col` element
  81. tagColgroup, ## the HTML `colgroup` element
  82. tagCommand, ## the HTML `command` element
  83. tagDatalist, ## the HTML `datalist` element
  84. tagDd, ## the HTML `dd` element
  85. tagDel, ## the HTML `del` element
  86. tagDetails, ## the HTML `details` element
  87. tagDfn, ## the HTML `dfn` element
  88. tagDialog, ## the HTML `dialog` element
  89. tagDiv, ## the HTML `div` element
  90. tagDir, ## the deprecated HTLM `dir` element
  91. tagDl, ## the HTML `dl` element
  92. tagDt, ## the HTML `dt` element
  93. tagEm, ## the HTML `em` element
  94. tagEmbed, ## the HTML `embed` element
  95. tagFieldset, ## the HTML `fieldset` element
  96. tagFigcaption, ## the HTML `figcaption` element
  97. tagFigure, ## the HTML `figure` element
  98. tagFont, ## the deprecated HTML `font` element
  99. tagFooter, ## the HTML `footer` element
  100. tagForm, ## the HTML `form` element
  101. tagFrame, ## the HTML `frame` element
  102. tagFrameset, ## the deprecated HTML `frameset` element
  103. tagH1, ## the HTML `h1` element
  104. tagH2, ## the HTML `h2` element
  105. tagH3, ## the HTML `h3` element
  106. tagH4, ## the HTML `h4` element
  107. tagH5, ## the HTML `h5` element
  108. tagH6, ## the HTML `h6` element
  109. tagHead, ## the HTML `head` element
  110. tagHeader, ## the HTML `header` element
  111. tagHgroup, ## the HTML `hgroup` element
  112. tagHtml, ## the HTML `html` element
  113. tagHr, ## the HTML `hr` element
  114. tagI, ## the HTML `i` element
  115. tagIframe, ## the deprecated HTML `iframe` element
  116. tagImg, ## the HTML `img` element
  117. tagInput, ## the HTML `input` element
  118. tagIns, ## the HTML `ins` element
  119. tagIsindex, ## the deprecated HTML `isindex` element
  120. tagKbd, ## the HTML `kbd` element
  121. tagKeygen, ## the HTML `keygen` element
  122. tagLabel, ## the HTML `label` element
  123. tagLegend, ## the HTML `legend` element
  124. tagLi, ## the HTML `li` element
  125. tagLink, ## the HTML `link` element
  126. tagMap, ## the HTML `map` element
  127. tagMark, ## the HTML `mark` element
  128. tagMenu, ## the deprecated HTML `menu` element
  129. tagMeta, ## the HTML `meta` element
  130. tagMeter, ## the HTML `meter` element
  131. tagNav, ## the HTML `nav` element
  132. tagNobr, ## the deprecated HTML `nobr` element
  133. tagNoframes, ## the deprecated HTML `noframes` element
  134. tagNoscript, ## the HTML `noscript` element
  135. tagObject, ## the HTML `object` element
  136. tagOl, ## the HTML `ol` element
  137. tagOptgroup, ## the HTML `optgroup` element
  138. tagOption, ## the HTML `option` element
  139. tagOutput, ## the HTML `output` element
  140. tagP, ## the HTML `p` element
  141. tagParam, ## the HTML `param` element
  142. tagPre, ## the HTML `pre` element
  143. tagProgress, ## the HTML `progress` element
  144. tagQ, ## the HTML `q` element
  145. tagRp, ## the HTML `rp` element
  146. tagRt, ## the HTML `rt` element
  147. tagRuby, ## the HTML `ruby` element
  148. tagS, ## the deprecated HTML `s` element
  149. tagSamp, ## the HTML `samp` element
  150. tagScript, ## the HTML `script` element
  151. tagSection, ## the HTML `section` element
  152. tagSelect, ## the HTML `select` element
  153. tagSmall, ## the HTML `small` element
  154. tagSource, ## the HTML `source` element
  155. tagSpan, ## the HTML `span` element
  156. tagStrike, ## the deprecated HTML `strike` element
  157. tagStrong, ## the HTML `strong` element
  158. tagStyle, ## the HTML `style` element
  159. tagSub, ## the HTML `sub` element
  160. tagSummary, ## the HTML `summary` element
  161. tagSup, ## the HTML `sup` element
  162. tagTable, ## the HTML `table` element
  163. tagTbody, ## the HTML `tbody` element
  164. tagTd, ## the HTML `td` element
  165. tagTextarea, ## the HTML `textarea` element
  166. tagTfoot, ## the HTML `tfoot` element
  167. tagTh, ## the HTML `th` element
  168. tagThead, ## the HTML `thead` element
  169. tagTime, ## the HTML `time` element
  170. tagTitle, ## the HTML `title` element
  171. tagTr, ## the HTML `tr` element
  172. tagTrack, ## the HTML `track` element
  173. tagTt, ## the HTML `tt` element
  174. tagU, ## the deprecated HTML `u` element
  175. tagUl, ## the HTML `ul` element
  176. tagVar, ## the HTML `var` element
  177. tagVideo, ## the HTML `video` element
  178. tagWbr ## the HTML `wbr` element
  179. const
  180. tagToStr* = [
  181. "a", "abbr", "acronym", "address", "applet", "area", "article",
  182. "aside", "audio",
  183. "b", "base", "basefont", "bdi", "bdo", "big", "blockquote", "body",
  184. "br", "button", "canvas", "caption", "center", "cite", "code",
  185. "col", "colgroup", "command",
  186. "datalist", "dd", "del", "details", "dfn", "dialog", "div",
  187. "dir", "dl", "dt", "em", "embed", "fieldset",
  188. "figcaption", "figure", "font", "footer",
  189. "form", "frame", "frameset", "h1", "h2", "h3",
  190. "h4", "h5", "h6", "head", "header", "hgroup", "html", "hr",
  191. "i", "iframe", "img", "input", "ins", "isindex",
  192. "kbd", "keygen", "label", "legend", "li", "link", "map", "mark",
  193. "menu", "meta", "meter", "nav", "nobr", "noframes", "noscript",
  194. "object", "ol",
  195. "optgroup", "option", "output", "p", "param", "pre", "progress", "q",
  196. "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small",
  197. "source", "span", "strike", "strong", "style",
  198. "sub", "summary", "sup", "table",
  199. "tbody", "td", "textarea", "tfoot", "th", "thead", "time",
  200. "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]
  201. InlineTags* = {tagA, tagAbbr, tagAcronym, tagApplet, tagB, tagBasefont,
  202. tagBdo, tagBig, tagBr, tagButton, tagCite, tagCode, tagDel, tagDfn,
  203. tagEm, tagFont, tagI, tagImg, tagIns, tagInput, tagIframe, tagKbd,
  204. tagLabel, tagMap, tagObject, tagQ, tagSamp, tagScript, tagSelect,
  205. tagSmall, tagSpan, tagStrong, tagSub, tagSup, tagTextarea, tagTt,
  206. tagVar, tagApplet, tagBasefont, tagFont, tagIframe, tagU, tagS,
  207. tagStrike, tagWbr}
  208. BlockTags* = {tagAddress, tagBlockquote, tagCenter, tagDel, tagDir, tagDiv,
  209. tagDl, tagFieldset, tagForm, tagH1, tagH2, tagH3, tagH4,
  210. tagH5, tagH6, tagHr, tagIns, tagIsindex, tagMenu, tagNoframes, tagNoscript,
  211. tagOl, tagP, tagPre, tagTable, tagUl, tagCenter, tagDir, tagIsindex,
  212. tagMenu, tagNoframes}
  213. SingleTags* = {tagArea, tagBase, tagBasefont,
  214. tagBr, tagCol, tagFrame, tagHr, tagImg, tagIsindex,
  215. tagLink, tagMeta, tagParam, tagWbr, tagSource}
  216. proc allLower(s: string): bool =
  217. for c in s:
  218. if c < 'a' or c > 'z': return false
  219. return true
  220. proc toHtmlTag(s: string): HtmlTag =
  221. case s
  222. of "a": tagA
  223. of "abbr": tagAbbr
  224. of "acronym": tagAcronym
  225. of "address": tagAddress
  226. of "applet": tagApplet
  227. of "area": tagArea
  228. of "article": tagArticle
  229. of "aside": tagAside
  230. of "audio": tagAudio
  231. of "b": tagB
  232. of "base": tagBase
  233. of "basefont": tagBasefont
  234. of "bdi": tagBdi
  235. of "bdo": tagBdo
  236. of "big": tagBig
  237. of "blockquote": tagBlockquote
  238. of "body": tagBody
  239. of "br": tagBr
  240. of "button": tagButton
  241. of "canvas": tagCanvas
  242. of "caption": tagCaption
  243. of "center": tagCenter
  244. of "cite": tagCite
  245. of "code": tagCode
  246. of "col": tagCol
  247. of "colgroup": tagColgroup
  248. of "command": tagCommand
  249. of "datalist": tagDatalist
  250. of "dd": tagDd
  251. of "del": tagDel
  252. of "details": tagDetails
  253. of "dfn": tagDfn
  254. of "dialog": tagDialog
  255. of "div": tagDiv
  256. of "dir": tagDir
  257. of "dl": tagDl
  258. of "dt": tagDt
  259. of "em": tagEm
  260. of "embed": tagEmbed
  261. of "fieldset": tagFieldset
  262. of "figcaption": tagFigcaption
  263. of "figure": tagFigure
  264. of "font": tagFont
  265. of "footer": tagFooter
  266. of "form": tagForm
  267. of "frame": tagFrame
  268. of "frameset": tagFrameset
  269. of "h1": tagH1
  270. of "h2": tagH2
  271. of "h3": tagH3
  272. of "h4": tagH4
  273. of "h5": tagH5
  274. of "h6": tagH6
  275. of "head": tagHead
  276. of "header": tagHeader
  277. of "hgroup": tagHgroup
  278. of "html": tagHtml
  279. of "hr": tagHr
  280. of "i": tagI
  281. of "iframe": tagIframe
  282. of "img": tagImg
  283. of "input": tagInput
  284. of "ins": tagIns
  285. of "isindex": tagIsindex
  286. of "kbd": tagKbd
  287. of "keygen": tagKeygen
  288. of "label": tagLabel
  289. of "legend": tagLegend
  290. of "li": tagLi
  291. of "link": tagLink
  292. of "map": tagMap
  293. of "mark": tagMark
  294. of "menu": tagMenu
  295. of "meta": tagMeta
  296. of "meter": tagMeter
  297. of "nav": tagNav
  298. of "nobr": tagNobr
  299. of "noframes": tagNoframes
  300. of "noscript": tagNoscript
  301. of "object": tagObject
  302. of "ol": tagOl
  303. of "optgroup": tagOptgroup
  304. of "option": tagOption
  305. of "output": tagOutput
  306. of "p": tagP
  307. of "param": tagParam
  308. of "pre": tagPre
  309. of "progress": tagProgress
  310. of "q": tagQ
  311. of "rp": tagRp
  312. of "rt": tagRt
  313. of "ruby": tagRuby
  314. of "s": tagS
  315. of "samp": tagSamp
  316. of "script": tagScript
  317. of "section": tagSection
  318. of "select": tagSelect
  319. of "small": tagSmall
  320. of "source": tagSource
  321. of "span": tagSpan
  322. of "strike": tagStrike
  323. of "strong": tagStrong
  324. of "style": tagStyle
  325. of "sub": tagSub
  326. of "summary": tagSummary
  327. of "sup": tagSup
  328. of "table": tagTable
  329. of "tbody": tagTbody
  330. of "td": tagTd
  331. of "textarea": tagTextarea
  332. of "tfoot": tagTfoot
  333. of "th": tagTh
  334. of "thead": tagThead
  335. of "time": tagTime
  336. of "title": tagTitle
  337. of "tr": tagTr
  338. of "track": tagTrack
  339. of "tt": tagTt
  340. of "u": tagU
  341. of "ul": tagUl
  342. of "var": tagVar
  343. of "video": tagVideo
  344. of "wbr": tagWbr
  345. else: tagUnknown
  346. proc htmlTag*(n: XmlNode): HtmlTag =
  347. ## Gets `n`'s tag as a `HtmlTag`.
  348. if n.clientData == 0:
  349. n.clientData = toHtmlTag(n.tag).ord
  350. result = HtmlTag(n.clientData)
  351. proc htmlTag*(s: string): HtmlTag =
  352. ## Converts `s` to a `HtmlTag`. If `s` is no HTML tag, `tagUnknown` is
  353. ## returned.
  354. let s = if allLower(s): s else: toLowerAscii(s)
  355. result = toHtmlTag(s)
  356. proc runeToEntity*(rune: Rune): string =
  357. ## converts a Rune to its numeric HTML entity equivalent.
  358. runnableExamples:
  359. import std/unicode
  360. doAssert runeToEntity(Rune(0)) == ""
  361. doAssert runeToEntity(Rune(-1)) == ""
  362. doAssert runeToEntity("Ü".runeAt(0)) == "#220"
  363. doAssert runeToEntity("∈".runeAt(0)) == "#8712"
  364. if rune.ord <= 0: result = ""
  365. else: result = '#' & $rune.ord
  366. proc entityToRune*(entity: string): Rune =
  367. ## Converts an HTML entity name like `&Uuml;` or values like `&#220;`
  368. ## or `&#x000DC;` to its UTF-8 equivalent.
  369. ## Rune(0) is returned if the entity name is unknown.
  370. runnableExamples:
  371. import std/unicode
  372. doAssert entityToRune("") == Rune(0)
  373. doAssert entityToRune("a") == Rune(0)
  374. doAssert entityToRune("gt") == ">".runeAt(0)
  375. doAssert entityToRune("Uuml") == "Ü".runeAt(0)
  376. doAssert entityToRune("quest") == "?".runeAt(0)
  377. doAssert entityToRune("#x0003F") == "?".runeAt(0)
  378. if entity.len < 2: return # smallest entity has length 2
  379. if entity[0] == '#':
  380. var runeValue = 0
  381. case entity[1]
  382. of '0'..'9':
  383. try: runeValue = parseInt(entity[1..^1])
  384. except ValueError: discard
  385. of 'x', 'X': # not case sensitive here
  386. try: runeValue = parseHexInt(entity[2..^1])
  387. except ValueError: discard
  388. else: discard # other entities are not defined with prefix `#`
  389. if runeValue notin 0..0x10FFFF: runeValue = 0 # only return legal values
  390. return Rune(runeValue)
  391. case entity # entity names are case sensitive
  392. of "Tab": Rune(0x00009)
  393. of "NewLine": Rune(0x0000A)
  394. of "excl": Rune(0x00021)
  395. of "quot", "QUOT": Rune(0x00022)
  396. of "num": Rune(0x00023)
  397. of "dollar": Rune(0x00024)
  398. of "percnt": Rune(0x00025)
  399. of "amp", "AMP": Rune(0x00026)
  400. of "apos": Rune(0x00027)
  401. of "lpar": Rune(0x00028)
  402. of "rpar": Rune(0x00029)
  403. of "ast", "midast": Rune(0x0002A)
  404. of "plus": Rune(0x0002B)
  405. of "comma": Rune(0x0002C)
  406. of "period": Rune(0x0002E)
  407. of "sol": Rune(0x0002F)
  408. of "colon": Rune(0x0003A)
  409. of "semi": Rune(0x0003B)
  410. of "lt", "LT": Rune(0x0003C)
  411. of "equals": Rune(0x0003D)
  412. of "gt", "GT": Rune(0x0003E)
  413. of "quest": Rune(0x0003F)
  414. of "commat": Rune(0x00040)
  415. of "lsqb", "lbrack": Rune(0x0005B)
  416. of "bsol": Rune(0x0005C)
  417. of "rsqb", "rbrack": Rune(0x0005D)
  418. of "Hat": Rune(0x0005E)
  419. of "lowbar": Rune(0x0005F)
  420. of "grave", "DiacriticalGrave": Rune(0x00060)
  421. of "lcub", "lbrace": Rune(0x0007B)
  422. of "verbar", "vert", "VerticalLine": Rune(0x0007C)
  423. of "rcub", "rbrace": Rune(0x0007D)
  424. of "nbsp", "NonBreakingSpace": Rune(0x000A0)
  425. of "iexcl": Rune(0x000A1)
  426. of "cent": Rune(0x000A2)
  427. of "pound": Rune(0x000A3)
  428. of "curren": Rune(0x000A4)
  429. of "yen": Rune(0x000A5)
  430. of "brvbar": Rune(0x000A6)
  431. of "sect": Rune(0x000A7)
  432. of "Dot", "die", "DoubleDot", "uml": Rune(0x000A8)
  433. of "copy", "COPY": Rune(0x000A9)
  434. of "ordf": Rune(0x000AA)
  435. of "laquo": Rune(0x000AB)
  436. of "not": Rune(0x000AC)
  437. of "shy": Rune(0x000AD)
  438. of "reg", "circledR", "REG": Rune(0x000AE)
  439. of "macr", "OverBar", "strns": Rune(0x000AF)
  440. of "deg": Rune(0x000B0)
  441. of "plusmn", "pm", "PlusMinus": Rune(0x000B1)
  442. of "sup2": Rune(0x000B2)
  443. of "sup3": Rune(0x000B3)
  444. of "acute", "DiacriticalAcute": Rune(0x000B4)
  445. of "micro": Rune(0x000B5)
  446. of "para": Rune(0x000B6)
  447. of "middot", "centerdot", "CenterDot": Rune(0x000B7)
  448. of "cedil", "Cedilla": Rune(0x000B8)
  449. of "sup1": Rune(0x000B9)
  450. of "ordm": Rune(0x000BA)
  451. of "raquo": Rune(0x000BB)
  452. of "frac14": Rune(0x000BC)
  453. of "frac12", "half": Rune(0x000BD)
  454. of "frac34": Rune(0x000BE)
  455. of "iquest": Rune(0x000BF)
  456. of "Agrave": Rune(0x000C0)
  457. of "Aacute": Rune(0x000C1)
  458. of "Acirc": Rune(0x000C2)
  459. of "Atilde": Rune(0x000C3)
  460. of "Auml": Rune(0x000C4)
  461. of "Aring": Rune(0x000C5)
  462. of "AElig": Rune(0x000C6)
  463. of "Ccedil": Rune(0x000C7)
  464. of "Egrave": Rune(0x000C8)
  465. of "Eacute": Rune(0x000C9)
  466. of "Ecirc": Rune(0x000CA)
  467. of "Euml": Rune(0x000CB)
  468. of "Igrave": Rune(0x000CC)
  469. of "Iacute": Rune(0x000CD)
  470. of "Icirc": Rune(0x000CE)
  471. of "Iuml": Rune(0x000CF)
  472. of "ETH": Rune(0x000D0)
  473. of "Ntilde": Rune(0x000D1)
  474. of "Ograve": Rune(0x000D2)
  475. of "Oacute": Rune(0x000D3)
  476. of "Ocirc": Rune(0x000D4)
  477. of "Otilde": Rune(0x000D5)
  478. of "Ouml": Rune(0x000D6)
  479. of "times": Rune(0x000D7)
  480. of "Oslash": Rune(0x000D8)
  481. of "Ugrave": Rune(0x000D9)
  482. of "Uacute": Rune(0x000DA)
  483. of "Ucirc": Rune(0x000DB)
  484. of "Uuml": Rune(0x000DC)
  485. of "Yacute": Rune(0x000DD)
  486. of "THORN": Rune(0x000DE)
  487. of "szlig": Rune(0x000DF)
  488. of "agrave": Rune(0x000E0)
  489. of "aacute": Rune(0x000E1)
  490. of "acirc": Rune(0x000E2)
  491. of "atilde": Rune(0x000E3)
  492. of "auml": Rune(0x000E4)
  493. of "aring": Rune(0x000E5)
  494. of "aelig": Rune(0x000E6)
  495. of "ccedil": Rune(0x000E7)
  496. of "egrave": Rune(0x000E8)
  497. of "eacute": Rune(0x000E9)
  498. of "ecirc": Rune(0x000EA)
  499. of "euml": Rune(0x000EB)
  500. of "igrave": Rune(0x000EC)
  501. of "iacute": Rune(0x000ED)
  502. of "icirc": Rune(0x000EE)
  503. of "iuml": Rune(0x000EF)
  504. of "eth": Rune(0x000F0)
  505. of "ntilde": Rune(0x000F1)
  506. of "ograve": Rune(0x000F2)
  507. of "oacute": Rune(0x000F3)
  508. of "ocirc": Rune(0x000F4)
  509. of "otilde": Rune(0x000F5)
  510. of "ouml": Rune(0x000F6)
  511. of "divide", "div": Rune(0x000F7)
  512. of "oslash": Rune(0x000F8)
  513. of "ugrave": Rune(0x000F9)
  514. of "uacute": Rune(0x000FA)
  515. of "ucirc": Rune(0x000FB)
  516. of "uuml": Rune(0x000FC)
  517. of "yacute": Rune(0x000FD)
  518. of "thorn": Rune(0x000FE)
  519. of "yuml": Rune(0x000FF)
  520. of "Amacr": Rune(0x00100)
  521. of "amacr": Rune(0x00101)
  522. of "Abreve": Rune(0x00102)
  523. of "abreve": Rune(0x00103)
  524. of "Aogon": Rune(0x00104)
  525. of "aogon": Rune(0x00105)
  526. of "Cacute": Rune(0x00106)
  527. of "cacute": Rune(0x00107)
  528. of "Ccirc": Rune(0x00108)
  529. of "ccirc": Rune(0x00109)
  530. of "Cdot": Rune(0x0010A)
  531. of "cdot": Rune(0x0010B)
  532. of "Ccaron": Rune(0x0010C)
  533. of "ccaron": Rune(0x0010D)
  534. of "Dcaron": Rune(0x0010E)
  535. of "dcaron": Rune(0x0010F)
  536. of "Dstrok": Rune(0x00110)
  537. of "dstrok": Rune(0x00111)
  538. of "Emacr": Rune(0x00112)
  539. of "emacr": Rune(0x00113)
  540. of "Edot": Rune(0x00116)
  541. of "edot": Rune(0x00117)
  542. of "Eogon": Rune(0x00118)
  543. of "eogon": Rune(0x00119)
  544. of "Ecaron": Rune(0x0011A)
  545. of "ecaron": Rune(0x0011B)
  546. of "Gcirc": Rune(0x0011C)
  547. of "gcirc": Rune(0x0011D)
  548. of "Gbreve": Rune(0x0011E)
  549. of "gbreve": Rune(0x0011F)
  550. of "Gdot": Rune(0x00120)
  551. of "gdot": Rune(0x00121)
  552. of "Gcedil": Rune(0x00122)
  553. of "Hcirc": Rune(0x00124)
  554. of "hcirc": Rune(0x00125)
  555. of "Hstrok": Rune(0x00126)
  556. of "hstrok": Rune(0x00127)
  557. of "Itilde": Rune(0x00128)
  558. of "itilde": Rune(0x00129)
  559. of "Imacr": Rune(0x0012A)
  560. of "imacr": Rune(0x0012B)
  561. of "Iogon": Rune(0x0012E)
  562. of "iogon": Rune(0x0012F)
  563. of "Idot": Rune(0x00130)
  564. of "imath", "inodot": Rune(0x00131)
  565. of "IJlig": Rune(0x00132)
  566. of "ijlig": Rune(0x00133)
  567. of "Jcirc": Rune(0x00134)
  568. of "jcirc": Rune(0x00135)
  569. of "Kcedil": Rune(0x00136)
  570. of "kcedil": Rune(0x00137)
  571. of "kgreen": Rune(0x00138)
  572. of "Lacute": Rune(0x00139)
  573. of "lacute": Rune(0x0013A)
  574. of "Lcedil": Rune(0x0013B)
  575. of "lcedil": Rune(0x0013C)
  576. of "Lcaron": Rune(0x0013D)
  577. of "lcaron": Rune(0x0013E)
  578. of "Lmidot": Rune(0x0013F)
  579. of "lmidot": Rune(0x00140)
  580. of "Lstrok": Rune(0x00141)
  581. of "lstrok": Rune(0x00142)
  582. of "Nacute": Rune(0x00143)
  583. of "nacute": Rune(0x00144)
  584. of "Ncedil": Rune(0x00145)
  585. of "ncedil": Rune(0x00146)
  586. of "Ncaron": Rune(0x00147)
  587. of "ncaron": Rune(0x00148)
  588. of "napos": Rune(0x00149)
  589. of "ENG": Rune(0x0014A)
  590. of "eng": Rune(0x0014B)
  591. of "Omacr": Rune(0x0014C)
  592. of "omacr": Rune(0x0014D)
  593. of "Odblac": Rune(0x00150)
  594. of "odblac": Rune(0x00151)
  595. of "OElig": Rune(0x00152)
  596. of "oelig": Rune(0x00153)
  597. of "Racute": Rune(0x00154)
  598. of "racute": Rune(0x00155)
  599. of "Rcedil": Rune(0x00156)
  600. of "rcedil": Rune(0x00157)
  601. of "Rcaron": Rune(0x00158)
  602. of "rcaron": Rune(0x00159)
  603. of "Sacute": Rune(0x0015A)
  604. of "sacute": Rune(0x0015B)
  605. of "Scirc": Rune(0x0015C)
  606. of "scirc": Rune(0x0015D)
  607. of "Scedil": Rune(0x0015E)
  608. of "scedil": Rune(0x0015F)
  609. of "Scaron": Rune(0x00160)
  610. of "scaron": Rune(0x00161)
  611. of "Tcedil": Rune(0x00162)
  612. of "tcedil": Rune(0x00163)
  613. of "Tcaron": Rune(0x00164)
  614. of "tcaron": Rune(0x00165)
  615. of "Tstrok": Rune(0x00166)
  616. of "tstrok": Rune(0x00167)
  617. of "Utilde": Rune(0x00168)
  618. of "utilde": Rune(0x00169)
  619. of "Umacr": Rune(0x0016A)
  620. of "umacr": Rune(0x0016B)
  621. of "Ubreve": Rune(0x0016C)
  622. of "ubreve": Rune(0x0016D)
  623. of "Uring": Rune(0x0016E)
  624. of "uring": Rune(0x0016F)
  625. of "Udblac": Rune(0x00170)
  626. of "udblac": Rune(0x00171)
  627. of "Uogon": Rune(0x00172)
  628. of "uogon": Rune(0x00173)
  629. of "Wcirc": Rune(0x00174)
  630. of "wcirc": Rune(0x00175)
  631. of "Ycirc": Rune(0x00176)
  632. of "ycirc": Rune(0x00177)
  633. of "Yuml": Rune(0x00178)
  634. of "Zacute": Rune(0x00179)
  635. of "zacute": Rune(0x0017A)
  636. of "Zdot": Rune(0x0017B)
  637. of "zdot": Rune(0x0017C)
  638. of "Zcaron": Rune(0x0017D)
  639. of "zcaron": Rune(0x0017E)
  640. of "fnof": Rune(0x00192)
  641. of "imped": Rune(0x001B5)
  642. of "gacute": Rune(0x001F5)
  643. of "jmath": Rune(0x00237)
  644. of "circ": Rune(0x002C6)
  645. of "caron", "Hacek": Rune(0x002C7)
  646. of "breve", "Breve": Rune(0x002D8)
  647. of "dot", "DiacriticalDot": Rune(0x002D9)
  648. of "ring": Rune(0x002DA)
  649. of "ogon": Rune(0x002DB)
  650. of "tilde", "DiacriticalTilde": Rune(0x002DC)
  651. of "dblac", "DiacriticalDoubleAcute": Rune(0x002DD)
  652. of "DownBreve": Rune(0x00311)
  653. of "UnderBar": Rune(0x00332)
  654. of "Alpha": Rune(0x00391)
  655. of "Beta": Rune(0x00392)
  656. of "Gamma": Rune(0x00393)
  657. of "Delta": Rune(0x00394)
  658. of "Epsilon": Rune(0x00395)
  659. of "Zeta": Rune(0x00396)
  660. of "Eta": Rune(0x00397)
  661. of "Theta": Rune(0x00398)
  662. of "Iota": Rune(0x00399)
  663. of "Kappa": Rune(0x0039A)
  664. of "Lambda": Rune(0x0039B)
  665. of "Mu": Rune(0x0039C)
  666. of "Nu": Rune(0x0039D)
  667. of "Xi": Rune(0x0039E)
  668. of "Omicron": Rune(0x0039F)
  669. of "Pi": Rune(0x003A0)
  670. of "Rho": Rune(0x003A1)
  671. of "Sigma": Rune(0x003A3)
  672. of "Tau": Rune(0x003A4)
  673. of "Upsilon": Rune(0x003A5)
  674. of "Phi": Rune(0x003A6)
  675. of "Chi": Rune(0x003A7)
  676. of "Psi": Rune(0x003A8)
  677. of "Omega": Rune(0x003A9)
  678. of "alpha": Rune(0x003B1)
  679. of "beta": Rune(0x003B2)
  680. of "gamma": Rune(0x003B3)
  681. of "delta": Rune(0x003B4)
  682. of "epsiv", "varepsilon", "epsilon": Rune(0x003B5)
  683. of "zeta": Rune(0x003B6)
  684. of "eta": Rune(0x003B7)
  685. of "theta": Rune(0x003B8)
  686. of "iota": Rune(0x003B9)
  687. of "kappa": Rune(0x003BA)
  688. of "lambda": Rune(0x003BB)
  689. of "mu": Rune(0x003BC)
  690. of "nu": Rune(0x003BD)
  691. of "xi": Rune(0x003BE)
  692. of "omicron": Rune(0x003BF)
  693. of "pi": Rune(0x003C0)
  694. of "rho": Rune(0x003C1)
  695. of "sigmav", "varsigma", "sigmaf": Rune(0x003C2)
  696. of "sigma": Rune(0x003C3)
  697. of "tau": Rune(0x003C4)
  698. of "upsi", "upsilon": Rune(0x003C5)
  699. of "phi", "phiv", "varphi": Rune(0x003C6)
  700. of "chi": Rune(0x003C7)
  701. of "psi": Rune(0x003C8)
  702. of "omega": Rune(0x003C9)
  703. of "thetav", "vartheta", "thetasym": Rune(0x003D1)
  704. of "Upsi", "upsih": Rune(0x003D2)
  705. of "straightphi": Rune(0x003D5)
  706. of "piv", "varpi": Rune(0x003D6)
  707. of "Gammad": Rune(0x003DC)
  708. of "gammad", "digamma": Rune(0x003DD)
  709. of "kappav", "varkappa": Rune(0x003F0)
  710. of "rhov", "varrho": Rune(0x003F1)
  711. of "epsi", "straightepsilon": Rune(0x003F5)
  712. of "bepsi", "backepsilon": Rune(0x003F6)
  713. of "IOcy": Rune(0x00401)
  714. of "DJcy": Rune(0x00402)
  715. of "GJcy": Rune(0x00403)
  716. of "Jukcy": Rune(0x00404)
  717. of "DScy": Rune(0x00405)
  718. of "Iukcy": Rune(0x00406)
  719. of "YIcy": Rune(0x00407)
  720. of "Jsercy": Rune(0x00408)
  721. of "LJcy": Rune(0x00409)
  722. of "NJcy": Rune(0x0040A)
  723. of "TSHcy": Rune(0x0040B)
  724. of "KJcy": Rune(0x0040C)
  725. of "Ubrcy": Rune(0x0040E)
  726. of "DZcy": Rune(0x0040F)
  727. of "Acy": Rune(0x00410)
  728. of "Bcy": Rune(0x00411)
  729. of "Vcy": Rune(0x00412)
  730. of "Gcy": Rune(0x00413)
  731. of "Dcy": Rune(0x00414)
  732. of "IEcy": Rune(0x00415)
  733. of "ZHcy": Rune(0x00416)
  734. of "Zcy": Rune(0x00417)
  735. of "Icy": Rune(0x00418)
  736. of "Jcy": Rune(0x00419)
  737. of "Kcy": Rune(0x0041A)
  738. of "Lcy": Rune(0x0041B)
  739. of "Mcy": Rune(0x0041C)
  740. of "Ncy": Rune(0x0041D)
  741. of "Ocy": Rune(0x0041E)
  742. of "Pcy": Rune(0x0041F)
  743. of "Rcy": Rune(0x00420)
  744. of "Scy": Rune(0x00421)
  745. of "Tcy": Rune(0x00422)
  746. of "Ucy": Rune(0x00423)
  747. of "Fcy": Rune(0x00424)
  748. of "KHcy": Rune(0x00425)
  749. of "TScy": Rune(0x00426)
  750. of "CHcy": Rune(0x00427)
  751. of "SHcy": Rune(0x00428)
  752. of "SHCHcy": Rune(0x00429)
  753. of "HARDcy": Rune(0x0042A)
  754. of "Ycy": Rune(0x0042B)
  755. of "SOFTcy": Rune(0x0042C)
  756. of "Ecy": Rune(0x0042D)
  757. of "YUcy": Rune(0x0042E)
  758. of "YAcy": Rune(0x0042F)
  759. of "acy": Rune(0x00430)
  760. of "bcy": Rune(0x00431)
  761. of "vcy": Rune(0x00432)
  762. of "gcy": Rune(0x00433)
  763. of "dcy": Rune(0x00434)
  764. of "iecy": Rune(0x00435)
  765. of "zhcy": Rune(0x00436)
  766. of "zcy": Rune(0x00437)
  767. of "icy": Rune(0x00438)
  768. of "jcy": Rune(0x00439)
  769. of "kcy": Rune(0x0043A)
  770. of "lcy": Rune(0x0043B)
  771. of "mcy": Rune(0x0043C)
  772. of "ncy": Rune(0x0043D)
  773. of "ocy": Rune(0x0043E)
  774. of "pcy": Rune(0x0043F)
  775. of "rcy": Rune(0x00440)
  776. of "scy": Rune(0x00441)
  777. of "tcy": Rune(0x00442)
  778. of "ucy": Rune(0x00443)
  779. of "fcy": Rune(0x00444)
  780. of "khcy": Rune(0x00445)
  781. of "tscy": Rune(0x00446)
  782. of "chcy": Rune(0x00447)
  783. of "shcy": Rune(0x00448)
  784. of "shchcy": Rune(0x00449)
  785. of "hardcy": Rune(0x0044A)
  786. of "ycy": Rune(0x0044B)
  787. of "softcy": Rune(0x0044C)
  788. of "ecy": Rune(0x0044D)
  789. of "yucy": Rune(0x0044E)
  790. of "yacy": Rune(0x0044F)
  791. of "iocy": Rune(0x00451)
  792. of "djcy": Rune(0x00452)
  793. of "gjcy": Rune(0x00453)
  794. of "jukcy": Rune(0x00454)
  795. of "dscy": Rune(0x00455)
  796. of "iukcy": Rune(0x00456)
  797. of "yicy": Rune(0x00457)
  798. of "jsercy": Rune(0x00458)
  799. of "ljcy": Rune(0x00459)
  800. of "njcy": Rune(0x0045A)
  801. of "tshcy": Rune(0x0045B)
  802. of "kjcy": Rune(0x0045C)
  803. of "ubrcy": Rune(0x0045E)
  804. of "dzcy": Rune(0x0045F)
  805. of "ensp": Rune(0x02002)
  806. of "emsp": Rune(0x02003)
  807. of "emsp13": Rune(0x02004)
  808. of "emsp14": Rune(0x02005)
  809. of "numsp": Rune(0x02007)
  810. of "puncsp": Rune(0x02008)
  811. of "thinsp", "ThinSpace": Rune(0x02009)
  812. of "hairsp", "VeryThinSpace": Rune(0x0200A)
  813. of "ZeroWidthSpace", "NegativeVeryThinSpace", "NegativeThinSpace",
  814. "NegativeMediumSpace", "NegativeThickSpace": Rune(0x0200B)
  815. of "zwnj": Rune(0x0200C)
  816. of "zwj": Rune(0x0200D)
  817. of "lrm": Rune(0x0200E)
  818. of "rlm": Rune(0x0200F)
  819. of "hyphen", "dash": Rune(0x02010)
  820. of "ndash": Rune(0x02013)
  821. of "mdash": Rune(0x02014)
  822. of "horbar": Rune(0x02015)
  823. of "Verbar", "Vert": Rune(0x02016)
  824. of "lsquo", "OpenCurlyQuote": Rune(0x02018)
  825. of "rsquo", "rsquor", "CloseCurlyQuote": Rune(0x02019)
  826. of "lsquor", "sbquo": Rune(0x0201A)
  827. of "ldquo", "OpenCurlyDoubleQuote": Rune(0x0201C)
  828. of "rdquo", "rdquor", "CloseCurlyDoubleQuote": Rune(0x0201D)
  829. of "ldquor", "bdquo": Rune(0x0201E)
  830. of "dagger": Rune(0x02020)
  831. of "Dagger", "ddagger": Rune(0x02021)
  832. of "bull", "bullet": Rune(0x02022)
  833. of "nldr": Rune(0x02025)
  834. of "hellip", "mldr": Rune(0x02026)
  835. of "permil": Rune(0x02030)
  836. of "pertenk": Rune(0x02031)
  837. of "prime": Rune(0x02032)
  838. of "Prime": Rune(0x02033)
  839. of "tprime": Rune(0x02034)
  840. of "bprime", "backprime": Rune(0x02035)
  841. of "lsaquo": Rune(0x02039)
  842. of "rsaquo": Rune(0x0203A)
  843. of "oline": Rune(0x0203E)
  844. of "caret": Rune(0x02041)
  845. of "hybull": Rune(0x02043)
  846. of "frasl": Rune(0x02044)
  847. of "bsemi": Rune(0x0204F)
  848. of "qprime": Rune(0x02057)
  849. of "MediumSpace": Rune(0x0205F)
  850. of "NoBreak": Rune(0x02060)
  851. of "ApplyFunction", "af": Rune(0x02061)
  852. of "InvisibleTimes", "it": Rune(0x02062)
  853. of "InvisibleComma", "ic": Rune(0x02063)
  854. of "euro": Rune(0x020AC)
  855. of "tdot", "TripleDot": Rune(0x020DB)
  856. of "DotDot": Rune(0x020DC)
  857. of "Copf", "complexes": Rune(0x02102)
  858. of "incare": Rune(0x02105)
  859. of "gscr": Rune(0x0210A)
  860. of "hamilt", "HilbertSpace", "Hscr": Rune(0x0210B)
  861. of "Hfr", "Poincareplane": Rune(0x0210C)
  862. of "quaternions", "Hopf": Rune(0x0210D)
  863. of "planckh": Rune(0x0210E)
  864. of "planck", "hbar", "plankv", "hslash": Rune(0x0210F)
  865. of "Iscr", "imagline": Rune(0x02110)
  866. of "image", "Im", "imagpart", "Ifr": Rune(0x02111)
  867. of "Lscr", "lagran", "Laplacetrf": Rune(0x02112)
  868. of "ell": Rune(0x02113)
  869. of "Nopf", "naturals": Rune(0x02115)
  870. of "numero": Rune(0x02116)
  871. of "copysr": Rune(0x02117)
  872. of "weierp", "wp": Rune(0x02118)
  873. of "Popf", "primes": Rune(0x02119)
  874. of "rationals", "Qopf": Rune(0x0211A)
  875. of "Rscr", "realine": Rune(0x0211B)
  876. of "real", "Re", "realpart", "Rfr": Rune(0x0211C)
  877. of "reals", "Ropf": Rune(0x0211D)
  878. of "rx": Rune(0x0211E)
  879. of "trade", "TRADE": Rune(0x02122)
  880. of "integers", "Zopf": Rune(0x02124)
  881. of "ohm": Rune(0x02126)
  882. of "mho": Rune(0x02127)
  883. of "Zfr", "zeetrf": Rune(0x02128)
  884. of "iiota": Rune(0x02129)
  885. of "angst": Rune(0x0212B)
  886. of "bernou", "Bernoullis", "Bscr": Rune(0x0212C)
  887. of "Cfr", "Cayleys": Rune(0x0212D)
  888. of "escr": Rune(0x0212F)
  889. of "Escr", "expectation": Rune(0x02130)
  890. of "Fscr", "Fouriertrf": Rune(0x02131)
  891. of "phmmat", "Mellintrf", "Mscr": Rune(0x02133)
  892. of "order", "orderof", "oscr": Rune(0x02134)
  893. of "alefsym", "aleph": Rune(0x02135)
  894. of "beth": Rune(0x02136)
  895. of "gimel": Rune(0x02137)
  896. of "daleth": Rune(0x02138)
  897. of "CapitalDifferentialD", "DD": Rune(0x02145)
  898. of "DifferentialD", "dd": Rune(0x02146)
  899. of "ExponentialE", "exponentiale", "ee": Rune(0x02147)
  900. of "ImaginaryI", "ii": Rune(0x02148)
  901. of "frac13": Rune(0x02153)
  902. of "frac23": Rune(0x02154)
  903. of "frac15": Rune(0x02155)
  904. of "frac25": Rune(0x02156)
  905. of "frac35": Rune(0x02157)
  906. of "frac45": Rune(0x02158)
  907. of "frac16": Rune(0x02159)
  908. of "frac56": Rune(0x0215A)
  909. of "frac18": Rune(0x0215B)
  910. of "frac38": Rune(0x0215C)
  911. of "frac58": Rune(0x0215D)
  912. of "frac78": Rune(0x0215E)
  913. of "larr", "leftarrow", "LeftArrow", "slarr",
  914. "ShortLeftArrow": Rune(0x02190)
  915. of "uarr", "uparrow", "UpArrow", "ShortUpArrow": Rune(0x02191)
  916. of "rarr", "rightarrow", "RightArrow", "srarr",
  917. "ShortRightArrow": Rune(0x02192)
  918. of "darr", "downarrow", "DownArrow",
  919. "ShortDownArrow": Rune(0x02193)
  920. of "harr", "leftrightarrow", "LeftRightArrow": Rune(0x02194)
  921. of "varr", "updownarrow", "UpDownArrow": Rune(0x02195)
  922. of "nwarr", "UpperLeftArrow", "nwarrow": Rune(0x02196)
  923. of "nearr", "UpperRightArrow", "nearrow": Rune(0x02197)
  924. of "searr", "searrow", "LowerRightArrow": Rune(0x02198)
  925. of "swarr", "swarrow", "LowerLeftArrow": Rune(0x02199)
  926. of "nlarr", "nleftarrow": Rune(0x0219A)
  927. of "nrarr", "nrightarrow": Rune(0x0219B)
  928. of "rarrw", "rightsquigarrow": Rune(0x0219D)
  929. of "Larr", "twoheadleftarrow": Rune(0x0219E)
  930. of "Uarr": Rune(0x0219F)
  931. of "Rarr", "twoheadrightarrow": Rune(0x021A0)
  932. of "Darr": Rune(0x021A1)
  933. of "larrtl", "leftarrowtail": Rune(0x021A2)
  934. of "rarrtl", "rightarrowtail": Rune(0x021A3)
  935. of "LeftTeeArrow", "mapstoleft": Rune(0x021A4)
  936. of "UpTeeArrow", "mapstoup": Rune(0x021A5)
  937. of "map", "RightTeeArrow", "mapsto": Rune(0x021A6)
  938. of "DownTeeArrow", "mapstodown": Rune(0x021A7)
  939. of "larrhk", "hookleftarrow": Rune(0x021A9)
  940. of "rarrhk", "hookrightarrow": Rune(0x021AA)
  941. of "larrlp", "looparrowleft": Rune(0x021AB)
  942. of "rarrlp", "looparrowright": Rune(0x021AC)
  943. of "harrw", "leftrightsquigarrow": Rune(0x021AD)
  944. of "nharr", "nleftrightarrow": Rune(0x021AE)
  945. of "lsh", "Lsh": Rune(0x021B0)
  946. of "rsh", "Rsh": Rune(0x021B1)
  947. of "ldsh": Rune(0x021B2)
  948. of "rdsh": Rune(0x021B3)
  949. of "crarr": Rune(0x021B5)
  950. of "cularr", "curvearrowleft": Rune(0x021B6)
  951. of "curarr", "curvearrowright": Rune(0x021B7)
  952. of "olarr", "circlearrowleft": Rune(0x021BA)
  953. of "orarr", "circlearrowright": Rune(0x021BB)
  954. of "lharu", "LeftVector", "leftharpoonup": Rune(0x021BC)
  955. of "lhard", "leftharpoondown", "DownLeftVector": Rune(0x021BD)
  956. of "uharr", "upharpoonright", "RightUpVector": Rune(0x021BE)
  957. of "uharl", "upharpoonleft", "LeftUpVector": Rune(0x021BF)
  958. of "rharu", "RightVector", "rightharpoonup": Rune(0x021C0)
  959. of "rhard", "rightharpoondown", "DownRightVector": Rune(0x021C1)
  960. of "dharr", "RightDownVector", "downharpoonright": Rune(0x021C2)
  961. of "dharl", "LeftDownVector", "downharpoonleft": Rune(0x021C3)
  962. of "rlarr", "rightleftarrows", "RightArrowLeftArrow": Rune(0x021C4)
  963. of "udarr", "UpArrowDownArrow": Rune(0x021C5)
  964. of "lrarr", "leftrightarrows", "LeftArrowRightArrow": Rune(0x021C6)
  965. of "llarr", "leftleftarrows": Rune(0x021C7)
  966. of "uuarr", "upuparrows": Rune(0x021C8)
  967. of "rrarr", "rightrightarrows": Rune(0x021C9)
  968. of "ddarr", "downdownarrows": Rune(0x021CA)
  969. of "lrhar", "ReverseEquilibrium",
  970. "leftrightharpoons": Rune(0x021CB)
  971. of "rlhar", "rightleftharpoons", "Equilibrium": Rune(0x021CC)
  972. of "nlArr", "nLeftarrow": Rune(0x021CD)
  973. of "nhArr", "nLeftrightarrow": Rune(0x021CE)
  974. of "nrArr", "nRightarrow": Rune(0x021CF)
  975. of "lArr", "Leftarrow", "DoubleLeftArrow": Rune(0x021D0)
  976. of "uArr", "Uparrow", "DoubleUpArrow": Rune(0x021D1)
  977. of "rArr", "Rightarrow", "Implies",
  978. "DoubleRightArrow": Rune(0x021D2)
  979. of "dArr", "Downarrow", "DoubleDownArrow": Rune(0x021D3)
  980. of "hArr", "Leftrightarrow", "DoubleLeftRightArrow",
  981. "iff": Rune(0x021D4)
  982. of "vArr", "Updownarrow", "DoubleUpDownArrow": Rune(0x021D5)
  983. of "nwArr": Rune(0x021D6)
  984. of "neArr": Rune(0x021D7)
  985. of "seArr": Rune(0x021D8)
  986. of "swArr": Rune(0x021D9)
  987. of "lAarr", "Lleftarrow": Rune(0x021DA)
  988. of "rAarr", "Rrightarrow": Rune(0x021DB)
  989. of "zigrarr": Rune(0x021DD)
  990. of "larrb", "LeftArrowBar": Rune(0x021E4)
  991. of "rarrb", "RightArrowBar": Rune(0x021E5)
  992. of "duarr", "DownArrowUpArrow": Rune(0x021F5)
  993. of "loarr": Rune(0x021FD)
  994. of "roarr": Rune(0x021FE)
  995. of "hoarr": Rune(0x021FF)
  996. of "forall", "ForAll": Rune(0x02200)
  997. of "comp", "complement": Rune(0x02201)
  998. of "part", "PartialD": Rune(0x02202)
  999. of "exist", "Exists": Rune(0x02203)
  1000. of "nexist", "NotExists", "nexists": Rune(0x02204)
  1001. of "empty", "emptyset", "emptyv", "varnothing": Rune(0x02205)
  1002. of "nabla", "Del": Rune(0x02207)
  1003. of "isin", "isinv", "Element", "in": Rune(0x02208)
  1004. of "notin", "NotElement", "notinva": Rune(0x02209)
  1005. of "niv", "ReverseElement", "ni", "SuchThat": Rune(0x0220B)
  1006. of "notni", "notniva", "NotReverseElement": Rune(0x0220C)
  1007. of "prod", "Product": Rune(0x0220F)
  1008. of "coprod", "Coproduct": Rune(0x02210)
  1009. of "sum", "Sum": Rune(0x02211)
  1010. of "minus": Rune(0x02212)
  1011. of "mnplus", "mp", "MinusPlus": Rune(0x02213)
  1012. of "plusdo", "dotplus": Rune(0x02214)
  1013. of "setmn", "setminus", "Backslash", "ssetmn",
  1014. "smallsetminus": Rune(0x02216)
  1015. of "lowast": Rune(0x02217)
  1016. of "compfn", "SmallCircle": Rune(0x02218)
  1017. of "radic", "Sqrt": Rune(0x0221A)
  1018. of "prop", "propto", "Proportional", "vprop",
  1019. "varpropto": Rune(0x0221D)
  1020. of "infin": Rune(0x0221E)
  1021. of "angrt": Rune(0x0221F)
  1022. of "ang", "angle": Rune(0x02220)
  1023. of "angmsd", "measuredangle": Rune(0x02221)
  1024. of "angsph": Rune(0x02222)
  1025. of "mid", "VerticalBar", "smid", "shortmid": Rune(0x02223)
  1026. of "nmid", "NotVerticalBar", "nsmid", "nshortmid": Rune(0x02224)
  1027. of "par", "parallel", "DoubleVerticalBar", "spar",
  1028. "shortparallel": Rune(0x02225)
  1029. of "npar", "nparallel", "NotDoubleVerticalBar", "nspar",
  1030. "nshortparallel": Rune(0x02226)
  1031. of "and", "wedge": Rune(0x02227)
  1032. of "or", "vee": Rune(0x02228)
  1033. of "cap": Rune(0x02229)
  1034. of "cup": Rune(0x0222A)
  1035. of "int", "Integral": Rune(0x0222B)
  1036. of "Int": Rune(0x0222C)
  1037. of "tint", "iiint": Rune(0x0222D)
  1038. of "conint", "oint", "ContourIntegral": Rune(0x0222E)
  1039. of "Conint", "DoubleContourIntegral": Rune(0x0222F)
  1040. of "Cconint": Rune(0x02230)
  1041. of "cwint": Rune(0x02231)
  1042. of "cwconint", "ClockwiseContourIntegral": Rune(0x02232)
  1043. of "awconint", "CounterClockwiseContourIntegral": Rune(0x02233)
  1044. of "there4", "therefore", "Therefore": Rune(0x02234)
  1045. of "becaus", "because", "Because": Rune(0x02235)
  1046. of "ratio": Rune(0x02236)
  1047. of "Colon", "Proportion": Rune(0x02237)
  1048. of "minusd", "dotminus": Rune(0x02238)
  1049. of "mDDot": Rune(0x0223A)
  1050. of "homtht": Rune(0x0223B)
  1051. of "sim", "Tilde", "thksim", "thicksim": Rune(0x0223C)
  1052. of "bsim", "backsim": Rune(0x0223D)
  1053. of "ac", "mstpos": Rune(0x0223E)
  1054. of "acd": Rune(0x0223F)
  1055. of "wreath", "VerticalTilde", "wr": Rune(0x02240)
  1056. of "nsim", "NotTilde": Rune(0x02241)
  1057. of "esim", "EqualTilde", "eqsim": Rune(0x02242)
  1058. of "sime", "TildeEqual", "simeq": Rune(0x02243)
  1059. of "nsime", "nsimeq", "NotTildeEqual": Rune(0x02244)
  1060. of "cong", "TildeFullEqual": Rune(0x02245)
  1061. of "simne": Rune(0x02246)
  1062. of "ncong", "NotTildeFullEqual": Rune(0x02247)
  1063. of "asymp", "ap", "TildeTilde", "approx", "thkap",
  1064. "thickapprox": Rune(0x02248)
  1065. of "nap", "NotTildeTilde", "napprox": Rune(0x02249)
  1066. of "ape", "approxeq": Rune(0x0224A)
  1067. of "apid": Rune(0x0224B)
  1068. of "bcong", "backcong": Rune(0x0224C)
  1069. of "asympeq", "CupCap": Rune(0x0224D)
  1070. of "bump", "HumpDownHump", "Bumpeq": Rune(0x0224E)
  1071. of "bumpe", "HumpEqual", "bumpeq": Rune(0x0224F)
  1072. of "esdot", "DotEqual", "doteq": Rune(0x02250)
  1073. of "eDot", "doteqdot": Rune(0x02251)
  1074. of "efDot", "fallingdotseq": Rune(0x02252)
  1075. of "erDot", "risingdotseq": Rune(0x02253)
  1076. of "colone", "coloneq", "Assign": Rune(0x02254)
  1077. of "ecolon", "eqcolon": Rune(0x02255)
  1078. of "ecir", "eqcirc": Rune(0x02256)
  1079. of "cire", "circeq": Rune(0x02257)
  1080. of "wedgeq": Rune(0x02259)
  1081. of "veeeq": Rune(0x0225A)
  1082. of "trie", "triangleq": Rune(0x0225C)
  1083. of "equest", "questeq": Rune(0x0225F)
  1084. of "ne", "NotEqual": Rune(0x02260)
  1085. of "equiv", "Congruent": Rune(0x02261)
  1086. of "nequiv", "NotCongruent": Rune(0x02262)
  1087. of "le", "leq": Rune(0x02264)
  1088. of "ge", "GreaterEqual", "geq": Rune(0x02265)
  1089. of "lE", "LessFullEqual", "leqq": Rune(0x02266)
  1090. of "gE", "GreaterFullEqual", "geqq": Rune(0x02267)
  1091. of "lnE", "lneqq": Rune(0x02268)
  1092. of "gnE", "gneqq": Rune(0x02269)
  1093. of "Lt", "NestedLessLess", "ll": Rune(0x0226A)
  1094. of "Gt", "NestedGreaterGreater", "gg": Rune(0x0226B)
  1095. of "twixt", "between": Rune(0x0226C)
  1096. of "NotCupCap": Rune(0x0226D)
  1097. of "nlt", "NotLess", "nless": Rune(0x0226E)
  1098. of "ngt", "NotGreater", "ngtr": Rune(0x0226F)
  1099. of "nle", "NotLessEqual", "nleq": Rune(0x02270)
  1100. of "nge", "NotGreaterEqual", "ngeq": Rune(0x02271)
  1101. of "lsim", "LessTilde", "lesssim": Rune(0x02272)
  1102. of "gsim", "gtrsim", "GreaterTilde": Rune(0x02273)
  1103. of "nlsim", "NotLessTilde": Rune(0x02274)
  1104. of "ngsim", "NotGreaterTilde": Rune(0x02275)
  1105. of "lg", "lessgtr", "LessGreater": Rune(0x02276)
  1106. of "gl", "gtrless", "GreaterLess": Rune(0x02277)
  1107. of "ntlg", "NotLessGreater": Rune(0x02278)
  1108. of "ntgl", "NotGreaterLess": Rune(0x02279)
  1109. of "pr", "Precedes", "prec": Rune(0x0227A)
  1110. of "sc", "Succeeds", "succ": Rune(0x0227B)
  1111. of "prcue", "PrecedesSlantEqual", "preccurlyeq": Rune(0x0227C)
  1112. of "sccue", "SucceedsSlantEqual", "succcurlyeq": Rune(0x0227D)
  1113. of "prsim", "precsim", "PrecedesTilde": Rune(0x0227E)
  1114. of "scsim", "succsim", "SucceedsTilde": Rune(0x0227F)
  1115. of "npr", "nprec", "NotPrecedes": Rune(0x02280)
  1116. of "nsc", "nsucc", "NotSucceeds": Rune(0x02281)
  1117. of "sub", "subset": Rune(0x02282)
  1118. of "sup", "supset", "Superset": Rune(0x02283)
  1119. of "nsub": Rune(0x02284)
  1120. of "nsup": Rune(0x02285)
  1121. of "sube", "SubsetEqual", "subseteq": Rune(0x02286)
  1122. of "supe", "supseteq", "SupersetEqual": Rune(0x02287)
  1123. of "nsube", "nsubseteq", "NotSubsetEqual": Rune(0x02288)
  1124. of "nsupe", "nsupseteq", "NotSupersetEqual": Rune(0x02289)
  1125. of "subne", "subsetneq": Rune(0x0228A)
  1126. of "supne", "supsetneq": Rune(0x0228B)
  1127. of "cupdot": Rune(0x0228D)
  1128. of "uplus", "UnionPlus": Rune(0x0228E)
  1129. of "sqsub", "SquareSubset", "sqsubset": Rune(0x0228F)
  1130. of "sqsup", "SquareSuperset", "sqsupset": Rune(0x02290)
  1131. of "sqsube", "SquareSubsetEqual", "sqsubseteq": Rune(0x02291)
  1132. of "sqsupe", "SquareSupersetEqual", "sqsupseteq": Rune(0x02292)
  1133. of "sqcap", "SquareIntersection": Rune(0x02293)
  1134. of "sqcup", "SquareUnion": Rune(0x02294)
  1135. of "oplus", "CirclePlus": Rune(0x02295)
  1136. of "ominus", "CircleMinus": Rune(0x02296)
  1137. of "otimes", "CircleTimes": Rune(0x02297)
  1138. of "osol": Rune(0x02298)
  1139. of "odot", "CircleDot": Rune(0x02299)
  1140. of "ocir", "circledcirc": Rune(0x0229A)
  1141. of "oast", "circledast": Rune(0x0229B)
  1142. of "odash", "circleddash": Rune(0x0229D)
  1143. of "plusb", "boxplus": Rune(0x0229E)
  1144. of "minusb", "boxminus": Rune(0x0229F)
  1145. of "timesb", "boxtimes": Rune(0x022A0)
  1146. of "sdotb", "dotsquare": Rune(0x022A1)
  1147. of "vdash", "RightTee": Rune(0x022A2)
  1148. of "dashv", "LeftTee": Rune(0x022A3)
  1149. of "top", "DownTee": Rune(0x022A4)
  1150. of "bottom", "bot", "perp", "UpTee": Rune(0x022A5)
  1151. of "models": Rune(0x022A7)
  1152. of "vDash", "DoubleRightTee": Rune(0x022A8)
  1153. of "Vdash": Rune(0x022A9)
  1154. of "Vvdash": Rune(0x022AA)
  1155. of "VDash": Rune(0x022AB)
  1156. of "nvdash": Rune(0x022AC)
  1157. of "nvDash": Rune(0x022AD)
  1158. of "nVdash": Rune(0x022AE)
  1159. of "nVDash": Rune(0x022AF)
  1160. of "prurel": Rune(0x022B0)
  1161. of "vltri", "vartriangleleft", "LeftTriangle": Rune(0x022B2)
  1162. of "vrtri", "vartriangleright", "RightTriangle": Rune(0x022B3)
  1163. of "ltrie", "trianglelefteq", "LeftTriangleEqual": Rune(0x022B4)
  1164. of "rtrie", "trianglerighteq", "RightTriangleEqual": Rune(0x022B5)
  1165. of "origof": Rune(0x022B6)
  1166. of "imof": Rune(0x022B7)
  1167. of "mumap", "multimap": Rune(0x022B8)
  1168. of "hercon": Rune(0x022B9)
  1169. of "intcal", "intercal": Rune(0x022BA)
  1170. of "veebar": Rune(0x022BB)
  1171. of "barvee": Rune(0x022BD)
  1172. of "angrtvb": Rune(0x022BE)
  1173. of "lrtri": Rune(0x022BF)
  1174. of "xwedge", "Wedge", "bigwedge": Rune(0x022C0)
  1175. of "xvee", "Vee", "bigvee": Rune(0x022C1)
  1176. of "xcap", "Intersection", "bigcap": Rune(0x022C2)
  1177. of "xcup", "Union", "bigcup": Rune(0x022C3)
  1178. of "diam", "diamond", "Diamond": Rune(0x022C4)
  1179. of "sdot": Rune(0x022C5)
  1180. of "sstarf", "Star": Rune(0x022C6)
  1181. of "divonx", "divideontimes": Rune(0x022C7)
  1182. of "bowtie": Rune(0x022C8)
  1183. of "ltimes": Rune(0x022C9)
  1184. of "rtimes": Rune(0x022CA)
  1185. of "lthree", "leftthreetimes": Rune(0x022CB)
  1186. of "rthree", "rightthreetimes": Rune(0x022CC)
  1187. of "bsime", "backsimeq": Rune(0x022CD)
  1188. of "cuvee", "curlyvee": Rune(0x022CE)
  1189. of "cuwed", "curlywedge": Rune(0x022CF)
  1190. of "Sub", "Subset": Rune(0x022D0)
  1191. of "Sup", "Supset": Rune(0x022D1)
  1192. of "Cap": Rune(0x022D2)
  1193. of "Cup": Rune(0x022D3)
  1194. of "fork", "pitchfork": Rune(0x022D4)
  1195. of "epar": Rune(0x022D5)
  1196. of "ltdot", "lessdot": Rune(0x022D6)
  1197. of "gtdot", "gtrdot": Rune(0x022D7)
  1198. of "Ll": Rune(0x022D8)
  1199. of "Gg", "ggg": Rune(0x022D9)
  1200. of "leg", "LessEqualGreater", "lesseqgtr": Rune(0x022DA)
  1201. of "gel", "gtreqless", "GreaterEqualLess": Rune(0x022DB)
  1202. of "cuepr", "curlyeqprec": Rune(0x022DE)
  1203. of "cuesc", "curlyeqsucc": Rune(0x022DF)
  1204. of "nprcue", "NotPrecedesSlantEqual": Rune(0x022E0)
  1205. of "nsccue", "NotSucceedsSlantEqual": Rune(0x022E1)
  1206. of "nsqsube", "NotSquareSubsetEqual": Rune(0x022E2)
  1207. of "nsqsupe", "NotSquareSupersetEqual": Rune(0x022E3)
  1208. of "lnsim": Rune(0x022E6)
  1209. of "gnsim": Rune(0x022E7)
  1210. of "prnsim", "precnsim": Rune(0x022E8)
  1211. of "scnsim", "succnsim": Rune(0x022E9)
  1212. of "nltri", "ntriangleleft", "NotLeftTriangle": Rune(0x022EA)
  1213. of "nrtri", "ntriangleright", "NotRightTriangle": Rune(0x022EB)
  1214. of "nltrie", "ntrianglelefteq",
  1215. "NotLeftTriangleEqual": Rune(0x022EC)
  1216. of "nrtrie", "ntrianglerighteq",
  1217. "NotRightTriangleEqual": Rune(0x022ED)
  1218. of "vellip": Rune(0x022EE)
  1219. of "ctdot": Rune(0x022EF)
  1220. of "utdot": Rune(0x022F0)
  1221. of "dtdot": Rune(0x022F1)
  1222. of "disin": Rune(0x022F2)
  1223. of "isinsv": Rune(0x022F3)
  1224. of "isins": Rune(0x022F4)
  1225. of "isindot": Rune(0x022F5)
  1226. of "notinvc": Rune(0x022F6)
  1227. of "notinvb": Rune(0x022F7)
  1228. of "isinE": Rune(0x022F9)
  1229. of "nisd": Rune(0x022FA)
  1230. of "xnis": Rune(0x022FB)
  1231. of "nis": Rune(0x022FC)
  1232. of "notnivc": Rune(0x022FD)
  1233. of "notnivb": Rune(0x022FE)
  1234. of "barwed", "barwedge": Rune(0x02305)
  1235. of "Barwed", "doublebarwedge": Rune(0x02306)
  1236. of "lceil", "LeftCeiling": Rune(0x02308)
  1237. of "rceil", "RightCeiling": Rune(0x02309)
  1238. of "lfloor", "LeftFloor": Rune(0x0230A)
  1239. of "rfloor", "RightFloor": Rune(0x0230B)
  1240. of "drcrop": Rune(0x0230C)
  1241. of "dlcrop": Rune(0x0230D)
  1242. of "urcrop": Rune(0x0230E)
  1243. of "ulcrop": Rune(0x0230F)
  1244. of "bnot": Rune(0x02310)
  1245. of "profline": Rune(0x02312)
  1246. of "profsurf": Rune(0x02313)
  1247. of "telrec": Rune(0x02315)
  1248. of "target": Rune(0x02316)
  1249. of "ulcorn", "ulcorner": Rune(0x0231C)
  1250. of "urcorn", "urcorner": Rune(0x0231D)
  1251. of "dlcorn", "llcorner": Rune(0x0231E)
  1252. of "drcorn", "lrcorner": Rune(0x0231F)
  1253. of "frown", "sfrown": Rune(0x02322)
  1254. of "smile", "ssmile": Rune(0x02323)
  1255. of "cylcty": Rune(0x0232D)
  1256. of "profalar": Rune(0x0232E)
  1257. of "topbot": Rune(0x02336)
  1258. of "ovbar": Rune(0x0233D)
  1259. of "solbar": Rune(0x0233F)
  1260. of "angzarr": Rune(0x0237C)
  1261. of "lmoust", "lmoustache": Rune(0x023B0)
  1262. of "rmoust", "rmoustache": Rune(0x023B1)
  1263. of "tbrk", "OverBracket": Rune(0x023B4)
  1264. of "bbrk", "UnderBracket": Rune(0x023B5)
  1265. of "bbrktbrk": Rune(0x023B6)
  1266. of "OverParenthesis": Rune(0x023DC)
  1267. of "UnderParenthesis": Rune(0x023DD)
  1268. of "OverBrace": Rune(0x023DE)
  1269. of "UnderBrace": Rune(0x023DF)
  1270. of "trpezium": Rune(0x023E2)
  1271. of "elinters": Rune(0x023E7)
  1272. of "blank": Rune(0x02423)
  1273. of "oS", "circledS": Rune(0x024C8)
  1274. of "boxh", "HorizontalLine": Rune(0x02500)
  1275. of "boxv": Rune(0x02502)
  1276. of "boxdr": Rune(0x0250C)
  1277. of "boxdl": Rune(0x02510)
  1278. of "boxur": Rune(0x02514)
  1279. of "boxul": Rune(0x02518)
  1280. of "boxvr": Rune(0x0251C)
  1281. of "boxvl": Rune(0x02524)
  1282. of "boxhd": Rune(0x0252C)
  1283. of "boxhu": Rune(0x02534)
  1284. of "boxvh": Rune(0x0253C)
  1285. of "boxH": Rune(0x02550)
  1286. of "boxV": Rune(0x02551)
  1287. of "boxdR": Rune(0x02552)
  1288. of "boxDr": Rune(0x02553)
  1289. of "boxDR": Rune(0x02554)
  1290. of "boxdL": Rune(0x02555)
  1291. of "boxDl": Rune(0x02556)
  1292. of "boxDL": Rune(0x02557)
  1293. of "boxuR": Rune(0x02558)
  1294. of "boxUr": Rune(0x02559)
  1295. of "boxUR": Rune(0x0255A)
  1296. of "boxuL": Rune(0x0255B)
  1297. of "boxUl": Rune(0x0255C)
  1298. of "boxUL": Rune(0x0255D)
  1299. of "boxvR": Rune(0x0255E)
  1300. of "boxVr": Rune(0x0255F)
  1301. of "boxVR": Rune(0x02560)
  1302. of "boxvL": Rune(0x02561)
  1303. of "boxVl": Rune(0x02562)
  1304. of "boxVL": Rune(0x02563)
  1305. of "boxHd": Rune(0x02564)
  1306. of "boxhD": Rune(0x02565)
  1307. of "boxHD": Rune(0x02566)
  1308. of "boxHu": Rune(0x02567)
  1309. of "boxhU": Rune(0x02568)
  1310. of "boxHU": Rune(0x02569)
  1311. of "boxvH": Rune(0x0256A)
  1312. of "boxVh": Rune(0x0256B)
  1313. of "boxVH": Rune(0x0256C)
  1314. of "uhblk": Rune(0x02580)
  1315. of "lhblk": Rune(0x02584)
  1316. of "block": Rune(0x02588)
  1317. of "blk14": Rune(0x02591)
  1318. of "blk12": Rune(0x02592)
  1319. of "blk34": Rune(0x02593)
  1320. of "squ", "square", "Square": Rune(0x025A1)
  1321. of "squf", "squarf", "blacksquare",
  1322. "FilledVerySmallSquare": Rune(0x025AA)
  1323. of "EmptyVerySmallSquare": Rune(0x025AB)
  1324. of "rect": Rune(0x025AD)
  1325. of "marker": Rune(0x025AE)
  1326. of "fltns": Rune(0x025B1)
  1327. of "xutri", "bigtriangleup": Rune(0x025B3)
  1328. of "utrif", "blacktriangle": Rune(0x025B4)
  1329. of "utri", "triangle": Rune(0x025B5)
  1330. of "rtrif", "blacktriangleright": Rune(0x025B8)
  1331. of "rtri", "triangleright": Rune(0x025B9)
  1332. of "xdtri", "bigtriangledown": Rune(0x025BD)
  1333. of "dtrif", "blacktriangledown": Rune(0x025BE)
  1334. of "dtri", "triangledown": Rune(0x025BF)
  1335. of "ltrif", "blacktriangleleft": Rune(0x025C2)
  1336. of "ltri", "triangleleft": Rune(0x025C3)
  1337. of "loz", "lozenge": Rune(0x025CA)
  1338. of "cir": Rune(0x025CB)
  1339. of "tridot": Rune(0x025EC)
  1340. of "xcirc", "bigcirc": Rune(0x025EF)
  1341. of "ultri": Rune(0x025F8)
  1342. of "urtri": Rune(0x025F9)
  1343. of "lltri": Rune(0x025FA)
  1344. of "EmptySmallSquare": Rune(0x025FB)
  1345. of "FilledSmallSquare": Rune(0x025FC)
  1346. of "starf", "bigstar": Rune(0x02605)
  1347. of "star": Rune(0x02606)
  1348. of "phone": Rune(0x0260E)
  1349. of "female": Rune(0x02640)
  1350. of "male": Rune(0x02642)
  1351. of "spades", "spadesuit": Rune(0x02660)
  1352. of "clubs", "clubsuit": Rune(0x02663)
  1353. of "hearts", "heartsuit": Rune(0x02665)
  1354. of "diams", "diamondsuit": Rune(0x02666)
  1355. of "sung": Rune(0x0266A)
  1356. of "flat": Rune(0x0266D)
  1357. of "natur", "natural": Rune(0x0266E)
  1358. of "sharp": Rune(0x0266F)
  1359. of "check", "checkmark": Rune(0x02713)
  1360. of "cross": Rune(0x02717)
  1361. of "malt", "maltese": Rune(0x02720)
  1362. of "sext": Rune(0x02736)
  1363. of "VerticalSeparator": Rune(0x02758)
  1364. of "lbbrk": Rune(0x02772)
  1365. of "rbbrk": Rune(0x02773)
  1366. of "lobrk", "LeftDoubleBracket": Rune(0x027E6)
  1367. of "robrk", "RightDoubleBracket": Rune(0x027E7)
  1368. of "lang", "LeftAngleBracket", "langle": Rune(0x027E8)
  1369. of "rang", "RightAngleBracket", "rangle": Rune(0x027E9)
  1370. of "Lang": Rune(0x027EA)
  1371. of "Rang": Rune(0x027EB)
  1372. of "loang": Rune(0x027EC)
  1373. of "roang": Rune(0x027ED)
  1374. of "xlarr", "longleftarrow", "LongLeftArrow": Rune(0x027F5)
  1375. of "xrarr", "longrightarrow", "LongRightArrow": Rune(0x027F6)
  1376. of "xharr", "longleftrightarrow",
  1377. "LongLeftRightArrow": Rune(0x027F7)
  1378. of "xlArr", "Longleftarrow", "DoubleLongLeftArrow": Rune(0x027F8)
  1379. of "xrArr", "Longrightarrow", "DoubleLongRightArrow": Rune(0x027F9)
  1380. of "xhArr", "Longleftrightarrow",
  1381. "DoubleLongLeftRightArrow": Rune(0x027FA)
  1382. of "xmap", "longmapsto": Rune(0x027FC)
  1383. of "dzigrarr": Rune(0x027FF)
  1384. of "nvlArr": Rune(0x02902)
  1385. of "nvrArr": Rune(0x02903)
  1386. of "nvHarr": Rune(0x02904)
  1387. of "Map": Rune(0x02905)
  1388. of "lbarr": Rune(0x0290C)
  1389. of "rbarr", "bkarow": Rune(0x0290D)
  1390. of "lBarr": Rune(0x0290E)
  1391. of "rBarr", "dbkarow": Rune(0x0290F)
  1392. of "RBarr", "drbkarow": Rune(0x02910)
  1393. of "DDotrahd": Rune(0x02911)
  1394. of "UpArrowBar": Rune(0x02912)
  1395. of "DownArrowBar": Rune(0x02913)
  1396. of "Rarrtl": Rune(0x02916)
  1397. of "latail": Rune(0x02919)
  1398. of "ratail": Rune(0x0291A)
  1399. of "lAtail": Rune(0x0291B)
  1400. of "rAtail": Rune(0x0291C)
  1401. of "larrfs": Rune(0x0291D)
  1402. of "rarrfs": Rune(0x0291E)
  1403. of "larrbfs": Rune(0x0291F)
  1404. of "rarrbfs": Rune(0x02920)
  1405. of "nwarhk": Rune(0x02923)
  1406. of "nearhk": Rune(0x02924)
  1407. of "searhk", "hksearow": Rune(0x02925)
  1408. of "swarhk", "hkswarow": Rune(0x02926)
  1409. of "nwnear": Rune(0x02927)
  1410. of "nesear", "toea": Rune(0x02928)
  1411. of "seswar", "tosa": Rune(0x02929)
  1412. of "swnwar": Rune(0x0292A)
  1413. of "rarrc": Rune(0x02933)
  1414. of "cudarrr": Rune(0x02935)
  1415. of "ldca": Rune(0x02936)
  1416. of "rdca": Rune(0x02937)
  1417. of "cudarrl": Rune(0x02938)
  1418. of "larrpl": Rune(0x02939)
  1419. of "curarrm": Rune(0x0293C)
  1420. of "cularrp": Rune(0x0293D)
  1421. of "rarrpl": Rune(0x02945)
  1422. of "harrcir": Rune(0x02948)
  1423. of "Uarrocir": Rune(0x02949)
  1424. of "lurdshar": Rune(0x0294A)
  1425. of "ldrushar": Rune(0x0294B)
  1426. of "LeftRightVector": Rune(0x0294E)
  1427. of "RightUpDownVector": Rune(0x0294F)
  1428. of "DownLeftRightVector": Rune(0x02950)
  1429. of "LeftUpDownVector": Rune(0x02951)
  1430. of "LeftVectorBar": Rune(0x02952)
  1431. of "RightVectorBar": Rune(0x02953)
  1432. of "RightUpVectorBar": Rune(0x02954)
  1433. of "RightDownVectorBar": Rune(0x02955)
  1434. of "DownLeftVectorBar": Rune(0x02956)
  1435. of "DownRightVectorBar": Rune(0x02957)
  1436. of "LeftUpVectorBar": Rune(0x02958)
  1437. of "LeftDownVectorBar": Rune(0x02959)
  1438. of "LeftTeeVector": Rune(0x0295A)
  1439. of "RightTeeVector": Rune(0x0295B)
  1440. of "RightUpTeeVector": Rune(0x0295C)
  1441. of "RightDownTeeVector": Rune(0x0295D)
  1442. of "DownLeftTeeVector": Rune(0x0295E)
  1443. of "DownRightTeeVector": Rune(0x0295F)
  1444. of "LeftUpTeeVector": Rune(0x02960)
  1445. of "LeftDownTeeVector": Rune(0x02961)
  1446. of "lHar": Rune(0x02962)
  1447. of "uHar": Rune(0x02963)
  1448. of "rHar": Rune(0x02964)
  1449. of "dHar": Rune(0x02965)
  1450. of "luruhar": Rune(0x02966)
  1451. of "ldrdhar": Rune(0x02967)
  1452. of "ruluhar": Rune(0x02968)
  1453. of "rdldhar": Rune(0x02969)
  1454. of "lharul": Rune(0x0296A)
  1455. of "llhard": Rune(0x0296B)
  1456. of "rharul": Rune(0x0296C)
  1457. of "lrhard": Rune(0x0296D)
  1458. of "udhar", "UpEquilibrium": Rune(0x0296E)
  1459. of "duhar", "ReverseUpEquilibrium": Rune(0x0296F)
  1460. of "RoundImplies": Rune(0x02970)
  1461. of "erarr": Rune(0x02971)
  1462. of "simrarr": Rune(0x02972)
  1463. of "larrsim": Rune(0x02973)
  1464. of "rarrsim": Rune(0x02974)
  1465. of "rarrap": Rune(0x02975)
  1466. of "ltlarr": Rune(0x02976)
  1467. of "gtrarr": Rune(0x02978)
  1468. of "subrarr": Rune(0x02979)
  1469. of "suplarr": Rune(0x0297B)
  1470. of "lfisht": Rune(0x0297C)
  1471. of "rfisht": Rune(0x0297D)
  1472. of "ufisht": Rune(0x0297E)
  1473. of "dfisht": Rune(0x0297F)
  1474. of "lopar": Rune(0x02985)
  1475. of "ropar": Rune(0x02986)
  1476. of "lbrke": Rune(0x0298B)
  1477. of "rbrke": Rune(0x0298C)
  1478. of "lbrkslu": Rune(0x0298D)
  1479. of "rbrksld": Rune(0x0298E)
  1480. of "lbrksld": Rune(0x0298F)
  1481. of "rbrkslu": Rune(0x02990)
  1482. of "langd": Rune(0x02991)
  1483. of "rangd": Rune(0x02992)
  1484. of "lparlt": Rune(0x02993)
  1485. of "rpargt": Rune(0x02994)
  1486. of "gtlPar": Rune(0x02995)
  1487. of "ltrPar": Rune(0x02996)
  1488. of "vzigzag": Rune(0x0299A)
  1489. of "vangrt": Rune(0x0299C)
  1490. of "angrtvbd": Rune(0x0299D)
  1491. of "ange": Rune(0x029A4)
  1492. of "range": Rune(0x029A5)
  1493. of "dwangle": Rune(0x029A6)
  1494. of "uwangle": Rune(0x029A7)
  1495. of "angmsdaa": Rune(0x029A8)
  1496. of "angmsdab": Rune(0x029A9)
  1497. of "angmsdac": Rune(0x029AA)
  1498. of "angmsdad": Rune(0x029AB)
  1499. of "angmsdae": Rune(0x029AC)
  1500. of "angmsdaf": Rune(0x029AD)
  1501. of "angmsdag": Rune(0x029AE)
  1502. of "angmsdah": Rune(0x029AF)
  1503. of "bemptyv": Rune(0x029B0)
  1504. of "demptyv": Rune(0x029B1)
  1505. of "cemptyv": Rune(0x029B2)
  1506. of "raemptyv": Rune(0x029B3)
  1507. of "laemptyv": Rune(0x029B4)
  1508. of "ohbar": Rune(0x029B5)
  1509. of "omid": Rune(0x029B6)
  1510. of "opar": Rune(0x029B7)
  1511. of "operp": Rune(0x029B9)
  1512. of "olcross": Rune(0x029BB)
  1513. of "odsold": Rune(0x029BC)
  1514. of "olcir": Rune(0x029BE)
  1515. of "ofcir": Rune(0x029BF)
  1516. of "olt": Rune(0x029C0)
  1517. of "ogt": Rune(0x029C1)
  1518. of "cirscir": Rune(0x029C2)
  1519. of "cirE": Rune(0x029C3)
  1520. of "solb": Rune(0x029C4)
  1521. of "bsolb": Rune(0x029C5)
  1522. of "boxbox": Rune(0x029C9)
  1523. of "trisb": Rune(0x029CD)
  1524. of "rtriltri": Rune(0x029CE)
  1525. of "LeftTriangleBar": Rune(0x029CF)
  1526. of "RightTriangleBar": Rune(0x029D0)
  1527. of "race": Rune(0x029DA)
  1528. of "iinfin": Rune(0x029DC)
  1529. of "infintie": Rune(0x029DD)
  1530. of "nvinfin": Rune(0x029DE)
  1531. of "eparsl": Rune(0x029E3)
  1532. of "smeparsl": Rune(0x029E4)
  1533. of "eqvparsl": Rune(0x029E5)
  1534. of "lozf", "blacklozenge": Rune(0x029EB)
  1535. of "RuleDelayed": Rune(0x029F4)
  1536. of "dsol": Rune(0x029F6)
  1537. of "xodot", "bigodot": Rune(0x02A00)
  1538. of "xoplus", "bigoplus": Rune(0x02A01)
  1539. of "xotime", "bigotimes": Rune(0x02A02)
  1540. of "xuplus", "biguplus": Rune(0x02A04)
  1541. of "xsqcup", "bigsqcup": Rune(0x02A06)
  1542. of "qint", "iiiint": Rune(0x02A0C)
  1543. of "fpartint": Rune(0x02A0D)
  1544. of "cirfnint": Rune(0x02A10)
  1545. of "awint": Rune(0x02A11)
  1546. of "rppolint": Rune(0x02A12)
  1547. of "scpolint": Rune(0x02A13)
  1548. of "npolint": Rune(0x02A14)
  1549. of "pointint": Rune(0x02A15)
  1550. of "quatint": Rune(0x02A16)
  1551. of "intlarhk": Rune(0x02A17)
  1552. of "pluscir": Rune(0x02A22)
  1553. of "plusacir": Rune(0x02A23)
  1554. of "simplus": Rune(0x02A24)
  1555. of "plusdu": Rune(0x02A25)
  1556. of "plussim": Rune(0x02A26)
  1557. of "plustwo": Rune(0x02A27)
  1558. of "mcomma": Rune(0x02A29)
  1559. of "minusdu": Rune(0x02A2A)
  1560. of "loplus": Rune(0x02A2D)
  1561. of "roplus": Rune(0x02A2E)
  1562. of "Cross": Rune(0x02A2F)
  1563. of "timesd": Rune(0x02A30)
  1564. of "timesbar": Rune(0x02A31)
  1565. of "smashp": Rune(0x02A33)
  1566. of "lotimes": Rune(0x02A34)
  1567. of "rotimes": Rune(0x02A35)
  1568. of "otimesas": Rune(0x02A36)
  1569. of "Otimes": Rune(0x02A37)
  1570. of "odiv": Rune(0x02A38)
  1571. of "triplus": Rune(0x02A39)
  1572. of "triminus": Rune(0x02A3A)
  1573. of "tritime": Rune(0x02A3B)
  1574. of "iprod", "intprod": Rune(0x02A3C)
  1575. of "amalg": Rune(0x02A3F)
  1576. of "capdot": Rune(0x02A40)
  1577. of "ncup": Rune(0x02A42)
  1578. of "ncap": Rune(0x02A43)
  1579. of "capand": Rune(0x02A44)
  1580. of "cupor": Rune(0x02A45)
  1581. of "cupcap": Rune(0x02A46)
  1582. of "capcup": Rune(0x02A47)
  1583. of "cupbrcap": Rune(0x02A48)
  1584. of "capbrcup": Rune(0x02A49)
  1585. of "cupcup": Rune(0x02A4A)
  1586. of "capcap": Rune(0x02A4B)
  1587. of "ccups": Rune(0x02A4C)
  1588. of "ccaps": Rune(0x02A4D)
  1589. of "ccupssm": Rune(0x02A50)
  1590. of "And": Rune(0x02A53)
  1591. of "Or": Rune(0x02A54)
  1592. of "andand": Rune(0x02A55)
  1593. of "oror": Rune(0x02A56)
  1594. of "orslope": Rune(0x02A57)
  1595. of "andslope": Rune(0x02A58)
  1596. of "andv": Rune(0x02A5A)
  1597. of "orv": Rune(0x02A5B)
  1598. of "andd": Rune(0x02A5C)
  1599. of "ord": Rune(0x02A5D)
  1600. of "wedbar": Rune(0x02A5F)
  1601. of "sdote": Rune(0x02A66)
  1602. of "simdot": Rune(0x02A6A)
  1603. of "congdot": Rune(0x02A6D)
  1604. of "easter": Rune(0x02A6E)
  1605. of "apacir": Rune(0x02A6F)
  1606. of "apE": Rune(0x02A70)
  1607. of "eplus": Rune(0x02A71)
  1608. of "pluse": Rune(0x02A72)
  1609. of "Esim": Rune(0x02A73)
  1610. of "Colone": Rune(0x02A74)
  1611. of "Equal": Rune(0x02A75)
  1612. of "eDDot", "ddotseq": Rune(0x02A77)
  1613. of "equivDD": Rune(0x02A78)
  1614. of "ltcir": Rune(0x02A79)
  1615. of "gtcir": Rune(0x02A7A)
  1616. of "ltquest": Rune(0x02A7B)
  1617. of "gtquest": Rune(0x02A7C)
  1618. of "les", "LessSlantEqual", "leqslant": Rune(0x02A7D)
  1619. of "ges", "GreaterSlantEqual", "geqslant": Rune(0x02A7E)
  1620. of "lesdot": Rune(0x02A7F)
  1621. of "gesdot": Rune(0x02A80)
  1622. of "lesdoto": Rune(0x02A81)
  1623. of "gesdoto": Rune(0x02A82)
  1624. of "lesdotor": Rune(0x02A83)
  1625. of "gesdotol": Rune(0x02A84)
  1626. of "lap", "lessapprox": Rune(0x02A85)
  1627. of "gap", "gtrapprox": Rune(0x02A86)
  1628. of "lne", "lneq": Rune(0x02A87)
  1629. of "gne", "gneq": Rune(0x02A88)
  1630. of "lnap", "lnapprox": Rune(0x02A89)
  1631. of "gnap", "gnapprox": Rune(0x02A8A)
  1632. of "lEg", "lesseqqgtr": Rune(0x02A8B)
  1633. of "gEl", "gtreqqless": Rune(0x02A8C)
  1634. of "lsime": Rune(0x02A8D)
  1635. of "gsime": Rune(0x02A8E)
  1636. of "lsimg": Rune(0x02A8F)
  1637. of "gsiml": Rune(0x02A90)
  1638. of "lgE": Rune(0x02A91)
  1639. of "glE": Rune(0x02A92)
  1640. of "lesges": Rune(0x02A93)
  1641. of "gesles": Rune(0x02A94)
  1642. of "els", "eqslantless": Rune(0x02A95)
  1643. of "egs", "eqslantgtr": Rune(0x02A96)
  1644. of "elsdot": Rune(0x02A97)
  1645. of "egsdot": Rune(0x02A98)
  1646. of "el": Rune(0x02A99)
  1647. of "eg": Rune(0x02A9A)
  1648. of "siml": Rune(0x02A9D)
  1649. of "simg": Rune(0x02A9E)
  1650. of "simlE": Rune(0x02A9F)
  1651. of "simgE": Rune(0x02AA0)
  1652. of "LessLess": Rune(0x02AA1)
  1653. of "GreaterGreater": Rune(0x02AA2)
  1654. of "glj": Rune(0x02AA4)
  1655. of "gla": Rune(0x02AA5)
  1656. of "ltcc": Rune(0x02AA6)
  1657. of "gtcc": Rune(0x02AA7)
  1658. of "lescc": Rune(0x02AA8)
  1659. of "gescc": Rune(0x02AA9)
  1660. of "smt": Rune(0x02AAA)
  1661. of "lat": Rune(0x02AAB)
  1662. of "smte": Rune(0x02AAC)
  1663. of "late": Rune(0x02AAD)
  1664. of "bumpE": Rune(0x02AAE)
  1665. of "pre", "preceq", "PrecedesEqual": Rune(0x02AAF)
  1666. of "sce", "succeq", "SucceedsEqual": Rune(0x02AB0)
  1667. of "prE": Rune(0x02AB3)
  1668. of "scE": Rune(0x02AB4)
  1669. of "prnE", "precneqq": Rune(0x02AB5)
  1670. of "scnE", "succneqq": Rune(0x02AB6)
  1671. of "prap", "precapprox": Rune(0x02AB7)
  1672. of "scap", "succapprox": Rune(0x02AB8)
  1673. of "prnap", "precnapprox": Rune(0x02AB9)
  1674. of "scnap", "succnapprox": Rune(0x02ABA)
  1675. of "Pr": Rune(0x02ABB)
  1676. of "Sc": Rune(0x02ABC)
  1677. of "subdot": Rune(0x02ABD)
  1678. of "supdot": Rune(0x02ABE)
  1679. of "subplus": Rune(0x02ABF)
  1680. of "supplus": Rune(0x02AC0)
  1681. of "submult": Rune(0x02AC1)
  1682. of "supmult": Rune(0x02AC2)
  1683. of "subedot": Rune(0x02AC3)
  1684. of "supedot": Rune(0x02AC4)
  1685. of "subE", "subseteqq": Rune(0x02AC5)
  1686. of "supE", "supseteqq": Rune(0x02AC6)
  1687. of "subsim": Rune(0x02AC7)
  1688. of "supsim": Rune(0x02AC8)
  1689. of "subnE", "subsetneqq": Rune(0x02ACB)
  1690. of "supnE", "supsetneqq": Rune(0x02ACC)
  1691. of "csub": Rune(0x02ACF)
  1692. of "csup": Rune(0x02AD0)
  1693. of "csube": Rune(0x02AD1)
  1694. of "csupe": Rune(0x02AD2)
  1695. of "subsup": Rune(0x02AD3)
  1696. of "supsub": Rune(0x02AD4)
  1697. of "subsub": Rune(0x02AD5)
  1698. of "supsup": Rune(0x02AD6)
  1699. of "suphsub": Rune(0x02AD7)
  1700. of "supdsub": Rune(0x02AD8)
  1701. of "forkv": Rune(0x02AD9)
  1702. of "topfork": Rune(0x02ADA)
  1703. of "mlcp": Rune(0x02ADB)
  1704. of "Dashv", "DoubleLeftTee": Rune(0x02AE4)
  1705. of "Vdashl": Rune(0x02AE6)
  1706. of "Barv": Rune(0x02AE7)
  1707. of "vBar": Rune(0x02AE8)
  1708. of "vBarv": Rune(0x02AE9)
  1709. of "Vbar": Rune(0x02AEB)
  1710. of "Not": Rune(0x02AEC)
  1711. of "bNot": Rune(0x02AED)
  1712. of "rnmid": Rune(0x02AEE)
  1713. of "cirmid": Rune(0x02AEF)
  1714. of "midcir": Rune(0x02AF0)
  1715. of "topcir": Rune(0x02AF1)
  1716. of "nhpar": Rune(0x02AF2)
  1717. of "parsim": Rune(0x02AF3)
  1718. of "parsl": Rune(0x02AFD)
  1719. of "fflig": Rune(0x0FB00)
  1720. of "filig": Rune(0x0FB01)
  1721. of "fllig": Rune(0x0FB02)
  1722. of "ffilig": Rune(0x0FB03)
  1723. of "ffllig": Rune(0x0FB04)
  1724. of "Ascr": Rune(0x1D49C)
  1725. of "Cscr": Rune(0x1D49E)
  1726. of "Dscr": Rune(0x1D49F)
  1727. of "Gscr": Rune(0x1D4A2)
  1728. of "Jscr": Rune(0x1D4A5)
  1729. of "Kscr": Rune(0x1D4A6)
  1730. of "Nscr": Rune(0x1D4A9)
  1731. of "Oscr": Rune(0x1D4AA)
  1732. of "Pscr": Rune(0x1D4AB)
  1733. of "Qscr": Rune(0x1D4AC)
  1734. of "Sscr": Rune(0x1D4AE)
  1735. of "Tscr": Rune(0x1D4AF)
  1736. of "Uscr": Rune(0x1D4B0)
  1737. of "Vscr": Rune(0x1D4B1)
  1738. of "Wscr": Rune(0x1D4B2)
  1739. of "Xscr": Rune(0x1D4B3)
  1740. of "Yscr": Rune(0x1D4B4)
  1741. of "Zscr": Rune(0x1D4B5)
  1742. of "ascr": Rune(0x1D4B6)
  1743. of "bscr": Rune(0x1D4B7)
  1744. of "cscr": Rune(0x1D4B8)
  1745. of "dscr": Rune(0x1D4B9)
  1746. of "fscr": Rune(0x1D4BB)
  1747. of "hscr": Rune(0x1D4BD)
  1748. of "iscr": Rune(0x1D4BE)
  1749. of "jscr": Rune(0x1D4BF)
  1750. of "kscr": Rune(0x1D4C0)
  1751. of "lscr": Rune(0x1D4C1)
  1752. of "mscr": Rune(0x1D4C2)
  1753. of "nscr": Rune(0x1D4C3)
  1754. of "pscr": Rune(0x1D4C5)
  1755. of "qscr": Rune(0x1D4C6)
  1756. of "rscr": Rune(0x1D4C7)
  1757. of "sscr": Rune(0x1D4C8)
  1758. of "tscr": Rune(0x1D4C9)
  1759. of "uscr": Rune(0x1D4CA)
  1760. of "vscr": Rune(0x1D4CB)
  1761. of "wscr": Rune(0x1D4CC)
  1762. of "xscr": Rune(0x1D4CD)
  1763. of "yscr": Rune(0x1D4CE)
  1764. of "zscr": Rune(0x1D4CF)
  1765. of "Afr": Rune(0x1D504)
  1766. of "Bfr": Rune(0x1D505)
  1767. of "Dfr": Rune(0x1D507)
  1768. of "Efr": Rune(0x1D508)
  1769. of "Ffr": Rune(0x1D509)
  1770. of "Gfr": Rune(0x1D50A)
  1771. of "Jfr": Rune(0x1D50D)
  1772. of "Kfr": Rune(0x1D50E)
  1773. of "Lfr": Rune(0x1D50F)
  1774. of "Mfr": Rune(0x1D510)
  1775. of "Nfr": Rune(0x1D511)
  1776. of "Ofr": Rune(0x1D512)
  1777. of "Pfr": Rune(0x1D513)
  1778. of "Qfr": Rune(0x1D514)
  1779. of "Sfr": Rune(0x1D516)
  1780. of "Tfr": Rune(0x1D517)
  1781. of "Ufr": Rune(0x1D518)
  1782. of "Vfr": Rune(0x1D519)
  1783. of "Wfr": Rune(0x1D51A)
  1784. of "Xfr": Rune(0x1D51B)
  1785. of "Yfr": Rune(0x1D51C)
  1786. of "afr": Rune(0x1D51E)
  1787. of "bfr": Rune(0x1D51F)
  1788. of "cfr": Rune(0x1D520)
  1789. of "dfr": Rune(0x1D521)
  1790. of "efr": Rune(0x1D522)
  1791. of "ffr": Rune(0x1D523)
  1792. of "gfr": Rune(0x1D524)
  1793. of "hfr": Rune(0x1D525)
  1794. of "ifr": Rune(0x1D526)
  1795. of "jfr": Rune(0x1D527)
  1796. of "kfr": Rune(0x1D528)
  1797. of "lfr": Rune(0x1D529)
  1798. of "mfr": Rune(0x1D52A)
  1799. of "nfr": Rune(0x1D52B)
  1800. of "ofr": Rune(0x1D52C)
  1801. of "pfr": Rune(0x1D52D)
  1802. of "qfr": Rune(0x1D52E)
  1803. of "rfr": Rune(0x1D52F)
  1804. of "sfr": Rune(0x1D530)
  1805. of "tfr": Rune(0x1D531)
  1806. of "ufr": Rune(0x1D532)
  1807. of "vfr": Rune(0x1D533)
  1808. of "wfr": Rune(0x1D534)
  1809. of "xfr": Rune(0x1D535)
  1810. of "yfr": Rune(0x1D536)
  1811. of "zfr": Rune(0x1D537)
  1812. of "Aopf": Rune(0x1D538)
  1813. of "Bopf": Rune(0x1D539)
  1814. of "Dopf": Rune(0x1D53B)
  1815. of "Eopf": Rune(0x1D53C)
  1816. of "Fopf": Rune(0x1D53D)
  1817. of "Gopf": Rune(0x1D53E)
  1818. of "Iopf": Rune(0x1D540)
  1819. of "Jopf": Rune(0x1D541)
  1820. of "Kopf": Rune(0x1D542)
  1821. of "Lopf": Rune(0x1D543)
  1822. of "Mopf": Rune(0x1D544)
  1823. of "Oopf": Rune(0x1D546)
  1824. of "Sopf": Rune(0x1D54A)
  1825. of "Topf": Rune(0x1D54B)
  1826. of "Uopf": Rune(0x1D54C)
  1827. of "Vopf": Rune(0x1D54D)
  1828. of "Wopf": Rune(0x1D54E)
  1829. of "Xopf": Rune(0x1D54F)
  1830. of "Yopf": Rune(0x1D550)
  1831. of "aopf": Rune(0x1D552)
  1832. of "bopf": Rune(0x1D553)
  1833. of "copf": Rune(0x1D554)
  1834. of "dopf": Rune(0x1D555)
  1835. of "eopf": Rune(0x1D556)
  1836. of "fopf": Rune(0x1D557)
  1837. of "gopf": Rune(0x1D558)
  1838. of "hopf": Rune(0x1D559)
  1839. of "iopf": Rune(0x1D55A)
  1840. of "jopf": Rune(0x1D55B)
  1841. of "kopf": Rune(0x1D55C)
  1842. of "lopf": Rune(0x1D55D)
  1843. of "mopf": Rune(0x1D55E)
  1844. of "nopf": Rune(0x1D55F)
  1845. of "oopf": Rune(0x1D560)
  1846. of "popf": Rune(0x1D561)
  1847. of "qopf": Rune(0x1D562)
  1848. of "ropf": Rune(0x1D563)
  1849. of "sopf": Rune(0x1D564)
  1850. of "topf": Rune(0x1D565)
  1851. of "uopf": Rune(0x1D566)
  1852. of "vopf": Rune(0x1D567)
  1853. of "wopf": Rune(0x1D568)
  1854. of "xopf": Rune(0x1D569)
  1855. of "yopf": Rune(0x1D56A)
  1856. of "zopf": Rune(0x1D56B)
  1857. else: Rune(0)
  1858. proc entityToUtf8*(entity: string): string =
  1859. ## Converts an HTML entity name like `&Uuml;` or values like `&#220;`
  1860. ## or `&#x000DC;` to its UTF-8 equivalent.
  1861. ## "" is returned if the entity name is unknown. The HTML parser
  1862. ## already converts entities to UTF-8.
  1863. runnableExamples:
  1864. const sigma = "Σ"
  1865. doAssert entityToUtf8("") == ""
  1866. doAssert entityToUtf8("a") == ""
  1867. doAssert entityToUtf8("gt") == ">"
  1868. doAssert entityToUtf8("Uuml") == "Ü"
  1869. doAssert entityToUtf8("quest") == "?"
  1870. doAssert entityToUtf8("#63") == "?"
  1871. doAssert entityToUtf8("Sigma") == sigma
  1872. doAssert entityToUtf8("#931") == sigma
  1873. doAssert entityToUtf8("#0931") == sigma
  1874. doAssert entityToUtf8("#x3A3") == sigma
  1875. doAssert entityToUtf8("#x03A3") == sigma
  1876. doAssert entityToUtf8("#x3a3") == sigma
  1877. doAssert entityToUtf8("#X3a3") == sigma
  1878. let rune = entityToRune(entity)
  1879. if rune.ord <= 0: result = ""
  1880. else: result = toUTF8(rune)
  1881. proc addNode(father, son: XmlNode) =
  1882. if son != nil: add(father, son)
  1883. proc parse(x: var XmlParser, errors: var seq[string]): XmlNode {.gcsafe.}
  1884. proc expected(x: var XmlParser, n: XmlNode): string =
  1885. result = errorMsg(x, "</" & n.tag & "> expected")
  1886. template elemName(x: untyped): untyped = rawData(x)
  1887. template adderr(x: untyped) =
  1888. errors.add(x)
  1889. proc untilElementEnd(x: var XmlParser, result: XmlNode,
  1890. errors: var seq[string]) =
  1891. # we parsed e.g. `<br>` and don't really expect a `</br>`:
  1892. if result.htmlTag in SingleTags:
  1893. if x.kind != xmlElementEnd or cmpIgnoreCase(x.elemName, result.tag) != 0:
  1894. return
  1895. while true:
  1896. case x.kind
  1897. of xmlElementStart, xmlElementOpen:
  1898. case result.htmlTag
  1899. of tagP, tagInput, tagOption:
  1900. # some tags are common to have no `</end>`, like `<li>` but
  1901. # allow `<p>` in `<dd>`, `<dt>` and `<li>` in next case
  1902. if htmlTag(x.elemName) in {tagLi, tagP, tagDt, tagDd, tagInput,
  1903. tagOption}:
  1904. adderr(expected(x, result))
  1905. break
  1906. of tagDd, tagDt, tagLi:
  1907. if htmlTag(x.elemName) in {tagLi, tagDt, tagDd, tagInput,
  1908. tagOption}:
  1909. adderr(expected(x, result))
  1910. break
  1911. of tagTd, tagTh:
  1912. if htmlTag(x.elemName) in {tagTr, tagTd, tagTh, tagTfoot, tagThead}:
  1913. adderr(expected(x, result))
  1914. break
  1915. of tagTr:
  1916. if htmlTag(x.elemName) == tagTr:
  1917. adderr(expected(x, result))
  1918. break
  1919. of tagOptgroup:
  1920. if htmlTag(x.elemName) in {tagOption, tagOptgroup}:
  1921. adderr(expected(x, result))
  1922. break
  1923. else: discard
  1924. result.addNode(parse(x, errors))
  1925. of xmlElementEnd:
  1926. if cmpIgnoreCase(x.elemName, result.tag) != 0:
  1927. #echo "5; expected: ", result.htmltag, " ", x.elemName
  1928. adderr(expected(x, result))
  1929. # this seems to do better match error corrections in browsers:
  1930. while x.kind in {xmlElementEnd, xmlWhitespace}:
  1931. if x.kind == xmlElementEnd and cmpIgnoreCase(x.elemName,
  1932. result.tag) == 0:
  1933. break
  1934. next(x)
  1935. next(x)
  1936. break
  1937. of xmlEof:
  1938. adderr(expected(x, result))
  1939. break
  1940. else:
  1941. result.addNode(parse(x, errors))
  1942. proc parse(x: var XmlParser, errors: var seq[string]): XmlNode =
  1943. case x.kind
  1944. of xmlComment:
  1945. result = newComment(x.rawData)
  1946. next(x)
  1947. of xmlCharData, xmlWhitespace:
  1948. result = newText(x.rawData)
  1949. next(x)
  1950. of xmlPI, xmlSpecial:
  1951. # we just ignore processing instructions for now
  1952. next(x)
  1953. of xmlError:
  1954. adderr(errorMsg(x))
  1955. next(x)
  1956. of xmlElementStart:
  1957. result = newElement(toLowerAscii(x.elemName))
  1958. next(x)
  1959. untilElementEnd(x, result, errors)
  1960. of xmlElementEnd:
  1961. adderr(errorMsg(x, "unexpected ending tag: " & x.elemName))
  1962. of xmlElementOpen:
  1963. result = newElement(toLowerAscii(x.elemName))
  1964. next(x)
  1965. result.attrs = newStringTable()
  1966. while true:
  1967. case x.kind
  1968. of xmlAttribute:
  1969. result.attrs[x.rawData] = x.rawData2
  1970. next(x)
  1971. of xmlElementClose:
  1972. next(x)
  1973. break
  1974. of xmlError:
  1975. adderr(errorMsg(x))
  1976. next(x)
  1977. break
  1978. else:
  1979. adderr(errorMsg(x, "'>' expected"))
  1980. next(x)
  1981. break
  1982. untilElementEnd(x, result, errors)
  1983. of xmlAttribute, xmlElementClose:
  1984. adderr(errorMsg(x, "<some_tag> expected"))
  1985. next(x)
  1986. of xmlCData:
  1987. result = newCData(x.rawData)
  1988. next(x)
  1989. of xmlEntity:
  1990. var u = entityToUtf8(x.rawData)
  1991. if u.len != 0: result = newText(u)
  1992. next(x)
  1993. of xmlEof: discard
  1994. proc parseHtml*(s: Stream, filename: string,
  1995. errors: var seq[string]): XmlNode =
  1996. ## Parses the XML from stream `s` and returns a `XmlNode`. Every
  1997. ## occurred parsing error is added to the `errors` sequence.
  1998. var x: XmlParser
  1999. open(x, s, filename, {reportComments, reportWhitespace, allowUnquotedAttribs,
  2000. allowEmptyAttribs})
  2001. next(x)
  2002. # skip the DOCTYPE:
  2003. if x.kind == xmlSpecial: next(x)
  2004. result = newElement("document")
  2005. result.addNode(parse(x, errors))
  2006. #if x.kind != xmlEof:
  2007. # adderr(errorMsg(x, "EOF expected"))
  2008. while x.kind != xmlEof:
  2009. var oldPos = x.bufpos # little hack to see if we made any progress
  2010. result.addNode(parse(x, errors))
  2011. if x.bufpos == oldPos:
  2012. # force progress!
  2013. next(x)
  2014. close(x)
  2015. if result.len == 1:
  2016. result = result[0]
  2017. proc parseHtml*(s: Stream): XmlNode =
  2018. ## Parses the HTML from stream `s` and returns a `XmlNode`. All parsing
  2019. ## errors are ignored.
  2020. var errors: seq[string] = @[]
  2021. result = parseHtml(s, "unknown_html_doc", errors)
  2022. proc parseHtml*(html: string): XmlNode =
  2023. ## Parses the HTML from string `html` and returns a `XmlNode`. All parsing
  2024. ## errors are ignored.
  2025. parseHtml(newStringStream(html))
  2026. proc loadHtml*(path: string, errors: var seq[string]): XmlNode =
  2027. ## Loads and parses HTML from file specified by `path`, and returns
  2028. ## a `XmlNode`. Every occurred parsing error is added to
  2029. ## the `errors` sequence.
  2030. var s = newFileStream(path, fmRead)
  2031. if s == nil: raise newException(IOError, "Unable to read file: " & path)
  2032. result = parseHtml(s, path, errors)
  2033. proc loadHtml*(path: string): XmlNode =
  2034. ## Loads and parses HTML from file specified by `path`, and returns
  2035. ## a `XmlNode`. All parsing errors are ignored.
  2036. var errors: seq[string] = @[]
  2037. result = loadHtml(path, errors)
  2038. when not defined(testing) and isMainModule:
  2039. import std/os
  2040. var errors: seq[string] = @[]
  2041. var x = loadHtml(paramStr(1), errors)
  2042. for e in items(errors): echo e
  2043. var f: File
  2044. if open(f, "test.txt", fmWrite):
  2045. f.write($x)
  2046. f.close()
  2047. else:
  2048. quit("cannot write test.txt")