local betuk_eredeti = {"BOVNRKBFNAYXIHZGJODDFCHS",
"BLZTKJMLODFVGRTOPMRYXAOP",
"ORULTDILISSZERELEMIRCHMK",
"SQBECUIKLOWNRJTHLVVAGAIN",
"RJCJVQDFBGAIORUCFHEJOTHT",
"TSGIZARKYNXEDFCHJNGTZAVD",
"RKIOWALVBGFTFDAKHZAJOLRP",
"KBFNACBERDAIERTXHBZMKOGZ",
"KGTBJEGENGSZTEROSZTAGMJW",
"YZSCNDUXDTTHDAVCNJUKLAXT",
"YHYFTGTPJUINPRZFDMVGGRIP",
"MFQELIRNVGMNUTAMGRZDRNVE",
"AHILACOKSACKETHJMXHJNYFR",
"PVBNUNUSTZSMLODFVSNSWEZT",
"ASZERELMUNKLAPJAIKVNBKKA",
"ZUILLOTKTANLSXRGCASERAFC",
"ZDXSFJNLKGAABRLFUHYSQBLD",
"HTNOANGKHRJPZZUDZFZPHAGN",
"KHTNASVZRCEFTOLKJOVNGNAT",
}
local szavak_eredeti = {
"gengszterosztag",
"veresromanc",
"plasztikszerelem",
"tores",
"felnelson",
"szobatarsak",
"afiatalkoru",
"ahihetetlen",
"alomsuli",
"bluevalentine"
}
local betuk, szavak = {}, {}
for i=1,#betuk_eredeti do
local t = {betuk_eredeti[i]:byte(1, -1)}
table.sort(t)
betuk[i] = t
end
for i=1,#szavak_eredeti do
local t = {szavak_eredeti[i]:upper():byte(1, -1)}
table.sort(t)
szavak[i] = t
end
for i=1,#szavak do
local szo = szavak[i]
local szohossz = #szo
for j=1,#betuk do
local ozs = betuk[j]
local n = 1
for j=1,#ozs do
if szo[n] == ozs[j] then
if n == szohossz then
n = -1
break
end
n = n + 1
end
end
if n == -1 then
print(i, szavak_eredeti[i], j, betuk_eredeti[j])
break -- ez kell ide?
end
end
end
{"text":"text","html5":"html","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"lua","bash":"sh","erlang":"erlang","go":"golang","c":"c_cpp","cpp":"c_cpp","diff":"diff","latex":"latex","sql":"sql","xml":"xml","0":"text","abap":"abap","actionscript":"actionscript","actionscript3":"actionscript","ada":"ada","apache":"apache_conf","applescript":"applescript","asm":"assembly_x86","autohotkey":"autohotkey","closure":"closure","cobol":"cobol","coffeescript":"coffee","cpp-winapi":"c_cpp","c_loadrunner":"c_cpp","c_mac":"c_cpp","c_winapi":"c_cpp","csharp":"csharp","d":"d","dart":"dart","dot":"dot","eiffel":"eiffel","fortran":"fortran","groovy":"groovy","haskell":"haskell","haxe":"haxe","ini":"ini","io":"io","java":"java","java5":"java","make":"makefile","matlab":"matlab","mysql":"mysql","objc":"objectivec","ocaml":"ocaml","pascal":"pascal","perl":"perl","perl6":"perl","postgresql":"pgsql","powershell":"powershell","prolog":"prolog","properties":"properties","rails":"ruby","rust":"rust","scala":"scala","scheme":"scheme","smarty":"smarty","tcl":"tcl","vala":"vala","vb":"vbscript","verilog":"verilog","vhdl":"vhdl","yaml":"yaml"}