mod: ++++++приоритеты и тесты html-мнемоник для decode_to_unicode()

This commit is contained in:
2025-08-09 11:31:30 +03:00
parent f052ec5eb1
commit 960ec97093
2 changed files with 121 additions and 125 deletions

View File

@@ -359,7 +359,7 @@ STRINGS_FOR_ENCODE = [
("Β Ç Χ ‡ Δ Ð É Ê È", "Β Ç Χ ‡ Δ Ð É Ê È"),
("Ε Η Ë Γ Í Î Ì Ι Ï", "Ε Η Ë Γ Í Î Ì Ι Ï"),
("Κ Λ Μ Ñ Ν Œ Ó Ô Ò Ö", "Κ Λ Μ Ñ Ν Œ Ó Ô Ò Ö"),
("Ω Ο Ø Õ Φ Π ″ Ψ Ρ Š", "Ω Ο Ø Õ Φ Π ″ Ψ Ρ Š"),
("Ω Ο Ø Õ Φ Π ″ Ψ Ρ Š", "Ω Ο Ø Õ Φ Π ″ Ψ Ρ Š"),
("Σ Þ Τ Θ Ú Û Ù Υ Ü", "Σ Þ Τ Θ Ú Û Ù Υ Ü"),
("Ξ Ý Ÿ Ζ á â ´ æ à", "Ξ Ý Ÿ Ζ á â ´ æ à"),
("α & ∧ ∠ ' å ≈ ã ä", "ℵ α & ∧ ∠ ' å ≈ ã ä"),
@@ -367,7 +367,7 @@ STRINGS_FOR_ENCODE = [
("♣ ≅ © ↵ ¤ ⇓ † ↓ °", "♣ ≅ © ↵ ∪ ¤ ⇓ † ↓ °"),
("δ ♦ ÷ é ê è ∅ \u2003 \u2002", "δ ♦ ÷ é ê è ∅    "),
("ε ≡ η ð ë € ∃ ƒ ∀ ½", "ε ≡ η ð ë € ∃ ƒ ∀ ½"),
("¼ ¾ γ ≥ > ⇔ ↔ ♥ …", "¼ ¾ ⁄ γ ≥ > ⇔ ↔ ♥ …"),
("¼ ¾ γ ≥ > ⇔ ↔ ♥ …", "¼ ¾ ⁄ γ ≥ > ⇔ ↔ ♥ …"),
("í î ¡ ì ∞ ∫ ι ¿ ∈", "í î ¡ ì ℑ ∞ ∫ ι ¿ ∈"),
("ï κ ⇐ λ ⟨ « ← ⌈ “ ≤", "ï κ ⇐ λ ⟨ « ← ⌈ “ ≤"),
("\u200e < ¯ — µ", "&lfloor; &lowast; &loz; &lrm; &lsaquo; &lsquo; &lt; &macr; &mdash; &micro;"),
@@ -472,7 +472,7 @@ STRINGS_FOR_ENCODE = [
("⪧ ⩺ ⋗ ⦕ ⩼ ⪆ ⥸ ⋗", "&gtcc; &gtcir; &gtdot; &gtlPar; &gtquest; &gap; &gtrarr; &gtdot;"),
("⋛ ⪌ ≷ ≳ ˇ \u200a ½ ", "&gel; &gEl; &gl; &gsim; &caron; &hairsp; &half; &Hscr;"),
("Ъ ъ ⇔ ↔ ⥈ ↭ ^ ℏ Ĥ ĥ", "Ъ ъ &iff; &harr; &harrcir; &harrw; ^ &hbar; &Hcirc; &hcirc;"),
("♥ … ⊹ 𝔥 ", "&hearts; &hellip; &hercon; &Hfr; &hfr; &Hscr; &searhk;"),
("♥ … ⊹ 𝔥 ", "&hearts; &mldr; &hercon; &Hfr; &hfr; &Hscr; &searhk;"),
("⤦ ⇿ ∻ ↩ ↪ 𝕙", "&swarhk; &hoarr; &homtht; &larrhk; &rarrhk; &Hopf; &hopf;"),
("― ─ 𝒽 ℏ Ħ ħ", "&horbar; &boxh; &Hscr; &hscr; &hbar; &Hstrok; &hstrok;"),
("≎ ≏ Í í Í", "&bump; &bumpe; &hybull; &dash; &Iacute; &iacute; &Iacute;"),
@@ -498,96 +498,88 @@ STRINGS_FOR_ENCODE = [
("← ⇤ ⇆ ↢ ⌈", "&larr; &larrb; &lrarr; &larrtl; &lceil;"),
("⟦ ⥡ ⇃ ⥙", "&lobrk; &LeftDownTeeVector; &dharl; &LeftDownVectorBar;"),
("⌊ ↽ ↼ ⇇", "&lfloor; &lhard; &lharu; &llarr;"),
# ("↔ ⇔ ↔ ⇆", "&LeftRightArrow; &Leftrightarrow; &leftrightarrow; &leftrightarrows;"),
# ("⇋ ↭ ⥎ ⊣", "&leftrightharpoons; &leftrightsquigarrow; &LeftRightVector; &LeftTee;"),
# ("↤ ⥚ ⋋ ⊲", "&LeftTeeArrow; &LeftTeeVector; &leftthreetimes; &LeftTriangle;"),
# ("⧏ ⊴ ⥑ ⥠", "&LeftTriangleBar; &LeftTriangleEqual; &LeftUpDownVector; &LeftUpTeeVector;"),
# ("↿ ⥘ ↼ ⥒ ⪋ ⋚", "&LeftUpVector; &LeftUpVectorBar; &LeftVector; &LeftVectorBar; &lEg; &leg;"),
# ("≤ ≦ ⩽ ⩽ ⪨ ⩿ ⪁ ⪃ ⪓", "&leq; &leqq; &leqslant; &les; &lescc; &lesdot; &lesdoto; &lesdotor; &lesges;"),
# ("⪅ ⋖ ⋚ ⪋ ⋚", "&lessapprox; &lessdot; &lesseqgtr; &lesseqqgtr; &LessEqualGreater;"),
# ("≦ ≶ ≶ ⪡ ≲ ⩽", "&LessFullEqual; &LessGreater; &lessgtr; &LessLess; &lesssim; &LessSlantEqual;"),
# ("≲ ⥼ ⌊ 𝔏 𝔩 ≶ ⪑ ⥢ ↽ ↼", "&LessTilde; &lfisht; &lfloor; &Lfr; &lfr; &lg; &lgE; &lHar; &lhard; &lharu;"),
# ("⥪ ▄ Љ љ ⋘ ≪ ⇇ ⌞ ⇚", "&lharul; &lhblk; &LJcy; &ljcy; &Ll; &ll; &llarr; &llcorner; &Lleftarrow;"),
# ("⥫ ◺ Ŀ ŀ ⎰ ⎰ ⪉ ⪉", "&llhard; &lltri; &Lmidot; &lmidot; &lmoust; &lmoustache; &lnap; &lnapprox;"),
# ("≨ ⪇ ⪇ ≨ ⋦ ⟬ ⇽ ⟦ ⟵", "&lnE; &lne; &lneq; &lneqq; &lnsim; &loang; &loarr; &lobrk; &LongLeftArrow;"),
# ("⟸ ⟵ ⟷ ⟺", "&Longleftarrow; &longleftarrow; &LongLeftRightArrow; &Longleftrightarrow;"),
# ("⟷ ⟼ ⟶ ⟹", "&longleftrightarrow; &longmapsto; &LongRightArrow; &Longrightarrow;"),
# ("⟶ ↫ ↬ ⦅ 𝕃 𝕝", "&longrightarrow; &looparrowleft; &looparrowright; &lopar; &Lopf; &lopf;"),
# ("⨭ ⨴ _ ↙ ↘ ◊", "&loplus; &lotimes; &lowast; &lowbar; &LowerLeftArrow; &LowerRightArrow; &loz;"),
# ("◊ ⧫ ( ⦓ ⇆ ⌟ ⇋ ⥭ ", "&lozenge; &lozf; &lpar; &lparlt; &lrarr; &lrcorner; &lrhar; &lrhard; &lrm;"),
# (" 𝓁 ↰ ↰ ≲ ⪍ ⪏ [", "&lrtri; &lsaquo; &Lscr; &lscr; &Lsh; &lsh; &lsim; &lsime; &lsimg; &lsqb;"),
# (" Ł ł < < < < ⪦ ⩹", "&lsquo; &lsquor; &Lstrok; &lstrok; &LT; &lt; &LT; &Lt; &lt; &ltcc; &ltcir;"),
# ("⋖ ⋋ ⋉ ⥶ ⩻ ◃ ⊴ ◂ ⦖", "&ltdot; &lthree; &ltimes; &ltlarr; &ltquest; &ltri; &ltrie; &ltrif; &ltrPar;"),
# ("⥊ ⥦ ¯ ¯ ♂ ✠ ✠ ⤅ ↦", "&lurdshar; &luruhar; &macr; &macr; &male; &malt; &maltese; &Map; &map;"),
# ("↦ ↧ ↤ ↥ ▮ ⨩ М м", "&mapsto; &mapstodown; &mapstoleft; &mapstoup; &marker; &mcomma; &Mcy; &mcy;"),
# ("— ∺ ∡ 𝔐 𝔪 ℧", "&mdash; &mDDot; &measuredangle; &MediumSpace; &Mellintrf; &Mfr; &mfr; &mho;"),
# ("µ µ * ⫰ · · ", "&micro; &micro; &mid; &midast; &midcir; &middot; &middot; &minus; &minusb;"),
# ("∸ ⨪ ∓ ⫛ … ∓ ⊧ 𝕄 𝕞", "&minusd; &minusdu; &MinusPlus; &mlcp; &mldr; &mnplus; &models; &Mopf; &mopf;"),
# (" 𝓂 ∾ Μ μ ⊸ ⊸ ∇ Ń", "&mp; &Mscr; &mscr; &mstpos; &Mu; &mu; &multimap; &mumap; &nabla; &Nacute;"),
# ("ń ≉ ʼn ≉ ♮ ♮    ", "&nacute; &nap; &napos; &napprox; &natur; &natural; &naturals; &nbsp; &nbsp;"),
# ("⩃ Ň ň Ņ ņ ≇ ⩂ Н н ", "&ncap; &Ncaron; &ncaron; &Ncedil; &ncedil; &ncong; &ncup; &Ncy; &ncy; &ndash;"),
# ("≠ ⤤ ⇗ ↗ ↗ ", "&ne; &nearhk; &neArr; &nearr; &nearrow; &NegativeMediumSpace;"),
# (" ≢", "&NegativeThickSpace; &NegativeThinSpace; &NegativeVeryThinSpace; &nequiv;"),
# ("⤨ ≫ ≪ \n # ∄ ∄", "&nesear; &NestedGreaterGreater; &NestedLessLess; &NewLine; &nexist; &nexists;"),
# ("𝔑 𝔫 ≱ ≱ ≵ ≯ ≯ ⇎ ↮ ⫲ ∋", "&Nfr; &nfr; &nge; &ngeq; &ngsim; &ngt; &ngtr; &nhArr; &nharr; &nhpar; &ni;"),
# ("⋼ ⋺ ∋ Њ њ ⇍ ↚ ‥ ≰ ⇍", "&nis; &nisd; &niv; &NJcy; &njcy; &nlArr; &nlarr; &nldr; &nle; &nLeftarrow;"),
# ("↚ ⇎ ↮ ≰ ≮ ≴ ≮", "&nleftarrow; &nLeftrightarrow; &nleftrightarrow; &nleq; &nless; &nlsim; &nlt;"),
# ("⋪ ⋬ ∤   𝕟 ¬ ⫬", "&nltri; &nltrie; &nmid; &NoBreak; &NonBreakingSpace; &Nopf; &nopf; &not; &Not;"),
# ("¬ ≢ ≭ ∦ ∉", "&not; &NotCongruent; &NotCupCap; &NotDoubleVerticalBar; &NotElement;"),
# ("≠ ∄ ≯ ≱ ≹", "&NotEqual; &NotExists; &NotGreater; &NotGreaterEqual; &NotGreaterLess;"),
# ("≵ ∉ ∉ ⋷ ⋶ ⋪", "&NotGreaterTilde; &notin; &notinva; &notinvb; &notinvc; &NotLeftTriangle;"),
# ("⋬ ≮ ≰ ≸", "&NotLeftTriangleEqual; &NotLess; &NotLessEqual; &NotLessGreater;"),
# ("≴ ∌ ∌ ⋾ ⋽ ⊀", "&NotLessTilde; &notni; &notniva; &notnivb; &notnivc; &NotPrecedes;"),
# ("⋠ ∌ ⋫", "&NotPrecedesSlantEqual; &NotReverseElement; &NotRightTriangle;"),
# ("⋭ ⋢ ⋣", "&NotRightTriangleEqual; &NotSquareSubsetEqual; &NotSquareSupersetEqual;"),
# ("⊈ ⊁ ", "&NotSubsetEqual; &NotSucceeds; &NotSucceedsSlantEqual; &NotSupersetEqual;"),
# ("≁ ≄ ≇ ≉", "&NotTilde; &NotTildeEqual; &NotTildeFullEqual; &NotTildeTilde;"),
# ("∤ ∦ ∦ ⨔ ⊀ ⋠ ⊀ ⇏", "&NotVerticalBar; &npar; &nparallel; &npolint; &npr; &nprcue; &nprec; &nrArr;"),
# ("↛ ⇏ ↛ ⋫ ⋭ ⊁ ⋡ 𝒩", "&nrarr; &nRightarrow; &nrightarrow; &nrtri; &nrtrie; &nsc; &nsccue; &Nscr;"),
# ("𝓃 ∤ ∦ ≁ ≄ ≄ ∤ ∦", "&nscr; &nshortmid; &nshortparallel; &nsim; &nsime; &nsimeq; &nsmid; &nspar;"),
# ("⋢ ⋣ ⊄ ⊈ ⊈ ⊁ ⊅ ⊉", "&nsqsube; &nsqsupe; &nsub; &nsube; &nsubseteq; &nsucc; &nsup; &nsupe;"),
# ("⊉ ≹ Ñ ñ Ñ ñ ≸ ⋪", "&nsupseteq; &ntgl; &Ntilde; &ntilde; &Ntilde; &ntilde; &ntlg; &ntriangleleft;"),
# ("⋬ ⋫ ⋭ Ν ν # №", "&ntrianglelefteq; &ntriangleright; &ntrianglerighteq; &Nu; &nu; &num; &numero;"),
# (" ⊯ ⊮ ⊭ ⊬ ⤄ ⧞ ⤂", "&numsp; &nVDash; &nVdash; &nvDash; &nvdash; &nvHarr; &nvinfin; &nvlArr;"),
# ("⤃ ⤣ ⇖ ↖ ↖ ⤧ Ó ó", "&nvrArr; &nwarhk; &nwArr; &nwarr; &nwarrow; &nwnear; &Oacute; &oacute;"),
# ("Ó ó ⊛ ⊚ Ô ô Ô ô О о", "&Oacute; &oacute; &oast; &ocir; &Ocirc; &ocirc; &Ocirc; &ocirc; &Ocy; &ocy;"),
# ("⊝ Ő ő ⨸ ⊙ ⦼ Œ œ ⦿ 𝔒", "&odash; &Odblac; &odblac; &odiv; &odot; &odsold; &OElig; &oelig; &ofcir; &Ofr;"),
# ("𝔬 ˛ Ò ò Ò ò ⧁ ⦵ Ω ∮", "&ofr; &ogon; &Ograve; &ograve; &Ograve; &ograve; &ogt; &ohbar; &ohm; &oint;"),
# ("↺ ⦾ ⦻ ‾ ⧀ Ō ō Ω ω", "&olarr; &olcir; &olcross; &oline; &olt; &Omacr; &omacr; &Omega; &omega;"),
# ("Ο ο ⦶ ⊖ 𝕆 𝕠 ⦷", "&Omicron; &omicron; &omid; &ominus; &Oopf; &oopf; &opar;"),
# ("“ ⦹ ⊕ ⩔ ↻", "&OpenCurlyDoubleQuote; &OpenCurlyQuote; &operp; &oplus; &Or; &or; &orarr;"),
# ("⩝ ª ª º º ⊶ ⩖ ⩗", "&ord; &order; &orderof; &ordf; &ordf; &ordm; &ordm; &origof; &oror; &orslope;"),
# ("⩛ Ⓢ 𝒪 Ø ø Ø ø ⊘ Õ", "&orv; &oS; &Oscr; &oscr; &Oslash; &oslash; &Oslash; &oslash; &osol; &Otilde;"),
# ("õ Õ õ ⨷ ⊗ ⨶ Ö ö Ö", "&otilde; &Otilde; &otilde; &Otimes; &otimes; &otimesas; &Ouml; &ouml; &Ouml;"),
# ("ö ⌽ ‾ ⏞ ⎴ ⏜ ∥", "&ouml; &ovbar; &OverBar; &OverBrace; &OverBracket; &OverParenthesis; &par;"),
# ("¶ ¶ ∥ ⫳ ⫽ ∂ ∂ П п", "&para; &para; &parallel; &parsim; &parsl; &part; &PartialD; &Pcy; &pcy;"),
# ("% . ‰ ⊥ ‱ 𝔓 𝔭 Φ φ ϕ", "&percnt; &period; &permil; &perp; &pertenk; &Pfr; &pfr; &Phi; &phi; &phiv;"),
# (" ☎ Π π ⋔ ϖ ℏ ℏ", "&phmmat; &phone; &Pi; &pi; &pitchfork; &piv; &planck; &planckh; &plankv;"),
# ("+ ⨣ ⊞ ⨢ ∔ ⨥ ⩲ ±", "&plus; &plusacir; &plusb; &pluscir; &plusdo; &plusdu; &pluse; &PlusMinus;"),
# ("± ± ⨦ ⨧ ± ", "&plusmn; &plusmn; &plussim; &plustwo; &pm; &Poincareplane; &pointint; &Popf;"),
# ("𝕡 £ £ ⪻ ≺ ⪷ ≼ ⪳ ⪯ ≺", "&popf; &pound; &pound; &Pr; &pr; &prap; &prcue; &prE; &pre; &prec;"),
# ("⪷ ≼ ≺ ⪯ ≼", "&precapprox; &preccurlyeq; &Precedes; &PrecedesEqual; &PrecedesSlantEqual;"),
# ("≾ ⪯ ⪹ ⪵ ⋨ ≾ ″", "&PrecedesTilde; &preceq; &precnapprox; &precneqq; &precnsim; &precsim; &Prime;"),
# (" ⪹ ⪵ ⋨ ∏ ∏ ⌮", "&prime; &primes; &prnap; &prnE; &prnsim; &prod; &Product; &profalar;"),
# ("⌒ ⌓ ∝ ∷ ∝ ∝ ≾", "&profline; &profsurf; &prop; &Proportion; &Proportional; &propto; &prsim;"),
# ("⊰ 𝒫 𝓅 Ψ ψ 𝔔 𝔮 𝕢", "&prurel; &Pscr; &pscr; &Psi; &psi; &puncsp; &Qfr; &qfr; &qint; &Qopf; &qopf;"),
# ("⁗ 𝒬 𝓆 ⨖ ? ≟ " "", "&qprime; &Qscr; &qscr; &quaternions; &quatint; &quest; &questeq; &QUOT; &quot;"),
# ("" " ⇛ Ŕ ŕ √ ⦳ ⟫ ⟩", "&QUOT; &quot; &rAarr; &Racute; &racute; &radic; &raemptyv; &Rang; &rang;"),
# ("⦒ ⦥ ⟩ » » ↠ ⇒ → ⥵ ⇥", "&rangd; &range; &rangle; &raquo; &raquo; &Rarr; &rArr; &rarr; &rarrap; &rarrb;"),
# ("⤠ ⤳ ⤞ ↪ ↬ ⥅ ⥴ ⤖", "&rarrbfs; &rarrc; &rarrfs; &rarrhk; &rarrlp; &rarrpl; &rarrsim; &Rarrtl;"),
# ("↣ ↝ ⤜ ⤚ ⤐ ⤏ ⤍", "&rarrtl; &rarrw; &rAtail; &ratail; &ratio; &rationals; &RBarr; &rBarr; &rbarr;"),
# (" } ] ⦌ ⦎ ⦐ Ř ř", "&rbbrk; &rbrace; &rbrack; &rbrke; &rbrksld; &rbrkslu; &Rcaron; &rcaron;"),
# ("Ŗ ŗ ⌉ } Р р ⤷ ⥩ ” ”", "&Rcedil; &rcedil; &rceil; &rcub; &Rcy; &rcy; &rdca; &rdldhar; &rdquo; &rdquor;"),
# ("↳ ▭ ® ® ® ®", "&rdsh; &Re; &real; &realine; &realpart; &reals; &rect; &REG; &reg; &REG; &reg;"),
# ("∋ ⇋ ⥯ ⥽ ⌋", "&ReverseElement; &ReverseEquilibrium; &ReverseUpEquilibrium; &rfisht; &rfloor;"),
# (" 𝔯 ⥤ ⇁ ⇀ ⥬ Ρ ρ ϱ", "&Rfr; &rfr; &rHar; &rhard; &rharu; &rharul; &Rho; &rho; &rhov;"),
# ("⟩ → ⇒ → ⇥", "&RightAngleBracket; &RightArrow; &Rightarrow; &rightarrow; &RightArrowBar;"),
# ("⇄ ↣ ⌉ ⟧", "&RightArrowLeftArrow; &rightarrowtail; &RightCeiling; &RightDoubleBracket;"),
# ("⥝ ⇂ ⥕ ⌋", "&RightDownTeeVector; &RightDownVector; &RightDownVectorBar; &RightFloor;"),
# ("⇁ ⇀ ⇄ ⇌", "&rightharpoondown; &rightharpoonup; &rightleftarrows; &rightleftharpoons;"),
# ("⇉ ↝ ⊢ ↦", "&rightrightarrows; &rightsquigarrow; &RightTee; &RightTeeArrow;"),
# ("⥛ ⋌ ⊳ ⧐", "&RightTeeVector; &rightthreetimes; &RightTriangle; &RightTriangleBar;"),
# ("⊵ ⥏ ⥜ ↾", "&RightTriangleEqual; &RightUpDownVector; &RightUpTeeVector; &RightUpVector;"),
("↔ ⇔ ↔ ⇆", "&harr; &iff; &harr; &lrarr;"),
("⇋ ↭ ⥎ ⊣", "&lrhar; &harrw; &LeftRightVector; &dashv;"),
("↤ ⥚ ⋋ ⊲", "&mapstoleft; &LeftTeeVector; &lthree; &vltri;"),
("⧏ ⊴ ⥑ ⥠", "&LeftTriangleBar; &ltrie; &LeftUpDownVector; &LeftUpTeeVector;"),
("↿ ⥘ ↼ ⥒ ⪋ ⋚", "&uharl; &LeftUpVectorBar; &lharu; &LeftVectorBar; &lEg; &leg;"),
("≤ ≦ ⩽ ⩽ ⪨ ⩿ ⪁ ⪃ ⪓", "&le; &lE; &les; &les; &lescc; &lesdot; &lesdoto; &lesdotor; &lesges;"),
("⪅ ⋖ ⋚ ⪋ ⋚", "&lap; &ltdot; &leg; &lEg; &leg;"),
("≦ ≶ ≶ ⪡ ≲ ⩽", "&lE; &lg; &lg; &LessLess; &lsim; &les;"),
("≲ ⥼ ⌊ 𝔏 𝔩 ≶ ⪑ ⥢ ↽ ↼", "&lsim; &lfisht; &lfloor; &Lfr; &lfr; &lg; &lgE; &lHar; &lhard; &lharu;"),
("⥪ ▄ Љ љ ⋘ ≪ ⇇ ⌞ ⇚", "&lharul; &lhblk; &LJcy; &ljcy; &Ll; &ll; &llarr; &dlcorn; &lAarr;"),
("⥫ ◺ Ŀ ŀ ⎰ ⎰ ⪉ ⪉", "&llhard; &lltri; &Lmidot; &lmidot; &lmoust; &lmoust; &lnap; &lnap;"),
("≨ ⪇ ⪇ ≨ ⋦ ⟬ ⇽ ⟦ ⟵", "&lnE; &lne; &lne; &lnE; &lnsim; &loang; &loarr; &lobrk; &xlarr;"),
("⟸ ⟵ ⟷ ⟺", "&xlArr; &xlarr; &xharr; &xhArr;"),
("⟷ ⟼ ⟶ ⟹", "&xharr; &xmap; &xrarr; &xrArr;"),
("⟶ ↫ ↬ ⦅ 𝕃 𝕝", "&xrarr; &larrlp; &rarrlp; &lopar; &Lopf; &lopf;"),
("⨭ ⨴ _ ↙ ↘ ◊", "&loplus; &lotimes; &lowast; _ &swarr; &searr; &loz;"),
("◊ ⧫ ( ⦓ ⇆ ⌟ ⇋ ⥭ \u200e", "&loz; &lozf; ( &lparlt; &lrarr; &drcorn; &lrhar; &lrhard; &lrm;"),
(" 𝓁 ↰ ↰ ≲ ⪍ ⪏ [", "&lrtri; &lsaquo; &Lscr; &lscr; &lsh; &lsh; &lsim; &lsime; &lsimg; ["),
(" Ł ł < < ≪ ⪦ ⩹", "&lsquo; &sbquo; &Lstrok; &lstrok; &lt; &lt; &ll; &ltcc; &ltcir;"),
("⋖ ⋋ ⋉ ⥶ ⩻ ◃ ⊴ ◂ ⦖", "&ltdot; &lthree; &ltimes; &ltlarr; &ltquest; &ltri; &ltrie; &ltrif; &ltrPar;"),
("⥊ ⥦ ¯ ¯ ♂ ✠ ✠ ⤅ ↦", "&lurdshar; &luruhar; &macr; &macr; &male; &malt; &malt; &Map; &map;"),
("↦ ↧ ↤ ↥ ▮ ⨩ М м", "&map; &mapstodown; &mapstoleft; &mapstoup; &marker; &mcomma; М м"),
("— ∺ ∡ 𝔐 𝔪 ℧", "&mdash; &mDDot; &angmsd; &MediumSpace; &Mscr; &Mfr; &mfr; &mho;"),
("µ µ * ⫰ · · ", "&micro; &micro; &mid; * &midcir; &middot; &middot; &minus; &minusb;"),
("∸ ⨪ ∓ ⫛ … ∓ ⊧ 𝕄 𝕞", "&minusd; &minusdu; &mp; &mlcp; &mldr; &mp; &models; &Mopf; &mopf;"),
(" 𝓂 ∾ Μ μ ⊸ ⊸ ∇ Ń", "&mp; &Mscr; &mscr; &ac; &Mu; &mu; &mumap; &mumap; &Del; &Nacute;"),
("ń ≉ ʼn ≉ ♮ ♮ \u00A0", "&nacute; &nap; &napos; &nap; &natur; &natur; &Nopf; &nbsp;"),
("⩃ Ň ň Ņ ņ ≇ ⩂ Н н ", "&ncap; &Ncaron; &ncaron; &Ncedil; &ncedil; &ncong; &ncup; Н н &ndash;"),
("≠ ⤤ ⇗ ↗ ↗ \u200b", "&ne; &nearhk; &neArr; &nearr; &nearr; &ZeroWidthSpace; &nequiv;"),
("⤨ ≫ ≪ \n # ∄ ∄", "&toea; &gg; &ll; \n # &nexist; &nexist;"),
("𝔑 𝔫 ≱ ≱ ≵ ≯ ⇎ ↮ ⫲ ∋", "&Nfr; &nfr; &nge; &nge; &ngsim; &ngt; &nhArr; &nharr; &nhpar; &ni;"),
("⋼ ⋺ ∋ Њ њ ⇍ ↚ ‥ ≰ ⇍", "&nis; &nisd; &ni; &NJcy; &njcy; &nlArr; &nlarr; &nldr; &nle; &nlArr;"),
("↚ ⇎ ↮ ≰ ≮ ≴ ≮", "&nlarr; &nhArr; &nharr; &nle; &nlt; &nlsim; &nlt;"),
("⋪ ⋬ ∤ \u2060 \u00A0 𝕟 ¬ ⫬", "&nltri; &nltrie; &nmid; &NoBreak; &nbsp; &Nopf; &nopf; &not; &Not;"),
("¬ ≢ ≭ ∦ ∉ ⊈ ⊁ ⋡ ⊉", "&not; &nequiv; &NotCupCap; &npar; &notin; &nsube; &nsc; &nsccue; &nsupe;"),
("≠ ∄ ≯ ≱ ≹ ⋭ ⋢ ⋣", "&ne; &nexist; &ngt; &nge; &ntgl; &nrtrie; &nsqsube; &nsqsupe;"),
("≵ ∉ ∉ ⋷ ⋶ ⋪", "&ngsim; &notin; &notin; &notinvb; &notinvc; &nltri;"),
("⋬ ≮ ≰ ≸ ⋠ ∌ ⋫", "&nltrie; &nlt; &nle; &ntlg; &nprcue; &notni; &nrtri;"),
("≴ ∌ ∌ ⋾ ⋽ ⊀ ≁ ≄ ≇ ≉", "&nlsim; &notni; &notni; &notnivb; &notnivc; &npr; &nsim; &nsime; &ncong; &nap;"),
("∤ ∦ ∦ ⨔ ⊀ ⋠ ⊀ ⇏", "&nmid; &npar; &npar; &npolint; &npr; &nprcue; &npr; &nrArr;"),
("↛ ⇏ ↛ ⋫ ⋭ ⊁ ⋡ 𝒩", "&nrarr; &nrArr; &nrarr; &nrtri; &nrtrie; &nsc; &nsccue; &Nscr;"),
("𝓃 ∤ ∦ ≁ ≄ ≄ ∤ ∦", "&nscr; &nmid; &npar; &nsim; &nsime; &nsime; &nmid; &npar;"),
("⋢ ⋣ ⊄ ⊈ ⊈ ⊁ ", "&nsqsube; &nsqsupe; &nsub; &nsube; &nsube; &nsc; &nsup; &nsupe;"),
("⊉ ≹ Ñ ñ Ñ ñ ≸ ⋪", "&nsupe; &ntgl; &Ntilde; &ntilde; &Ntilde; &ntilde; &ntlg; &nltri;"),
("⋬ ⋫ ⋭ Ν ν # №", "&nltrie; &nrtri; &nrtrie; &Nu; &nu; # &numero;"),
("\u2007 ⊯ ⊮ ⊭ ⊬ ⤄ ⧞ ⤂", "&numsp; &nVDash; &nVdash; &nvDash; &nvdash; &nvHarr; &nvinfin; &nvlArr;"),
("⤃ ⤣ ⇖ ↖ ↖ ⤧ Ó ó", "&nvrArr; &nwarhk; &nwArr; &nwarr; &nwarr; &nwnear; &Oacute; &oacute;"),
("Ó ó ⊛ ⊚ Ô ô Ô ô О о", "&Oacute; &oacute; &oast; &ocir; &Ocirc; &ocirc; &Ocirc; &ocirc; О о"),
("⊝ Ő ő ⨸ ⊙ ⦼ Œ œ ⦿ 𝔒", "&odash; &Odblac; &odblac; &odiv; &odot; &odsold; Œ œ &ofcir; &Ofr;"),
("𝔬 ˛ Ò ò Ò ò ⧁ ⦵ Ω ∮", "&ofr; &ogon; &Ograve; &ograve; &Ograve; &ograve; &ogt; &ohbar; &ohm; &oint;"),
("↺ ⦾ ⦻ ‾ ⧀ Ō ō Ω ω", "&olarr; &olcir; &olcross; &oline; &olt; &Omacr; &omacr; &ohm; &omega;"),
("Ο ο ⦶ ⊖ 𝕆 𝕠", "&Omicron; &omicron; &omid; &ominus; &Oopf; &oopf; &opar;"),
(" ⦹ ⊕ ⩔ ", "&ldquo; &lsquo; &operp; &oplus; &Or; &or; &orarr;"),
(" ª ª º º ⊶ ⩖ ⩗", "&ord; &oscr; &oscr; &ordf; &ordf; &ordm; &ordm; &origof; &oror; &orslope;"),
("⩛ Ⓢ 𝒪 Ø ø Ø ø ⊘ Õ", "&orv; &oS; &Oscr; &oscr; &Oslash; &oslash; &Oslash; &oslash; &osol; &Otilde;"),
("õ Õ õ ⨷ ⊗ ⨶ Ö ö Ö", "&otilde; &Otilde; &otilde; &Otimes; &otimes; &otimesas; &Ouml; &ouml; &Ouml;"),
("ö ⌽ ‾ ⏞ ⎴ ⏜ ∥", "&ouml; &ovbar; &oline; &OverBrace; &tbrk; &OverParenthesis; &par;"),
("¶ ¶ ∥ ⫳ ⫽ ∂ ∂ П п", "&para; &para; &par; &parsim; &parsl; &part; &part; П п"),
("% . ‰ ⊥ ‱ 𝔓 𝔭 Φ φ ϕ", "% . &permil; &bot; &pertenk; &Pfr; &pfr; &Phi; &phi; &phiv;"),
(" ☎ Π π ⋔ ϖ ℏ ", "&Mscr; &phone; &Pi; &pi; &fork; &piv; &hbar; &planckh; &hbar;"),
("+ ⨣ ⊞ ⨢ ∔ ⨥ ⩲ ±", "&plus; &plusacir; &plusb; &pluscir; &plusdo; &plusdu; &pluse; &pm;"),
("± ⨦ ⨧ ± ", "&pm; &plussim; &plustwo; &pm; &Hfr; &pointint; &Popf;"),
("𝕡 £ ⪻ ≺ ⪷ ≼ ⪳ ⪯ ≺", "&popf; &pound; &Pr; &pr; &prap; &prcue; &prE; &pre; &pr;"),
("⪷ ≼ ≺ ⪯ ≼ ∋ ⇋ ⥯ ⥽ ⌋", "&prap; &prcue; &pr; &pre; &prcue; &ni; &lrhar; &duhar; &rfisht; &rfloor;"),
("≾ ⪯ ⪹ ⪵ ⋨ ≾ ″", "&prsim; &pre; &prnap; &prnE; &prnsim; &prsim; &Prime;"),
(" ⪹ ⪵ ⋨ ∏ ∏ ⌮", "&prime; &Popf; &prnap; &prnE; &prnsim; &prod; &prod; &profalar;"),
("⌒ ⌓ ∝ ∷ ∝ ∝ ≾", "&profline; &profsurf; &prop; &Colon; &prop; &prop; &prsim;"),
("𝒫 𝓅 Ψ ψ \u2008 𝔔 𝔮 𝕢", "&prurel; &Pscr; &pscr; &Psi; &psi; &puncsp; &Qfr; &qfr; &qint; &Qopf; &qopf;"),
("𝒬 𝓆 ⨖ ? ≟ \" \"", "&qprime; &Qscr; &qscr; &Hopf; &quatint; ? &equest; &quot; &quot;"),
("⇛ Ŕ ŕ √ ⦳ ⟫ ⟩", "&rAarr; &Racute; &racute; &radic; &raemptyv; &Rang; &rang;"),
("⦒ ⦥ ⟩ » » ↠ ⇒ → ⥵ ⇥", "&rangd; &range; &rang; &raquo; &raquo; &Rarr; &rArr; &rarr; &rarrap; &rarrb;"),
("⤠ ⤳ ⤞ ↪ ↬ ⥅ ⥴ ⤖", "&rarrbfs; &rarrc; &rarrfs; &rarrhk; &rarrlp; &rarrpl; &rarrsim; &Rarrtl;"),
("↣ ↝ ⤜ ⤚ ⤐ ⤏ ⤍", "&rarrtl; &rarrw; &rAtail; &ratail; &ratio; &Qopf; &RBarr; &rBarr; &rbarr;"),
(" } ] ⦌ ⦎ ⦐ Ř ř", "&rbbrk; } ] &rbrke; &rbrksld; &rbrkslu; &Rcaron; &rcaron;"),
("Ŗ ŗ ⌉ } Р р ⤷ ⥩ ” ”", "&Rcedil; &rcedil; &rceil; } Р р &rdca; &rdldhar; &rdquo; &rdquo;"),
(" ▭ ®", "&rdsh; &Re; &Re; &Rscr; &Re; &Ropf; &rect; &reg;"),
(" 𝔯 ⥤ ⇁ ⇀ ⥬ Ρ ρ ϱ", "&Re; &rfr; &rHar; &rhard; &rharu; &rharul; &Rho; &rho; &rhov;"),
("⟩ → ⇒ → ⇥ ⇄ ↣ ⌉ ⟧", "&rang; &rarr; &rArr; &rarr; &rarrb; &rlarr; &rarrtl; &rceil; &robrk;"),
("⥝ ⇂ ⥕ ⌋", "&RightDownTeeVector; &dharr; &RightDownVectorBar; &rfloor;"),
("⇁ ⇀ ⇄ ⇌ ⇉ ↝ ⊢ ↦", "&rhard; &rharu; &rlarr; &rlhar; &rrarr; &rarrw; &vdash; &map;"),
("⥛ ⋌ ⊳ ⧐", "&RightTeeVector; &rthree; &vrtri; &RightTriangleBar;"),
("⊵ ⥏ ⥜ ↾", "&rtrie; &RightUpDownVector; &RightUpTeeVector; &uharr;"),
# ("⥔ ⇀ ⥓ ˚ ≓", "&RightUpVectorBar; &RightVector; &RightVectorBar; &ring; &risingdotseq;"),
# ("⇄ ⇌ ⎱ ⎱ ⫮ ⟭ ⇾ ⟧", "&rlarr; &rlhar; &rlm; &rmoust; &rmoustache; &rnmid; &roang; &roarr; &robrk;"),
# ("⦆ 𝕣 ⨮ ⨵ ⥰ ) ⦔", "&ropar; &Ropf; &ropf; &roplus; &rotimes; &RoundImplies; &rpar; &rpargt;"),
@@ -653,8 +645,8 @@ STRINGS_FOR_ENCODE = [
# ("𝓍 ⨆ ⨄ △ ⋀ Ý ý Ý", "&xscr; &xsqcup; &xuplus; &xutri; &xvee; &xwedge; &Yacute; &yacute; &Yacute;"),
# ("ý Я я Ŷ ŷ Ы ы ¥ ¥ 𝔜 𝔶", "&yacute; &YAcy; &yacy; &Ycirc; &ycirc; &Ycy; &ycy; &yen; &yen; &Yfr; &yfr;"),
# ("Ї ї 𝕐 𝕪 𝒴 𝓎 Ю ю ÿ Ÿ ÿ", "&YIcy; &yicy; &Yopf; &yopf; &Yscr; &yscr; &YUcy; &yucy; &yuml; &Yuml; &yuml;"),
# ("Ź ź Ž ž З з Ż ż ", "&Zacute; &zacute; &Zcaron; &zcaron; &Zcy; &zcy; &Zdot; &zdot; &zeetrf;"),
# (" Ζ ζ 𝔷 Ж ж ⇝ ", "&ZeroWidthSpace; &Zeta; &zeta; &Zfr; &zfr; &ZHcy; &zhcy; &zigrarr; &Zopf;"),
("Ź ź Ž ž З з Ż ż ", "&Zacute; &zacute; &Zcaron; &zcaron; З з &Zdot; &zdot; &Zfr;"),
("\u200b Ζ ζ 𝔷 Ж ж ⇝ ", "&ZeroWidthSpace; &Zeta; &zeta; &Zfr; &zfr; Ж ж &zigrarr; &Zopf;"),
]
@pytest.mark.parametrize("input_string, expected_output", STRINGS_FOR_ENCODE)