compat.py 98 KB

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