 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
AylinCE Grandmaster Cheater Supreme
Reputation: 36
Joined: 16 Feb 2017 Posts: 1499
|
Posted: Mon Jan 31, 2022 6:21 pm Post subject: Error! "alformed pattern" ? |
|
|
Hi ..
I have a code like this with different variations:
Code: | rst2="Citação: Você é a minha razão de viver."
--The whole test is 5-6 times more than that. I clipped it.
rst1=(rst2):gsub(string.char(33), [[\u0021]]):gsub(string.char(34), [[\u0022]]):gsub(string.char(35), [[\u0023]]):gsub(string.char(36), [[\u0024]]):gsub(string.char(37), [[\u0025]]):gsub(string.char(38), [[\u0026]]):gsub(string.char(39), [[\u0027]]):gsub(string.char(40), [[\u0028]]):gsub(string.char(41), [[\u0029]]):gsub(string.char(42), [[\u002A]]):gsub(string.char(43), [[\u002B]]):gsub(string.char(44), [[\u002C]]):gsub(string.char(46), [[\u002E]]):gsub(string.char(47), [[\u002F]]):gsub(string.char(58), [[\u003A]]):gsub(string.char(59), [[\u003B]]):gsub(string.char(60), [[\u003C]]):gsub(string.char(61), [[\u003D]])
print(rst1) |
or
Code: | chr=[[\u]]
rst1=(rst2):gsub(string.char(33), chr .. [[0021]]):gsub(string.char(34), chr .. [[0022]]) |
--result
Code: | malformed pattern (ends with '%') |
Any ideas to fix the error?
Thanks in advance. _________________
|
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Mon Jan 31, 2022 6:51 pm Post subject: |
|
|
acsii char 37 is equal to %, you need to escape the character. i.e. "%%". _________________
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 36
Joined: 16 Feb 2017 Posts: 1499
|
Posted: Mon Jan 31, 2022 7:03 pm Post subject: |
|
|
"invalid pattern capture" (error %%)
The entire code contains 1400 different Unicode characters.
I'm looking for a way to replace it with "gsub" or some other option without error. _________________
|
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Mon Jan 31, 2022 7:35 pm Post subject: |
|
|
Some where you're preforming a capture with the "%%". You'll need to lookup lua patterns and then look at the patterns to find the capture. But I'd suggest looking for a lua module that converts ascii to unicode instead of trying rolling your own. _________________
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 36
Joined: 16 Feb 2017 Posts: 1499
|
Posted: Mon Jan 31, 2022 7:51 pm Post subject: |
|
|
1400 characters; I'm working on character, Unicode(hex) and Html (& translation.
Yes, this will take some time. _________________
|
|
Back to top |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Mon Jan 31, 2022 8:34 pm Post subject: |
|
|
I am not really understand what to replace with in the worlds, but this is an example using gsub and uni characters table :
Code: | local function sanitizeWords (words)
local accented = {
['ß'] = 'ss'
, ['à'] = 'a', ['á'] = 'a', ['â'] = 'a', ['ã'] = 'a', ['å'] = 'a'
, ['ä'] = 'ae', ['æ'] = 'ae'
, ['ç'] = 'c'
, ['è'] = 'e', ['é'] = 'e', ['ê'] = 'e', ['ë'] = 'e'
, ['ì'] = 'i', ['í'] = 'i', ['î'] = 'i', ['ï'] = 'i'
, ['ð'] = 'dh'
, ['ñ'] = 'n'
, ['ò'] = 'o', ['ó'] = 'o', ['ô'] = 'o', ['õ'] = 'o', ['ø'] = 'o'
, ['ö'] = 'oe'
, ['ù'] = 'u', ['ú'] = 'u', ['û'] = 'u'
, ['ü'] = 'ue'
, ['ý'] = 'y', ['ÿ'] = 'y'
, ['þ'] = 'th'
}
local sanitized = words
:lower() -- Bring everything to lower case.
:gsub ('%s+', ' ') -- Normalize white spaces.
-- Replace some non-ASCII characters:
for fancy, plain in pairs (accented) do
sanitized = sanitized:gsub (fancy, plain)
end
return sanitized
:gsub ("[^%a ']", '') -- Remove everything but ASCII, spaces and apostrophes.
:gsub ('^%a', string.upper) -- Capitalize the first letter of the first name.
:gsub ("[ ']%a", string.upper) -- Capitalize the first letter of other names.
end
rst2="Citação: Você é a minha razão de viver"
for _, words in ipairs {rst2} do
print (sanitizeWords (words))
end
|
I think just add some uni characters (1400 uni chars ?) to accepted table. _________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 36
Joined: 16 Feb 2017 Posts: 1499
|
Posted: Mon Jan 31, 2022 9:25 pm Post subject: |
|
|
@Corroder I'll try your suggestion of change within the table.
Thanks for your contribution.
For this I will try 3 dec, 3 enc tables. _________________
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 36
Joined: 16 Feb 2017 Posts: 1499
|
Posted: Tue Feb 01, 2022 3:18 pm Post subject: |
|
|
Ok, now I'm starting to work out the logic.
Here is an example;
Code: | rst=[[Cita\u00e7\u00e3o: Voc\u00ea \u00e9 a minha raz\u00e3o de viver]]
--Unicode to text
rst1=(rst):gsub([[\]],[[]]):gsub("u0100","Ā"):gsub("u0101","ā"):gsub("u0102","Ă"):gsub("u0103","ă"):gsub("u0104","Ą"):gsub("u0105","ą"):gsub("u0106","Ć"):gsub("u0107","ć"):gsub("u0108","Ĉ"):gsub("u0109","ĉ"):gsub("u010a","Ċ"):gsub("u010b","ċ"):gsub("u010c","Č"):gsub("u010d","č"):gsub("u010e","Ď"):gsub("u010f","ď"):gsub("u0110","Đ"):gsub("u0111","đ"):gsub("u0112","Ē"):gsub("u0113","ē"):gsub("u0116","Ė"):gsub("u0117","ė"):gsub("u0118","Ę"):gsub("u0119","ę"):gsub("u011a","Ě"):gsub("u011b","ě"):gsub("u011c","Ĝ"):gsub("u011d","ĝ"):gsub("u011e","Ğ"):gsub("u011f","ğ"):gsub("u0120","Ġ"):gsub("u0121","ġ"):gsub("u0122","Ģ"):gsub("u0123","ģ"):gsub("u0124","Ĥ"):gsub("u0125","ĥ"):gsub("u0126","Ħ"):gsub("u0127","ħ"):gsub("u0128","Ĩ"):gsub("u0129","ĩ"):gsub("u012a","Ī"):gsub("u012b","ī"):gsub("u012e","Į"):gsub("u012f","į"):gsub("u0130","İ"):gsub("u0131","ı"):gsub("u0132","IJ"):gsub("u0133","ij"):gsub("u0134","Ĵ"):gsub("u0135","ĵ"):gsub("u0136","Ķ"):gsub("u0137","ķ"):gsub("u0138","ĸ"):gsub("u0139","Ĺ"):gsub("u013a","ĺ"):gsub("u013b","Ļ"):gsub("u013c","ļ"):gsub("u013d","Ľ"):gsub("u013e","ľ"):gsub("u013f","Ŀ"):gsub("u0140","ŀ"):gsub("u0141","Ł"):gsub("u0142","ł"):gsub("u0143","Ń"):gsub("u0144","ń"):gsub("u0145","Ņ"):gsub("u0146","ņ"):gsub("u0147","Ň"):gsub("u0148","ň"):gsub("u0149","ʼn"):gsub("u014a","Ŋ"):gsub("u014b","ŋ"):gsub("u014c","Ō"):gsub("u014d","ō"):gsub("u0150","Ő"):gsub("u0151","ő"):gsub("u0152","Œ"):gsub("u0153","œ"):gsub("u0154","Ŕ"):gsub("u0155","ŕ"):gsub("u0156","Ŗ"):gsub("u0157","ŗ"):gsub("u0158","Ř"):gsub("u0159","ř"):gsub("u015a","Ś"):gsub("u015b","ś"):gsub("u015c","Ŝ"):gsub("u015d","ŝ"):gsub("u015e","Ş"):gsub("u015f","ş"):gsub("u0160","Š"):gsub("u0161","š"):gsub("u0162","Ţ"):gsub("u0163","ţ"):gsub("u0164","Ť"):gsub("u0165","ť"):gsub("u0166","Ŧ"):gsub("u0167","ŧ"):gsub("u0168","Ũ"):gsub("u0169","ũ"):gsub("u016a","Ū"):gsub("u016b","ū"):gsub("u016c","Ŭ"):gsub("u016d","ŭ"):gsub("u016e","Ů"):gsub("u016f","ů"):gsub("u0170","Ű"):gsub("u0171","ű"):gsub("u0172","Ų"):gsub("u0173","ų"):gsub("u0174","Ŵ"):gsub("u0175","ŵ"):gsub("u0176","Ŷ"):gsub("u0177","ŷ"):gsub("u0178","Ÿ"):gsub("u0179","Ź"):gsub("u017a","ź"):gsub("u017b","Ż"):gsub("u017c","ż"):gsub("u017d","Ž"):gsub("u017e","ž"):gsub("už","0026"):gsub("u0026","&"):gsub("u003c","<"):gsub("u003e",">"):gsub("u005e","^"):gsub("u1d49c","𝒜"):gsub("u1d49e","𝒞"):gsub("u1d49f","𝒟"):gsub("u1d4a2","𝒢"):gsub("u1d4a5","𝒥"):gsub("u1d4a6","𝒦"):gsub("u1d4a9","𝒩"):gsub("u1d4aa","𝒪"):gsub("u1d4ab","𝒫"):gsub("u1d4ac","𝒬"):gsub("u1d4ae","𝒮"):gsub("u1d4af","𝒯"):gsub("u1d4b0","𝒰"):gsub("u1d4b1","𝒱"):gsub("u1d4b2","𝒲"):gsub("u1d4b3","𝒳"):gsub("u1d4b4","𝒴"):gsub("u1d4b5","𝒵"):gsub("u1d4b6","𝒶"):gsub("u1d4b7","𝒷"):gsub("u1d4b8","𝒸"):gsub("u1d4b9","𝒹"):gsub("u1d4bb","𝒻"):gsub("u1d4bd","𝒽"):gsub("u1d4be","𝒾"):gsub("u1d4bf","𝒿"):gsub("u1d4c0","𝓀"):gsub("u1d4c1","𝓁"):gsub("u1d4c2","𝓂"):gsub("u1d4c3","𝓃"):gsub("u1d4c5","𝓅"):gsub("u1d4c6","𝓆"):gsub("u1d4c7","𝓇"):gsub("u1d4c8","𝓈"):gsub("u1d4c9","𝓉"):gsub("u1d4ca","𝓊"):gsub("u1d4cb","𝓋"):gsub("u1d4cc","𝓌"):gsub("u1d4cd","𝓍"):gsub("u1d4ce","𝓎"):gsub("u1d4cf","𝓏"):gsub("u1d504","𝔄"):gsub("u1d505","𝔅"):gsub("u1d507","𝔇"):gsub("u1d508","𝔈"):gsub("u1d509","𝔉"):gsub("u1d50a","𝔊"):gsub("u1d50d","𝔍"):gsub("u1d50e","𝔎"):gsub("u1d50f","𝔏"):gsub("u1d510","𝔐"):gsub("u1d511","𝔑"):gsub("u1d512","𝔒"):gsub("u1d513","𝔓"):gsub("u1d514","𝔔"):gsub("u1d516","𝔖"):gsub("u1d517","𝔗"):gsub("u1d518","𝔘"):gsub("u1d519","𝔙"):gsub("u1d51a","𝔚"):gsub("u1d51b","𝔛"):gsub("u1d51c","𝔜"):gsub("u1d51e","𝔞"):gsub("u1d51f","𝔟"):gsub("u1d520","𝔠"):gsub("u1d521","𝔡"):gsub("u1d522","𝔢"):gsub("u1d523","𝔣"):gsub("u1d524","𝔤"):gsub("u1d525","𝔥"):gsub("u1d526","𝔦"):gsub("u1d527","𝔧"):gsub("u1d528","𝔨"):gsub("u1d529","𝔩"):gsub("u1d52a","𝔪"):gsub("u1d52b","𝔫"):gsub("u1d52c","𝔬"):gsub("u1d52d","𝔭"):gsub("u1d52e","𝔮"):gsub("u1d52f","𝔯"):gsub("u1d530","𝔰"):gsub("u1d531","𝔱"):gsub("u1d532","𝔲"):gsub("u1d533","𝔳"):gsub("u1d534","𝔴"):gsub("u1d535","𝔵"):gsub("u1d536","𝔶"):gsub("u1d537","𝔷"):gsub("u1d538","𝔸"):gsub("u1d539","𝔹"):gsub("u1d53b","𝔻"):gsub("u1d53c","𝔼"):gsub("u1d53d","𝔽"):gsub("u1d53e","𝔾"):gsub("u1d540","𝕀"):gsub("u1d541","𝕁"):gsub("u1d542","𝕂"):gsub("u1d543","𝕃"):gsub("u1d544","𝕄"):gsub("u1d546","𝕆"):gsub("u1d54a","𝕊"):gsub("u1d54b","𝕋"):gsub("u1d54c","𝕌"):gsub("u1d54d","𝕍"):gsub("u1d54e","𝕎"):gsub("u1d54f","𝕏"):gsub("u1d550","𝕐"):gsub("u1d552","𝕒"):gsub("u1d553","𝕓"):gsub("u1d554","𝕔"):gsub("u1d555","𝕕"):gsub("u1d556","𝕖"):gsub("u1d557","𝕗"):gsub("u1d558","𝕘"):gsub("u1d559","𝕙"):gsub("u1d55a","𝕚"):gsub("u1d55b","𝕛"):gsub("u1d55c","𝕜"):gsub("u1d55d","𝕝"):gsub("u1d55e","𝕞"):gsub("u1d55f","𝕟"):gsub("u1d560","𝕠"):gsub("u1d561","𝕡"):gsub("u1d562","𝕢"):gsub("u1d563","𝕣"):gsub("u1d564","𝕤"):gsub("u1d565","𝕥"):gsub("u1d566","𝕦"):gsub("u1d567","𝕧"):gsub("u1d568","𝕨"):gsub("u1d569","𝕩"):gsub("u1d56a","𝕪"):gsub("u1d56b","𝕫"):gsub("u00bf","¿"):gsub("u00c0","À"):gsub("u00c1","Á"):gsub("u00c2","Â"):gsub("u00c3","Ã"):gsub("u00c4","Ä"):gsub("u00c5","Å"):gsub("u00c6","Æ"):gsub("u00c7","Ç"):gsub("u00c8","È"):gsub("u00c9","É"):gsub("u00ca","Ê"):gsub("u00cb","Ë"):gsub("u00cc","Ì"):gsub("u00cd","Í"):gsub("u00ce","Î"):gsub("u00cf","Ï"):gsub("u00d0","Ð"):gsub("u00d1","Ñ"):gsub("u00d2","Ò"):gsub("u00d3","Ó"):gsub("u00d4","Ô"):gsub("u00d5","Õ"):gsub("u00d6","Ö"):gsub("u00d7","×"):gsub("u00d8","Ø"):gsub("u00d9","Ù"):gsub("u00da","Ú"):gsub("u00db","Û"):gsub("u00dc","Ü"):gsub("u00dd","Ý"):gsub("u00de","Þ"):gsub("u00df","ß"):gsub("u00e0","à"):gsub("u00e1","á"):gsub("u00e2","â"):gsub("u00e3","ã"):gsub("u00e4","ä"):gsub("u00e5","å"):gsub("u00e6","æ"):gsub("u00e7","ç"):gsub("u00e8","è"):gsub("u00e9","é"):gsub("u00ea","ê"):gsub("u00eb","ë"):gsub("u00ec","ì"):gsub("u00ed","í"):gsub("u00ee","î"):gsub("u00ef","ï"):gsub("u00f0","ð"):gsub("u00f1","ñ"):gsub("u00f2","ò"):gsub("u00f3","ó"):gsub("u00f4","ô"):gsub("u00f5","õ"):gsub("u00f6","ö"):gsub("u00f7","÷"):gsub("u00f8","ø"):gsub("u00f9","ù"):gsub("u00fa","ú"):gsub("u00fb","û"):gsub("u00fc","ü"):gsub("u00fd","ý"):gsub("u00fe","þ"):gsub("u00ff","ÿ")
--unicode to html
--rst1=(rst):gsub([[\]],[[]]):gsub("u0100","Ā"):gsub("u0101","ā"):gsub("u0102","Ă"):gsub("u0103","ă"):gsub("u0104","Ą"):gsub("u0105","ą"):gsub("u0106","Ć"):gsub("u0107","ć"):gsub("u0108","Ĉ"):gsub("u0109","ĉ"):gsub("u010a","Ċ"):gsub("u010b","ċ"):gsub("u010c","Č"):gsub("u010d","č"):gsub("u010e","Ď"):gsub("u010f","ď"):gsub("u0110","Đ"):gsub("u0111","đ"):gsub("u0112","Ē"):gsub("u0113","ē"):gsub("u0116","Ė"):gsub("u0117","ė"):gsub("u0118","Ę"):gsub("u0119","ę"):gsub("u011a","Ě"):gsub("u011b","ě"):gsub("u011c","Ĝ"):gsub("u011d","ĝ"):gsub("u011e","Ğ"):gsub("u011f","ğ"):gsub("u0120","Ġ"):gsub("u0121","ġ"):gsub("u0122","Ģ"):gsub("u0123","&gcedil;"):gsub("u0124","Ĥ"):gsub("u0125","ĥ"):gsub("u0126","Ħ"):gsub("u0127","ħ"):gsub("u0128","Ĩ"):gsub("u0129","ĩ"):gsub("u012a","Ī"):gsub("u012b","ī"):gsub("u012e","Į"):gsub("u012f","į"):gsub("u0130","İ"):gsub("u0131","ı"):gsub("u0132","&IJlog;"):gsub("u0133","ij"):gsub("u0134","Ĵ"):gsub("u0135","ĵ"):gsub("u0136","Ķ"):gsub("u0137","&kcedli;"):gsub("u0138","ĸ"):gsub("u0139","Ĺ"):gsub("u013a","ĺ"):gsub("u013b","Ļ"):gsub("u013c","ļ"):gsub("u013d","Ľ"):gsub("u013e","ľ"):gsub("u013f","&Lmodot;"):gsub("u0140","ŀ"):gsub("u0141","Ł"):gsub("u0142","ł"):gsub("u0143","Ń"):gsub("u0144","ń"):gsub("u0145","Ņ"):gsub("u0146","ņ"):gsub("u0147","Ň"):gsub("u0148","ň"):gsub("u0149","ʼn"):gsub("u014a","Ŋ"):gsub("u014b","ŋ"):gsub("u014c","Ō"):gsub("u014d","ō"):gsub("u0150","Ő"):gsub("u0151","ő"):gsub("u0152","Œ"):gsub("u0153","œ"):gsub("u0154","Ŕ"):gsub("u0155","ŕ"):gsub("u0156","Ŗ"):gsub("u0157","ŗ"):gsub("u0158","Ř"):gsub("u0159","ř"):gsub("u015a","Ś"):gsub("u015b","ś"):gsub("u015c","Ŝ"):gsub("u015d","ŝ"):gsub("u015e","Ş"):gsub("u015f","ş"):gsub("u0160","Š"):gsub("u0161","š"):gsub("u0162","Ţ"):gsub("u0163","ţ"):gsub("u0164","Ť"):gsub("u0165","ť"):gsub("u0166","Ŧ"):gsub("u0167","ŧ"):gsub("u0168","Ũ"):gsub("u0169","ũ"):gsub("u016a","Ū"):gsub("u016b","ū"):gsub("u016c","Ŭ"):gsub("u016d","ŭ"):gsub("u016e","Ů"):gsub("u016f","ů"):gsub("u0170","Ű"):gsub("u0171","ű"):gsub("u0172","Ų"):gsub("u0173","ų"):gsub("u0174","Ŵ"):gsub("u0175","ŵ"):gsub("u0176","Ŷ"):gsub("u0177","ŷ"):gsub("u0178","Ÿ"):gsub("u0179","Ź"):gsub("u017a","ź"):gsub("u017b","Ż"):gsub("u017c","ż"):gsub("u017d","Ž"):gsub("u017e","ž"):gsub("už","&"):gsub("u0026","&"):gsub("u003c","<"):gsub("u003e",">"):gsub("u005e","^"):gsub("u1d49c","𝒜"):gsub("u1d49e","𝒞"):gsub("u1d49f","𝒟"):gsub("u1d4a2","𝒢"):gsub("u1d4a5","𝒥"):gsub("u1d4a6","𝒦"):gsub("u1d4a9","𝒩"):gsub("u1d4aa","𝒪"):gsub("u1d4ab","𝒫"):gsub("u1d4ac","𝒬"):gsub("u1d4ae","𝒮"):gsub("u1d4af","𝒯"):gsub("u1d4b0","𝒰"):gsub("u1d4b1","𝒱"):gsub("u1d4b2","𝒲"):gsub("u1d4b3","𝒳"):gsub("u1d4b4","𝒴"):gsub("u1d4b5","𝒵"):gsub("u1d4b6","𝒶"):gsub("u1d4b7","𝒷"):gsub("u1d4b8","𝒸"):gsub("u1d4b9","𝒹"):gsub("u1d4bb","𝒻"):gsub("u1d4bd","𝒽"):gsub("u1d4be","𝒾"):gsub("u1d4bf","𝒿"):gsub("u1d4c0","𝓀"):gsub("u1d4c1","𝓁"):gsub("u1d4c2","𝓂"):gsub("u1d4c3","𝓃"):gsub("u1d4c5","𝓅"):gsub("u1d4c6","𝓆"):gsub("u1d4c7","𝓇"):gsub("u1d4c8","𝓈"):gsub("u1d4c9","𝓉"):gsub("u1d4ca","𝓊"):gsub("u1d4cb","𝓋"):gsub("u1d4cc","𝓌"):gsub("u1d4cd","𝓍"):gsub("u1d4ce","𝓎"):gsub("u1d4cf","𝓏"):gsub("u1d504","𝔄"):gsub("u1d505","𝔅"):gsub("u1d507","𝔇"):gsub("u1d508","𝔈"):gsub("u1d509","𝔉"):gsub("u1d50a","𝔊"):gsub("u1d50d","𝔍"):gsub("u1d50e","𝔎"):gsub("u1d50f","𝔏"):gsub("u1d510","𝔐"):gsub("u1d511","𝔑"):gsub("u1d512","𝔒"):gsub("u1d513","𝔓"):gsub("u1d514","𝔔"):gsub("u1d516","𝔖"):gsub("u1d517","𝔗"):gsub("u1d518","𝔘"):gsub("u1d519","𝔙"):gsub("u1d51a","𝔚"):gsub("u1d51b","𝔛"):gsub("u1d51c","𝔜"):gsub("u1d51e","𝔞"):gsub("u1d51f","𝔟"):gsub("u1d520","𝔠"):gsub("u1d521","𝔡"):gsub("u1d522","𝔢"):gsub("u1d523","𝔣"):gsub("u1d524","𝔤"):gsub("u1d525","𝔥"):gsub("u1d526","𝔦"):gsub("u1d527","𝔧"):gsub("u1d528","𝔨"):gsub("u1d529","𝔩"):gsub("u1d52a","𝔪"):gsub("u1d52b","𝔫"):gsub("u1d52c","𝔬"):gsub("u1d52d","𝔭"):gsub("u1d52e","𝔮"):gsub("u1d52f","𝔯"):gsub("u1d530","𝔰"):gsub("u1d531","𝔱"):gsub("u1d532","𝔲"):gsub("u1d533","𝔳"):gsub("u1d534","𝔴"):gsub("u1d535","𝔵"):gsub("u1d536","𝔶"):gsub("u1d537","𝔷"):gsub("u1d538","𝔸"):gsub("u1d539","𝔹"):gsub("u1d53b","𝔻"):gsub("u1d53c","𝔼"):gsub("u1d53d","𝔽"):gsub("u1d53e","𝔾"):gsub("u1d540","𝕀"):gsub("u1d541","𝕁"):gsub("u1d542","𝕂"):gsub("u1d543","𝕃"):gsub("u1d544","𝕄"):gsub("u1d546","𝕆"):gsub("u1d54a","𝕊"):gsub("u1d54b","𝕋"):gsub("u1d54c","𝕌"):gsub("u1d54d","𝕍"):gsub("u1d54e","𝕎"):gsub("u1d54f","𝕏"):gsub("u1d550","𝕐"):gsub("u1d552","𝕒"):gsub("u1d553","𝕓"):gsub("u1d554","𝕔"):gsub("u1d555","𝕕"):gsub("u1d556","𝕖"):gsub("u1d557","𝕗"):gsub("u1d558","𝕘"):gsub("u1d559","𝕙"):gsub("u1d55a","𝕚"):gsub("u1d55b","𝕛"):gsub("u1d55c","𝕜"):gsub("u1d55d","𝕝"):gsub("u1d55e","𝕞"):gsub("u1d55f","𝕟"):gsub("u1d560","𝕠"):gsub("u1d561","𝕡"):gsub("u1d562","𝕢"):gsub("u1d563","𝕣"):gsub("u1d564","𝕤"):gsub("u1d565","𝕥"):gsub("u1d566","𝕦"):gsub("u1d567","𝕧"):gsub("u1d568","𝕨"):gsub("u1d569","𝕩"):gsub("u1d56a","𝕪"):gsub("u1d56b","𝕫"):gsub("u00bf","¿"):gsub("u00c0","À"):gsub("u00c1","Á"):gsub("u00c2","Â"):gsub("u00c3","Ã"):gsub("u00c4","Ä"):gsub("u00c5","Å"):gsub("u00c6","Æ"):gsub("u00c7","Ç"):gsub("u00c8","È"):gsub("u00c9","É"):gsub("u00ca","Ê"):gsub("u00cb","Ë"):gsub("u00cc","Ì"):gsub("u00cd","Í"):gsub("u00ce","Î"):gsub("u00cf","Ï"):gsub("u00d0","Ð"):gsub("u00d1","Ñ"):gsub("u00d2","Ò"):gsub("u00d3","Ó"):gsub("u00d4","Ô"):gsub("u00d5","Õ"):gsub("u00d6","Ö"):gsub("u00d7","×"):gsub("u00d8","Ø"):gsub("u00d9","Ù"):gsub("u00da","Ú"):gsub("u00db","Û"):gsub("u00dc","Ü"):gsub("u00dd","Ý"):gsub("u00de","Þ"):gsub("u00df","ß"):gsub("u00e0","à"):gsub("u00e1","á"):gsub("u00e2","â"):gsub("u00e3","ã"):gsub("u00e4","ä"):gsub("u00e5","å"):gsub("u00e6","æ"):gsub("u00e7","ç"):gsub("u00e8","è"):gsub("u00e9","é"):gsub("u00ea","ê"):gsub("u00eb","ë"):gsub("u00ec","ì"):gsub("u00ed","í"):gsub("u00ee","î"):gsub("u00ef","ï"):gsub("u00f0","ð"):gsub("u00f1","ñ"):gsub("u00f2","ò"):gsub("u00f3","ó"):gsub("u00f4","ô"):gsub("u00f5","õ"):gsub("u00f6","ö"):gsub("u00f7","÷"):gsub("u00f8","ø"):gsub("u00f9","ù"):gsub("u00fa","ú"):gsub("u00fb","û"):gsub("u00fc","ü"):gsub("u00fd","ý"):gsub("u00fe","þ"):gsub("u00ff","ÿ")
print(rst1) |
Of course I will base some "Basic Multilingual Plane" and "Supplementary Multilingual Plane".
Some, if not all, examples are enough to get started.
I'll post the whole thing on "Lua Extension" when it's finished.
Thanks for all participation. _________________
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|