Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Error! "alformed pattern" ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 36

Joined: 16 Feb 2017
Posts: 1499

PostPosted: Mon Jan 31, 2022 6:21 pm    Post subject: Error! "alformed pattern" ? Reply with quote

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.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jan 31, 2022 6:51 pm    Post subject: Reply with quote

acsii char 37 is equal to %, you need to escape the character. i.e. "%%".
_________________
Back to top
View user's profile Send private message Visit poster's website
AylinCE
Grandmaster Cheater Supreme
Reputation: 36

Joined: 16 Feb 2017
Posts: 1499

PostPosted: Mon Jan 31, 2022 7:03 pm    Post subject: Reply with quote

"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.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Jan 31, 2022 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
AylinCE
Grandmaster Cheater Supreme
Reputation: 36

Joined: 16 Feb 2017
Posts: 1499

PostPosted: Mon Jan 31, 2022 7:51 pm    Post subject: Reply with quote

1400 characters; I'm working on character, Unicode(hex) and Html (&Wink translation.


Yes, this will take some time.



oem.png
 Description:
 Filesize:  2.08 KB
 Viewed:  2169 Time(s)

oem.png



_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Jan 31, 2022 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 36

Joined: 16 Feb 2017
Posts: 1499

PostPosted: Mon Jan 31, 2022 9:25 pm    Post subject: Reply with quote

@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.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 36

Joined: 16 Feb 2017
Posts: 1499

