diff --git a/lua/markview/entities.lua b/lua/markview/entities.lua index aaec55e..33c9c9a 100644 --- a/lua/markview/entities.lua +++ b/lua/markview/entities.lua @@ -1,5 +1,19 @@ +--- HTML entities lookup table(s) for `markview.nvim`. +--- +--- Sources: +--- • [freeformatter.com](https://www.freeformatter.com/html-entities.html) +--- • [symbl.cc](https://symbl.cc/en/html-entities/) +--- +--- `lynx --dump` was used to get the text values from the sites +--- and a few *macros* were used to turn them into lua tables. +--- +--- Note: Table keys were later sorted using `vim.inspect()` & +--- I/O functions. +--- local entities = {}; +--- Map for entity number & entity. +---@type { [integer]: string } entities.codes = { [32] = "", [33] = "!", @@ -17,7 +31,6 @@ entities.codes = { [45] = "-", [46] = ".", [47] = "/", - ---+${custom, Numbers} [48] = "0", [49] = "1", [50] = "2", @@ -28,7 +41,6 @@ entities.codes = { [55] = "7", [56] = "8", [57] = "9", - ---_ [58] = ":", [59] = ";", [60] = "<", @@ -36,7 +48,6 @@ entities.codes = { [62] = ">", [63] = "?", [64] = "@", - ---+${custom, Capital letters} [65] = "A", [66] = "B", [67] = "C", @@ -63,14 +74,12 @@ entities.codes = { [88] = "X", [89] = "Y", [90] = "Z", - ---_ [91] = "[", [92] = "\\", [93] = "]", [94] = "^", [95] = "_", [96] = "`", - ---+${custom, Small letters} [97] = "a", [98] = "b", [99] = "c", @@ -97,12 +106,11 @@ entities.codes = { [120] = "x", [121] = "y", [122] = "z", - ---_ [123] = "{", [124] = "|", [125] = "}", [126] = "~", - + [137] = "", [160] = " ", [161] = "¡", [162] = "¢", @@ -126,7 +134,7 @@ entities.codes = { [180] = "´", [181] = "µ", [182] = "¶", - + [183] = "·", [184] = "¸", [185] = "¹", [186] = "º", @@ -135,48 +143,193 @@ entities.codes = { [189] = "½", [190] = "¾", [191] = "¿", + [192] = "À", + [193] = "Á", + [194] = "Â", + [195] = "Ã", + [196] = "Ä", + [197] = "Å", + [198] = "Æ", + [199] = "Ç", + [200] = "È", + [201] = "É", + [202] = "Ê", + [203] = "Ë", + [204] = "Ì", + [206] = "Î", + [207] = "Ï", + [208] = "Ð", + [209] = "Ñ", + [210] = "Ò", + [211] = "Ó", + [212] = "Ô", + [213] = "Õ", + [214] = "Ö", [215] = "×", + [216] = "Ø", + [217] = "Ù", + [218] = "Ú", + [219] = "Û", + [220] = "Ü", + [221] = "Ý", + [222] = "Þ", + [223] = "ß", + [224] = "à", + [225] = "á", + [226] = "â", + [227] = "ã", + [228] = "ä", + [229] = "å", + [230] = "æ", + [231] = "ç", + [232] = "è", + [233] = "é", + [234] = "ê", + [235] = "ë", + [236] = "ì", + [237] = "í", + [238] = "î", + [239] = "ï", + [240] = "ð", + [241] = "ñ", + [242] = "ò", + [243] = "ó", + [244] = "ô", + [245] = "õ", + [246] = "ö", [247] = "÷", - - [8704] = "∀", - [8706] = "∂", - [8707] = "∃", - [8709] = "∅", - [8711] = "∇", - [8712] = "∈", - [8713] = "∉", - [8715] = "∋", - [8719] = "∏", - [8721] = "∑", - [8722] = "−", - [8727] = "∗", - [8730] = "√", - [8733] = "∝", - [8734] = "∞", - [8736] = "∠", - [8743] = "∧", - [8744] = "∨", - [8745] = "∩", - [8746] = "∪", - [8747] = "∫", - [8756] = "∴", - [8764] = "∼", - [8773] = "≅", - [8776] = "≈", - [8800] = "≠", - [8801] = "≡", - [8804] = "≤", - [8805] = "≥", - [8834] = "⊂", - [8835] = "⊃", - [8836] = "⊄", - [8838] = "⊆", - [8839] = "⊇", - [8853] = "⊕", - [8855] = "⊗", - [8869] = "⊥", - [8901] = "⋅", - + [248] = "ø", + [249] = "ù", + [250] = "ú", + [251] = "û", + [252] = "ü", + [253] = "ý", + [254] = "þ", + [255] = "ÿ", + [256] = "Ā", + [257] = "ā", + [258] = "Ă", + [259] = "ă", + [260] = "Ą", + [261] = "ą", + [262] = "Ć", + [263] = "ć", + [264] = "Ĉ", + [265] = "ĉ", + [266] = "Ċ", + [267] = "ċ", + [268] = "Č", + [269] = "č", + [270] = "Ď", + [271] = "ď", + [272] = "Đ", + [273] = "đ", + [274] = "Ē", + [275] = "ē", + [278] = "Ė", + [279] = "ė", + [280] = "Ę", + [281] = "ę", + [282] = "Ě", + [283] = "ě", + [284] = "Ĝ", + [285] = "ĝ", + [286] = "Ğ", + [287] = "ğ", + [288] = "Ġ", + [289] = "ġ", + [290] = "Ģ", + [292] = "Ĥ", + [293] = "ĥ", + [294] = "Ħ", + [295] = "ħ", + [296] = "Ĩ", + [297] = "ĩ", + [298] = "Ī", + [299] = "ī", + [302] = "Į", + [303] = "į", + [304] = "İ", + [305] = "ı", + [306] = "IJ", + [307] = "ij", + [308] = "Ĵ", + [309] = "ĵ", + [310] = "Ķ", + [311] = "ķ", + [312] = "ĸ", + [313] = "Ĺ", + [314] = "ĺ", + [315] = "Ļ", + [316] = "ļ", + [317] = "Ľ", + [318] = "ľ", + [319] = "Ŀ", + [320] = "ŀ", + [321] = "Ł", + [322] = "ł", + [323] = "Ń", + [324] = "ń", + [325] = "Ņ", + [326] = "ņ", + [327] = "Ň", + [328] = "ň", + [329] = "ʼn", + [330] = "Ŋ", + [331] = "ŋ", + [332] = "Ō", + [333] = "ō", + [336] = "Ő", + [337] = "ő", + [338] = "Œ", + [339] = "œ", + [340] = "Ŕ", + [341] = "ŕ", + [342] = "Ŗ", + [343] = "ŗ", + [344] = "Ř", + [345] = "ř", + [346] = "Ś", + [347] = "ś", + [348] = "Ŝ", + [349] = "ŝ", + [350] = "Ş", + [351] = "ş", + [352] = "Š", + [353] = "š", + [354] = "Ţ", + [355] = "ţ", + [356] = "Ť", + [357] = "ť", + [358] = "Ŧ", + [359] = "ŧ", + [360] = "Ũ", + [361] = "ũ", + [362] = "Ū", + [363] = "ū", + [364] = "Ŭ", + [365] = "ŭ", + [366] = "Ů", + [367] = "ů", + [368] = "Ű", + [369] = "ű", + [370] = "Ų", + [371] = "ų", + [372] = "Ŵ", + [373] = "ŵ", + [374] = "Ŷ", + [375] = "ŷ", + [376] = "Ÿ", + [377] = "Ź", + [378] = "ź", + [379] = "Ż", + [380] = "ż", + [381] = "Ž", + [382] = "ž", + [402] = "ƒ", + [410] = "ˆ", + [710] = "ˆ", + [732] = "˜", [913] = "Α", [914] = "Β", [915] = "Γ", @@ -194,7 +347,6 @@ entities.codes = { [927] = "Ο", [928] = "Π", [929] = "Ρ", - [931] = "Σ", [932] = "Τ", [933] = "Υ", @@ -202,7 +354,6 @@ entities.codes = { [935] = "Χ", [936] = "Ψ", [937] = "Ω", - [945] = "α", [946] = "β", [947] = "γ", @@ -231,17 +382,11 @@ entities.codes = { [977] = "ϑ", [978] = "ϒ", [982] = "ϖ", - - [338] = "Œ", - [339] = "œ", - [352] = "Š", - [353] = "š", - [376] = "Ÿ", - [402] = "ƒ", - [410] = "ˆ", - [732] = "˜", + [8208] = "‐", [8211] = "–", [8212] = "—", + [8213] = "―", + [8214] = "‖", [8216] = "‘", [8217] = "’", [8218] = "‚", @@ -251,210 +396,1274 @@ entities.codes = { [8224] = "†", [8225] = "‡", [8226] = "•", + [8229] = "‥", [8230] = "…", - [8240] = "‰", + [8241] = "‱", [8242] = "′", [8243] = "″", + [8244] = "‴", + [8245] = "‵", [8249] = "‹", [8250] = "›", [8254] = "‾", + [8257] = "⁁", + [8259] = "⁃", + [8260] = "⁄", + [8271] = "⁏", + [8279] = "⁗", [8364] = "€", + [8450] = "ℂ", + [8453] = "℅", + [8458] = "ℊ", + [8459] = "ℋ", + [8460] = "ℌ", + [8461] = "ℍ", + [8462] = "ℎ", + [8463] = "ℏ", + [8464] = "ℐ", + [8465] = "ℑ", + [8466] = "ℒ", + [8467] = "ℓ", + [8469] = "ℕ", + [8470] = "№", + [8471] = "℗", + [8472] = "℘", + [8473] = "ℙ", + [8474] = "ℚ", + [8475] = "ℛ", + [8476] = "ℜ", + [8477] = "ℝ", + [8478] = "℞", [8482] = "™", + [8484] = "ℤ", + [8487] = "℧", + [8488] = "ℨ", + [8489] = "℩", + [8492] = "ℬ", + [8493] = "ℭ", + [8495] = "ℯ", + [8496] = "ℰ", + [8497] = "ℱ", + [8499] = "ℳ", + [8500] = "ℴ", + [8501] = "ℵ", + [8502] = "ℶ", + [8503] = "ℷ", + [8504] = "ℸ", + [8517] = "ⅅ", + [8518] = "ⅆ", + [8519] = "ⅇ", + [8520] = "ⅈ", + [8531] = "⅓", + [8532] = "⅔", + [8533] = "⅕", + [8534] = "⅖", + [8535] = "⅗", + [8536] = "⅘", + [8537] = "⅙", + [8538] = "⅚", + [8539] = "⅛", + [8540] = "⅜", + [8541] = "⅝", + [8542] = "⅞", [8592] = "←", [8593] = "↑", [8594] = "→", [8595] = "↓", [8596] = "↔", [8629] = "↵", + [8634] = "↺", + [8635] = "↻", + [8636] = "↼", + [8637] = "↽", + [8638] = "↾", + [8639] = "↿", + [8640] = "⇀", + [8641] = "⇁", + [8642] = "⇂", + [8643] = "⇃", + [8644] = "⇄", + [8645] = "⇅", + [8646] = "⇆", + [8647] = "⇇", + [8648] = "⇈", + [8649] = "⇉", + [8650] = "⇊", + [8651] = "⇋", + [8652] = "⇌", + [8653] = "⇍", + [8654] = "⇎", + [8655] = "⇏", + [8656] = "⇐", + [8657] = "⇑", + [8658] = "⇒", + [8659] = "⇓", + [8660] = "⇔", + [8661] = "⇕", + [8662] = "⇖", + [8663] = "⇗", + [8664] = "⇘", + [8665] = "⇙", + [8666] = "⇚", + [8667] = "⇛", + [8668] = "⇜", + [8669] = "⇝", + [8676] = "⇤", + [8677] = "⇥", + [8693] = "⇵", + [8701] = "⇽", + [8702] = "⇾", + [8703] = "⇿", + [8704] = "∀", + [8705] = "∁", + [8706] = "∂", + [8707] = "∃", + [8708] = "∄", + [8709] = "∅", + [8711] = "∇", + [8712] = "∈", + [8713] = "∉", + [8715] = "∋", + [8716] = "∌", + [8719] = "∏", + [8720] = "∐", + [8721] = "∑", + [8722] = "−", + [8723] = "∓", + [8724] = "∔", + [8726] = "∖", + [8727] = "∗", + [8728] = "∘", + [8730] = "√", + [8733] = "∝", + [8734] = "∞", + [8735] = "∟", + [8736] = "∠", + [8737] = "∡", + [8738] = "∢", + [8739] = "∣", + [8740] = "∤", + [8741] = "∥", + [8742] = "∦", + [8743] = "∧", + [8744] = "∨", + [8745] = "∩", + [8746] = "∪", + [8747] = "∫", + [8748] = "∬", + [8749] = "∭", + [8750] = "∮", + [8751] = "∯", + [8752] = "∰", + [8753] = "∱", + [8754] = "∲", + [8755] = "∳", + [8756] = "∴", + [8757] = "∵", + [8758] = "∶", + [8759] = "∷", + [8760] = "∸", + [8762] = "∺", + [8763] = "∻", + [8764] = "∼", + [8765] = "∽", + [8766] = "∾", + [8767] = "∿", + [8768] = "≀", + [8769] = "≁", + [8770] = "≂", + [8771] = "≃", + [8772] = "≄", + [8773] = "≅", + [8774] = "≆", + [8775] = "≇", + [8776] = "≈", + [8777] = "≉", + [8778] = "≊", + [8779] = "≋", + [8780] = "≌", + [8781] = "≍", + [8782] = "≎", + [8783] = "≏", + [8784] = "≐", + [8785] = "≑", + [8786] = "≒", + [8787] = "≓", + [8788] = "≔", + [8789] = "≕", + [8790] = "≖", + [8791] = "≗", + [8793] = "≙", + [8794] = "≚", + [8796] = "≜", + [8799] = "≟", + [8800] = "≠", + [8801] = "≡", + [8802] = "≢", + [8804] = "≤", + [8805] = "≥", + [8806] = "≦", + [8807] = "≧", + [8808] = "≨", + [8809] = "≩", + [8810] = "≪", + [8811] = "≫", + [8812] = "≬", + [8813] = "≭", + [8814] = "≮", + [8815] = "≯", + [8816] = "≰", + [8817] = "≱", + [8818] = "≲", + [8819] = "≳", + [8820] = "≴", + [8821] = "≵", + [8822] = "≶", + [8823] = "≷", + [8824] = "≸", + [8825] = "≹", + [8826] = "≺", + [8827] = "≻", + [8828] = "≼", + [8829] = "≽", + [8830] = "≾", + [8831] = "≿", + [8832] = "⊀", + [8833] = "⊁", + [8834] = "⊂", + [8835] = "⊃", + [8836] = "⊄", + [8837] = "⊅", + [8838] = "⊆", + [8839] = "⊇", + [8840] = "⊈", + [8841] = "⊉", + [8842] = "⊊", + [8843] = "⊋", + [8845] = "⊍", + [8846] = "⊎", + [8847] = "⊏", + [8848] = "⊐", + [8849] = "⊑", + [8850] = "⊒", + [8851] = "⊓", + [8852] = "⊔", + [8853] = "⊕", + [8854] = "⊖", + [8855] = "⊗", + [8856] = "⊘", + [8857] = "⊙", + [8858] = "⊚", + [8859] = "⊛", + [8861] = "⊝", + [8862] = "⊞", + [8863] = "⊟", + [8864] = "⊠", + [8865] = "⊡", + [8866] = "⊢", + [8867] = "⊣", + [8868] = "⊤", + [8869] = "⊥", + [8871] = "⊧", + [8872] = "⊨", + [8873] = "⊩", + [8874] = "⊪", + [8875] = "⊫", + [8876] = "⊬", + [8877] = "⊭", + [8878] = "⊮", + [8879] = "⊯", + [8880] = "⊰", + [8882] = "⊲", + [8883] = "⊳", + [8884] = "⊴", + [8885] = "⊵", + [8886] = "⊶", + [8887] = "⊷", + [8888] = "⊸", + [8889] = "⊹", + [8890] = "⊺", + [8891] = "⊻", + [8893] = "⊽", + [8894] = "⊾", + [8895] = "⊿", + [8896] = "⋀", + [8897] = "⋁", + [8898] = "⋂", + [8899] = "⋃", + [8900] = "⋄", + [8901] = "⋅", + [8902] = "⋆", + [8903] = "⋇", + [8904] = "⋈", + [8905] = "⋉", + [8906] = "⋊", + [8907] = "⋋", + [8908] = "⋌", + [8909] = "⋍", + [8910] = "⋎", + [8911] = "⋏", + [8912] = "⋐", + [8913] = "⋑", + [8914] = "⋒", + [8915] = "⋓", + [8916] = "⋔", + [8917] = "⋕", + [8918] = "⋖", + [8919] = "⋗", + [8920] = "⋘", + [8921] = "⋙", + [8922] = "⋚", + [8923] = "⋛", + [8926] = "⋞", + [8927] = "⋟", + [8928] = "⋠", + [8929] = "⋡", + [8930] = "⋢", + [8931] = "⋣", + [8934] = "⋦", + [8935] = "⋧", + [8936] = "⋨", + [8937] = "⋩", + [8938] = "⋪", + [8939] = "⋫", + [8940] = "⋬", + [8941] = "⋭", + [8942] = "⋮", + [8943] = "⋯", + [8944] = "⋰", + [8945] = "⋱", + [8946] = "⋲", + [8947] = "⋳", + [8948] = "⋴", + [8949] = "⋵", + [8950] = "⋶", + [8951] = "⋷", + [8953] = "⋹", + [8954] = "⋺", + [8955] = "⋻", + [8956] = "⋼", + [8957] = "⋽", + [8958] = "⋾", [8968] = "⌈", [8969] = "⌉", [8970] = "⌊", [8971] = "⌋", + [9001] = "〈", + [9002] = "〉", [9674] = "◊", + [9733] = "★", + [9734] = "☆", + [9742] = "󰘂 ", + [9792] = "♀", + [9794] = "♂", [9824] = "♠", [9827] = "♣", [9829] = "♥", - [9830] = "♦" - + [9830] = "♦", + [9834] = "♪", + [9837] = "♭", + [9838] = "♮", + [9839] = "♯", + [10003] = "✓", + [10007] = "✗", + [10016] = "✠", + [10038] = "✶", + [10072] = "❘", + [10098] = "❲", + [10099] = "❳", + [10229] = "⟵", + [10230] = "⟶", + [10231] = "⟷", + [10232] = "⟸", + [10233] = "⟹", + [10234] = "⟺", + [10236] = "⟼", + [10239] = "⟿", + [10498] = "⤂", + [10499] = "⤃", + [10500] = "⤄", + [10501] = "⤅", + [10508] = "⤌", + [10509] = "⤍", + [10510] = "⤎", + [10511] = "⤏", + [10512] = "⤐", + [10513] = "⤑", + [10514] = "⤒", + [10515] = "⤓", + [10518] = "⤖", + [10521] = "⤙", + [10522] = "⤚", + [10523] = "⤛", + [10524] = "⤜", + [10525] = "⤝", + [10526] = "⤞", + [10527] = "⤟", + [10528] = "⤠", + [10531] = "⤣", + [10532] = "⤤", + [10533] = "⤥", + [10534] = "⤦", + [10535] = "⤧", + [10536] = "⤨", + [10537] = "⤩", + [10538] = "⤪", + [10550] = "⤶", + [10551] = "⤷", + [10552] = "⤸", + [10553] = "⤹", + [10556] = "⤼", + [10557] = "⤽", + [10565] = "⥅", + [10568] = "⥈", + [10569] = "⥉", + [10570] = "⥊", + [10571] = "⥋", + [10575] = "⥏", + [10576] = "⥐", + [10577] = "⥑", + [10578] = "⥒", + [10579] = "⥓", + [10580] = "⥔", + [10581] = "⥕", + [10582] = "⥖", + [10583] = "⥗", + [10584] = "⥘", + [10585] = "⥙", + [10586] = "⥚", + [10587] = "⥛", + [10588] = "⥜", + [10589] = "⥝", + [10590] = "⥞", + [10591] = "⥟", + [10592] = "⥠", + [10593] = "⥡", + [10594] = "⥢", + [10595] = "⥣", + [10596] = "⥤", + [10597] = "⥥", + [10598] = "⥦", + [10599] = "⥧", + [10600] = "⥨", + [10601] = "⥩", + [10602] = "⥪", + [10603] = "⥫", + [10604] = "⥬", + [10605] = "⥭", + [10606] = "⥮", + [10607] = "⥯", + [10608] = "⥰", + [10609] = "⥱", + [10610] = "⥲", + [10611] = "⥳", + [10612] = "⥴", + [10613] = "⥵", + [10614] = "⥶", + [10616] = "⥸", + [10617] = "⥹", + [10619] = "⥻", + [10620] = "⥼", + [10621] = "⥽", + [10622] = "⥾", + [10623] = "⥿" }; +--- Map for entity name & entity value. +---@type { [string]: string } entities.names = { - ["amp"] = entities.codes[38], - ["lt"] = entities.codes[60], - ["gt"] = entities.codes[62], - ["nbsp"] = entities.codes[160], - ["iexcl"] = entities.codes[161], - ["cent"] = entities.codes[162], - ["pound"] = entities.codes[163], - ["curren"] = entities.codes[164], - ["yen"] = entities.codes[165], - ["brvbar"] = entities.codes[166], - ["sect"] = entities.codes[167], - ["uml"] = entities.codes[168], - ["copy"] = entities.codes[169], - ["ordf"] = entities.codes[170], - ["laquo"] = entities.codes[171], - ["not"] = entities.codes[172], - ["shy"] = entities.codes[173], - ["reg"] = entities.codes[174], - ["macr"] = entities.codes[175], - ["deg"] = entities.codes[176], - ["plusmn"] = entities.codes[177], - ["sup2"] = entities.codes[178], - ["sup3"] = entities.codes[179], - ["acute"] = entities.codes[180], - ["micro"] = entities.codes[181], - ["para"] = entities.codes[182], - ["cedil"] = entities.codes[184], - ["sup1"] = entities.codes[185], - ["ordm"] = entities.codes[186], - ["raquo"] = entities.codes[187], - ["frac14"] = entities.codes[188], - ["frac12"] = entities.codes[189], - ["frac34"] = entities.codes[190], - ["iquest"] = entities.codes[191], - ["times"] = entities.codes[215], - ["divide"] = entities.codes[247], - - ["forall"] = entities.codes[8704], - ["part"] = entities.codes[8706], - ["exist"] = entities.codes[8707], - ["empty"] = entities.codes[8709], - ["nabla"] = entities.codes[8711], - ["isin"] = entities.codes[8712], - ["notin"] = entities.codes[8713], - ["ni"] = entities.codes[8715], - ["prod"] = entities.codes[8719], - ["sum"] = entities.codes[8721], - ["minus"] = entities.codes[8722], - ["lowast"] = entities.codes[8727], - ["radic"] = entities.codes[8730], - ["prop"] = entities.codes[8733], - ["infin"] = entities.codes[8734], - ["ang"] = entities.codes[8736], - ["and"] = entities.codes[8743], - ["or"] = entities.codes[8744], - ["cap"] = entities.codes[8745], - ["cup"] = entities.codes[8746], - ["int"] = entities.codes[8747], - ["there4"] = entities.codes[8756], - ["sim"] = entities.codes[8764], - ["cong"] = entities.codes[8773], - ["asymp"] = entities.codes[8776], - ["ne"] = entities.codes[8800], - ["equiv"] = entities.codes[8801], - ["le"] = entities.codes[8804], - ["ge"] = entities.codes[8805], - ["sub"] = entities.codes[8834], - ["sup"] = entities.codes[8835], - ["nsub"] = entities.codes[8836], - ["sube"] = entities.codes[8838], - ["supe"] = entities.codes[8839], - ["oplus"] = entities.codes[8853], - ["otimes"] = entities.codes[8855], - ["perp"] = entities.codes[8869], - ["sdot"] = entities.codes[8901], - - ["Alpha"] = entities.codes[913], - ["Beta"] = entities.codes[914], - ["Gamma"] = entities.codes[915], - ["Delta"] = entities.codes[916], - ["Epsilon"] = entities.codes[917], - ["Zeta"] = entities.codes[918], - ["Eta"] = entities.codes[919], - ["Theta"] = entities.codes[920], - ["Iota"] = entities.codes[921], - ["Kappa"] = entities.codes[922], - ["Lambda"] = entities.codes[923], - ["Mu"] = entities.codes[924], - ["Nu"] = entities.codes[925], - ["Xi"] = entities.codes[926], - ["Omicron"] = entities.codes[927], - ["Pi"] = entities.codes[928], - ["Rho"] = entities.codes[929], - ["Sigma"] = entities.codes[931], - ["Tau"] = entities.codes[932], - ["Upsilon"] = entities.codes[933], - ["Phi"] = entities.codes[934], - ["Chi"] = entities.codes[935], - ["Psi"] = entities.codes[936], - ["Omega"] = entities.codes[937], - - ["alpha"] = entities.codes[945], - ["beta"] = entities.codes[946], - ["gamma"] = entities.codes[947], - ["delta"] = entities.codes[948], - ["epsilon"] = entities.codes[949], - ["zeta"] = entities.codes[950], - ["eta"] = entities.codes[951], - ["theta"] = entities.codes[952], - ["iota"] = entities.codes[953], - ["kappa"] = entities.codes[954], - ["lambda"] = entities.codes[955], - ["mu"] = entities.codes[956], - ["nu"] = entities.codes[957], - ["xi"] = entities.codes[958], - ["omicron"] = entities.codes[959], - ["pi"] = entities.codes[960], - ["rho"] = entities.codes[961], - ["sigmaf"] = entities.codes[962], - ["sigma"] = entities.codes[963], - ["tau"] = entities.codes[964], - ["upsilon"] = entities.codes[965], - ["phi"] = entities.codes[966], - ["chi"] = entities.codes[967], - ["psi"] = entities.codes[968], - ["omega"] = entities.codes[969], - ["thetasym"] = entities.codes[977], - ["upsih"] = entities.codes[978], - ["piv"] = entities.codes[982], - - ["OElig"] = entities.codes[338], - ["oelig"] = entities.codes[339], - ["Scaron"] = entities.codes[352], - ["scaron"] = entities.codes[353], - ["Yuml"] = entities.codes[376], - ["fnof"] = entities.codes[402], - ["circ"] = entities.codes[710], - ["tilde"] = entities.codes[732], - ["ndash"] = entities.codes[8211], - ["mdash"] = entities.codes[8212], - ["lsquo"] = entities.codes[8216], - ["rsquo"] = entities.codes[8217], - ["sbquo"] = entities.codes[8218], - ["ldquo"] = entities.codes[8220], - ["rdquo"] = entities.codes[8221], - ["bdquo"] = entities.codes[8222], - ["dagger"] = entities.codes[8224], - ["Dagger"] = entities.codes[8225], - ["bull"] = entities.codes[8226], - ["hellip"] = entities.codes[8230], - ["permil"] = entities.codes[8240], - ["prime"] = entities.codes[8242], - ["Prime"] = entities.codes[8243], - ["lsaquo"] = entities.codes[8249], - ["rsaquo"] = entities.codes[8250], - ["oline"] = entities.codes[8254], - ["euro"] = entities.codes[8364], - ["trade"] = entities.codes[8482], - ["larr"] = entities.codes[8592], - ["uarr"] = entities.codes[8593], - ["rarr"] = entities.codes[8594], - ["darr"] = entities.codes[8595], - ["harr"] = entities.codes[8596], - ["crarr"] = entities.codes[8629], - ["lceil"] = entities.codes[8968], - ["rceil"] = entities.codes[8969], - ["lfloor"] = entities.codes[8970], - ["rfloor"] = entities.codes[8971], - ["loz"] = entities.codes[9674], - ["spades"] = entities.codes[9824], - ["clubs"] = entities.codes[9827], - ["hearts"] = entities.codes[9829], - ["diams"] = entities.codes[9830] + AElig = "Æ", + Aacute = "Á", + Abreve = "Ă", + Acirc = "Â", + Agrave = "À", + Alpha = "Α", + Amacr = "Ā", + Aogon = "Ą", + Aring = "Å", + Atilde = "Ã", + Auml = "Ä", + Beta = "Β", + Cacute = "Ć", + Cap = "⋒", + Ccaron = "Č", + Ccedil = "Ç", + Ccirc = "Ĉ", + Cconint = "∰", + Cdot = "Ċ", + Cfr = "ℭ", + Chi = "Χ", + Colon = "∷", + Conint = "∯", + Copf = "ℂ", + Cup = "⋓", + DD = "ⅅ", + DDotrahd = "⤑", + Dagger = "‡", + Dcaron = "Ď", + Delta = "Δ", + DownArrowBar = "⤓", + DownLeftRightVector = "⥐", + DownLeftTeeVector = "⥞", + DownLeftVectorBar = "⥖", + DownRightTeeVector = "⥟", + DownRightVectorBar = "⥗", + Dstrok = "Đ", + ENG = "Ŋ", + ETH = "Ð", + Eacute = "É", + Ecaron = "Ě", + Ecirc = "Ê", + Edot = "Ė", + Egrave = "È", + Emacr = "Ē", + Eogon = "Ę", + Epsilon = "Ε", + Escr = "ℰ", + Eta = "Η", + Euml = "Ë", + Fscr = "ℱ", + Gamma = "Γ", + Gbreve = "Ğ", + Gcedil = "Ģ", + Gcirc = "Ĝ", + Gdot = "Ġ", + Gg = "⋙", + Gt = "≫", + Hat = "^", + Hcirc = "Ĥ", + Hfr = "ℌ", + Hopf = "ℍ", + Hstrok = "Ħ", + IJlig = "IJ", + Idot = "İ", + Imacr = "Ī", + Int = "∬", + Iogon = "Į", + Iota = "Ι", + Iscr = "ℐ", + Itilde = "Ĩ", + Jcirc = "Ĵ", + Kappa = "Κ", + Kcedil = "Ķ", + Lacute = "Ĺ", + Lambda = "Λ", + Lcaron = "Ľ", + Lcedil = "Ļ", + Lcirc = "Î", + LeftDownTeeVector = "⥡", + LeftDownVectorBar = "⥙", + LeftTeeVector = "⥚", + LeftUpDownVector = "⥑", + LeftUpTeeVector = "⥠", + LeftUpVectorBar = "⥘", + LeftVectorBar = "⥒", + Lgrave = "Ì", + Ll = "⋘", + Lmidot = "Ŀ", + Lscr = "ℒ", + Lstrok = "Ł", + Lt = "≪", + Luml = "Ï", + Map = "⤅", + Mscr = "ℳ", + Mu = "Μ", + Nacute = "Ń", + Ncaron = "Ň", + Ncedil = "Ņ", + Nopf = "ℕ", + NotCupCap = "≭", + Ntilde = "Ñ", + Nu = "Ν", + OElig = "Œ", + Oacute = "Ó", + Ocirc = "Ô", + Odblac = "Ő", + Ograve = "Ò", + Omacr = "Ō", + Omega = "Ω", + Omicron = "Ο", + Oslash = "Ø", + Otilde = "Õ", + Ouml = "Ö", + Phi = "Φ", + Pi = "Π", + Popf = "ℙ", + Prime = "″", + Psi = "Ψ", + Qopf = "ℚ", + RBarr = "⤐", + Racute = "Ŕ", + Rarrtl = "⤖", + Rcaron = "Ř", + Rcedil = "Ŗ", + Rho = "Ρ", + RightDownTeeVector = "⥝", + RightDownVectorBar = "⥕", + RightTeeVector = "⥛", + RightUpDownVector = "⥏", + RightUpTeeVector = "⥜", + RightUpVectorBar = "⥔", + RightVectorBar = "⥓", + Ropf = "ℝ", + RoundImplies = "⥰", + Rscr = "ℛ", + Sacute = "Ś", + Scaron = "Š", + Scedil = "Ş", + Scirc = "Ŝ", + Sigma = "Σ", + Star = "⋆", + Sub = "⋐", + Sup = "⋑", + THORN = "Þ", + Tau = "Τ", + Tcaron = "Ť", + Tcedil = "Ţ", + Theta = "Θ", + Tstrok = "Ŧ", + Uacute = "Ú", + Uarrocir = "⥉", + Ubreve = "Ŭ", + Ucirc = "Û", + Udblac = "Ű", + Ugrave = "Ù", + Umacr = "Ū", + Uogon = "Ų", + UpArrowBar = "⤒", + Upsilon = "Υ", + Uring = "Ů", + Utilde = "Ũ", + Uuml = "Ü", + VDash = "⊫", + Vdash = "⊩", + Vert = "‖", + VerticalSeparator = "❘", + Vvdash = "⊪", + Wcirc = "Ŵ", + Xi = "Ξ", + Yacute = "Ý", + Ycirc = "Ŷ", + Yuml = "Ÿ", + Zacute = "Ź", + Zcaron = "Ž", + Zdot = "Ż", + Zeta = "Ζ", + Zfr = "ℨ", + Zopf = "ℤ", + aacute = "á", + abreve = "ă", + ac = "∾", + acd = "∿", + acirc = "â", + acute = "´", + aelig = "æ", + agrave = "à", + alefsym = "ℵ", + alpha = "α", + amacr = "ā", + amp = "&", + ["and"] = "∧", + ang = "∠", + angmsd = "∡", + angrt = "∟", + angrtvb = "⊾", + anhsph = "∢", + aogon = "ą", + apid = "≋", + apos = "'", + approxeq = "≊", + aring = "å", + ast = "*", + asymp = "≈", + asympeq = "≍", + atilde = "ã", + auml = "ä", + awconint = "∳", + barvee = "⊽", + bcong = "≌", + bdquo = "„", + because = "∵", + bernou = "ℬ", + beta = "β", + beth = "ℶ", + between = "≬", + bowtie = "⋈", + bprime = "‵", + brvbar = "¦", + bsemi = "⁏", + bsim = "∽", + bsime = "⋍", + bsol = "\\", + bull = "•", + bump = "≎", + bumpe = "≏", + cacute = "ć", + cap = "∩", + caret = "⁁", + ccaron = "č", + ccedil = "ç", + ccirc = "ĉ", + cdot = "ċ", + cedil = "¸", + cent = "¢", + check = "✓", + chi = "χ", + circ = "ˆ", + cire = "≗", + clubs = "♣", + colon = ":", + colone = "≔", + comma = ",", + commat = "@", + comp = "∁", + compfn = "∘", + cong = "≅", + conint = "∮", + coprod = "∐", + copy = "©", + copysr = "℗", + crarr = "↵", + cross = "✗", + ctdot = "⋯", + cudarrl = "⤸", + cuepr = "⋞", + cuesc = "⋟", + cularrp = "⤽", + cup = "∪", + cupdot = "⊍", + curarrm = "⤼", + curren = "¤", + cuvee = "⋎", + cuwed = "⋏", + cwconint = "∲", + cwint = "∱", + dArr = "⇓", + dHar = "⥥", + dagger = "†", + daleth = "ℸ", + darr = "↓", + dashv = "⊣", + dcaron = "ď", + dd = "ⅆ", + ddarr = "⇊", + deg = "°", + delta = "δ", + dfisht = "⥿", + dharl = "⇃", + dharr = "⇂", + diamond = "⋄", + diams = "♦", + disin = "⋲", + divide = "÷", + divonx = "⋇", + dollar = "$", + dstrok = "đ", + dtdot = "⋱", + duarr = "⇵", + duhar = "⥯", + dzigrarr = "⟿", + eDot = "≑", + eacute = "é", + ecaron = "ě", + ecir = "≖", + ecirc = "ê", + ecolon = "≕", + edot = "ė", + ee = "ⅇ", + efDot = "≒", + egrave = "è", + ell = "ℓ", + emacr = "ē", + empty = "∅", + eng = "ŋ", + eogon = "ę", + epar = "⋕", + epsilon = "ε", + equals = "=", + equest = "≟", + equiv = "≡", + erDot = "≓", + erarr = "⥱", + escr = "ℯ", + esdot = "≐", + esim = "≂", + eta = "η", + eth = "ð", + euml = "ë", + euro = "€", + excl = "!", + exist = "∃", + female = "♀", + flat = "♭", + fnof = "ƒ", + forall = "∀", + fork = "⋔", + frac12 = "½", + frac13 = "⅓", + frac14 = "¼", + frac15 = "⅕", + frac16 = "⅙", + frac18 = "⅛", + frac23 = "⅔", + frac25 = "⅖", + frac34 = "¾", + frac35 = "⅗", + frac38 = "⅜", + frac45 = "⅘", + frac56 = "⅚", + frac58 = "⅝", + frac78 = "⅞", + frasl = "⁄", + gE = "≧", + gamma = "γ", + gbreve = "ğ", + gcirc = "ĝ", + gdot = "ġ", + ge = "≥", + gel = "⋛", + gimel = "ℷ", + gl = "≷", + gnE = "≩", + gnsim = "⋧", + grave = "`", + gscr = "ℊ", + gsim = "≳", + gt = ">", + gtdot = "⋗", + gtrarr = "⥸", + hArr = "⇔", + hamilt = "ℋ", + harr = "↔", + harrcir = "⥈", + hcirc = "ĥ", + hearts = "♥", + hellip = "…", + hercon = "⊹", + hoarr = "⇿", + homtht = "∻", + horbar = "―", + hstrok = "ħ", + hybull = "⁃", + hyphen = "‐", + iacute = "í", + icirc = "î", + iexcl = "¡", + igrave = "ì", + ii = "ⅈ", + iiint = "∭", + iiota = "℩", + ijlig = "ij", + imacr = "ī", + image = "ℑ", + imath = "ı", + imof = "⊷", + incare = "℅", + infin = "∞", + int = "∫", + intcal = "⊺", + iogon = "į", + iota = "ι", + iquest = "¿", + isin = "∈", + isinE = "⋹", + isindot = "⋵", + isins = "⋴", + isinsv = "⋳", + itilde = "ĩ", + iuml = "ï", + jcirc = "ĵ", + kappa = "κ", + kcedil = "ķ", + kgreen = "ĸ", + lAarr = "⇚", + lArr = "⇐", + lAtail = "⤛", + lBarr = "⤎", + lE = "≦", + lHar = "⥢", + lacute = "ĺ", + lambda = "λ", + lang = "〈", + laquo = "«", + larr = "←", + larrb = "⇤", + larrbfs = "⤟", + larrfs = "⤝", + larrpl = "⤹", + larrsim = "⥳", + latail = "⤙", + lbarr = "⤌", + lbbrk = "❲", + lbrace = "{", + lbrack = "[", + lcaron = "ľ", + lcedil = "ļ", + lceil = "⌈", + ldca = "⤶", + ldquo = "“", + ldrdhar = "⥧", + ldrushar = "⥋", + le = "≤", + leg = "⋚", + lfisht = "⥼", + lfloor = "⌊", + lg = "≶", + lhard = "↽", + lharu = "↼", + lharul = "⥪", + llarr = "⇇", + llhard = "⥫", + lmidot = "ŀ", + lnE = "≨", + lnsim = "⋦", + loarr = "⇽", + lowast = "∗", + lowbar = "_", + loz = "◊", + lpar = "(", + lrarr = "⇆", + lrhar = "⇋", + lrhard = "⥭", + lrtri = "⊿", + lsaquo = "‹", + lsim = "≲", + lsquo = "‘", + lstrok = "ł", + lt = "<", + ltdot = "⋖", + lthree = "⋋", + ltimes = "⋉", + ltlarr = "⥶", + ltrie = "⊴", + lurdshar = "⥊", + luruhar = "⥦", + mDDot = "∺", + macr = "¯", + male = "♂", + malt = "✠", + mdash = "—", + mho = "℧", + micro = "µ", + mid = "∣", + middot = "·", + minus = "−", + minusb = "⊟", + minusd = "∸", + mnplus = "∓", + models = "⊧", + mu = "μ", + mumap = "⊸", + nVDash = "⊯", + nVdash = "⊮", + nabla = "∇", + nacute = "ń", + nap = "≉", + napos = "ʼn", + natural = "♮", + nbsp = " ", + ncaron = "ň", + ncedil = "ņ", + ncong = "≇", + ndash = "–", + ne = "≠", + neArr = "⇗", + nearhk = "⤤", + nequiv = "≢", + nesear = "⤨", + nexist = "∄", + nge = "≱", + ngsim = "≵", + ngt = "≯", + nhArr = "⇎", + ni = "∋", + nis = "⋼", + nisd = "⋺", + nlArr = "⇍", + nldr = "‥", + nle = "≰", + nlsim = "≴", + nlt = "≮", + nltri = "⋪", + nltrie = "⋬", + nmid = "∤", + ["not"] = "¬", + notin = "∉", + notinvb = "⋷", + notinvc = "⋶", + notni = "∌", + notnivb = "⋾", + notnivc = "⋽", + npar = "∦", + npr = "⊀", + nprcue = "⋠", + nrArr = "⇏", + nrtri = "⋫", + nrtrie = "⋭", + nsc = "⊁", + nsccue = "⋡", + nsim = "≁", + nsime = "≄", + nsqsube = "⋢", + nsqsupe = "⋣", + nsub = "⊄", + nsube = "⊈", + nsup = "⊅", + nsupe = "⊉", + ntgl = "≹", + ntilde = "ñ", + ntlg = "≸", + nu = "ν", + num = "#", + numero = "№", + nvDash = "⊭", + nvHarr = "⤄", + nvdash = "⊬", + nvlArr = "⤂", + nvrArr = "⤃", + nwArr = "⇖", + nwarhk = "⤣", + nwnear = "⤧", + oacute = "ó", + oast = "⊛", + ocir = "⊚", + ocirc = "ô", + odash = "⊝", + odblac = "ő", + odot = "⊙", + oelig = "œ", + ograve = "ò", + olarr = "↺", + oline = "‾", + omacr = "ō", + omega = "ω", + omicron = "ο", + ominus = "⊖", + oplus = "⊕", + ["or"] = "∨", + orarr = "↻", + ordf = "ª", + ordm = "º", + origof = "⊶", + oscr = "ℴ", + oslash = "ø", + osol = "⊘", + otilde = "õ", + otimes = "⊗", + ouml = "ö", + para = "¶", + parallel = "∥", + part = "∂", + percnt = "%", + period = ".", + permil = "‰", + perp = "⊥", + pertenk = "‱", + phi = "φ", + phone = "󰘂 ", + pi = "π", + piv = "ϖ", + planck = "ℏ", + planckh = "ℎ", + plus = "+", + plusb = "⊞", + plusdo = "∔", + plusmn = "±", + pound = "£", + pr = "≺", + prcue = "≼", + prime = "′", + prnsim = "⋨", + prod = "∏", + prop = "∝", + prsim = "≾", + prurel = "⊰", + psi = "ψ", + qprime = "⁗", + quest = "?", + quot = '"', + rAarr = "⇛", + rArr = "⇒", + rAtail = "⤜", + rBarr = "⤏", + rHar = "⥤", + racute = "ŕ", + radic = "√", + rang = "〉", + raquo = "»", + rarr = "→", + rarrap = "⥵", + rarrb = "⇥", + rarrbfs = "⤠", + rarrfs = "⤞", + rarrpl = "⥅", + rarrsim = "⥴", + ratail = "⤚", + ratio = "∶", + rbarr = "⤍", + rbbrk = "❳", + rbrace = "}", + rbrack = "]", + rcaron = "ř", + rcedil = "ŗ", + rceil = "⌉", + rdca = "⤷", + rdldhar = "⥩", + rdquo = "”", + real = "ℜ", + reg = "®", + rfisht = "⥽", + rfloor = "⌋", + rhard = "⇁", + rharu = "⇀", + rharul = "⥬", + rho = "ρ", + rlarr = "⇄", + rlhar = "⇌", + roarr = "⇾", + rpar = ")", + rrarr = "⇉", + rsaquo = "›", + rsquo = "’", + rthree = "⋌", + rtimes = "⋊", + rtrie = "⊵", + ruluhar = "⥨", + rx = "℞", + sacute = "ś", + sbquo = "‚", + sc = "≻", + scaron = "š", + sccue = "≽", + scedil = "ş", + scirc = "ŝ", + scnsim = "⋩", + scsim = "≿", + sdot = "⋅", + sdotb = "⊡", + seArr = "⇘", + searhk = "⤥", + sect = "§", + semi = ";", + seswar = "⤩", + setminus = "∖", + sext = "✶", + sharp = "♯", + shy = "-", + sigma = "σ", + sigmaf = "ς", + sim = "∼", + sime = "≃", + simne = "≆", + simrarr = "⥲", + sol = "/", + spades = "♠", + sqcap = "⊓", + sqcup = "⊔", + sqsub = "⊏", + sqsube = "⊑", + sqsup = "⊐", + sqsupe = "⊒", + star = "☆", + starf = "★", + sub = "⊂", + sube = "⊆", + subne = "⊊", + subrarr = "⥹", + sum = "∑", + sung = "♪", + sup = "⊃", + sup1 = "¹", + sup2 = "²", + sup3 = "³", + supe = "⊇", + suplarr = "⥻", + supne = "⊋", + swArr = "⇙", + swarhk = "⤦", + swnwar = "⤪", + szlig = "ß", + tau = "τ", + tcaron = "ť", + tcedil = "ţ", + there4 = "∴", + theta = "θ", + thetasym = "ϑ", + thorn = "þ", + tilde = "˜", + times = "×", + timesb = "⊠", + top = "⊤", + tprime = "‴", + trade = "™", + trie = "≜", + tstrok = "ŧ", + uArr = "⇑", + uHar = "⥣", + uacute = "ú", + uarr = "↑", + ubreve = "ŭ", + ucirc = "û", + udarr = "⇅", + udblac = "ű", + udhar = "⥮", + ufisht = "⥾", + ugrave = "ù", + uharl = "↿", + uharr = "↾", + umacr = "ū", + uml = "¨", + uogon = "ų", + uplus = "⊎", + upsih = "ϒ", + upsilon = "υ", + uring = "ů", + utdot = "⋰", + utilde = "ũ", + uuarr = "⇈", + uuml = "ü", + vArr = "⇕", + vDash = "⊨", + vdash = "⊢", + veebar = "⊻", + veeeq = "≚", + vellip = "⋮", + vert = "|", + vltri = "⊲", + vrtri = "⊳", + wcirc = "ŵ", + wedgeq = "≙", + weierp = "℘", + wreath = "≀", + xcap = "⋂", + xcup = "⋃", + xhArr = "⟺", + xharr = "⟷", + xi = "ξ", + xlArr = "⟸", + xlarr = "⟵", + xmap = "⟼", + xnis = "⋻", + xrArr = "⟹", + xrarr = "⟶", + xvee = "⋁", + xwedge = "⋀", + yacute = "ý", + ycirc = "ŷ", + yen = "¥", + yuml = "ÿ", + zacute = "ź", + zcaron = "ž", + zdot = "ż", + zeta = "ζ", + ziglarr = "⇜", + zigrarr = "⇝" }; +--- Checks for missing entities. +---@return boolean +---@return string[] entities.check = function () local _inv = {}; @@ -467,6 +1676,9 @@ entities.check = function () return vim.tbl_isempty(_inv), inv; end +--- Gets an entity from it's number/name. +---@param val string +---@return string? entities.get = function (val) if tonumber(val) then return entities.codes[tonumber(val)];