2
0

compat.py 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228
  1. # coding: utf-8
  2. from __future__ import unicode_literals
  3. import base64
  4. import binascii
  5. import collections
  6. import ctypes
  7. import email
  8. import getpass
  9. import io
  10. import itertools
  11. import optparse
  12. import os
  13. import platform
  14. import re
  15. import shlex
  16. import shutil
  17. import socket
  18. import struct
  19. import subprocess
  20. import sys
  21. import xml.etree.ElementTree
  22. # naming convention
  23. # 'compat_' + Python3_name.replace('.', '_')
  24. # other aliases exist for convenience and/or legacy
  25. # deal with critical unicode/str things first
  26. try:
  27. # Python 2
  28. compat_str, compat_basestring, compat_chr = (
  29. unicode, basestring, unichr
  30. )
  31. from .casefold import casefold as compat_casefold
  32. except NameError:
  33. compat_str, compat_basestring, compat_chr = (
  34. str, str, chr
  35. )
  36. compat_casefold = lambda s: s.casefold()
  37. try:
  38. import collections.abc as compat_collections_abc
  39. except ImportError:
  40. import collections as compat_collections_abc
  41. try:
  42. import urllib.request as compat_urllib_request
  43. except ImportError: # Python 2
  44. import urllib2 as compat_urllib_request
  45. try:
  46. import urllib.error as compat_urllib_error
  47. except ImportError: # Python 2
  48. import urllib2 as compat_urllib_error
  49. try:
  50. import urllib.parse as compat_urllib_parse
  51. except ImportError: # Python 2
  52. import urllib as compat_urllib_parse
  53. import urlparse as _urlparse
  54. for a in dir(_urlparse):
  55. if not hasattr(compat_urllib_parse, a):
  56. setattr(compat_urllib_parse, a, getattr(_urlparse, a))
  57. del _urlparse
  58. # unfavoured aliases
  59. compat_urlparse = compat_urllib_parse
  60. compat_urllib_parse_urlparse = compat_urllib_parse.urlparse
  61. try:
  62. import urllib.response as compat_urllib_response
  63. except ImportError: # Python 2
  64. import urllib as compat_urllib_response
  65. try:
  66. import http.cookiejar as compat_cookiejar
  67. except ImportError: # Python 2
  68. import cookielib as compat_cookiejar
  69. compat_http_cookiejar = compat_cookiejar
  70. if sys.version_info[0] == 2:
  71. class compat_cookiejar_Cookie(compat_cookiejar.Cookie):
  72. def __init__(self, version, name, value, *args, **kwargs):
  73. if isinstance(name, compat_str):
  74. name = name.encode()
  75. if isinstance(value, compat_str):
  76. value = value.encode()
  77. compat_cookiejar.Cookie.__init__(self, version, name, value, *args, **kwargs)
  78. else:
  79. compat_cookiejar_Cookie = compat_cookiejar.Cookie
  80. compat_http_cookiejar_Cookie = compat_cookiejar_Cookie
  81. try:
  82. import http.cookies as compat_cookies
  83. except ImportError: # Python 2
  84. import Cookie as compat_cookies
  85. compat_http_cookies = compat_cookies
  86. if sys.version_info[0] == 2:
  87. class compat_cookies_SimpleCookie(compat_cookies.SimpleCookie):
  88. def load(self, rawdata):
  89. if isinstance(rawdata, compat_str):
  90. rawdata = str(rawdata)
  91. return super(compat_cookies_SimpleCookie, self).load(rawdata)
  92. else:
  93. compat_cookies_SimpleCookie = compat_cookies.SimpleCookie
  94. compat_http_cookies_SimpleCookie = compat_cookies_SimpleCookie
  95. try:
  96. import html.entities as compat_html_entities
  97. except ImportError: # Python 2
  98. import htmlentitydefs as compat_html_entities
  99. try: # Python >= 3.3
  100. compat_html_entities_html5 = compat_html_entities.html5
  101. except AttributeError:
  102. # Copied from CPython 3.5.1 html/entities.py
  103. compat_html_entities_html5 = {
  104. 'Aacute': '\xc1',
  105. 'aacute': '\xe1',
  106. 'Aacute;': '\xc1',
  107. 'aacute;': '\xe1',
  108. 'Abreve;': '\u0102',
  109. 'abreve;': '\u0103',
  110. 'ac;': '\u223e',
  111. 'acd;': '\u223f',
  112. 'acE;': '\u223e\u0333',
  113. 'Acirc': '\xc2',
  114. 'acirc': '\xe2',
  115. 'Acirc;': '\xc2',
  116. 'acirc;': '\xe2',
  117. 'acute': '\xb4',
  118. 'acute;': '\xb4',
  119. 'Acy;': '\u0410',
  120. 'acy;': '\u0430',
  121. 'AElig': '\xc6',
  122. 'aelig': '\xe6',
  123. 'AElig;': '\xc6',
  124. 'aelig;': '\xe6',
  125. 'af;': '\u2061',
  126. 'Afr;': '\U0001d504',
  127. 'afr;': '\U0001d51e',
  128. 'Agrave': '\xc0',
  129. 'agrave': '\xe0',
  130. 'Agrave;': '\xc0',
  131. 'agrave;': '\xe0',
  132. 'alefsym;': '\u2135',
  133. 'aleph;': '\u2135',
  134. 'Alpha;': '\u0391',
  135. 'alpha;': '\u03b1',
  136. 'Amacr;': '\u0100',
  137. 'amacr;': '\u0101',
  138. 'amalg;': '\u2a3f',
  139. 'AMP': '&',
  140. 'amp': '&',
  141. 'AMP;': '&',
  142. 'amp;': '&',
  143. 'And;': '\u2a53',
  144. 'and;': '\u2227',
  145. 'andand;': '\u2a55',
  146. 'andd;': '\u2a5c',
  147. 'andslope;': '\u2a58',
  148. 'andv;': '\u2a5a',
  149. 'ang;': '\u2220',
  150. 'ange;': '\u29a4',
  151. 'angle;': '\u2220',
  152. 'angmsd;': '\u2221',
  153. 'angmsdaa;': '\u29a8',
  154. 'angmsdab;': '\u29a9',
  155. 'angmsdac;': '\u29aa',
  156. 'angmsdad;': '\u29ab',
  157. 'angmsdae;': '\u29ac',
  158. 'angmsdaf;': '\u29ad',
  159. 'angmsdag;': '\u29ae',
  160. 'angmsdah;': '\u29af',
  161. 'angrt;': '\u221f',
  162. 'angrtvb;': '\u22be',
  163. 'angrtvbd;': '\u299d',
  164. 'angsph;': '\u2222',
  165. 'angst;': '\xc5',
  166. 'angzarr;': '\u237c',
  167. 'Aogon;': '\u0104',
  168. 'aogon;': '\u0105',
  169. 'Aopf;': '\U0001d538',
  170. 'aopf;': '\U0001d552',
  171. 'ap;': '\u2248',
  172. 'apacir;': '\u2a6f',
  173. 'apE;': '\u2a70',
  174. 'ape;': '\u224a',
  175. 'apid;': '\u224b',
  176. 'apos;': "'",
  177. 'ApplyFunction;': '\u2061',
  178. 'approx;': '\u2248',
  179. 'approxeq;': '\u224a',
  180. 'Aring': '\xc5',
  181. 'aring': '\xe5',
  182. 'Aring;': '\xc5',
  183. 'aring;': '\xe5',
  184. 'Ascr;': '\U0001d49c',
  185. 'ascr;': '\U0001d4b6',
  186. 'Assign;': '\u2254',
  187. 'ast;': '*',
  188. 'asymp;': '\u2248',
  189. 'asympeq;': '\u224d',
  190. 'Atilde': '\xc3',
  191. 'atilde': '\xe3',
  192. 'Atilde;': '\xc3',
  193. 'atilde;': '\xe3',
  194. 'Auml': '\xc4',
  195. 'auml': '\xe4',
  196. 'Auml;': '\xc4',
  197. 'auml;': '\xe4',
  198. 'awconint;': '\u2233',
  199. 'awint;': '\u2a11',
  200. 'backcong;': '\u224c',
  201. 'backepsilon;': '\u03f6',
  202. 'backprime;': '\u2035',
  203. 'backsim;': '\u223d',
  204. 'backsimeq;': '\u22cd',
  205. 'Backslash;': '\u2216',
  206. 'Barv;': '\u2ae7',
  207. 'barvee;': '\u22bd',
  208. 'Barwed;': '\u2306',
  209. 'barwed;': '\u2305',
  210. 'barwedge;': '\u2305',
  211. 'bbrk;': '\u23b5',
  212. 'bbrktbrk;': '\u23b6',
  213. 'bcong;': '\u224c',
  214. 'Bcy;': '\u0411',
  215. 'bcy;': '\u0431',
  216. 'bdquo;': '\u201e',
  217. 'becaus;': '\u2235',
  218. 'Because;': '\u2235',
  219. 'because;': '\u2235',
  220. 'bemptyv;': '\u29b0',
  221. 'bepsi;': '\u03f6',
  222. 'bernou;': '\u212c',
  223. 'Bernoullis;': '\u212c',
  224. 'Beta;': '\u0392',
  225. 'beta;': '\u03b2',
  226. 'beth;': '\u2136',
  227. 'between;': '\u226c',
  228. 'Bfr;': '\U0001d505',
  229. 'bfr;': '\U0001d51f',
  230. 'bigcap;': '\u22c2',
  231. 'bigcirc;': '\u25ef',
  232. 'bigcup;': '\u22c3',
  233. 'bigodot;': '\u2a00',
  234. 'bigoplus;': '\u2a01',
  235. 'bigotimes;': '\u2a02',
  236. 'bigsqcup;': '\u2a06',
  237. 'bigstar;': '\u2605',
  238. 'bigtriangledown;': '\u25bd',
  239. 'bigtriangleup;': '\u25b3',
  240. 'biguplus;': '\u2a04',
  241. 'bigvee;': '\u22c1',
  242. 'bigwedge;': '\u22c0',
  243. 'bkarow;': '\u290d',
  244. 'blacklozenge;': '\u29eb',
  245. 'blacksquare;': '\u25aa',
  246. 'blacktriangle;': '\u25b4',
  247. 'blacktriangledown;': '\u25be',
  248. 'blacktriangleleft;': '\u25c2',
  249. 'blacktriangleright;': '\u25b8',
  250. 'blank;': '\u2423',
  251. 'blk12;': '\u2592',
  252. 'blk14;': '\u2591',
  253. 'blk34;': '\u2593',
  254. 'block;': '\u2588',
  255. 'bne;': '=\u20e5',
  256. 'bnequiv;': '\u2261\u20e5',
  257. 'bNot;': '\u2aed',
  258. 'bnot;': '\u2310',
  259. 'Bopf;': '\U0001d539',
  260. 'bopf;': '\U0001d553',
  261. 'bot;': '\u22a5',
  262. 'bottom;': '\u22a5',
  263. 'bowtie;': '\u22c8',
  264. 'boxbox;': '\u29c9',
  265. 'boxDL;': '\u2557',
  266. 'boxDl;': '\u2556',
  267. 'boxdL;': '\u2555',
  268. 'boxdl;': '\u2510',
  269. 'boxDR;': '\u2554',
  270. 'boxDr;': '\u2553',
  271. 'boxdR;': '\u2552',
  272. 'boxdr;': '\u250c',
  273. 'boxH;': '\u2550',
  274. 'boxh;': '\u2500',
  275. 'boxHD;': '\u2566',
  276. 'boxHd;': '\u2564',
  277. 'boxhD;': '\u2565',
  278. 'boxhd;': '\u252c',
  279. 'boxHU;': '\u2569',
  280. 'boxHu;': '\u2567',
  281. 'boxhU;': '\u2568',
  282. 'boxhu;': '\u2534',
  283. 'boxminus;': '\u229f',
  284. 'boxplus;': '\u229e',
  285. 'boxtimes;': '\u22a0',
  286. 'boxUL;': '\u255d',
  287. 'boxUl;': '\u255c',
  288. 'boxuL;': '\u255b',
  289. 'boxul;': '\u2518',
  290. 'boxUR;': '\u255a',
  291. 'boxUr;': '\u2559',
  292. 'boxuR;': '\u2558',
  293. 'boxur;': '\u2514',
  294. 'boxV;': '\u2551',
  295. 'boxv;': '\u2502',
  296. 'boxVH;': '\u256c',
  297. 'boxVh;': '\u256b',
  298. 'boxvH;': '\u256a',
  299. 'boxvh;': '\u253c',
  300. 'boxVL;': '\u2563',
  301. 'boxVl;': '\u2562',
  302. 'boxvL;': '\u2561',
  303. 'boxvl;': '\u2524',
  304. 'boxVR;': '\u2560',
  305. 'boxVr;': '\u255f',
  306. 'boxvR;': '\u255e',
  307. 'boxvr;': '\u251c',
  308. 'bprime;': '\u2035',
  309. 'Breve;': '\u02d8',
  310. 'breve;': '\u02d8',
  311. 'brvbar': '\xa6',
  312. 'brvbar;': '\xa6',
  313. 'Bscr;': '\u212c',
  314. 'bscr;': '\U0001d4b7',
  315. 'bsemi;': '\u204f',
  316. 'bsim;': '\u223d',
  317. 'bsime;': '\u22cd',
  318. 'bsol;': '\\',
  319. 'bsolb;': '\u29c5',
  320. 'bsolhsub;': '\u27c8',
  321. 'bull;': '\u2022',
  322. 'bullet;': '\u2022',
  323. 'bump;': '\u224e',
  324. 'bumpE;': '\u2aae',
  325. 'bumpe;': '\u224f',
  326. 'Bumpeq;': '\u224e',
  327. 'bumpeq;': '\u224f',
  328. 'Cacute;': '\u0106',
  329. 'cacute;': '\u0107',
  330. 'Cap;': '\u22d2',
  331. 'cap;': '\u2229',
  332. 'capand;': '\u2a44',
  333. 'capbrcup;': '\u2a49',
  334. 'capcap;': '\u2a4b',
  335. 'capcup;': '\u2a47',
  336. 'capdot;': '\u2a40',
  337. 'CapitalDifferentialD;': '\u2145',
  338. 'caps;': '\u2229\ufe00',
  339. 'caret;': '\u2041',
  340. 'caron;': '\u02c7',
  341. 'Cayleys;': '\u212d',
  342. 'ccaps;': '\u2a4d',
  343. 'Ccaron;': '\u010c',
  344. 'ccaron;': '\u010d',
  345. 'Ccedil': '\xc7',
  346. 'ccedil': '\xe7',
  347. 'Ccedil;': '\xc7',
  348. 'ccedil;': '\xe7',
  349. 'Ccirc;': '\u0108',
  350. 'ccirc;': '\u0109',
  351. 'Cconint;': '\u2230',
  352. 'ccups;': '\u2a4c',
  353. 'ccupssm;': '\u2a50',
  354. 'Cdot;': '\u010a',
  355. 'cdot;': '\u010b',
  356. 'cedil': '\xb8',
  357. 'cedil;': '\xb8',
  358. 'Cedilla;': '\xb8',
  359. 'cemptyv;': '\u29b2',
  360. 'cent': '\xa2',
  361. 'cent;': '\xa2',
  362. 'CenterDot;': '\xb7',
  363. 'centerdot;': '\xb7',
  364. 'Cfr;': '\u212d',
  365. 'cfr;': '\U0001d520',
  366. 'CHcy;': '\u0427',
  367. 'chcy;': '\u0447',
  368. 'check;': '\u2713',
  369. 'checkmark;': '\u2713',
  370. 'Chi;': '\u03a7',
  371. 'chi;': '\u03c7',
  372. 'cir;': '\u25cb',
  373. 'circ;': '\u02c6',
  374. 'circeq;': '\u2257',
  375. 'circlearrowleft;': '\u21ba',
  376. 'circlearrowright;': '\u21bb',
  377. 'circledast;': '\u229b',
  378. 'circledcirc;': '\u229a',
  379. 'circleddash;': '\u229d',
  380. 'CircleDot;': '\u2299',
  381. 'circledR;': '\xae',
  382. 'circledS;': '\u24c8',
  383. 'CircleMinus;': '\u2296',
  384. 'CirclePlus;': '\u2295',
  385. 'CircleTimes;': '\u2297',
  386. 'cirE;': '\u29c3',
  387. 'cire;': '\u2257',
  388. 'cirfnint;': '\u2a10',
  389. 'cirmid;': '\u2aef',
  390. 'cirscir;': '\u29c2',
  391. 'ClockwiseContourIntegral;': '\u2232',
  392. 'CloseCurlyDoubleQuote;': '\u201d',
  393. 'CloseCurlyQuote;': '\u2019',
  394. 'clubs;': '\u2663',
  395. 'clubsuit;': '\u2663',
  396. 'Colon;': '\u2237',
  397. 'colon;': ':',
  398. 'Colone;': '\u2a74',
  399. 'colone;': '\u2254',
  400. 'coloneq;': '\u2254',
  401. 'comma;': ',',
  402. 'commat;': '@',
  403. 'comp;': '\u2201',
  404. 'compfn;': '\u2218',
  405. 'complement;': '\u2201',
  406. 'complexes;': '\u2102',
  407. 'cong;': '\u2245',
  408. 'congdot;': '\u2a6d',
  409. 'Congruent;': '\u2261',
  410. 'Conint;': '\u222f',
  411. 'conint;': '\u222e',
  412. 'ContourIntegral;': '\u222e',
  413. 'Copf;': '\u2102',
  414. 'copf;': '\U0001d554',
  415. 'coprod;': '\u2210',
  416. 'Coproduct;': '\u2210',
  417. 'COPY': '\xa9',
  418. 'copy': '\xa9',
  419. 'COPY;': '\xa9',
  420. 'copy;': '\xa9',
  421. 'copysr;': '\u2117',
  422. 'CounterClockwiseContourIntegral;': '\u2233',
  423. 'crarr;': '\u21b5',
  424. 'Cross;': '\u2a2f',
  425. 'cross;': '\u2717',
  426. 'Cscr;': '\U0001d49e',
  427. 'cscr;': '\U0001d4b8',
  428. 'csub;': '\u2acf',
  429. 'csube;': '\u2ad1',
  430. 'csup;': '\u2ad0',
  431. 'csupe;': '\u2ad2',
  432. 'ctdot;': '\u22ef',
  433. 'cudarrl;': '\u2938',
  434. 'cudarrr;': '\u2935',
  435. 'cuepr;': '\u22de',
  436. 'cuesc;': '\u22df',
  437. 'cularr;': '\u21b6',
  438. 'cularrp;': '\u293d',
  439. 'Cup;': '\u22d3',
  440. 'cup;': '\u222a',
  441. 'cupbrcap;': '\u2a48',
  442. 'CupCap;': '\u224d',
  443. 'cupcap;': '\u2a46',
  444. 'cupcup;': '\u2a4a',
  445. 'cupdot;': '\u228d',
  446. 'cupor;': '\u2a45',
  447. 'cups;': '\u222a\ufe00',
  448. 'curarr;': '\u21b7',
  449. 'curarrm;': '\u293c',
  450. 'curlyeqprec;': '\u22de',
  451. 'curlyeqsucc;': '\u22df',
  452. 'curlyvee;': '\u22ce',
  453. 'curlywedge;': '\u22cf',
  454. 'curren': '\xa4',
  455. 'curren;': '\xa4',
  456. 'curvearrowleft;': '\u21b6',
  457. 'curvearrowright;': '\u21b7',
  458. 'cuvee;': '\u22ce',
  459. 'cuwed;': '\u22cf',
  460. 'cwconint;': '\u2232',
  461. 'cwint;': '\u2231',
  462. 'cylcty;': '\u232d',
  463. 'Dagger;': '\u2021',
  464. 'dagger;': '\u2020',
  465. 'daleth;': '\u2138',
  466. 'Darr;': '\u21a1',
  467. 'dArr;': '\u21d3',
  468. 'darr;': '\u2193',
  469. 'dash;': '\u2010',
  470. 'Dashv;': '\u2ae4',
  471. 'dashv;': '\u22a3',
  472. 'dbkarow;': '\u290f',
  473. 'dblac;': '\u02dd',
  474. 'Dcaron;': '\u010e',
  475. 'dcaron;': '\u010f',
  476. 'Dcy;': '\u0414',
  477. 'dcy;': '\u0434',
  478. 'DD;': '\u2145',
  479. 'dd;': '\u2146',
  480. 'ddagger;': '\u2021',
  481. 'ddarr;': '\u21ca',
  482. 'DDotrahd;': '\u2911',
  483. 'ddotseq;': '\u2a77',
  484. 'deg': '\xb0',
  485. 'deg;': '\xb0',
  486. 'Del;': '\u2207',
  487. 'Delta;': '\u0394',
  488. 'delta;': '\u03b4',
  489. 'demptyv;': '\u29b1',
  490. 'dfisht;': '\u297f',
  491. 'Dfr;': '\U0001d507',
  492. 'dfr;': '\U0001d521',
  493. 'dHar;': '\u2965',
  494. 'dharl;': '\u21c3',
  495. 'dharr;': '\u21c2',
  496. 'DiacriticalAcute;': '\xb4',
  497. 'DiacriticalDot;': '\u02d9',
  498. 'DiacriticalDoubleAcute;': '\u02dd',
  499. 'DiacriticalGrave;': '`',
  500. 'DiacriticalTilde;': '\u02dc',
  501. 'diam;': '\u22c4',
  502. 'Diamond;': '\u22c4',
  503. 'diamond;': '\u22c4',
  504. 'diamondsuit;': '\u2666',
  505. 'diams;': '\u2666',
  506. 'die;': '\xa8',
  507. 'DifferentialD;': '\u2146',
  508. 'digamma;': '\u03dd',
  509. 'disin;': '\u22f2',
  510. 'div;': '\xf7',
  511. 'divide': '\xf7',
  512. 'divide;': '\xf7',
  513. 'divideontimes;': '\u22c7',
  514. 'divonx;': '\u22c7',
  515. 'DJcy;': '\u0402',
  516. 'djcy;': '\u0452',
  517. 'dlcorn;': '\u231e',
  518. 'dlcrop;': '\u230d',
  519. 'dollar;': '$',
  520. 'Dopf;': '\U0001d53b',
  521. 'dopf;': '\U0001d555',
  522. 'Dot;': '\xa8',
  523. 'dot;': '\u02d9',
  524. 'DotDot;': '\u20dc',
  525. 'doteq;': '\u2250',
  526. 'doteqdot;': '\u2251',
  527. 'DotEqual;': '\u2250',
  528. 'dotminus;': '\u2238',
  529. 'dotplus;': '\u2214',
  530. 'dotsquare;': '\u22a1',
  531. 'doublebarwedge;': '\u2306',
  532. 'DoubleContourIntegral;': '\u222f',
  533. 'DoubleDot;': '\xa8',
  534. 'DoubleDownArrow;': '\u21d3',
  535. 'DoubleLeftArrow;': '\u21d0',
  536. 'DoubleLeftRightArrow;': '\u21d4',
  537. 'DoubleLeftTee;': '\u2ae4',
  538. 'DoubleLongLeftArrow;': '\u27f8',
  539. 'DoubleLongLeftRightArrow;': '\u27fa',
  540. 'DoubleLongRightArrow;': '\u27f9',
  541. 'DoubleRightArrow;': '\u21d2',
  542. 'DoubleRightTee;': '\u22a8',
  543. 'DoubleUpArrow;': '\u21d1',
  544. 'DoubleUpDownArrow;': '\u21d5',
  545. 'DoubleVerticalBar;': '\u2225',
  546. 'DownArrow;': '\u2193',
  547. 'Downarrow;': '\u21d3',
  548. 'downarrow;': '\u2193',
  549. 'DownArrowBar;': '\u2913',
  550. 'DownArrowUpArrow;': '\u21f5',
  551. 'DownBreve;': '\u0311',
  552. 'downdownarrows;': '\u21ca',
  553. 'downharpoonleft;': '\u21c3',
  554. 'downharpoonright;': '\u21c2',
  555. 'DownLeftRightVector;': '\u2950',
  556. 'DownLeftTeeVector;': '\u295e',
  557. 'DownLeftVector;': '\u21bd',
  558. 'DownLeftVectorBar;': '\u2956',
  559. 'DownRightTeeVector;': '\u295f',
  560. 'DownRightVector;': '\u21c1',
  561. 'DownRightVectorBar;': '\u2957',
  562. 'DownTee;': '\u22a4',
  563. 'DownTeeArrow;': '\u21a7',
  564. 'drbkarow;': '\u2910',
  565. 'drcorn;': '\u231f',
  566. 'drcrop;': '\u230c',
  567. 'Dscr;': '\U0001d49f',
  568. 'dscr;': '\U0001d4b9',
  569. 'DScy;': '\u0405',
  570. 'dscy;': '\u0455',
  571. 'dsol;': '\u29f6',
  572. 'Dstrok;': '\u0110',
  573. 'dstrok;': '\u0111',
  574. 'dtdot;': '\u22f1',
  575. 'dtri;': '\u25bf',
  576. 'dtrif;': '\u25be',
  577. 'duarr;': '\u21f5',
  578. 'duhar;': '\u296f',
  579. 'dwangle;': '\u29a6',
  580. 'DZcy;': '\u040f',
  581. 'dzcy;': '\u045f',
  582. 'dzigrarr;': '\u27ff',
  583. 'Eacute': '\xc9',
  584. 'eacute': '\xe9',
  585. 'Eacute;': '\xc9',
  586. 'eacute;': '\xe9',
  587. 'easter;': '\u2a6e',
  588. 'Ecaron;': '\u011a',
  589. 'ecaron;': '\u011b',
  590. 'ecir;': '\u2256',
  591. 'Ecirc': '\xca',
  592. 'ecirc': '\xea',
  593. 'Ecirc;': '\xca',
  594. 'ecirc;': '\xea',
  595. 'ecolon;': '\u2255',
  596. 'Ecy;': '\u042d',
  597. 'ecy;': '\u044d',
  598. 'eDDot;': '\u2a77',
  599. 'Edot;': '\u0116',
  600. 'eDot;': '\u2251',
  601. 'edot;': '\u0117',
  602. 'ee;': '\u2147',
  603. 'efDot;': '\u2252',
  604. 'Efr;': '\U0001d508',
  605. 'efr;': '\U0001d522',
  606. 'eg;': '\u2a9a',
  607. 'Egrave': '\xc8',
  608. 'egrave': '\xe8',
  609. 'Egrave;': '\xc8',
  610. 'egrave;': '\xe8',
  611. 'egs;': '\u2a96',
  612. 'egsdot;': '\u2a98',
  613. 'el;': '\u2a99',
  614. 'Element;': '\u2208',
  615. 'elinters;': '\u23e7',
  616. 'ell;': '\u2113',
  617. 'els;': '\u2a95',
  618. 'elsdot;': '\u2a97',
  619. 'Emacr;': '\u0112',
  620. 'emacr;': '\u0113',
  621. 'empty;': '\u2205',
  622. 'emptyset;': '\u2205',
  623. 'EmptySmallSquare;': '\u25fb',
  624. 'emptyv;': '\u2205',
  625. 'EmptyVerySmallSquare;': '\u25ab',
  626. 'emsp13;': '\u2004',
  627. 'emsp14;': '\u2005',
  628. 'emsp;': '\u2003',
  629. 'ENG;': '\u014a',
  630. 'eng;': '\u014b',
  631. 'ensp;': '\u2002',
  632. 'Eogon;': '\u0118',
  633. 'eogon;': '\u0119',
  634. 'Eopf;': '\U0001d53c',
  635. 'eopf;': '\U0001d556',
  636. 'epar;': '\u22d5',
  637. 'eparsl;': '\u29e3',
  638. 'eplus;': '\u2a71',
  639. 'epsi;': '\u03b5',
  640. 'Epsilon;': '\u0395',
  641. 'epsilon;': '\u03b5',
  642. 'epsiv;': '\u03f5',
  643. 'eqcirc;': '\u2256',
  644. 'eqcolon;': '\u2255',
  645. 'eqsim;': '\u2242',
  646. 'eqslantgtr;': '\u2a96',
  647. 'eqslantless;': '\u2a95',
  648. 'Equal;': '\u2a75',
  649. 'equals;': '=',
  650. 'EqualTilde;': '\u2242',
  651. 'equest;': '\u225f',
  652. 'Equilibrium;': '\u21cc',
  653. 'equiv;': '\u2261',
  654. 'equivDD;': '\u2a78',
  655. 'eqvparsl;': '\u29e5',
  656. 'erarr;': '\u2971',
  657. 'erDot;': '\u2253',
  658. 'Escr;': '\u2130',
  659. 'escr;': '\u212f',
  660. 'esdot;': '\u2250',
  661. 'Esim;': '\u2a73',
  662. 'esim;': '\u2242',
  663. 'Eta;': '\u0397',
  664. 'eta;': '\u03b7',
  665. 'ETH': '\xd0',
  666. 'eth': '\xf0',
  667. 'ETH;': '\xd0',
  668. 'eth;': '\xf0',
  669. 'Euml': '\xcb',
  670. 'euml': '\xeb',
  671. 'Euml;': '\xcb',
  672. 'euml;': '\xeb',
  673. 'euro;': '\u20ac',
  674. 'excl;': '!',
  675. 'exist;': '\u2203',
  676. 'Exists;': '\u2203',
  677. 'expectation;': '\u2130',
  678. 'ExponentialE;': '\u2147',
  679. 'exponentiale;': '\u2147',
  680. 'fallingdotseq;': '\u2252',
  681. 'Fcy;': '\u0424',
  682. 'fcy;': '\u0444',
  683. 'female;': '\u2640',
  684. 'ffilig;': '\ufb03',
  685. 'fflig;': '\ufb00',
  686. 'ffllig;': '\ufb04',
  687. 'Ffr;': '\U0001d509',
  688. 'ffr;': '\U0001d523',
  689. 'filig;': '\ufb01',
  690. 'FilledSmallSquare;': '\u25fc',
  691. 'FilledVerySmallSquare;': '\u25aa',
  692. 'fjlig;': 'fj',
  693. 'flat;': '\u266d',
  694. 'fllig;': '\ufb02',
  695. 'fltns;': '\u25b1',
  696. 'fnof;': '\u0192',
  697. 'Fopf;': '\U0001d53d',
  698. 'fopf;': '\U0001d557',
  699. 'ForAll;': '\u2200',
  700. 'forall;': '\u2200',
  701. 'fork;': '\u22d4',
  702. 'forkv;': '\u2ad9',
  703. 'Fouriertrf;': '\u2131',
  704. 'fpartint;': '\u2a0d',
  705. 'frac12': '\xbd',
  706. 'frac12;': '\xbd',
  707. 'frac13;': '\u2153',
  708. 'frac14': '\xbc',
  709. 'frac14;': '\xbc',
  710. 'frac15;': '\u2155',
  711. 'frac16;': '\u2159',
  712. 'frac18;': '\u215b',
  713. 'frac23;': '\u2154',
  714. 'frac25;': '\u2156',
  715. 'frac34': '\xbe',
  716. 'frac34;': '\xbe',
  717. 'frac35;': '\u2157',
  718. 'frac38;': '\u215c',
  719. 'frac45;': '\u2158',
  720. 'frac56;': '\u215a',
  721. 'frac58;': '\u215d',
  722. 'frac78;': '\u215e',
  723. 'frasl;': '\u2044',
  724. 'frown;': '\u2322',
  725. 'Fscr;': '\u2131',
  726. 'fscr;': '\U0001d4bb',
  727. 'gacute;': '\u01f5',
  728. 'Gamma;': '\u0393',
  729. 'gamma;': '\u03b3',
  730. 'Gammad;': '\u03dc',
  731. 'gammad;': '\u03dd',
  732. 'gap;': '\u2a86',
  733. 'Gbreve;': '\u011e',
  734. 'gbreve;': '\u011f',
  735. 'Gcedil;': '\u0122',
  736. 'Gcirc;': '\u011c',
  737. 'gcirc;': '\u011d',
  738. 'Gcy;': '\u0413',
  739. 'gcy;': '\u0433',
  740. 'Gdot;': '\u0120',
  741. 'gdot;': '\u0121',
  742. 'gE;': '\u2267',
  743. 'ge;': '\u2265',
  744. 'gEl;': '\u2a8c',
  745. 'gel;': '\u22db',
  746. 'geq;': '\u2265',
  747. 'geqq;': '\u2267',
  748. 'geqslant;': '\u2a7e',
  749. 'ges;': '\u2a7e',
  750. 'gescc;': '\u2aa9',
  751. 'gesdot;': '\u2a80',
  752. 'gesdoto;': '\u2a82',
  753. 'gesdotol;': '\u2a84',
  754. 'gesl;': '\u22db\ufe00',
  755. 'gesles;': '\u2a94',
  756. 'Gfr;': '\U0001d50a',
  757. 'gfr;': '\U0001d524',
  758. 'Gg;': '\u22d9',
  759. 'gg;': '\u226b',
  760. 'ggg;': '\u22d9',
  761. 'gimel;': '\u2137',
  762. 'GJcy;': '\u0403',
  763. 'gjcy;': '\u0453',
  764. 'gl;': '\u2277',
  765. 'gla;': '\u2aa5',
  766. 'glE;': '\u2a92',
  767. 'glj;': '\u2aa4',
  768. 'gnap;': '\u2a8a',
  769. 'gnapprox;': '\u2a8a',
  770. 'gnE;': '\u2269',
  771. 'gne;': '\u2a88',
  772. 'gneq;': '\u2a88',
  773. 'gneqq;': '\u2269',
  774. 'gnsim;': '\u22e7',
  775. 'Gopf;': '\U0001d53e',
  776. 'gopf;': '\U0001d558',
  777. 'grave;': '`',
  778. 'GreaterEqual;': '\u2265',
  779. 'GreaterEqualLess;': '\u22db',
  780. 'GreaterFullEqual;': '\u2267',
  781. 'GreaterGreater;': '\u2aa2',
  782. 'GreaterLess;': '\u2277',
  783. 'GreaterSlantEqual;': '\u2a7e',
  784. 'GreaterTilde;': '\u2273',
  785. 'Gscr;': '\U0001d4a2',
  786. 'gscr;': '\u210a',
  787. 'gsim;': '\u2273',
  788. 'gsime;': '\u2a8e',
  789. 'gsiml;': '\u2a90',
  790. 'GT': '>',
  791. 'gt': '>',
  792. 'GT;': '>',
  793. 'Gt;': '\u226b',
  794. 'gt;': '>',
  795. 'gtcc;': '\u2aa7',
  796. 'gtcir;': '\u2a7a',
  797. 'gtdot;': '\u22d7',
  798. 'gtlPar;': '\u2995',
  799. 'gtquest;': '\u2a7c',
  800. 'gtrapprox;': '\u2a86',
  801. 'gtrarr;': '\u2978',
  802. 'gtrdot;': '\u22d7',
  803. 'gtreqless;': '\u22db',
  804. 'gtreqqless;': '\u2a8c',
  805. 'gtrless;': '\u2277',
  806. 'gtrsim;': '\u2273',
  807. 'gvertneqq;': '\u2269\ufe00',
  808. 'gvnE;': '\u2269\ufe00',
  809. 'Hacek;': '\u02c7',
  810. 'hairsp;': '\u200a',
  811. 'half;': '\xbd',
  812. 'hamilt;': '\u210b',
  813. 'HARDcy;': '\u042a',
  814. 'hardcy;': '\u044a',
  815. 'hArr;': '\u21d4',
  816. 'harr;': '\u2194',
  817. 'harrcir;': '\u2948',
  818. 'harrw;': '\u21ad',
  819. 'Hat;': '^',
  820. 'hbar;': '\u210f',
  821. 'Hcirc;': '\u0124',
  822. 'hcirc;': '\u0125',
  823. 'hearts;': '\u2665',
  824. 'heartsuit;': '\u2665',
  825. 'hellip;': '\u2026',
  826. 'hercon;': '\u22b9',
  827. 'Hfr;': '\u210c',
  828. 'hfr;': '\U0001d525',
  829. 'HilbertSpace;': '\u210b',
  830. 'hksearow;': '\u2925',
  831. 'hkswarow;': '\u2926',
  832. 'hoarr;': '\u21ff',
  833. 'homtht;': '\u223b',
  834. 'hookleftarrow;': '\u21a9',
  835. 'hookrightarrow;': '\u21aa',
  836. 'Hopf;': '\u210d',
  837. 'hopf;': '\U0001d559',
  838. 'horbar;': '\u2015',
  839. 'HorizontalLine;': '\u2500',
  840. 'Hscr;': '\u210b',
  841. 'hscr;': '\U0001d4bd',
  842. 'hslash;': '\u210f',
  843. 'Hstrok;': '\u0126',
  844. 'hstrok;': '\u0127',
  845. 'HumpDownHump;': '\u224e',
  846. 'HumpEqual;': '\u224f',
  847. 'hybull;': '\u2043',
  848. 'hyphen;': '\u2010',
  849. 'Iacute': '\xcd',
  850. 'iacute': '\xed',
  851. 'Iacute;': '\xcd',
  852. 'iacute;': '\xed',
  853. 'ic;': '\u2063',
  854. 'Icirc': '\xce',
  855. 'icirc': '\xee',
  856. 'Icirc;': '\xce',
  857. 'icirc;': '\xee',
  858. 'Icy;': '\u0418',
  859. 'icy;': '\u0438',
  860. 'Idot;': '\u0130',
  861. 'IEcy;': '\u0415',
  862. 'iecy;': '\u0435',
  863. 'iexcl': '\xa1',
  864. 'iexcl;': '\xa1',
  865. 'iff;': '\u21d4',
  866. 'Ifr;': '\u2111',
  867. 'ifr;': '\U0001d526',
  868. 'Igrave': '\xcc',
  869. 'igrave': '\xec',
  870. 'Igrave;': '\xcc',
  871. 'igrave;': '\xec',
  872. 'ii;': '\u2148',
  873. 'iiiint;': '\u2a0c',
  874. 'iiint;': '\u222d',
  875. 'iinfin;': '\u29dc',
  876. 'iiota;': '\u2129',
  877. 'IJlig;': '\u0132',
  878. 'ijlig;': '\u0133',
  879. 'Im;': '\u2111',
  880. 'Imacr;': '\u012a',
  881. 'imacr;': '\u012b',
  882. 'image;': '\u2111',
  883. 'ImaginaryI;': '\u2148',
  884. 'imagline;': '\u2110',
  885. 'imagpart;': '\u2111',
  886. 'imath;': '\u0131',
  887. 'imof;': '\u22b7',
  888. 'imped;': '\u01b5',
  889. 'Implies;': '\u21d2',
  890. 'in;': '\u2208',
  891. 'incare;': '\u2105',
  892. 'infin;': '\u221e',
  893. 'infintie;': '\u29dd',
  894. 'inodot;': '\u0131',
  895. 'Int;': '\u222c',
  896. 'int;': '\u222b',
  897. 'intcal;': '\u22ba',
  898. 'integers;': '\u2124',
  899. 'Integral;': '\u222b',
  900. 'intercal;': '\u22ba',
  901. 'Intersection;': '\u22c2',
  902. 'intlarhk;': '\u2a17',
  903. 'intprod;': '\u2a3c',
  904. 'InvisibleComma;': '\u2063',
  905. 'InvisibleTimes;': '\u2062',
  906. 'IOcy;': '\u0401',
  907. 'iocy;': '\u0451',
  908. 'Iogon;': '\u012e',
  909. 'iogon;': '\u012f',
  910. 'Iopf;': '\U0001d540',
  911. 'iopf;': '\U0001d55a',
  912. 'Iota;': '\u0399',
  913. 'iota;': '\u03b9',
  914. 'iprod;': '\u2a3c',
  915. 'iquest': '\xbf',
  916. 'iquest;': '\xbf',
  917. 'Iscr;': '\u2110',
  918. 'iscr;': '\U0001d4be',
  919. 'isin;': '\u2208',
  920. 'isindot;': '\u22f5',
  921. 'isinE;': '\u22f9',
  922. 'isins;': '\u22f4',
  923. 'isinsv;': '\u22f3',
  924. 'isinv;': '\u2208',
  925. 'it;': '\u2062',
  926. 'Itilde;': '\u0128',
  927. 'itilde;': '\u0129',
  928. 'Iukcy;': '\u0406',
  929. 'iukcy;': '\u0456',
  930. 'Iuml': '\xcf',
  931. 'iuml': '\xef',
  932. 'Iuml;': '\xcf',
  933. 'iuml;': '\xef',
  934. 'Jcirc;': '\u0134',
  935. 'jcirc;': '\u0135',
  936. 'Jcy;': '\u0419',
  937. 'jcy;': '\u0439',
  938. 'Jfr;': '\U0001d50d',
  939. 'jfr;': '\U0001d527',
  940. 'jmath;': '\u0237',
  941. 'Jopf;': '\U0001d541',
  942. 'jopf;': '\U0001d55b',
  943. 'Jscr;': '\U0001d4a5',
  944. 'jscr;': '\U0001d4bf',
  945. 'Jsercy;': '\u0408',
  946. 'jsercy;': '\u0458',
  947. 'Jukcy;': '\u0404',
  948. 'jukcy;': '\u0454',
  949. 'Kappa;': '\u039a',
  950. 'kappa;': '\u03ba',
  951. 'kappav;': '\u03f0',
  952. 'Kcedil;': '\u0136',
  953. 'kcedil;': '\u0137',
  954. 'Kcy;': '\u041a',
  955. 'kcy;': '\u043a',
  956. 'Kfr;': '\U0001d50e',
  957. 'kfr;': '\U0001d528',
  958. 'kgreen;': '\u0138',
  959. 'KHcy;': '\u0425',
  960. 'khcy;': '\u0445',
  961. 'KJcy;': '\u040c',
  962. 'kjcy;': '\u045c',
  963. 'Kopf;': '\U0001d542',
  964. 'kopf;': '\U0001d55c',
  965. 'Kscr;': '\U0001d4a6',
  966. 'kscr;': '\U0001d4c0',
  967. 'lAarr;': '\u21da',
  968. 'Lacute;': '\u0139',
  969. 'lacute;': '\u013a',
  970. 'laemptyv;': '\u29b4',
  971. 'lagran;': '\u2112',
  972. 'Lambda;': '\u039b',
  973. 'lambda;': '\u03bb',
  974. 'Lang;': '\u27ea',
  975. 'lang;': '\u27e8',
  976. 'langd;': '\u2991',
  977. 'langle;': '\u27e8',
  978. 'lap;': '\u2a85',
  979. 'Laplacetrf;': '\u2112',
  980. 'laquo': '\xab',
  981. 'laquo;': '\xab',
  982. 'Larr;': '\u219e',
  983. 'lArr;': '\u21d0',
  984. 'larr;': '\u2190',
  985. 'larrb;': '\u21e4',
  986. 'larrbfs;': '\u291f',
  987. 'larrfs;': '\u291d',
  988. 'larrhk;': '\u21a9',
  989. 'larrlp;': '\u21ab',
  990. 'larrpl;': '\u2939',
  991. 'larrsim;': '\u2973',
  992. 'larrtl;': '\u21a2',
  993. 'lat;': '\u2aab',
  994. 'lAtail;': '\u291b',
  995. 'latail;': '\u2919',
  996. 'late;': '\u2aad',
  997. 'lates;': '\u2aad\ufe00',
  998. 'lBarr;': '\u290e',
  999. 'lbarr;': '\u290c',
  1000. 'lbbrk;': '\u2772',
  1001. 'lbrace;': '{',
  1002. 'lbrack;': '[',
  1003. 'lbrke;': '\u298b',
  1004. 'lbrksld;': '\u298f',
  1005. 'lbrkslu;': '\u298d',
  1006. 'Lcaron;': '\u013d',
  1007. 'lcaron;': '\u013e',
  1008. 'Lcedil;': '\u013b',
  1009. 'lcedil;': '\u013c',
  1010. 'lceil;': '\u2308',
  1011. 'lcub;': '{',
  1012. 'Lcy;': '\u041b',
  1013. 'lcy;': '\u043b',
  1014. 'ldca;': '\u2936',
  1015. 'ldquo;': '\u201c',
  1016. 'ldquor;': '\u201e',
  1017. 'ldrdhar;': '\u2967',
  1018. 'ldrushar;': '\u294b',
  1019. 'ldsh;': '\u21b2',
  1020. 'lE;': '\u2266',
  1021. 'le;': '\u2264',
  1022. 'LeftAngleBracket;': '\u27e8',
  1023. 'LeftArrow;': '\u2190',
  1024. 'Leftarrow;': '\u21d0',
  1025. 'leftarrow;': '\u2190',
  1026. 'LeftArrowBar;': '\u21e4',
  1027. 'LeftArrowRightArrow;': '\u21c6',
  1028. 'leftarrowtail;': '\u21a2',
  1029. 'LeftCeiling;': '\u2308',
  1030. 'LeftDoubleBracket;': '\u27e6',
  1031. 'LeftDownTeeVector;': '\u2961',
  1032. 'LeftDownVector;': '\u21c3',
  1033. 'LeftDownVectorBar;': '\u2959',
  1034. 'LeftFloor;': '\u230a',
  1035. 'leftharpoondown;': '\u21bd',
  1036. 'leftharpoonup;': '\u21bc',
  1037. 'leftleftarrows;': '\u21c7',
  1038. 'LeftRightArrow;': '\u2194',
  1039. 'Leftrightarrow;': '\u21d4',
  1040. 'leftrightarrow;': '\u2194',
  1041. 'leftrightarrows;': '\u21c6',
  1042. 'leftrightharpoons;': '\u21cb',
  1043. 'leftrightsquigarrow;': '\u21ad',
  1044. 'LeftRightVector;': '\u294e',
  1045. 'LeftTee;': '\u22a3',
  1046. 'LeftTeeArrow;': '\u21a4',
  1047. 'LeftTeeVector;': '\u295a',
  1048. 'leftthreetimes;': '\u22cb',
  1049. 'LeftTriangle;': '\u22b2',
  1050. 'LeftTriangleBar;': '\u29cf',
  1051. 'LeftTriangleEqual;': '\u22b4',
  1052. 'LeftUpDownVector;': '\u2951',
  1053. 'LeftUpTeeVector;': '\u2960',
  1054. 'LeftUpVector;': '\u21bf',
  1055. 'LeftUpVectorBar;': '\u2958',
  1056. 'LeftVector;': '\u21bc',
  1057. 'LeftVectorBar;': '\u2952',
  1058. 'lEg;': '\u2a8b',
  1059. 'leg;': '\u22da',
  1060. 'leq;': '\u2264',
  1061. 'leqq;': '\u2266',
  1062. 'leqslant;': '\u2a7d',
  1063. 'les;': '\u2a7d',
  1064. 'lescc;': '\u2aa8',
  1065. 'lesdot;': '\u2a7f',
  1066. 'lesdoto;': '\u2a81',
  1067. 'lesdotor;': '\u2a83',
  1068. 'lesg;': '\u22da\ufe00',
  1069. 'lesges;': '\u2a93',
  1070. 'lessapprox;': '\u2a85',
  1071. 'lessdot;': '\u22d6',
  1072. 'lesseqgtr;': '\u22da',
  1073. 'lesseqqgtr;': '\u2a8b',
  1074. 'LessEqualGreater;': '\u22da',
  1075. 'LessFullEqual;': '\u2266',
  1076. 'LessGreater;': '\u2276',
  1077. 'lessgtr;': '\u2276',
  1078. 'LessLess;': '\u2aa1',
  1079. 'lesssim;': '\u2272',
  1080. 'LessSlantEqual;': '\u2a7d',
  1081. 'LessTilde;': '\u2272',
  1082. 'lfisht;': '\u297c',
  1083. 'lfloor;': '\u230a',
  1084. 'Lfr;': '\U0001d50f',
  1085. 'lfr;': '\U0001d529',
  1086. 'lg;': '\u2276',
  1087. 'lgE;': '\u2a91',
  1088. 'lHar;': '\u2962',
  1089. 'lhard;': '\u21bd',
  1090. 'lharu;': '\u21bc',
  1091. 'lharul;': '\u296a',
  1092. 'lhblk;': '\u2584',
  1093. 'LJcy;': '\u0409',
  1094. 'ljcy;': '\u0459',
  1095. 'Ll;': '\u22d8',
  1096. 'll;': '\u226a',
  1097. 'llarr;': '\u21c7',
  1098. 'llcorner;': '\u231e',
  1099. 'Lleftarrow;': '\u21da',
  1100. 'llhard;': '\u296b',
  1101. 'lltri;': '\u25fa',
  1102. 'Lmidot;': '\u013f',
  1103. 'lmidot;': '\u0140',
  1104. 'lmoust;': '\u23b0',
  1105. 'lmoustache;': '\u23b0',
  1106. 'lnap;': '\u2a89',
  1107. 'lnapprox;': '\u2a89',
  1108. 'lnE;': '\u2268',
  1109. 'lne;': '\u2a87',
  1110. 'lneq;': '\u2a87',
  1111. 'lneqq;': '\u2268',
  1112. 'lnsim;': '\u22e6',
  1113. 'loang;': '\u27ec',
  1114. 'loarr;': '\u21fd',
  1115. 'lobrk;': '\u27e6',
  1116. 'LongLeftArrow;': '\u27f5',
  1117. 'Longleftarrow;': '\u27f8',
  1118. 'longleftarrow;': '\u27f5',
  1119. 'LongLeftRightArrow;': '\u27f7',
  1120. 'Longleftrightarrow;': '\u27fa',
  1121. 'longleftrightarrow;': '\u27f7',
  1122. 'longmapsto;': '\u27fc',
  1123. 'LongRightArrow;': '\u27f6',
  1124. 'Longrightarrow;': '\u27f9',
  1125. 'longrightarrow;': '\u27f6',
  1126. 'looparrowleft;': '\u21ab',
  1127. 'looparrowright;': '\u21ac',
  1128. 'lopar;': '\u2985',
  1129. 'Lopf;': '\U0001d543',
  1130. 'lopf;': '\U0001d55d',
  1131. 'loplus;': '\u2a2d',
  1132. 'lotimes;': '\u2a34',
  1133. 'lowast;': '\u2217',
  1134. 'lowbar;': '_',
  1135. 'LowerLeftArrow;': '\u2199',
  1136. 'LowerRightArrow;': '\u2198',
  1137. 'loz;': '\u25ca',
  1138. 'lozenge;': '\u25ca',
  1139. 'lozf;': '\u29eb',
  1140. 'lpar;': '(',
  1141. 'lparlt;': '\u2993',
  1142. 'lrarr;': '\u21c6',
  1143. 'lrcorner;': '\u231f',
  1144. 'lrhar;': '\u21cb',
  1145. 'lrhard;': '\u296d',
  1146. 'lrm;': '\u200e',
  1147. 'lrtri;': '\u22bf',
  1148. 'lsaquo;': '\u2039',
  1149. 'Lscr;': '\u2112',
  1150. 'lscr;': '\U0001d4c1',
  1151. 'Lsh;': '\u21b0',
  1152. 'lsh;': '\u21b0',
  1153. 'lsim;': '\u2272',
  1154. 'lsime;': '\u2a8d',
  1155. 'lsimg;': '\u2a8f',
  1156. 'lsqb;': '[',
  1157. 'lsquo;': '\u2018',
  1158. 'lsquor;': '\u201a',
  1159. 'Lstrok;': '\u0141',
  1160. 'lstrok;': '\u0142',
  1161. 'LT': '<',
  1162. 'lt': '<',
  1163. 'LT;': '<',
  1164. 'Lt;': '\u226a',
  1165. 'lt;': '<',
  1166. 'ltcc;': '\u2aa6',
  1167. 'ltcir;': '\u2a79',
  1168. 'ltdot;': '\u22d6',
  1169. 'lthree;': '\u22cb',
  1170. 'ltimes;': '\u22c9',
  1171. 'ltlarr;': '\u2976',
  1172. 'ltquest;': '\u2a7b',
  1173. 'ltri;': '\u25c3',
  1174. 'ltrie;': '\u22b4',
  1175. 'ltrif;': '\u25c2',
  1176. 'ltrPar;': '\u2996',
  1177. 'lurdshar;': '\u294a',
  1178. 'luruhar;': '\u2966',
  1179. 'lvertneqq;': '\u2268\ufe00',
  1180. 'lvnE;': '\u2268\ufe00',
  1181. 'macr': '\xaf',
  1182. 'macr;': '\xaf',
  1183. 'male;': '\u2642',
  1184. 'malt;': '\u2720',
  1185. 'maltese;': '\u2720',
  1186. 'Map;': '\u2905',
  1187. 'map;': '\u21a6',
  1188. 'mapsto;': '\u21a6',
  1189. 'mapstodown;': '\u21a7',
  1190. 'mapstoleft;': '\u21a4',
  1191. 'mapstoup;': '\u21a5',
  1192. 'marker;': '\u25ae',
  1193. 'mcomma;': '\u2a29',
  1194. 'Mcy;': '\u041c',
  1195. 'mcy;': '\u043c',
  1196. 'mdash;': '\u2014',
  1197. 'mDDot;': '\u223a',
  1198. 'measuredangle;': '\u2221',
  1199. 'MediumSpace;': '\u205f',
  1200. 'Mellintrf;': '\u2133',
  1201. 'Mfr;': '\U0001d510',
  1202. 'mfr;': '\U0001d52a',
  1203. 'mho;': '\u2127',
  1204. 'micro': '\xb5',
  1205. 'micro;': '\xb5',
  1206. 'mid;': '\u2223',
  1207. 'midast;': '*',
  1208. 'midcir;': '\u2af0',
  1209. 'middot': '\xb7',
  1210. 'middot;': '\xb7',
  1211. 'minus;': '\u2212',
  1212. 'minusb;': '\u229f',
  1213. 'minusd;': '\u2238',
  1214. 'minusdu;': '\u2a2a',
  1215. 'MinusPlus;': '\u2213',
  1216. 'mlcp;': '\u2adb',
  1217. 'mldr;': '\u2026',
  1218. 'mnplus;': '\u2213',
  1219. 'models;': '\u22a7',
  1220. 'Mopf;': '\U0001d544',
  1221. 'mopf;': '\U0001d55e',
  1222. 'mp;': '\u2213',
  1223. 'Mscr;': '\u2133',
  1224. 'mscr;': '\U0001d4c2',
  1225. 'mstpos;': '\u223e',
  1226. 'Mu;': '\u039c',
  1227. 'mu;': '\u03bc',
  1228. 'multimap;': '\u22b8',
  1229. 'mumap;': '\u22b8',
  1230. 'nabla;': '\u2207',
  1231. 'Nacute;': '\u0143',
  1232. 'nacute;': '\u0144',
  1233. 'nang;': '\u2220\u20d2',
  1234. 'nap;': '\u2249',
  1235. 'napE;': '\u2a70\u0338',
  1236. 'napid;': '\u224b\u0338',
  1237. 'napos;': '\u0149',
  1238. 'napprox;': '\u2249',
  1239. 'natur;': '\u266e',
  1240. 'natural;': '\u266e',
  1241. 'naturals;': '\u2115',
  1242. 'nbsp': '\xa0',
  1243. 'nbsp;': '\xa0',
  1244. 'nbump;': '\u224e\u0338',
  1245. 'nbumpe;': '\u224f\u0338',
  1246. 'ncap;': '\u2a43',
  1247. 'Ncaron;': '\u0147',
  1248. 'ncaron;': '\u0148',
  1249. 'Ncedil;': '\u0145',
  1250. 'ncedil;': '\u0146',
  1251. 'ncong;': '\u2247',
  1252. 'ncongdot;': '\u2a6d\u0338',
  1253. 'ncup;': '\u2a42',
  1254. 'Ncy;': '\u041d',
  1255. 'ncy;': '\u043d',
  1256. 'ndash;': '\u2013',
  1257. 'ne;': '\u2260',
  1258. 'nearhk;': '\u2924',
  1259. 'neArr;': '\u21d7',
  1260. 'nearr;': '\u2197',
  1261. 'nearrow;': '\u2197',
  1262. 'nedot;': '\u2250\u0338',
  1263. 'NegativeMediumSpace;': '\u200b',
  1264. 'NegativeThickSpace;': '\u200b',
  1265. 'NegativeThinSpace;': '\u200b',
  1266. 'NegativeVeryThinSpace;': '\u200b',
  1267. 'nequiv;': '\u2262',
  1268. 'nesear;': '\u2928',
  1269. 'nesim;': '\u2242\u0338',
  1270. 'NestedGreaterGreater;': '\u226b',
  1271. 'NestedLessLess;': '\u226a',
  1272. 'NewLine;': '\n',
  1273. 'nexist;': '\u2204',
  1274. 'nexists;': '\u2204',
  1275. 'Nfr;': '\U0001d511',
  1276. 'nfr;': '\U0001d52b',
  1277. 'ngE;': '\u2267\u0338',
  1278. 'nge;': '\u2271',
  1279. 'ngeq;': '\u2271',
  1280. 'ngeqq;': '\u2267\u0338',
  1281. 'ngeqslant;': '\u2a7e\u0338',
  1282. 'nges;': '\u2a7e\u0338',
  1283. 'nGg;': '\u22d9\u0338',
  1284. 'ngsim;': '\u2275',
  1285. 'nGt;': '\u226b\u20d2',
  1286. 'ngt;': '\u226f',
  1287. 'ngtr;': '\u226f',
  1288. 'nGtv;': '\u226b\u0338',
  1289. 'nhArr;': '\u21ce',
  1290. 'nharr;': '\u21ae',
  1291. 'nhpar;': '\u2af2',
  1292. 'ni;': '\u220b',
  1293. 'nis;': '\u22fc',
  1294. 'nisd;': '\u22fa',
  1295. 'niv;': '\u220b',
  1296. 'NJcy;': '\u040a',
  1297. 'njcy;': '\u045a',
  1298. 'nlArr;': '\u21cd',
  1299. 'nlarr;': '\u219a',
  1300. 'nldr;': '\u2025',
  1301. 'nlE;': '\u2266\u0338',
  1302. 'nle;': '\u2270',
  1303. 'nLeftarrow;': '\u21cd',
  1304. 'nleftarrow;': '\u219a',
  1305. 'nLeftrightarrow;': '\u21ce',
  1306. 'nleftrightarrow;': '\u21ae',
  1307. 'nleq;': '\u2270',
  1308. 'nleqq;': '\u2266\u0338',
  1309. 'nleqslant;': '\u2a7d\u0338',
  1310. 'nles;': '\u2a7d\u0338',
  1311. 'nless;': '\u226e',
  1312. 'nLl;': '\u22d8\u0338',
  1313. 'nlsim;': '\u2274',
  1314. 'nLt;': '\u226a\u20d2',
  1315. 'nlt;': '\u226e',
  1316. 'nltri;': '\u22ea',
  1317. 'nltrie;': '\u22ec',
  1318. 'nLtv;': '\u226a\u0338',
  1319. 'nmid;': '\u2224',
  1320. 'NoBreak;': '\u2060',
  1321. 'NonBreakingSpace;': '\xa0',
  1322. 'Nopf;': '\u2115',
  1323. 'nopf;': '\U0001d55f',
  1324. 'not': '\xac',
  1325. 'Not;': '\u2aec',
  1326. 'not;': '\xac',
  1327. 'NotCongruent;': '\u2262',
  1328. 'NotCupCap;': '\u226d',
  1329. 'NotDoubleVerticalBar;': '\u2226',
  1330. 'NotElement;': '\u2209',
  1331. 'NotEqual;': '\u2260',
  1332. 'NotEqualTilde;': '\u2242\u0338',
  1333. 'NotExists;': '\u2204',
  1334. 'NotGreater;': '\u226f',
  1335. 'NotGreaterEqual;': '\u2271',
  1336. 'NotGreaterFullEqual;': '\u2267\u0338',
  1337. 'NotGreaterGreater;': '\u226b\u0338',
  1338. 'NotGreaterLess;': '\u2279',
  1339. 'NotGreaterSlantEqual;': '\u2a7e\u0338',
  1340. 'NotGreaterTilde;': '\u2275',
  1341. 'NotHumpDownHump;': '\u224e\u0338',
  1342. 'NotHumpEqual;': '\u224f\u0338',
  1343. 'notin;': '\u2209',
  1344. 'notindot;': '\u22f5\u0338',
  1345. 'notinE;': '\u22f9\u0338',
  1346. 'notinva;': '\u2209',
  1347. 'notinvb;': '\u22f7',
  1348. 'notinvc;': '\u22f6',
  1349. 'NotLeftTriangle;': '\u22ea',
  1350. 'NotLeftTriangleBar;': '\u29cf\u0338',
  1351. 'NotLeftTriangleEqual;': '\u22ec',
  1352. 'NotLess;': '\u226e',
  1353. 'NotLessEqual;': '\u2270',
  1354. 'NotLessGreater;': '\u2278',
  1355. 'NotLessLess;': '\u226a\u0338',
  1356. 'NotLessSlantEqual;': '\u2a7d\u0338',
  1357. 'NotLessTilde;': '\u2274',
  1358. 'NotNestedGreaterGreater;': '\u2aa2\u0338',
  1359. 'NotNestedLessLess;': '\u2aa1\u0338',
  1360. 'notni;': '\u220c',
  1361. 'notniva;': '\u220c',
  1362. 'notnivb;': '\u22fe',
  1363. 'notnivc;': '\u22fd',
  1364. 'NotPrecedes;': '\u2280',
  1365. 'NotPrecedesEqual;': '\u2aaf\u0338',
  1366. 'NotPrecedesSlantEqual;': '\u22e0',
  1367. 'NotReverseElement;': '\u220c',
  1368. 'NotRightTriangle;': '\u22eb',
  1369. 'NotRightTriangleBar;': '\u29d0\u0338',
  1370. 'NotRightTriangleEqual;': '\u22ed',
  1371. 'NotSquareSubset;': '\u228f\u0338',
  1372. 'NotSquareSubsetEqual;': '\u22e2',
  1373. 'NotSquareSuperset;': '\u2290\u0338',
  1374. 'NotSquareSupersetEqual;': '\u22e3',
  1375. 'NotSubset;': '\u2282\u20d2',
  1376. 'NotSubsetEqual;': '\u2288',
  1377. 'NotSucceeds;': '\u2281',
  1378. 'NotSucceedsEqual;': '\u2ab0\u0338',
  1379. 'NotSucceedsSlantEqual;': '\u22e1',
  1380. 'NotSucceedsTilde;': '\u227f\u0338',
  1381. 'NotSuperset;': '\u2283\u20d2',
  1382. 'NotSupersetEqual;': '\u2289',
  1383. 'NotTilde;': '\u2241',
  1384. 'NotTildeEqual;': '\u2244',
  1385. 'NotTildeFullEqual;': '\u2247',
  1386. 'NotTildeTilde;': '\u2249',
  1387. 'NotVerticalBar;': '\u2224',
  1388. 'npar;': '\u2226',
  1389. 'nparallel;': '\u2226',
  1390. 'nparsl;': '\u2afd\u20e5',
  1391. 'npart;': '\u2202\u0338',
  1392. 'npolint;': '\u2a14',
  1393. 'npr;': '\u2280',
  1394. 'nprcue;': '\u22e0',
  1395. 'npre;': '\u2aaf\u0338',
  1396. 'nprec;': '\u2280',
  1397. 'npreceq;': '\u2aaf\u0338',
  1398. 'nrArr;': '\u21cf',
  1399. 'nrarr;': '\u219b',
  1400. 'nrarrc;': '\u2933\u0338',
  1401. 'nrarrw;': '\u219d\u0338',
  1402. 'nRightarrow;': '\u21cf',
  1403. 'nrightarrow;': '\u219b',
  1404. 'nrtri;': '\u22eb',
  1405. 'nrtrie;': '\u22ed',
  1406. 'nsc;': '\u2281',
  1407. 'nsccue;': '\u22e1',
  1408. 'nsce;': '\u2ab0\u0338',
  1409. 'Nscr;': '\U0001d4a9',
  1410. 'nscr;': '\U0001d4c3',
  1411. 'nshortmid;': '\u2224',
  1412. 'nshortparallel;': '\u2226',
  1413. 'nsim;': '\u2241',
  1414. 'nsime;': '\u2244',
  1415. 'nsimeq;': '\u2244',
  1416. 'nsmid;': '\u2224',
  1417. 'nspar;': '\u2226',
  1418. 'nsqsube;': '\u22e2',
  1419. 'nsqsupe;': '\u22e3',
  1420. 'nsub;': '\u2284',
  1421. 'nsubE;': '\u2ac5\u0338',
  1422. 'nsube;': '\u2288',
  1423. 'nsubset;': '\u2282\u20d2',
  1424. 'nsubseteq;': '\u2288',
  1425. 'nsubseteqq;': '\u2ac5\u0338',
  1426. 'nsucc;': '\u2281',
  1427. 'nsucceq;': '\u2ab0\u0338',
  1428. 'nsup;': '\u2285',
  1429. 'nsupE;': '\u2ac6\u0338',
  1430. 'nsupe;': '\u2289',
  1431. 'nsupset;': '\u2283\u20d2',
  1432. 'nsupseteq;': '\u2289',
  1433. 'nsupseteqq;': '\u2ac6\u0338',
  1434. 'ntgl;': '\u2279',
  1435. 'Ntilde': '\xd1',
  1436. 'ntilde': '\xf1',
  1437. 'Ntilde;': '\xd1',
  1438. 'ntilde;': '\xf1',
  1439. 'ntlg;': '\u2278',
  1440. 'ntriangleleft;': '\u22ea',
  1441. 'ntrianglelefteq;': '\u22ec',
  1442. 'ntriangleright;': '\u22eb',
  1443. 'ntrianglerighteq;': '\u22ed',
  1444. 'Nu;': '\u039d',
  1445. 'nu;': '\u03bd',
  1446. 'num;': '#',
  1447. 'numero;': '\u2116',
  1448. 'numsp;': '\u2007',
  1449. 'nvap;': '\u224d\u20d2',
  1450. 'nVDash;': '\u22af',
  1451. 'nVdash;': '\u22ae',
  1452. 'nvDash;': '\u22ad',
  1453. 'nvdash;': '\u22ac',
  1454. 'nvge;': '\u2265\u20d2',
  1455. 'nvgt;': '>\u20d2',
  1456. 'nvHarr;': '\u2904',
  1457. 'nvinfin;': '\u29de',
  1458. 'nvlArr;': '\u2902',
  1459. 'nvle;': '\u2264\u20d2',
  1460. 'nvlt;': '<\u20d2',
  1461. 'nvltrie;': '\u22b4\u20d2',
  1462. 'nvrArr;': '\u2903',
  1463. 'nvrtrie;': '\u22b5\u20d2',
  1464. 'nvsim;': '\u223c\u20d2',
  1465. 'nwarhk;': '\u2923',
  1466. 'nwArr;': '\u21d6',
  1467. 'nwarr;': '\u2196',
  1468. 'nwarrow;': '\u2196',
  1469. 'nwnear;': '\u2927',
  1470. 'Oacute': '\xd3',
  1471. 'oacute': '\xf3',
  1472. 'Oacute;': '\xd3',
  1473. 'oacute;': '\xf3',
  1474. 'oast;': '\u229b',
  1475. 'ocir;': '\u229a',
  1476. 'Ocirc': '\xd4',
  1477. 'ocirc': '\xf4',
  1478. 'Ocirc;': '\xd4',
  1479. 'ocirc;': '\xf4',
  1480. 'Ocy;': '\u041e',
  1481. 'ocy;': '\u043e',
  1482. 'odash;': '\u229d',
  1483. 'Odblac;': '\u0150',
  1484. 'odblac;': '\u0151',
  1485. 'odiv;': '\u2a38',
  1486. 'odot;': '\u2299',
  1487. 'odsold;': '\u29bc',
  1488. 'OElig;': '\u0152',
  1489. 'oelig;': '\u0153',
  1490. 'ofcir;': '\u29bf',
  1491. 'Ofr;': '\U0001d512',
  1492. 'ofr;': '\U0001d52c',
  1493. 'ogon;': '\u02db',
  1494. 'Ograve': '\xd2',
  1495. 'ograve': '\xf2',
  1496. 'Ograve;': '\xd2',
  1497. 'ograve;': '\xf2',
  1498. 'ogt;': '\u29c1',
  1499. 'ohbar;': '\u29b5',
  1500. 'ohm;': '\u03a9',
  1501. 'oint;': '\u222e',
  1502. 'olarr;': '\u21ba',
  1503. 'olcir;': '\u29be',
  1504. 'olcross;': '\u29bb',
  1505. 'oline;': '\u203e',
  1506. 'olt;': '\u29c0',
  1507. 'Omacr;': '\u014c',
  1508. 'omacr;': '\u014d',
  1509. 'Omega;': '\u03a9',
  1510. 'omega;': '\u03c9',
  1511. 'Omicron;': '\u039f',
  1512. 'omicron;': '\u03bf',
  1513. 'omid;': '\u29b6',
  1514. 'ominus;': '\u2296',
  1515. 'Oopf;': '\U0001d546',
  1516. 'oopf;': '\U0001d560',
  1517. 'opar;': '\u29b7',
  1518. 'OpenCurlyDoubleQuote;': '\u201c',
  1519. 'OpenCurlyQuote;': '\u2018',
  1520. 'operp;': '\u29b9',
  1521. 'oplus;': '\u2295',
  1522. 'Or;': '\u2a54',
  1523. 'or;': '\u2228',
  1524. 'orarr;': '\u21bb',
  1525. 'ord;': '\u2a5d',
  1526. 'order;': '\u2134',
  1527. 'orderof;': '\u2134',
  1528. 'ordf': '\xaa',
  1529. 'ordf;': '\xaa',
  1530. 'ordm': '\xba',
  1531. 'ordm;': '\xba',
  1532. 'origof;': '\u22b6',
  1533. 'oror;': '\u2a56',
  1534. 'orslope;': '\u2a57',
  1535. 'orv;': '\u2a5b',
  1536. 'oS;': '\u24c8',
  1537. 'Oscr;': '\U0001d4aa',
  1538. 'oscr;': '\u2134',
  1539. 'Oslash': '\xd8',
  1540. 'oslash': '\xf8',
  1541. 'Oslash;': '\xd8',
  1542. 'oslash;': '\xf8',
  1543. 'osol;': '\u2298',
  1544. 'Otilde': '\xd5',
  1545. 'otilde': '\xf5',
  1546. 'Otilde;': '\xd5',
  1547. 'otilde;': '\xf5',
  1548. 'Otimes;': '\u2a37',
  1549. 'otimes;': '\u2297',
  1550. 'otimesas;': '\u2a36',
  1551. 'Ouml': '\xd6',
  1552. 'ouml': '\xf6',
  1553. 'Ouml;': '\xd6',
  1554. 'ouml;': '\xf6',
  1555. 'ovbar;': '\u233d',
  1556. 'OverBar;': '\u203e',
  1557. 'OverBrace;': '\u23de',
  1558. 'OverBracket;': '\u23b4',
  1559. 'OverParenthesis;': '\u23dc',
  1560. 'par;': '\u2225',
  1561. 'para': '\xb6',
  1562. 'para;': '\xb6',
  1563. 'parallel;': '\u2225',
  1564. 'parsim;': '\u2af3',
  1565. 'parsl;': '\u2afd',
  1566. 'part;': '\u2202',
  1567. 'PartialD;': '\u2202',
  1568. 'Pcy;': '\u041f',
  1569. 'pcy;': '\u043f',
  1570. 'percnt;': '%',
  1571. 'period;': '.',
  1572. 'permil;': '\u2030',
  1573. 'perp;': '\u22a5',
  1574. 'pertenk;': '\u2031',
  1575. 'Pfr;': '\U0001d513',
  1576. 'pfr;': '\U0001d52d',
  1577. 'Phi;': '\u03a6',
  1578. 'phi;': '\u03c6',
  1579. 'phiv;': '\u03d5',
  1580. 'phmmat;': '\u2133',
  1581. 'phone;': '\u260e',
  1582. 'Pi;': '\u03a0',
  1583. 'pi;': '\u03c0',
  1584. 'pitchfork;': '\u22d4',
  1585. 'piv;': '\u03d6',
  1586. 'planck;': '\u210f',
  1587. 'planckh;': '\u210e',
  1588. 'plankv;': '\u210f',
  1589. 'plus;': '+',
  1590. 'plusacir;': '\u2a23',
  1591. 'plusb;': '\u229e',
  1592. 'pluscir;': '\u2a22',
  1593. 'plusdo;': '\u2214',
  1594. 'plusdu;': '\u2a25',
  1595. 'pluse;': '\u2a72',
  1596. 'PlusMinus;': '\xb1',
  1597. 'plusmn': '\xb1',
  1598. 'plusmn;': '\xb1',
  1599. 'plussim;': '\u2a26',
  1600. 'plustwo;': '\u2a27',
  1601. 'pm;': '\xb1',
  1602. 'Poincareplane;': '\u210c',
  1603. 'pointint;': '\u2a15',
  1604. 'Popf;': '\u2119',
  1605. 'popf;': '\U0001d561',
  1606. 'pound': '\xa3',
  1607. 'pound;': '\xa3',
  1608. 'Pr;': '\u2abb',
  1609. 'pr;': '\u227a',
  1610. 'prap;': '\u2ab7',
  1611. 'prcue;': '\u227c',
  1612. 'prE;': '\u2ab3',
  1613. 'pre;': '\u2aaf',
  1614. 'prec;': '\u227a',
  1615. 'precapprox;': '\u2ab7',
  1616. 'preccurlyeq;': '\u227c',
  1617. 'Precedes;': '\u227a',
  1618. 'PrecedesEqual;': '\u2aaf',
  1619. 'PrecedesSlantEqual;': '\u227c',
  1620. 'PrecedesTilde;': '\u227e',
  1621. 'preceq;': '\u2aaf',
  1622. 'precnapprox;': '\u2ab9',
  1623. 'precneqq;': '\u2ab5',
  1624. 'precnsim;': '\u22e8',
  1625. 'precsim;': '\u227e',
  1626. 'Prime;': '\u2033',
  1627. 'prime;': '\u2032',
  1628. 'primes;': '\u2119',
  1629. 'prnap;': '\u2ab9',
  1630. 'prnE;': '\u2ab5',
  1631. 'prnsim;': '\u22e8',
  1632. 'prod;': '\u220f',
  1633. 'Product;': '\u220f',
  1634. 'profalar;': '\u232e',
  1635. 'profline;': '\u2312',
  1636. 'profsurf;': '\u2313',
  1637. 'prop;': '\u221d',
  1638. 'Proportion;': '\u2237',
  1639. 'Proportional;': '\u221d',
  1640. 'propto;': '\u221d',
  1641. 'prsim;': '\u227e',
  1642. 'prurel;': '\u22b0',
  1643. 'Pscr;': '\U0001d4ab',
  1644. 'pscr;': '\U0001d4c5',
  1645. 'Psi;': '\u03a8',
  1646. 'psi;': '\u03c8',
  1647. 'puncsp;': '\u2008',
  1648. 'Qfr;': '\U0001d514',
  1649. 'qfr;': '\U0001d52e',
  1650. 'qint;': '\u2a0c',
  1651. 'Qopf;': '\u211a',
  1652. 'qopf;': '\U0001d562',
  1653. 'qprime;': '\u2057',
  1654. 'Qscr;': '\U0001d4ac',
  1655. 'qscr;': '\U0001d4c6',
  1656. 'quaternions;': '\u210d',
  1657. 'quatint;': '\u2a16',
  1658. 'quest;': '?',
  1659. 'questeq;': '\u225f',
  1660. 'QUOT': '"',
  1661. 'quot': '"',
  1662. 'QUOT;': '"',
  1663. 'quot;': '"',
  1664. 'rAarr;': '\u21db',
  1665. 'race;': '\u223d\u0331',
  1666. 'Racute;': '\u0154',
  1667. 'racute;': '\u0155',
  1668. 'radic;': '\u221a',
  1669. 'raemptyv;': '\u29b3',
  1670. 'Rang;': '\u27eb',
  1671. 'rang;': '\u27e9',
  1672. 'rangd;': '\u2992',
  1673. 'range;': '\u29a5',
  1674. 'rangle;': '\u27e9',
  1675. 'raquo': '\xbb',
  1676. 'raquo;': '\xbb',
  1677. 'Rarr;': '\u21a0',
  1678. 'rArr;': '\u21d2',
  1679. 'rarr;': '\u2192',
  1680. 'rarrap;': '\u2975',
  1681. 'rarrb;': '\u21e5',
  1682. 'rarrbfs;': '\u2920',
  1683. 'rarrc;': '\u2933',
  1684. 'rarrfs;': '\u291e',
  1685. 'rarrhk;': '\u21aa',
  1686. 'rarrlp;': '\u21ac',
  1687. 'rarrpl;': '\u2945',
  1688. 'rarrsim;': '\u2974',
  1689. 'Rarrtl;': '\u2916',
  1690. 'rarrtl;': '\u21a3',
  1691. 'rarrw;': '\u219d',
  1692. 'rAtail;': '\u291c',
  1693. 'ratail;': '\u291a',
  1694. 'ratio;': '\u2236',
  1695. 'rationals;': '\u211a',
  1696. 'RBarr;': '\u2910',
  1697. 'rBarr;': '\u290f',
  1698. 'rbarr;': '\u290d',
  1699. 'rbbrk;': '\u2773',
  1700. 'rbrace;': '}',
  1701. 'rbrack;': ']',
  1702. 'rbrke;': '\u298c',
  1703. 'rbrksld;': '\u298e',
  1704. 'rbrkslu;': '\u2990',
  1705. 'Rcaron;': '\u0158',
  1706. 'rcaron;': '\u0159',
  1707. 'Rcedil;': '\u0156',
  1708. 'rcedil;': '\u0157',
  1709. 'rceil;': '\u2309',
  1710. 'rcub;': '}',
  1711. 'Rcy;': '\u0420',
  1712. 'rcy;': '\u0440',
  1713. 'rdca;': '\u2937',
  1714. 'rdldhar;': '\u2969',
  1715. 'rdquo;': '\u201d',
  1716. 'rdquor;': '\u201d',
  1717. 'rdsh;': '\u21b3',
  1718. 'Re;': '\u211c',
  1719. 'real;': '\u211c',
  1720. 'realine;': '\u211b',
  1721. 'realpart;': '\u211c',
  1722. 'reals;': '\u211d',
  1723. 'rect;': '\u25ad',
  1724. 'REG': '\xae',
  1725. 'reg': '\xae',
  1726. 'REG;': '\xae',
  1727. 'reg;': '\xae',
  1728. 'ReverseElement;': '\u220b',
  1729. 'ReverseEquilibrium;': '\u21cb',
  1730. 'ReverseUpEquilibrium;': '\u296f',
  1731. 'rfisht;': '\u297d',
  1732. 'rfloor;': '\u230b',
  1733. 'Rfr;': '\u211c',
  1734. 'rfr;': '\U0001d52f',
  1735. 'rHar;': '\u2964',
  1736. 'rhard;': '\u21c1',
  1737. 'rharu;': '\u21c0',
  1738. 'rharul;': '\u296c',
  1739. 'Rho;': '\u03a1',
  1740. 'rho;': '\u03c1',
  1741. 'rhov;': '\u03f1',
  1742. 'RightAngleBracket;': '\u27e9',
  1743. 'RightArrow;': '\u2192',
  1744. 'Rightarrow;': '\u21d2',
  1745. 'rightarrow;': '\u2192',
  1746. 'RightArrowBar;': '\u21e5',
  1747. 'RightArrowLeftArrow;': '\u21c4',
  1748. 'rightarrowtail;': '\u21a3',
  1749. 'RightCeiling;': '\u2309',
  1750. 'RightDoubleBracket;': '\u27e7',
  1751. 'RightDownTeeVector;': '\u295d',
  1752. 'RightDownVector;': '\u21c2',
  1753. 'RightDownVectorBar;': '\u2955',
  1754. 'RightFloor;': '\u230b',
  1755. 'rightharpoondown;': '\u21c1',
  1756. 'rightharpoonup;': '\u21c0',
  1757. 'rightleftarrows;': '\u21c4',
  1758. 'rightleftharpoons;': '\u21cc',
  1759. 'rightrightarrows;': '\u21c9',
  1760. 'rightsquigarrow;': '\u219d',
  1761. 'RightTee;': '\u22a2',
  1762. 'RightTeeArrow;': '\u21a6',
  1763. 'RightTeeVector;': '\u295b',
  1764. 'rightthreetimes;': '\u22cc',
  1765. 'RightTriangle;': '\u22b3',
  1766. 'RightTriangleBar;': '\u29d0',
  1767. 'RightTriangleEqual;': '\u22b5',
  1768. 'RightUpDownVector;': '\u294f',
  1769. 'RightUpTeeVector;': '\u295c',
  1770. 'RightUpVector;': '\u21be',
  1771. 'RightUpVectorBar;': '\u2954',
  1772. 'RightVector;': '\u21c0',
  1773. 'RightVectorBar;': '\u2953',
  1774. 'ring;': '\u02da',
  1775. 'risingdotseq;': '\u2253',
  1776. 'rlarr;': '\u21c4',
  1777. 'rlhar;': '\u21cc',
  1778. 'rlm;': '\u200f',
  1779. 'rmoust;': '\u23b1',
  1780. 'rmoustache;': '\u23b1',
  1781. 'rnmid;': '\u2aee',
  1782. 'roang;': '\u27ed',
  1783. 'roarr;': '\u21fe',
  1784. 'robrk;': '\u27e7',
  1785. 'ropar;': '\u2986',
  1786. 'Ropf;': '\u211d',
  1787. 'ropf;': '\U0001d563',
  1788. 'roplus;': '\u2a2e',
  1789. 'rotimes;': '\u2a35',
  1790. 'RoundImplies;': '\u2970',
  1791. 'rpar;': ')',
  1792. 'rpargt;': '\u2994',
  1793. 'rppolint;': '\u2a12',
  1794. 'rrarr;': '\u21c9',
  1795. 'Rrightarrow;': '\u21db',
  1796. 'rsaquo;': '\u203a',
  1797. 'Rscr;': '\u211b',
  1798. 'rscr;': '\U0001d4c7',
  1799. 'Rsh;': '\u21b1',
  1800. 'rsh;': '\u21b1',
  1801. 'rsqb;': ']',
  1802. 'rsquo;': '\u2019',
  1803. 'rsquor;': '\u2019',
  1804. 'rthree;': '\u22cc',
  1805. 'rtimes;': '\u22ca',
  1806. 'rtri;': '\u25b9',
  1807. 'rtrie;': '\u22b5',
  1808. 'rtrif;': '\u25b8',
  1809. 'rtriltri;': '\u29ce',
  1810. 'RuleDelayed;': '\u29f4',
  1811. 'ruluhar;': '\u2968',
  1812. 'rx;': '\u211e',
  1813. 'Sacute;': '\u015a',
  1814. 'sacute;': '\u015b',
  1815. 'sbquo;': '\u201a',
  1816. 'Sc;': '\u2abc',
  1817. 'sc;': '\u227b',
  1818. 'scap;': '\u2ab8',
  1819. 'Scaron;': '\u0160',
  1820. 'scaron;': '\u0161',
  1821. 'sccue;': '\u227d',
  1822. 'scE;': '\u2ab4',
  1823. 'sce;': '\u2ab0',
  1824. 'Scedil;': '\u015e',
  1825. 'scedil;': '\u015f',
  1826. 'Scirc;': '\u015c',
  1827. 'scirc;': '\u015d',
  1828. 'scnap;': '\u2aba',
  1829. 'scnE;': '\u2ab6',
  1830. 'scnsim;': '\u22e9',
  1831. 'scpolint;': '\u2a13',
  1832. 'scsim;': '\u227f',
  1833. 'Scy;': '\u0421',
  1834. 'scy;': '\u0441',
  1835. 'sdot;': '\u22c5',
  1836. 'sdotb;': '\u22a1',
  1837. 'sdote;': '\u2a66',
  1838. 'searhk;': '\u2925',
  1839. 'seArr;': '\u21d8',
  1840. 'searr;': '\u2198',
  1841. 'searrow;': '\u2198',
  1842. 'sect': '\xa7',
  1843. 'sect;': '\xa7',
  1844. 'semi;': ';',
  1845. 'seswar;': '\u2929',
  1846. 'setminus;': '\u2216',
  1847. 'setmn;': '\u2216',
  1848. 'sext;': '\u2736',
  1849. 'Sfr;': '\U0001d516',
  1850. 'sfr;': '\U0001d530',
  1851. 'sfrown;': '\u2322',
  1852. 'sharp;': '\u266f',
  1853. 'SHCHcy;': '\u0429',
  1854. 'shchcy;': '\u0449',
  1855. 'SHcy;': '\u0428',
  1856. 'shcy;': '\u0448',
  1857. 'ShortDownArrow;': '\u2193',
  1858. 'ShortLeftArrow;': '\u2190',
  1859. 'shortmid;': '\u2223',
  1860. 'shortparallel;': '\u2225',
  1861. 'ShortRightArrow;': '\u2192',
  1862. 'ShortUpArrow;': '\u2191',
  1863. 'shy': '\xad',
  1864. 'shy;': '\xad',
  1865. 'Sigma;': '\u03a3',
  1866. 'sigma;': '\u03c3',
  1867. 'sigmaf;': '\u03c2',
  1868. 'sigmav;': '\u03c2',
  1869. 'sim;': '\u223c',
  1870. 'simdot;': '\u2a6a',
  1871. 'sime;': '\u2243',
  1872. 'simeq;': '\u2243',
  1873. 'simg;': '\u2a9e',
  1874. 'simgE;': '\u2aa0',
  1875. 'siml;': '\u2a9d',
  1876. 'simlE;': '\u2a9f',
  1877. 'simne;': '\u2246',
  1878. 'simplus;': '\u2a24',
  1879. 'simrarr;': '\u2972',
  1880. 'slarr;': '\u2190',
  1881. 'SmallCircle;': '\u2218',
  1882. 'smallsetminus;': '\u2216',
  1883. 'smashp;': '\u2a33',
  1884. 'smeparsl;': '\u29e4',
  1885. 'smid;': '\u2223',
  1886. 'smile;': '\u2323',
  1887. 'smt;': '\u2aaa',
  1888. 'smte;': '\u2aac',
  1889. 'smtes;': '\u2aac\ufe00',
  1890. 'SOFTcy;': '\u042c',
  1891. 'softcy;': '\u044c',
  1892. 'sol;': '/',
  1893. 'solb;': '\u29c4',
  1894. 'solbar;': '\u233f',
  1895. 'Sopf;': '\U0001d54a',
  1896. 'sopf;': '\U0001d564',
  1897. 'spades;': '\u2660',
  1898. 'spadesuit;': '\u2660',
  1899. 'spar;': '\u2225',
  1900. 'sqcap;': '\u2293',
  1901. 'sqcaps;': '\u2293\ufe00',
  1902. 'sqcup;': '\u2294',
  1903. 'sqcups;': '\u2294\ufe00',
  1904. 'Sqrt;': '\u221a',
  1905. 'sqsub;': '\u228f',
  1906. 'sqsube;': '\u2291',
  1907. 'sqsubset;': '\u228f',
  1908. 'sqsubseteq;': '\u2291',
  1909. 'sqsup;': '\u2290',
  1910. 'sqsupe;': '\u2292',
  1911. 'sqsupset;': '\u2290',
  1912. 'sqsupseteq;': '\u2292',
  1913. 'squ;': '\u25a1',
  1914. 'Square;': '\u25a1',
  1915. 'square;': '\u25a1',
  1916. 'SquareIntersection;': '\u2293',
  1917. 'SquareSubset;': '\u228f',
  1918. 'SquareSubsetEqual;': '\u2291',
  1919. 'SquareSuperset;': '\u2290',
  1920. 'SquareSupersetEqual;': '\u2292',
  1921. 'SquareUnion;': '\u2294',
  1922. 'squarf;': '\u25aa',
  1923. 'squf;': '\u25aa',
  1924. 'srarr;': '\u2192',
  1925. 'Sscr;': '\U0001d4ae',
  1926. 'sscr;': '\U0001d4c8',
  1927. 'ssetmn;': '\u2216',
  1928. 'ssmile;': '\u2323',
  1929. 'sstarf;': '\u22c6',
  1930. 'Star;': '\u22c6',
  1931. 'star;': '\u2606',
  1932. 'starf;': '\u2605',
  1933. 'straightepsilon;': '\u03f5',
  1934. 'straightphi;': '\u03d5',
  1935. 'strns;': '\xaf',
  1936. 'Sub;': '\u22d0',
  1937. 'sub;': '\u2282',
  1938. 'subdot;': '\u2abd',
  1939. 'subE;': '\u2ac5',
  1940. 'sube;': '\u2286',
  1941. 'subedot;': '\u2ac3',
  1942. 'submult;': '\u2ac1',
  1943. 'subnE;': '\u2acb',
  1944. 'subne;': '\u228a',
  1945. 'subplus;': '\u2abf',
  1946. 'subrarr;': '\u2979',
  1947. 'Subset;': '\u22d0',
  1948. 'subset;': '\u2282',
  1949. 'subseteq;': '\u2286',
  1950. 'subseteqq;': '\u2ac5',
  1951. 'SubsetEqual;': '\u2286',
  1952. 'subsetneq;': '\u228a',
  1953. 'subsetneqq;': '\u2acb',
  1954. 'subsim;': '\u2ac7',
  1955. 'subsub;': '\u2ad5',
  1956. 'subsup;': '\u2ad3',
  1957. 'succ;': '\u227b',
  1958. 'succapprox;': '\u2ab8',
  1959. 'succcurlyeq;': '\u227d',
  1960. 'Succeeds;': '\u227b',
  1961. 'SucceedsEqual;': '\u2ab0',
  1962. 'SucceedsSlantEqual;': '\u227d',
  1963. 'SucceedsTilde;': '\u227f',
  1964. 'succeq;': '\u2ab0',
  1965. 'succnapprox;': '\u2aba',
  1966. 'succneqq;': '\u2ab6',
  1967. 'succnsim;': '\u22e9',
  1968. 'succsim;': '\u227f',
  1969. 'SuchThat;': '\u220b',
  1970. 'Sum;': '\u2211',
  1971. 'sum;': '\u2211',
  1972. 'sung;': '\u266a',
  1973. 'sup1': '\xb9',
  1974. 'sup1;': '\xb9',
  1975. 'sup2': '\xb2',
  1976. 'sup2;': '\xb2',
  1977. 'sup3': '\xb3',
  1978. 'sup3;': '\xb3',
  1979. 'Sup;': '\u22d1',
  1980. 'sup;': '\u2283',
  1981. 'supdot;': '\u2abe',
  1982. 'supdsub;': '\u2ad8',
  1983. 'supE;': '\u2ac6',
  1984. 'supe;': '\u2287',
  1985. 'supedot;': '\u2ac4',
  1986. 'Superset;': '\u2283',
  1987. 'SupersetEqual;': '\u2287',
  1988. 'suphsol;': '\u27c9',
  1989. 'suphsub;': '\u2ad7',
  1990. 'suplarr;': '\u297b',
  1991. 'supmult;': '\u2ac2',
  1992. 'supnE;': '\u2acc',
  1993. 'supne;': '\u228b',
  1994. 'supplus;': '\u2ac0',
  1995. 'Supset;': '\u22d1',
  1996. 'supset;': '\u2283',
  1997. 'supseteq;': '\u2287',
  1998. 'supseteqq;': '\u2ac6',
  1999. 'supsetneq;': '\u228b',
  2000. 'supsetneqq;': '\u2acc',
  2001. 'supsim;': '\u2ac8',
  2002. 'supsub;': '\u2ad4',
  2003. 'supsup;': '\u2ad6',
  2004. 'swarhk;': '\u2926',
  2005. 'swArr;': '\u21d9',
  2006. 'swarr;': '\u2199',
  2007. 'swarrow;': '\u2199',
  2008. 'swnwar;': '\u292a',
  2009. 'szlig': '\xdf',
  2010. 'szlig;': '\xdf',
  2011. 'Tab;': '\t',
  2012. 'target;': '\u2316',
  2013. 'Tau;': '\u03a4',
  2014. 'tau;': '\u03c4',
  2015. 'tbrk;': '\u23b4',
  2016. 'Tcaron;': '\u0164',
  2017. 'tcaron;': '\u0165',
  2018. 'Tcedil;': '\u0162',
  2019. 'tcedil;': '\u0163',
  2020. 'Tcy;': '\u0422',
  2021. 'tcy;': '\u0442',
  2022. 'tdot;': '\u20db',
  2023. 'telrec;': '\u2315',
  2024. 'Tfr;': '\U0001d517',
  2025. 'tfr;': '\U0001d531',
  2026. 'there4;': '\u2234',
  2027. 'Therefore;': '\u2234',
  2028. 'therefore;': '\u2234',
  2029. 'Theta;': '\u0398',
  2030. 'theta;': '\u03b8',
  2031. 'thetasym;': '\u03d1',
  2032. 'thetav;': '\u03d1',
  2033. 'thickapprox;': '\u2248',
  2034. 'thicksim;': '\u223c',
  2035. 'ThickSpace;': '\u205f\u200a',
  2036. 'thinsp;': '\u2009',
  2037. 'ThinSpace;': '\u2009',
  2038. 'thkap;': '\u2248',
  2039. 'thksim;': '\u223c',
  2040. 'THORN': '\xde',
  2041. 'thorn': '\xfe',
  2042. 'THORN;': '\xde',
  2043. 'thorn;': '\xfe',
  2044. 'Tilde;': '\u223c',
  2045. 'tilde;': '\u02dc',
  2046. 'TildeEqual;': '\u2243',
  2047. 'TildeFullEqual;': '\u2245',
  2048. 'TildeTilde;': '\u2248',
  2049. 'times': '\xd7',
  2050. 'times;': '\xd7',
  2051. 'timesb;': '\u22a0',
  2052. 'timesbar;': '\u2a31',
  2053. 'timesd;': '\u2a30',
  2054. 'tint;': '\u222d',
  2055. 'toea;': '\u2928',
  2056. 'top;': '\u22a4',
  2057. 'topbot;': '\u2336',
  2058. 'topcir;': '\u2af1',
  2059. 'Topf;': '\U0001d54b',
  2060. 'topf;': '\U0001d565',
  2061. 'topfork;': '\u2ada',
  2062. 'tosa;': '\u2929',
  2063. 'tprime;': '\u2034',
  2064. 'TRADE;': '\u2122',
  2065. 'trade;': '\u2122',
  2066. 'triangle;': '\u25b5',
  2067. 'triangledown;': '\u25bf',
  2068. 'triangleleft;': '\u25c3',
  2069. 'trianglelefteq;': '\u22b4',
  2070. 'triangleq;': '\u225c',
  2071. 'triangleright;': '\u25b9',
  2072. 'trianglerighteq;': '\u22b5',
  2073. 'tridot;': '\u25ec',
  2074. 'trie;': '\u225c',
  2075. 'triminus;': '\u2a3a',
  2076. 'TripleDot;': '\u20db',
  2077. 'triplus;': '\u2a39',
  2078. 'trisb;': '\u29cd',
  2079. 'tritime;': '\u2a3b',
  2080. 'trpezium;': '\u23e2',
  2081. 'Tscr;': '\U0001d4af',
  2082. 'tscr;': '\U0001d4c9',
  2083. 'TScy;': '\u0426',
  2084. 'tscy;': '\u0446',
  2085. 'TSHcy;': '\u040b',
  2086. 'tshcy;': '\u045b',
  2087. 'Tstrok;': '\u0166',
  2088. 'tstrok;': '\u0167',
  2089. 'twixt;': '\u226c',
  2090. 'twoheadleftarrow;': '\u219e',
  2091. 'twoheadrightarrow;': '\u21a0',
  2092. 'Uacute': '\xda',
  2093. 'uacute': '\xfa',
  2094. 'Uacute;': '\xda',
  2095. 'uacute;': '\xfa',
  2096. 'Uarr;': '\u219f',
  2097. 'uArr;': '\u21d1',
  2098. 'uarr;': '\u2191',
  2099. 'Uarrocir;': '\u2949',
  2100. 'Ubrcy;': '\u040e',
  2101. 'ubrcy;': '\u045e',
  2102. 'Ubreve;': '\u016c',
  2103. 'ubreve;': '\u016d',
  2104. 'Ucirc': '\xdb',
  2105. 'ucirc': '\xfb',
  2106. 'Ucirc;': '\xdb',
  2107. 'ucirc;': '\xfb',
  2108. 'Ucy;': '\u0423',
  2109. 'ucy;': '\u0443',
  2110. 'udarr;': '\u21c5',
  2111. 'Udblac;': '\u0170',
  2112. 'udblac;': '\u0171',
  2113. 'udhar;': '\u296e',
  2114. 'ufisht;': '\u297e',
  2115. 'Ufr;': '\U0001d518',
  2116. 'ufr;': '\U0001d532',
  2117. 'Ugrave': '\xd9',
  2118. 'ugrave': '\xf9',
  2119. 'Ugrave;': '\xd9',
  2120. 'ugrave;': '\xf9',
  2121. 'uHar;': '\u2963',
  2122. 'uharl;': '\u21bf',
  2123. 'uharr;': '\u21be',
  2124. 'uhblk;': '\u2580',
  2125. 'ulcorn;': '\u231c',
  2126. 'ulcorner;': '\u231c',
  2127. 'ulcrop;': '\u230f',
  2128. 'ultri;': '\u25f8',
  2129. 'Umacr;': '\u016a',
  2130. 'umacr;': '\u016b',
  2131. 'uml': '\xa8',
  2132. 'uml;': '\xa8',
  2133. 'UnderBar;': '_',
  2134. 'UnderBrace;': '\u23df',
  2135. 'UnderBracket;': '\u23b5',
  2136. 'UnderParenthesis;': '\u23dd',
  2137. 'Union;': '\u22c3',
  2138. 'UnionPlus;': '\u228e',
  2139. 'Uogon;': '\u0172',
  2140. 'uogon;': '\u0173',
  2141. 'Uopf;': '\U0001d54c',
  2142. 'uopf;': '\U0001d566',
  2143. 'UpArrow;': '\u2191',
  2144. 'Uparrow;': '\u21d1',
  2145. 'uparrow;': '\u2191',
  2146. 'UpArrowBar;': '\u2912',
  2147. 'UpArrowDownArrow;': '\u21c5',
  2148. 'UpDownArrow;': '\u2195',
  2149. 'Updownarrow;': '\u21d5',
  2150. 'updownarrow;': '\u2195',
  2151. 'UpEquilibrium;': '\u296e',
  2152. 'upharpoonleft;': '\u21bf',
  2153. 'upharpoonright;': '\u21be',
  2154. 'uplus;': '\u228e',
  2155. 'UpperLeftArrow;': '\u2196',
  2156. 'UpperRightArrow;': '\u2197',
  2157. 'Upsi;': '\u03d2',
  2158. 'upsi;': '\u03c5',
  2159. 'upsih;': '\u03d2',
  2160. 'Upsilon;': '\u03a5',
  2161. 'upsilon;': '\u03c5',
  2162. 'UpTee;': '\u22a5',
  2163. 'UpTeeArrow;': '\u21a5',
  2164. 'upuparrows;': '\u21c8',
  2165. 'urcorn;': '\u231d',
  2166. 'urcorner;': '\u231d',
  2167. 'urcrop;': '\u230e',
  2168. 'Uring;': '\u016e',
  2169. 'uring;': '\u016f',
  2170. 'urtri;': '\u25f9',
  2171. 'Uscr;': '\U0001d4b0',
  2172. 'uscr;': '\U0001d4ca',
  2173. 'utdot;': '\u22f0',
  2174. 'Utilde;': '\u0168',
  2175. 'utilde;': '\u0169',
  2176. 'utri;': '\u25b5',
  2177. 'utrif;': '\u25b4',
  2178. 'uuarr;': '\u21c8',
  2179. 'Uuml': '\xdc',
  2180. 'uuml': '\xfc',
  2181. 'Uuml;': '\xdc',
  2182. 'uuml;': '\xfc',
  2183. 'uwangle;': '\u29a7',
  2184. 'vangrt;': '\u299c',
  2185. 'varepsilon;': '\u03f5',
  2186. 'varkappa;': '\u03f0',
  2187. 'varnothing;': '\u2205',
  2188. 'varphi;': '\u03d5',
  2189. 'varpi;': '\u03d6',
  2190. 'varpropto;': '\u221d',
  2191. 'vArr;': '\u21d5',
  2192. 'varr;': '\u2195',
  2193. 'varrho;': '\u03f1',
  2194. 'varsigma;': '\u03c2',
  2195. 'varsubsetneq;': '\u228a\ufe00',
  2196. 'varsubsetneqq;': '\u2acb\ufe00',
  2197. 'varsupsetneq;': '\u228b\ufe00',
  2198. 'varsupsetneqq;': '\u2acc\ufe00',
  2199. 'vartheta;': '\u03d1',
  2200. 'vartriangleleft;': '\u22b2',
  2201. 'vartriangleright;': '\u22b3',
  2202. 'Vbar;': '\u2aeb',
  2203. 'vBar;': '\u2ae8',
  2204. 'vBarv;': '\u2ae9',
  2205. 'Vcy;': '\u0412',
  2206. 'vcy;': '\u0432',
  2207. 'VDash;': '\u22ab',
  2208. 'Vdash;': '\u22a9',
  2209. 'vDash;': '\u22a8',
  2210. 'vdash;': '\u22a2',
  2211. 'Vdashl;': '\u2ae6',
  2212. 'Vee;': '\u22c1',
  2213. 'vee;': '\u2228',
  2214. 'veebar;': '\u22bb',
  2215. 'veeeq;': '\u225a',
  2216. 'vellip;': '\u22ee',
  2217. 'Verbar;': '\u2016',
  2218. 'verbar;': '|',
  2219. 'Vert;': '\u2016',
  2220. 'vert;': '|',
  2221. 'VerticalBar;': '\u2223',
  2222. 'VerticalLine;': '|',
  2223. 'VerticalSeparator;': '\u2758',
  2224. 'VerticalTilde;': '\u2240',
  2225. 'VeryThinSpace;': '\u200a',
  2226. 'Vfr;': '\U0001d519',
  2227. 'vfr;': '\U0001d533',
  2228. 'vltri;': '\u22b2',
  2229. 'vnsub;': '\u2282\u20d2',
  2230. 'vnsup;': '\u2283\u20d2',
  2231. 'Vopf;': '\U0001d54d',
  2232. 'vopf;': '\U0001d567',
  2233. 'vprop;': '\u221d',
  2234. 'vrtri;': '\u22b3',
  2235. 'Vscr;': '\U0001d4b1',
  2236. 'vscr;': '\U0001d4cb',
  2237. 'vsubnE;': '\u2acb\ufe00',
  2238. 'vsubne;': '\u228a\ufe00',
  2239. 'vsupnE;': '\u2acc\ufe00',
  2240. 'vsupne;': '\u228b\ufe00',
  2241. 'Vvdash;': '\u22aa',
  2242. 'vzigzag;': '\u299a',
  2243. 'Wcirc;': '\u0174',
  2244. 'wcirc;': '\u0175',
  2245. 'wedbar;': '\u2a5f',
  2246. 'Wedge;': '\u22c0',
  2247. 'wedge;': '\u2227',
  2248. 'wedgeq;': '\u2259',
  2249. 'weierp;': '\u2118',
  2250. 'Wfr;': '\U0001d51a',
  2251. 'wfr;': '\U0001d534',
  2252. 'Wopf;': '\U0001d54e',
  2253. 'wopf;': '\U0001d568',
  2254. 'wp;': '\u2118',
  2255. 'wr;': '\u2240',
  2256. 'wreath;': '\u2240',
  2257. 'Wscr;': '\U0001d4b2',
  2258. 'wscr;': '\U0001d4cc',
  2259. 'xcap;': '\u22c2',
  2260. 'xcirc;': '\u25ef',
  2261. 'xcup;': '\u22c3',
  2262. 'xdtri;': '\u25bd',
  2263. 'Xfr;': '\U0001d51b',
  2264. 'xfr;': '\U0001d535',
  2265. 'xhArr;': '\u27fa',
  2266. 'xharr;': '\u27f7',
  2267. 'Xi;': '\u039e',
  2268. 'xi;': '\u03be',
  2269. 'xlArr;': '\u27f8',
  2270. 'xlarr;': '\u27f5',
  2271. 'xmap;': '\u27fc',
  2272. 'xnis;': '\u22fb',
  2273. 'xodot;': '\u2a00',
  2274. 'Xopf;': '\U0001d54f',
  2275. 'xopf;': '\U0001d569',
  2276. 'xoplus;': '\u2a01',
  2277. 'xotime;': '\u2a02',
  2278. 'xrArr;': '\u27f9',
  2279. 'xrarr;': '\u27f6',
  2280. 'Xscr;': '\U0001d4b3',
  2281. 'xscr;': '\U0001d4cd',
  2282. 'xsqcup;': '\u2a06',
  2283. 'xuplus;': '\u2a04',
  2284. 'xutri;': '\u25b3',
  2285. 'xvee;': '\u22c1',
  2286. 'xwedge;': '\u22c0',
  2287. 'Yacute': '\xdd',
  2288. 'yacute': '\xfd',
  2289. 'Yacute;': '\xdd',
  2290. 'yacute;': '\xfd',
  2291. 'YAcy;': '\u042f',
  2292. 'yacy;': '\u044f',
  2293. 'Ycirc;': '\u0176',
  2294. 'ycirc;': '\u0177',
  2295. 'Ycy;': '\u042b',
  2296. 'ycy;': '\u044b',
  2297. 'yen': '\xa5',
  2298. 'yen;': '\xa5',
  2299. 'Yfr;': '\U0001d51c',
  2300. 'yfr;': '\U0001d536',
  2301. 'YIcy;': '\u0407',
  2302. 'yicy;': '\u0457',
  2303. 'Yopf;': '\U0001d550',
  2304. 'yopf;': '\U0001d56a',
  2305. 'Yscr;': '\U0001d4b4',
  2306. 'yscr;': '\U0001d4ce',
  2307. 'YUcy;': '\u042e',
  2308. 'yucy;': '\u044e',
  2309. 'yuml': '\xff',
  2310. 'Yuml;': '\u0178',
  2311. 'yuml;': '\xff',
  2312. 'Zacute;': '\u0179',
  2313. 'zacute;': '\u017a',
  2314. 'Zcaron;': '\u017d',
  2315. 'zcaron;': '\u017e',
  2316. 'Zcy;': '\u0417',
  2317. 'zcy;': '\u0437',
  2318. 'Zdot;': '\u017b',
  2319. 'zdot;': '\u017c',
  2320. 'zeetrf;': '\u2128',
  2321. 'ZeroWidthSpace;': '\u200b',
  2322. 'Zeta;': '\u0396',
  2323. 'zeta;': '\u03b6',
  2324. 'Zfr;': '\u2128',
  2325. 'zfr;': '\U0001d537',
  2326. 'ZHcy;': '\u0416',
  2327. 'zhcy;': '\u0436',
  2328. 'zigrarr;': '\u21dd',
  2329. 'Zopf;': '\u2124',
  2330. 'zopf;': '\U0001d56b',
  2331. 'Zscr;': '\U0001d4b5',
  2332. 'zscr;': '\U0001d4cf',
  2333. 'zwj;': '\u200d',
  2334. 'zwnj;': '\u200c',
  2335. }
  2336. try:
  2337. import http.client as compat_http_client
  2338. except ImportError: # Python 2
  2339. import httplib as compat_http_client
  2340. try:
  2341. from urllib.error import HTTPError as compat_HTTPError
  2342. except ImportError: # Python 2
  2343. from urllib2 import HTTPError as compat_HTTPError
  2344. compat_urllib_HTTPError = compat_HTTPError
  2345. try:
  2346. from urllib.request import urlretrieve as compat_urlretrieve
  2347. except ImportError: # Python 2
  2348. from urllib import urlretrieve as compat_urlretrieve
  2349. compat_urllib_request_urlretrieve = compat_urlretrieve
  2350. try:
  2351. from html.parser import HTMLParser as compat_HTMLParser
  2352. except ImportError: # Python 2
  2353. from HTMLParser import HTMLParser as compat_HTMLParser
  2354. compat_html_parser_HTMLParser = compat_HTMLParser
  2355. try: # Python 2
  2356. from HTMLParser import HTMLParseError as compat_HTMLParseError
  2357. except ImportError: # Python <3.4
  2358. try:
  2359. from html.parser import HTMLParseError as compat_HTMLParseError
  2360. except ImportError: # Python >3.4
  2361. # HTMLParseError has been deprecated in Python 3.3 and removed in
  2362. # Python 3.5. Introducing dummy exception for Python >3.5 for compatible
  2363. # and uniform cross-version exception handling
  2364. class compat_HTMLParseError(Exception):
  2365. pass
  2366. compat_html_parser_HTMLParseError = compat_HTMLParseError
  2367. try:
  2368. from subprocess import DEVNULL
  2369. compat_subprocess_get_DEVNULL = lambda: DEVNULL
  2370. except ImportError:
  2371. compat_subprocess_get_DEVNULL = lambda: open(os.path.devnull, 'w')
  2372. try:
  2373. import http.server as compat_http_server
  2374. except ImportError:
  2375. import BaseHTTPServer as compat_http_server
  2376. try:
  2377. from urllib.parse import unquote_to_bytes as compat_urllib_parse_unquote_to_bytes
  2378. from urllib.parse import unquote as compat_urllib_parse_unquote
  2379. from urllib.parse import unquote_plus as compat_urllib_parse_unquote_plus
  2380. from urllib.parse import urlencode as compat_urllib_parse_urlencode
  2381. from urllib.parse import parse_qs as compat_parse_qs
  2382. except ImportError: # Python 2
  2383. _asciire = (compat_urllib_parse._asciire if hasattr(compat_urllib_parse, '_asciire')
  2384. else re.compile(r'([\x00-\x7f]+)'))
  2385. # HACK: The following are the correct unquote_to_bytes, unquote and unquote_plus
  2386. # implementations from cpython 3.4.3's stdlib. Python 2's version
  2387. # is apparently broken (see https://github.com/ytdl-org/youtube-dl/pull/6244)
  2388. def compat_urllib_parse_unquote_to_bytes(string):
  2389. """unquote_to_bytes('abc%20def') -> b'abc def'."""
  2390. # Note: strings are encoded as UTF-8. This is only an issue if it contains
  2391. # unescaped non-ASCII characters, which URIs should not.
  2392. if not string:
  2393. # Is it a string-like object?
  2394. string.split
  2395. return b''
  2396. if isinstance(string, compat_str):
  2397. string = string.encode('utf-8')
  2398. bits = string.split(b'%')
  2399. if len(bits) == 1:
  2400. return string
  2401. res = [bits[0]]
  2402. append = res.append
  2403. for item in bits[1:]:
  2404. try:
  2405. append(compat_urllib_parse._hextochr[item[:2]])
  2406. append(item[2:])
  2407. except KeyError:
  2408. append(b'%')
  2409. append(item)
  2410. return b''.join(res)
  2411. def compat_urllib_parse_unquote(string, encoding='utf-8', errors='replace'):
  2412. """Replace %xx escapes by their single-character equivalent. The optional
  2413. encoding and errors parameters specify how to decode percent-encoded
  2414. sequences into Unicode characters, as accepted by the bytes.decode()
  2415. method.
  2416. By default, percent-encoded sequences are decoded with UTF-8, and invalid
  2417. sequences are replaced by a placeholder character.
  2418. unquote('abc%20def') -> 'abc def'.
  2419. """
  2420. if '%' not in string:
  2421. string.split
  2422. return string
  2423. if encoding is None:
  2424. encoding = 'utf-8'
  2425. if errors is None:
  2426. errors = 'replace'
  2427. bits = _asciire.split(string)
  2428. res = [bits[0]]
  2429. append = res.append
  2430. for i in range(1, len(bits), 2):
  2431. append(compat_urllib_parse_unquote_to_bytes(bits[i]).decode(encoding, errors))
  2432. append(bits[i + 1])
  2433. return ''.join(res)
  2434. def compat_urllib_parse_unquote_plus(string, encoding='utf-8', errors='replace'):
  2435. """Like unquote(), but also replace plus signs by spaces, as required for
  2436. unquoting HTML form values.
  2437. unquote_plus('%7e/abc+def') -> '~/abc def'
  2438. """
  2439. string = string.replace('+', ' ')
  2440. return compat_urllib_parse_unquote(string, encoding, errors)
  2441. # Python 2 will choke in urlencode on mixture of byte and unicode strings.
  2442. # Possible solutions are to either port it from python 3 with all
  2443. # the friends or manually ensure input query contains only byte strings.
  2444. # We will stick with latter thus recursively encoding the whole query.
  2445. def compat_urllib_parse_urlencode(query, doseq=0, encoding='utf-8'):
  2446. def encode_elem(e):
  2447. if isinstance(e, dict):
  2448. e = encode_dict(e)
  2449. elif isinstance(e, (list, tuple,)):
  2450. list_e = encode_list(e)
  2451. e = tuple(list_e) if isinstance(e, tuple) else list_e
  2452. elif isinstance(e, compat_str):
  2453. e = e.encode(encoding)
  2454. return e
  2455. def encode_dict(d):
  2456. return dict((encode_elem(k), encode_elem(v)) for k, v in d.items())
  2457. def encode_list(l):
  2458. return [encode_elem(e) for e in l]
  2459. return compat_urllib_parse._urlencode(encode_elem(query), doseq=doseq)
  2460. # HACK: The following is the correct parse_qs implementation from cpython 3's stdlib.
  2461. # Python 2's version is apparently totally broken
  2462. def _parse_qsl(qs, keep_blank_values=False, strict_parsing=False,
  2463. encoding='utf-8', errors='replace'):
  2464. qs, _coerce_result = qs, compat_str
  2465. pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
  2466. r = []
  2467. for name_value in pairs:
  2468. if not name_value and not strict_parsing:
  2469. continue
  2470. nv = name_value.split('=', 1)
  2471. if len(nv) != 2:
  2472. if strict_parsing:
  2473. raise ValueError('bad query field: %r' % (name_value,))
  2474. # Handle case of a control-name with no equal sign
  2475. if keep_blank_values:
  2476. nv.append('')
  2477. else:
  2478. continue
  2479. if len(nv[1]) or keep_blank_values:
  2480. name = nv[0].replace('+', ' ')
  2481. name = compat_urllib_parse_unquote(
  2482. name, encoding=encoding, errors=errors)
  2483. name = _coerce_result(name)
  2484. value = nv[1].replace('+', ' ')
  2485. value = compat_urllib_parse_unquote(
  2486. value, encoding=encoding, errors=errors)
  2487. value = _coerce_result(value)
  2488. r.append((name, value))
  2489. return r
  2490. def compat_parse_qs(qs, keep_blank_values=False, strict_parsing=False,
  2491. encoding='utf-8', errors='replace'):
  2492. parsed_result = {}
  2493. pairs = _parse_qsl(qs, keep_blank_values, strict_parsing,
  2494. encoding=encoding, errors=errors)
  2495. for name, value in pairs:
  2496. if name in parsed_result:
  2497. parsed_result[name].append(value)
  2498. else:
  2499. parsed_result[name] = [value]
  2500. return parsed_result
  2501. setattr(compat_urllib_parse, '_urlencode',
  2502. getattr(compat_urllib_parse, 'urlencode'))
  2503. for name, fix in (
  2504. ('unquote_to_bytes', compat_urllib_parse_unquote_to_bytes),
  2505. ('parse_unquote', compat_urllib_parse_unquote),
  2506. ('unquote_plus', compat_urllib_parse_unquote_plus),
  2507. ('urlencode', compat_urllib_parse_urlencode),
  2508. ('parse_qs', compat_parse_qs)):
  2509. setattr(compat_urllib_parse, name, fix)
  2510. compat_urllib_parse_parse_qs = compat_parse_qs
  2511. try:
  2512. from urllib.request import DataHandler as compat_urllib_request_DataHandler
  2513. except ImportError: # Python < 3.4
  2514. # Ported from CPython 98774:1733b3bd46db, Lib/urllib/request.py
  2515. class compat_urllib_request_DataHandler(compat_urllib_request.BaseHandler):
  2516. def data_open(self, req):
  2517. # data URLs as specified in RFC 2397.
  2518. #
  2519. # ignores POSTed data
  2520. #
  2521. # syntax:
  2522. # dataurl := "data:" [ mediatype ] [ ";base64" ] "," data
  2523. # mediatype := [ type "/" subtype ] *( ";" parameter )
  2524. # data := *urlchar
  2525. # parameter := attribute "=" value
  2526. url = req.get_full_url()
  2527. scheme, data = url.split(':', 1)
  2528. mediatype, data = data.split(',', 1)
  2529. # even base64 encoded data URLs might be quoted so unquote in any case:
  2530. data = compat_urllib_parse_unquote_to_bytes(data)
  2531. if mediatype.endswith(';base64'):
  2532. data = binascii.a2b_base64(data)
  2533. mediatype = mediatype[:-7]
  2534. if not mediatype:
  2535. mediatype = 'text/plain;charset=US-ASCII'
  2536. headers = email.message_from_string(
  2537. 'Content-type: %s\nContent-length: %d\n' % (mediatype, len(data)))
  2538. return compat_urllib_response.addinfourl(io.BytesIO(data), headers, url)
  2539. try:
  2540. from xml.etree.ElementTree import ParseError as compat_xml_parse_error
  2541. except ImportError: # Python 2.6
  2542. from xml.parsers.expat import ExpatError as compat_xml_parse_error
  2543. compat_xml_etree_ElementTree_ParseError = compat_xml_parse_error
  2544. etree = xml.etree.ElementTree
  2545. class _TreeBuilder(etree.TreeBuilder):
  2546. def doctype(self, name, pubid, system):
  2547. pass
  2548. try:
  2549. # xml.etree.ElementTree.Element is a method in Python <=2.6 and
  2550. # the following will crash with:
  2551. # TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types
  2552. isinstance(None, etree.Element)
  2553. from xml.etree.ElementTree import Element as compat_etree_Element
  2554. except TypeError: # Python <=2.6
  2555. from xml.etree.ElementTree import _ElementInterface as compat_etree_Element
  2556. compat_xml_etree_ElementTree_Element = compat_etree_Element
  2557. if sys.version_info[0] >= 3:
  2558. def compat_etree_fromstring(text):
  2559. return etree.XML(text, parser=etree.XMLParser(target=_TreeBuilder()))
  2560. else:
  2561. # python 2.x tries to encode unicode strings with ascii (see the
  2562. # XMLParser._fixtext method)
  2563. try:
  2564. _etree_iter = etree.Element.iter
  2565. except AttributeError: # Python <=2.6
  2566. def _etree_iter(root):
  2567. for el in root.findall('*'):
  2568. yield el
  2569. for sub in _etree_iter(el):
  2570. yield sub
  2571. # on 2.6 XML doesn't have a parser argument, function copied from CPython
  2572. # 2.7 source
  2573. def _XML(text, parser=None):
  2574. if not parser:
  2575. parser = etree.XMLParser(target=_TreeBuilder())
  2576. parser.feed(text)
  2577. return parser.close()
  2578. def _element_factory(*args, **kwargs):
  2579. el = etree.Element(*args, **kwargs)
  2580. for k, v in el.items():
  2581. if isinstance(v, bytes):
  2582. el.set(k, v.decode('utf-8'))
  2583. return el
  2584. def compat_etree_fromstring(text):
  2585. doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  2586. for el in _etree_iter(doc):
  2587. if el.text is not None and isinstance(el.text, bytes):
  2588. el.text = el.text.decode('utf-8')
  2589. return doc
  2590. if hasattr(etree, 'register_namespace'):
  2591. compat_etree_register_namespace = etree.register_namespace
  2592. else:
  2593. def compat_etree_register_namespace(prefix, uri):
  2594. """Register a namespace prefix.
  2595. The registry is global, and any existing mapping for either the
  2596. given prefix or the namespace URI will be removed.
  2597. *prefix* is the namespace prefix, *uri* is a namespace uri. Tags and
  2598. attributes in this namespace will be serialized with prefix if possible.
  2599. ValueError is raised if prefix is reserved or is invalid.
  2600. """
  2601. if re.match(r"ns\d+$", prefix):
  2602. raise ValueError("Prefix format reserved for internal use")
  2603. for k, v in list(etree._namespace_map.items()):
  2604. if k == uri or v == prefix:
  2605. del etree._namespace_map[k]
  2606. etree._namespace_map[uri] = prefix
  2607. compat_xml_etree_register_namespace = compat_etree_register_namespace
  2608. if sys.version_info < (2, 7):
  2609. # Here comes the crazy part: In 2.6, if the xpath is a unicode,
  2610. # .//node does not match if a node is a direct child of . !
  2611. def compat_xpath(xpath):
  2612. if isinstance(xpath, compat_str):
  2613. xpath = xpath.encode('ascii')
  2614. return xpath
  2615. else:
  2616. compat_xpath = lambda xpath: xpath
  2617. compat_os_name = os._name if os.name == 'java' else os.name
  2618. if compat_os_name == 'nt':
  2619. def compat_shlex_quote(s):
  2620. return s if re.match(r'^[-_\w./]+$', s) else '"%s"' % s.replace('"', '\\"')
  2621. else:
  2622. try:
  2623. from shlex import quote as compat_shlex_quote
  2624. except ImportError: # Python < 3.3
  2625. def compat_shlex_quote(s):
  2626. if re.match(r'^[-_\w./]+$', s):
  2627. return s
  2628. else:
  2629. return "'" + s.replace("'", "'\"'\"'") + "'"
  2630. try:
  2631. args = shlex.split('中文')
  2632. assert (isinstance(args, list)
  2633. and isinstance(args[0], compat_str)
  2634. and args[0] == '中文')
  2635. compat_shlex_split = shlex.split
  2636. except (AssertionError, UnicodeEncodeError):
  2637. # Working around shlex issue with unicode strings on some python 2
  2638. # versions (see http://bugs.python.org/issue1548891)
  2639. def compat_shlex_split(s, comments=False, posix=True):
  2640. if isinstance(s, compat_str):
  2641. s = s.encode('utf-8')
  2642. return list(map(lambda s: s.decode('utf-8'), shlex.split(s, comments, posix)))
  2643. def compat_ord(c):
  2644. if type(c) is int:
  2645. return c
  2646. else:
  2647. return ord(c)
  2648. if sys.version_info >= (3, 0):
  2649. compat_getenv = os.getenv
  2650. compat_expanduser = os.path.expanduser
  2651. def compat_setenv(key, value, env=os.environ):
  2652. env[key] = value
  2653. else:
  2654. # Environment variables should be decoded with filesystem encoding.
  2655. # Otherwise it will fail if any non-ASCII characters present (see #3854 #3217 #2918)
  2656. def compat_getenv(key, default=None):
  2657. from .utils import get_filesystem_encoding
  2658. env = os.getenv(key, default)
  2659. if env:
  2660. env = env.decode(get_filesystem_encoding())
  2661. return env
  2662. def compat_setenv(key, value, env=os.environ):
  2663. def encode(v):
  2664. from .utils import get_filesystem_encoding
  2665. return v.encode(get_filesystem_encoding()) if isinstance(v, compat_str) else v
  2666. env[encode(key)] = encode(value)
  2667. # HACK: The default implementations of os.path.expanduser from cpython do not decode
  2668. # environment variables with filesystem encoding. We will work around this by
  2669. # providing adjusted implementations.
  2670. # The following are os.path.expanduser implementations from cpython 2.7.8 stdlib
  2671. # for different platforms with correct environment variables decoding.
  2672. if compat_os_name == 'posix':
  2673. def compat_expanduser(path):
  2674. """Expand ~ and ~user constructions. If user or $HOME is unknown,
  2675. do nothing."""
  2676. if not path.startswith('~'):
  2677. return path
  2678. i = path.find('/', 1)
  2679. if i < 0:
  2680. i = len(path)
  2681. if i == 1:
  2682. if 'HOME' not in os.environ:
  2683. import pwd
  2684. userhome = pwd.getpwuid(os.getuid()).pw_dir
  2685. else:
  2686. userhome = compat_getenv('HOME')
  2687. else:
  2688. import pwd
  2689. try:
  2690. pwent = pwd.getpwnam(path[1:i])
  2691. except KeyError:
  2692. return path
  2693. userhome = pwent.pw_dir
  2694. userhome = userhome.rstrip('/')
  2695. return (userhome + path[i:]) or '/'
  2696. elif compat_os_name in ('nt', 'ce'):
  2697. def compat_expanduser(path):
  2698. """Expand ~ and ~user constructs.
  2699. If user or $HOME is unknown, do nothing."""
  2700. if path[:1] != '~':
  2701. return path
  2702. i, n = 1, len(path)
  2703. while i < n and path[i] not in '/\\':
  2704. i = i + 1
  2705. if 'HOME' in os.environ:
  2706. userhome = compat_getenv('HOME')
  2707. elif 'USERPROFILE' in os.environ:
  2708. userhome = compat_getenv('USERPROFILE')
  2709. elif 'HOMEPATH' not in os.environ:
  2710. return path
  2711. else:
  2712. try:
  2713. drive = compat_getenv('HOMEDRIVE')
  2714. except KeyError:
  2715. drive = ''
  2716. userhome = os.path.join(drive, compat_getenv('HOMEPATH'))
  2717. if i != 1: # ~user
  2718. userhome = os.path.join(os.path.dirname(userhome), path[1:i])
  2719. return userhome + path[i:]
  2720. else:
  2721. compat_expanduser = os.path.expanduser
  2722. compat_os_path_expanduser = compat_expanduser
  2723. if compat_os_name == 'nt' and sys.version_info < (3, 8):
  2724. # os.path.realpath on Windows does not follow symbolic links
  2725. # prior to Python 3.8 (see https://bugs.python.org/issue9949)
  2726. def compat_realpath(path):
  2727. while os.path.islink(path):
  2728. path = os.path.abspath(os.readlink(path))
  2729. return path
  2730. else:
  2731. compat_realpath = os.path.realpath
  2732. compat_os_path_realpath = compat_realpath
  2733. if sys.version_info < (3, 0):
  2734. def compat_print(s):
  2735. from .utils import preferredencoding
  2736. print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
  2737. else:
  2738. def compat_print(s):
  2739. assert isinstance(s, compat_str)
  2740. print(s)
  2741. if sys.version_info < (3, 0) and sys.platform == 'win32':
  2742. def compat_getpass(prompt, *args, **kwargs):
  2743. if isinstance(prompt, compat_str):
  2744. from .utils import preferredencoding
  2745. prompt = prompt.encode(preferredencoding())
  2746. return getpass.getpass(prompt, *args, **kwargs)
  2747. else:
  2748. compat_getpass = getpass.getpass
  2749. compat_getpass_getpass = compat_getpass
  2750. try:
  2751. compat_input = raw_input
  2752. except NameError: # Python 3
  2753. compat_input = input
  2754. # Python < 2.6.5 require kwargs to be bytes
  2755. try:
  2756. def _testfunc(x):
  2757. pass
  2758. _testfunc(**{'x': 0})
  2759. except TypeError:
  2760. def compat_kwargs(kwargs):
  2761. return dict((bytes(k), v) for k, v in kwargs.items())
  2762. else:
  2763. compat_kwargs = lambda kwargs: kwargs
  2764. try:
  2765. compat_numeric_types = (int, float, long, complex)
  2766. except NameError: # Python 3
  2767. compat_numeric_types = (int, float, complex)
  2768. try:
  2769. compat_integer_types = (int, long)
  2770. except NameError: # Python 3
  2771. compat_integer_types = (int, )
  2772. if sys.version_info < (2, 7):
  2773. def compat_socket_create_connection(address, timeout, source_address=None):
  2774. host, port = address
  2775. err = None
  2776. for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
  2777. af, socktype, proto, canonname, sa = res
  2778. sock = None
  2779. try:
  2780. sock = socket.socket(af, socktype, proto)
  2781. sock.settimeout(timeout)
  2782. if source_address:
  2783. sock.bind(source_address)
  2784. sock.connect(sa)
  2785. return sock
  2786. except socket.error as _:
  2787. err = _
  2788. if sock is not None:
  2789. sock.close()
  2790. if err is not None:
  2791. raise err
  2792. else:
  2793. raise socket.error('getaddrinfo returns an empty list')
  2794. else:
  2795. compat_socket_create_connection = socket.create_connection
  2796. # Fix https://github.com/ytdl-org/youtube-dl/issues/4223
  2797. # See http://bugs.python.org/issue9161 for what is broken
  2798. def workaround_optparse_bug9161():
  2799. op = optparse.OptionParser()
  2800. og = optparse.OptionGroup(op, 'foo')
  2801. try:
  2802. og.add_option('-t')
  2803. except TypeError:
  2804. real_add_option = optparse.OptionGroup.add_option
  2805. def _compat_add_option(self, *args, **kwargs):
  2806. enc = lambda v: (
  2807. v.encode('ascii', 'replace') if isinstance(v, compat_str)
  2808. else v)
  2809. bargs = [enc(a) for a in args]
  2810. bkwargs = dict(
  2811. (k, enc(v)) for k, v in kwargs.items())
  2812. return real_add_option(self, *bargs, **bkwargs)
  2813. optparse.OptionGroup.add_option = _compat_add_option
  2814. if hasattr(shutil, 'get_terminal_size'): # Python >= 3.3
  2815. compat_get_terminal_size = shutil.get_terminal_size
  2816. else:
  2817. _terminal_size = collections.namedtuple('terminal_size', ['columns', 'lines'])
  2818. def compat_get_terminal_size(fallback=(80, 24)):
  2819. from .utils import process_communicate_or_kill
  2820. columns = compat_getenv('COLUMNS')
  2821. if columns:
  2822. columns = int(columns)
  2823. else:
  2824. columns = None
  2825. lines = compat_getenv('LINES')
  2826. if lines:
  2827. lines = int(lines)
  2828. else:
  2829. lines = None
  2830. if columns is None or lines is None or columns <= 0 or lines <= 0:
  2831. try:
  2832. sp = subprocess.Popen(
  2833. ['stty', 'size'],
  2834. stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  2835. out, err = process_communicate_or_kill(sp)
  2836. _lines, _columns = map(int, out.split())
  2837. except Exception:
  2838. _columns, _lines = _terminal_size(*fallback)
  2839. if columns is None or columns <= 0:
  2840. columns = _columns
  2841. if lines is None or lines <= 0:
  2842. lines = _lines
  2843. return _terminal_size(columns, lines)
  2844. try:
  2845. itertools.count(start=0, step=1)
  2846. compat_itertools_count = itertools.count
  2847. except TypeError: # Python 2.6
  2848. def compat_itertools_count(start=0, step=1):
  2849. while True:
  2850. yield start
  2851. start += step
  2852. if sys.version_info >= (3, 0):
  2853. from tokenize import tokenize as compat_tokenize_tokenize
  2854. else:
  2855. from tokenize import generate_tokens as compat_tokenize_tokenize
  2856. try:
  2857. struct.pack('!I', 0)
  2858. except TypeError:
  2859. # In Python 2.6 and 2.7.x < 2.7.7, struct requires a bytes argument
  2860. # See https://bugs.python.org/issue19099
  2861. def compat_struct_pack(spec, *args):
  2862. if isinstance(spec, compat_str):
  2863. spec = spec.encode('ascii')
  2864. return struct.pack(spec, *args)
  2865. def compat_struct_unpack(spec, *args):
  2866. if isinstance(spec, compat_str):
  2867. spec = spec.encode('ascii')
  2868. return struct.unpack(spec, *args)
  2869. class compat_Struct(struct.Struct):
  2870. def __init__(self, fmt):
  2871. if isinstance(fmt, compat_str):
  2872. fmt = fmt.encode('ascii')
  2873. super(compat_Struct, self).__init__(fmt)
  2874. else:
  2875. compat_struct_pack = struct.pack
  2876. compat_struct_unpack = struct.unpack
  2877. if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8):
  2878. class compat_Struct(struct.Struct):
  2879. def unpack(self, string):
  2880. if not isinstance(string, buffer): # noqa: F821
  2881. string = buffer(string) # noqa: F821
  2882. return super(compat_Struct, self).unpack(string)
  2883. else:
  2884. compat_Struct = struct.Struct
  2885. # compat_map/filter() returning an iterator, supposedly the
  2886. # same versioning as for zip below
  2887. try:
  2888. from future_builtins import map as compat_map
  2889. except ImportError:
  2890. try:
  2891. from itertools import imap as compat_map
  2892. except ImportError:
  2893. compat_map = map
  2894. try:
  2895. from future_builtins import filter as compat_filter
  2896. except ImportError:
  2897. try:
  2898. from itertools import ifilter as compat_filter
  2899. except ImportError:
  2900. compat_filter = filter
  2901. try:
  2902. from future_builtins import zip as compat_zip
  2903. except ImportError: # not 2.6+ or is 3.x
  2904. try:
  2905. from itertools import izip as compat_zip # < 2.5 or 3.x
  2906. except ImportError:
  2907. compat_zip = zip
  2908. # method renamed between Py2/3
  2909. try:
  2910. from itertools import zip_longest as compat_itertools_zip_longest
  2911. except ImportError:
  2912. from itertools import izip_longest as compat_itertools_zip_longest
  2913. # new class in collections
  2914. try:
  2915. from collections import ChainMap as compat_collections_chain_map
  2916. # Py3.3's ChainMap is deficient
  2917. if sys.version_info < (3, 4):
  2918. raise ImportError
  2919. except ImportError:
  2920. # Py <= 3.3
  2921. class compat_collections_chain_map(compat_collections_abc.MutableMapping):
  2922. maps = [{}]
  2923. def __init__(self, *maps):
  2924. self.maps = list(maps) or [{}]
  2925. def __getitem__(self, k):
  2926. for m in self.maps:
  2927. if k in m:
  2928. return m[k]
  2929. raise KeyError(k)
  2930. def __setitem__(self, k, v):
  2931. self.maps[0].__setitem__(k, v)
  2932. return
  2933. def __contains__(self, k):
  2934. return any((k in m) for m in self.maps)
  2935. def __delitem(self, k):
  2936. if k in self.maps[0]:
  2937. del self.maps[0][k]
  2938. return
  2939. raise KeyError(k)
  2940. def __delitem__(self, k):
  2941. self.__delitem(k)
  2942. def __iter__(self):
  2943. return itertools.chain(*reversed(self.maps))
  2944. def __len__(self):
  2945. return len(iter(self))
  2946. # to match Py3, don't del directly
  2947. def pop(self, k, *args):
  2948. if self.__contains__(k):
  2949. off = self.__getitem__(k)
  2950. self.__delitem(k)
  2951. return off
  2952. elif len(args) > 0:
  2953. return args[0]
  2954. raise KeyError(k)
  2955. def new_child(self, m=None, **kwargs):
  2956. m = m or {}
  2957. m.update(kwargs)
  2958. return compat_collections_chain_map(m, *self.maps)
  2959. @property
  2960. def parents(self):
  2961. return compat_collections_chain_map(*(self.maps[1:]))
  2962. # Pythons disagree on the type of a pattern (RegexObject, _sre.SRE_Pattern, Pattern, ...?)
  2963. compat_re_Pattern = type(re.compile(''))
  2964. # and on the type of a match
  2965. compat_re_Match = type(re.match('a', 'a'))
  2966. if sys.version_info < (3, 3):
  2967. def compat_b64decode(s, *args, **kwargs):
  2968. if isinstance(s, compat_str):
  2969. s = s.encode('ascii')
  2970. return base64.b64decode(s, *args, **kwargs)
  2971. else:
  2972. compat_b64decode = base64.b64decode
  2973. compat_base64_b64decode = compat_b64decode
  2974. if platform.python_implementation() == 'PyPy' and sys.pypy_version_info < (5, 4, 0):
  2975. # PyPy2 prior to version 5.4.0 expects byte strings as Windows function
  2976. # names, see the original PyPy issue [1] and the youtube-dl one [2].
  2977. # 1. https://bitbucket.org/pypy/pypy/issues/2360/windows-ctypescdll-typeerror-function-name
  2978. # 2. https://github.com/ytdl-org/youtube-dl/pull/4392
  2979. def compat_ctypes_WINFUNCTYPE(*args, **kwargs):
  2980. real = ctypes.WINFUNCTYPE(*args, **kwargs)
  2981. def resf(tpl, *args, **kwargs):
  2982. funcname, dll = tpl
  2983. return real((str(funcname), dll), *args, **kwargs)
  2984. return resf
  2985. else:
  2986. def compat_ctypes_WINFUNCTYPE(*args, **kwargs):
  2987. return ctypes.WINFUNCTYPE(*args, **kwargs)
  2988. if sys.version_info < (3, 0):
  2989. # open(file, mode='r', buffering=- 1, encoding=None, errors=None, newline=None, closefd=True) not: opener=None
  2990. def compat_open(file_, *args, **kwargs):
  2991. if len(args) > 6 or 'opener' in kwargs:
  2992. raise ValueError('open: unsupported argument "opener"')
  2993. return io.open(file_, *args, **kwargs)
  2994. else:
  2995. compat_open = open
  2996. legacy = [
  2997. 'compat_HTMLParseError',
  2998. 'compat_HTMLParser',
  2999. 'compat_HTTPError',
  3000. 'compat_b64decode',
  3001. 'compat_cookiejar',
  3002. 'compat_cookiejar_Cookie',
  3003. 'compat_cookies',
  3004. 'compat_cookies_SimpleCookie',
  3005. 'compat_etree_Element',
  3006. 'compat_etree_register_namespace',
  3007. 'compat_expanduser',
  3008. 'compat_getpass',
  3009. 'compat_parse_qs',
  3010. 'compat_realpath',
  3011. 'compat_urllib_parse_parse_qs',
  3012. 'compat_urllib_parse_unquote',
  3013. 'compat_urllib_parse_unquote_plus',
  3014. 'compat_urllib_parse_unquote_to_bytes',
  3015. 'compat_urllib_parse_urlencode',
  3016. 'compat_urllib_parse_urlparse',
  3017. 'compat_urlparse',
  3018. 'compat_urlretrieve',
  3019. 'compat_xml_parse_error',
  3020. ]
  3021. __all__ = [
  3022. 'compat_html_parser_HTMLParseError',
  3023. 'compat_html_parser_HTMLParser',
  3024. 'compat_Struct',
  3025. 'compat_base64_b64decode',
  3026. 'compat_basestring',
  3027. 'compat_casefold',
  3028. 'compat_chr',
  3029. 'compat_collections_abc',
  3030. 'compat_collections_chain_map',
  3031. 'compat_http_cookiejar',
  3032. 'compat_http_cookiejar_Cookie',
  3033. 'compat_http_cookies',
  3034. 'compat_http_cookies_SimpleCookie',
  3035. 'compat_ctypes_WINFUNCTYPE',
  3036. 'compat_etree_fromstring',
  3037. 'compat_filter',
  3038. 'compat_get_terminal_size',
  3039. 'compat_getenv',
  3040. 'compat_getpass_getpass',
  3041. 'compat_html_entities',
  3042. 'compat_html_entities_html5',
  3043. 'compat_http_client',
  3044. 'compat_http_server',
  3045. 'compat_input',
  3046. 'compat_integer_types',
  3047. 'compat_itertools_count',
  3048. 'compat_itertools_zip_longest',
  3049. 'compat_kwargs',
  3050. 'compat_map',
  3051. 'compat_numeric_types',
  3052. 'compat_open',
  3053. 'compat_ord',
  3054. 'compat_os_name',
  3055. 'compat_os_path_expanduser',
  3056. 'compat_os_path_realpath',
  3057. 'compat_print',
  3058. 'compat_re_Match',
  3059. 'compat_re_Pattern',
  3060. 'compat_setenv',
  3061. 'compat_shlex_quote',
  3062. 'compat_shlex_split',
  3063. 'compat_socket_create_connection',
  3064. 'compat_str',
  3065. 'compat_struct_pack',
  3066. 'compat_struct_unpack',
  3067. 'compat_subprocess_get_DEVNULL',
  3068. 'compat_tokenize_tokenize',
  3069. 'compat_urllib_error',
  3070. 'compat_urllib_parse',
  3071. 'compat_urllib_request',
  3072. 'compat_urllib_request_DataHandler',
  3073. 'compat_urllib_response',
  3074. 'compat_urllib_request_urlretrieve',
  3075. 'compat_urllib_HTTPError',
  3076. 'compat_xml_etree_ElementTree_Element',
  3077. 'compat_xml_etree_ElementTree_ParseError',
  3078. 'compat_xml_etree_register_namespace',
  3079. 'compat_xpath',
  3080. 'compat_zip',
  3081. 'workaround_optparse_bug9161',
  3082. ]