PostPosted: Tue Feb 01, 2022 3:18 pm    Post subject: Reply with quote

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&zcaron;","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","&Amacr;"):gsub("u0101","&amacr;"):gsub("u0102","&Abreve;"):gsub("u0103","&abreve;"):gsub("u0104","&Aogon;"):gsub("u0105","&aogon;"):gsub("u0106","&Cacute;"):gsub("u0107","&cacute;"):gsub("u0108","&Ccirc;"):gsub("u0109","&ccirc;"):gsub("u010a","&Cdot;"):gsub("u010b","&cdot;"):gsub("u010c","&Ccaron;"):gsub("u010d","&ccaron;"):gsub("u010e","&Dcaron;"):gsub("u010f","&dcaron;"):gsub("u0110","&Dstrok;"):gsub("u0111","&dstrok;"):gsub("u0112","&Emacr;"):gsub("u0113","&emacr;"):gsub("u0116","&Edot;"):gsub("u0117","&edot;"):gsub("u0118","&Eogon;"):gsub("u0119","&eogon;"):gsub("u011a","&Ecaron;"):gsub("u011b","&ecaron;"):gsub("u011c","&Gcirc;"):gsub("u011d","&gcirc;"):gsub("u011e","&Gbreve;"):gsub("u011f","&gbreve;"):gsub("u0120","&Gdot;"):gsub("u0121","&gdot;"):gsub("u0122","&Gcedil;"):gsub("u0123","&gcedil;"):gsub("u0124","&Hcirc;"):gsub("u0125","&hcirc;"):gsub("u0126","&Hstrok;"):gsub("u0127","&hstrok;"):gsub("u0128","&Itilde;"):gsub("u0129","&itilde;"):gsub("u012a","&Imacr;"):gsub("u012b","&imacr;"):gsub("u012e","&Iogon;"):gsub("u012f","&iogon;"):gsub("u0130","&Idot;"):gsub("u0131","&inodot;"):gsub("u0132","&IJlog;"):gsub("u0133","&ijlig;"):gsub("u0134","&Jcirc;"):gsub("u0135","&jcirc;"):gsub("u0136","&Kcedil;"):gsub("u0137","&kcedli;"):gsub("u0138","&kgreen;"):gsub("u0139","&Lacute;"):gsub("u013a","&lacute;"):gsub("u013b","&Lcedil;"):gsub("u013c","&lcedil;"):gsub("u013d","&Lcaron;"):gsub("u013e","&lcaron;"):gsub("u013f","&Lmodot;"):gsub("u0140","&lmidot;"):gsub("u0141","&Lstrok;"):gsub("u0142","&lstrok;"):gsub("u0143","&Nacute;"):gsub("u0144","&nacute;"):gsub("u0145","&Ncedil;"):gsub("u0146","&ncedil;"):gsub("u0147","&Ncaron;"):gsub("u0148","&ncaron;"):gsub("u0149","&napos;"):gsub("u014a","&ENG;"):gsub("u014b","&eng;"):gsub("u014c","&Omacr;"):gsub("u014d","&omacr;"):gsub("u0150","&Odblac;"):gsub("u0151","&odblac;"):gsub("u0152","&OElig;"):gsub("u0153","&oelig;"):gsub("u0154","&Racute;"):gsub("u0155","&racute;"):gsub("u0156","&Rcedil;"):gsub("u0157","&rcedil;"):gsub("u0158","&Rcaron;"):gsub("u0159","&rcaron;"):gsub("u015a","&Sacute;"):gsub("u015b","&sacute;"):gsub("u015c","&Scirc;"):gsub("u015d","&scirc;"):gsub("u015e","&Scedil;"):gsub("u015f","&scedil;"):gsub("u0160","&Scaron;"):gsub("u0161","&scaron;"):gsub("u0162","&Tcedil;"):gsub("u0163","&tcedil;"):gsub("u0164","&Tcaron;"):gsub("u0165","&tcaron;"):gsub("u0166","&Tstrok;"):gsub("u0167","&tstrok;"):gsub("u0168","&Utilde;"):gsub("u0169","&utilde;"):gsub("u016a","&Umacr;"):gsub("u016b","&umacr;"):gsub("u016c","&Ubreve;"):gsub("u016d","&ubreve;"):gsub("u016e","&Uring;"):gsub("u016f","&uring;"):gsub("u0170","&Udblac;"):gsub("u0171","&udblac;"):gsub("u0172","&Uogon;"):gsub("u0173","&uogon;"):gsub("u0174","&Wcirc;"):gsub("u0175","&wcirc;"):gsub("u0176","&Ycirc;"):gsub("u0177","&ycirc;"):gsub("u0178","&Yuml;"):gsub("u0179","&Zacute;"):gsub("u017a","&zacute;"):gsub("u017b","&Zdot;"):gsub("u017c","&zdot;"):gsub("u017d","&Zcaron;"):gsub("u017e","&zcaron;"):gsub("u&zcaron;","&"):gsub("u0026","&amp;"):gsub("u003c","&lt;"):gsub("u003e","&gt;"):gsub("u005e","&Hat;"):gsub("u1d49c","&Ascr;"):gsub("u1d49e","&Cscr;"):gsub("u1d49f","&Dscr;"):gsub("u1d4a2","&Gscr;"):gsub("u1d4a5","&Jscr;"):gsub("u1d4a6","&Kscr;"):gsub("u1d4a9","&Nscr;"):gsub("u1d4aa","&Oscr;"):gsub("u1d4ab","&Pscr;"):gsub("u1d4ac","&Qscr;"):gsub("u1d4ae","&Sscr;"):gsub("u1d4af","&Tscr;"):gsub("u1d4b0","&Uscr;"):gsub("u1d4b1","&Vscr;"):gsub("u1d4b2","&Wscr;"):gsub("u1d4b3","&Xscr;"):gsub("u1d4b4","&Yscr;"):gsub("u1d4b5","&Zscr;"):gsub("u1d4b6","&ascr;"):gsub("u1d4b7","&bscr;"):gsub("u1d4b8","&cscr;"):gsub("u1d4b9","&dscr;"):gsub("u1d4bb","&fscr;"):gsub("u1d4bd","&hscr;"):gsub("u1d4be","&iscr;"):gsub("u1d4bf","&jscr;"):gsub("u1d4c0","&kscr;"):gsub("u1d4c1","&lscr;"):gsub("u1d4c2","&mscr;"):gsub("u1d4c3","&nscr;"):gsub("u1d4c5","&pscr;"):gsub("u1d4c6","&qscr;"):gsub("u1d4c7","&rscr;"):gsub("u1d4c8","&sscr;"):gsub("u1d4c9","&tscr;"):gsub("u1d4ca","&uscr;"):gsub("u1d4cb","&vscr;"):gsub("u1d4cc","&wscr;"):gsub("u1d4cd","&xscr;"):gsub("u1d4ce","&yscr;"):gsub("u1d4cf","&zscr;"):gsub("u1d504","&Afr;"):gsub("u1d505","&Bfr;"):gsub("u1d507","&Dfr;"):gsub("u1d508","&Efr;"):gsub("u1d509","&Ffr;"):gsub("u1d50a","&Gfr;"):gsub("u1d50d","&Jfr;"):gsub("u1d50e","&Kfr;"):gsub("u1d50f","&Lfr;"):gsub("u1d510","&Mfr;"):gsub("u1d511","&Nfr;"):gsub("u1d512","&Ofr;"):gsub("u1d513","&Pfr;"):gsub("u1d514","&Qfr;"):gsub("u1d516","&Sfr;"):gsub("u1d517","&Tfr;"):gsub("u1d518","&Ufr;"):gsub("u1d519","&Vfr;"):gsub("u1d51a","&Wfr;"):gsub("u1d51b","&Xfr;"):gsub("u1d51c","&Yfr;"):gsub("u1d51e","&afr;"):gsub("u1d51f","&bfr;"):gsub("u1d520","&cfr;"):gsub("u1d521","&dfr;"):gsub("u1d522","&efr;"):gsub("u1d523","&ffr;"):gsub("u1d524","&gfr;"):gsub("u1d525","&hfr;"):gsub("u1d526","&ifr;"):gsub("u1d527","&jfr;"):gsub("u1d528","&kfr;"):gsub("u1d529","&lfr;"):gsub("u1d52a","&mfr;"):gsub("u1d52b","&nfr;"):gsub("u1d52c","&ofr;"):gsub("u1d52d","&pfr;"):gsub("u1d52e","&qfr;"):gsub("u1d52f","&rfr;"):gsub("u1d530","&sfr;"):gsub("u1d531","&tfr;"):gsub("u1d532","&ufr;"):gsub("u1d533","&vfr;"):gsub("u1d534","&wfr;"):gsub("u1d535","&xfr;"):gsub("u1d536","&yfr;"):gsub("u1d537","&zfr;"):gsub("u1d538","&Aopf;"):gsub("u1d539","&Bopf;"):gsub("u1d53b","&Dopf;"):gsub("u1d53c","&Eopf;"):gsub("u1d53d","&Fopf;"):gsub("u1d53e","&Gopf;"):gsub("u1d540","&Iopf;"):gsub("u1d541","&Jopf;"):gsub("u1d542","&Kopf;"):gsub("u1d543","&Lopf;"):gsub("u1d544","&Mopf;"):gsub("u1d546","&Oopf;"):gsub("u1d54a","&Sopf;"):gsub("u1d54b","&Topf;"):gsub("u1d54c","&Uopf;"):gsub("u1d54d","&Vopf;"):gsub("u1d54e","&Wopf;"):gsub("u1d54f","&Xopf;"):gsub("u1d550","&Yopf;"):gsub("u1d552","&aopf;"):gsub("u1d553","&bopf;"):gsub("u1d554","&copf;"):gsub("u1d555","&dopf;"):gsub("u1d556","&eopf;"):gsub("u1d557","&fopf;"):gsub("u1d558","&gopf;"):gsub("u1d559","&hopf;"):gsub("u1d55a","&iopf;"):gsub("u1d55b","&jopf;"):gsub("u1d55c","&kopf;"):gsub("u1d55d","&lopf;"):gsub("u1d55e","&mopf;"):gsub("u1d55f","&nopf;"):gsub("u1d560","&oopf;"):gsub("u1d561","&popf;"):gsub("u1d562","&qopf;"):gsub("u1d563","&ropf;"):gsub("u1d564","&sopf;"):gsub("u1d565","&topf;"):gsub("u1d566","&uopf;"):gsub("u1d567","&vopf;"):gsub("u1d568","&wopf;"):gsub("u1d569","&xopf;"):gsub("u1d56a","&yopf;"):gsub("u1d56b","&zopf;"):gsub("u00bf","&iquest;"):gsub("u00c0","&Agrave;"):gsub("u00c1","&Aacute;"):gsub("u00c2","&Acirc;"):gsub("u00c3","&Atilde;"):gsub("u00c4","&Auml;"):gsub("u00c5","&Aring;"):gsub("u00c6","&AElig;"):gsub("u00c7","&Ccedil;"):gsub("u00c8","&Egrave;"):gsub("u00c9","&Eacute;"):gsub("u00ca","&Ecirc;"):gsub("u00cb","&Euml;"):gsub("u00cc","&Igrave;"):gsub("u00cd","&Iacute;"):gsub("u00ce","&Icirc;"):gsub("u00cf","&Iuml;"):gsub("u00d0","&ETH;"):gsub("u00d1","&Ntilde;"):gsub("u00d2","&Ograve;"):gsub("u00d3","&Oacute;"):gsub("u00d4","&Ocirc;"):gsub("u00d5","&Otilde;"):gsub("u00d6","&Ouml;"):gsub("u00d7","&times;"):gsub("u00d8","&Oslash;"):gsub("u00d9","&Ugrave;"):gsub("u00da","&Uacute;"):gsub("u00db","&Ucirc;"):gsub("u00dc","&Uuml;"):gsub("u00dd","&Yacute;"):gsub("u00de","&THORN;"):gsub("u00df","&szlig;"):gsub("u00e0","&agrave;"):gsub("u00e1","&aacute;"):gsub("u00e2","&acirc;"):gsub("u00e3","&atilde;"):gsub("u00e4","&auml;"):gsub("u00e5","&aring;"):gsub("u00e6","&aelig;"):gsub("u00e7","&ccedil;"):gsub("u00e8","&egrave;"):gsub("u00e9","&eacute;"):gsub("u00ea","&ecirc;"):gsub("u00eb","&euml;"):gsub("u00ec","&igrave;"):gsub("u00ed","&iacute;"):gsub("u00ee","&icirc;"):gsub("u00ef","&iuml;"):gsub("u00f0","&eth;"):gsub("u00f1","&ntilde;"):gsub("u00f2","&ograve;"):gsub("u00f3","&oacute;"):gsub("u00f4","&ocirc;"):gsub("u00f5","&otilde;"):gsub("u00f6","&ouml;"):gsub("u00f7","&divide;"):gsub("u00f8","&oslash;"):gsub("u00f9","&ugrave;"):gsub("u00fa","&uacute;"):gsub("u00fb","&ucirc;"):gsub("u00fc","&uuml;"):gsub("u00fd","&yacute;"):gsub("u00fe","&thorn;"):gsub("u00ff","&yuml;")

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.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites