, ( | )

    
>  | .
V
FREEON
27.1.2019, 10:52
#1


*****

Journeyman
: 365
: 14.2.2017
:
: 0
: 18.346
: 25



?
test.txt, , ( ).
1,2,3,4,5,11,27

1 , 2 . .
, :
qwerty : Hfcrkflrf ->

. , , . .
:
$GfHjKm$_Dfvgbh >>> ;;_


--lua
--
-- Hfcrkflrf ->
local file= io.open([[C:\123.txt]], "r")          --
local result_file = io.open([[C:\456.txt]], "w")  --

local t={}
t["a"]=""  t["b"]=""  t["c"]=""  t["d"]=""  t["e"]=""  t["f"]=""
t["g"]=""  t["h"]=""  t["i"]=""  t["j"]=""  t["k"]=""  t["l"]=""
t["m"]=""  t["n"]=""  t["o"]=""  t["p"]=""  t["q"]=""  t["r"]=""
t["s"]=""  t["t"]=""  t["u"]=""  t["v"]=""  t["w"]=""  t["x"]=""
t["y"]=""  t["z"]=""  t["`"]=""  t["["]=""  t["]"]=""  t[";"]=""
t["'"]=""  t[","]=""  t["."]=""  t["/"]="."  t["A"]=""  t["B"]=""
t["C"]=""  t["D"]=""  t["E"]=""  t["F"]=""  t["G"]=""  t["H"]=""
t["I"]=""  t["J"]=""  t["K"]=""  t["L"]=""  t["M"]=""  t["N"]=""
t["O"]=""  t["P"]=""  t["Q"]=""  t["R"]=""  t["S"]=""  t["T"]=""
t["U"]=""  t["V"]=""  t["W"]=""  t["X"]=""  t["Y"]=""  t["Z"]=""
t["{"]=""  t["}"]=""  t[":"]=""  t['"']=""  t["<"]=""  t[">"]=""
t["?"]=","  t["~"]=""  t["@"]='"'  t["#"]=""  t["$"]=";"  t["^"]=":"
t["&"]="?"

if file and result_file then     --
    for v in file:lines() do
        result_file:write(string.gsub(v, ".", t).."\r\n")  -- 't'
    end

    file:close()
    result_file:close()
else
    log (" /")
end

URL-decoder(): %D0%A2%D0%B5%D0%BA%D1%81%D1%82 ->

URL () . URL US-ASCII. , , . . , , , .
:
%D0%9A%D1%83%D0%BF%D0%B8%D1%82%D1%8C >>>


--lua
log "clear"   log "mode compact"

local s=" URL"   -- << url- ""
log(s)

local t={}
t["%D0%90"]="" t["%D0%91"]="" t["%D0%92"]="" t["%D0%93"]="" t["%D0%94"]="" t["%D0%95"]="" t["%D0%81"]="" t["%D0%96"]="" t["%D0%97"]="" t["%D0%98"]="" t["%D0%99"]=""
t["%D0%9A"]="" t["%D0%9B"]="" t["%D0%9C"]="" t["%D0%9D"]="" t["%D0%9E"]="" t["%D0%9F"]="" t["%D0%A0"]="" t["%D0%A1"]="" t["%D0%A2"]="" t["%D0%A3"]="" t["%D0%A4"]=""
t["%D0%A5"]="" t["%D0%A6"]="" t["%D0%A7"]="" t["%D0%A8"]="" t["%D0%A9"]="" t["%D0%AA"]="" t["%D0%AB"]="" t["%D0%AC"]="" t["%D0%AD"]="" t["%D0%AE"]="" t["%D0%AF"]=""
t["%D0%B0"]="" t["%D0%B1"]="" t["%D0%B2"]="" t["%D0%B3"]="" t["%D0%B4"]="" t["%D0%B5"]="" t["%D1%91"]="" t["%D0%B6"]="" t["%D0%B7"]="" t["%D0%B8"]="" t["%D0%B9"]=""
t["%D0%BA"]="" t["%D0%BB"]="" t["%D0%BC"]="" t["%D0%BD"]="" t["%D0%BE"]="" t["%D0%BF"]="" t["%D1%80"]="" t["%D1%81"]="" t["%D1%82"]="" t["%D1%83"]="" t["%D1%84"]=""
t["%D1%85"]="" t["%D1%86"]="" t["%D1%87"]="" t["%D1%88"]="" t["%D1%89"]="" t["%D1%8A"]="" t["%D1%8B"]="" t["%D1%8C"]="" t["%D1%8D"]="" t["%D1%8E"]="" t["%D1%8F"]=""

for v in pairs(t) do   -- , "%D0%9A", "%d0%9a"
    t[v:lower()]=t[v]
end

for i=32, 127 do t["%" .. string.format("%X", i)]=string.char(i) end   -- , ascii 32 127

s=s:gsub("%%[Dd][01]%%%x%x", t)   --
s=s:gsub("%%..", t)               --
log(s)                            --

. Reverser : . -> .

, , . ... (IMG:style_emoticons/default/smile.gif)
.
:
! >>> !


--lua
log "clear"  log "mode compact"
local s=" ."
log (s)
log (s:reverse())

: Morse to text -> -- --- .-. ... . - --- - . -..- -

, , , , .
. :
Text <<->> - . -..- -


--lua
log "clear"  log "mode compact"
-- () .
local text=[[Text or - . -..- -]]-- << .

log(text)

local t, t1, temp = {}, {}, {}
t["A"]=".-"     t["B"]="-..."   t["C"]="-.-."   t["D"]="-.."    t["E"]="."      t["F"]="..-."   t["G"]="--."
t["H"]="...."   t["I"]=".."     t["J"]=".---"   t["K"]="-.-"    t["L"]=".-.."   t["M"]="--"     t["N"]="-."
t["O"]="---"    t["P"]=".--."   t["Q"]="--.-"   t["R"]=".-."    t["S"]="..."    t["T"]="-"      t["U"]="..-"
t["V"]="...-"   t["W"]=".--"    t["X"]="-..-"   t["Y"]="-.--"   t["Z"]="--.."
for v in pairs(t) do temp[string_lower(v)]=t[v] end
for v in pairs(temp) do t[v]=temp[v] end
t["1"]=".----"  t["2"]="..---"  t["3"]="...--"  t["4"]="....-"  t["5"]="....."  t["6"]="-...."  t["7"]="--..."
t["8"]="---.."  t["9"]="----."  t["0"]="-----"  t["."]="......" t[":"]="---..." t[";"]="-.-.-." t["("]="-.--.-"
t[")"]="-.--.-" t["'"]=".----." t['"']=".-..-." t["-"]="-....-" t["/"]="-..-."  t["?"]="..--.." t["!"]="--..--"
t[","]=".-.-.-"
for v in pairs(t) do t1[t[v]]=v end   -- , 't'

local x=0
for v in text:gmatch("[%.%- ]") do x=x+1 end  -- ,

if x > #text*50/100 then   -- 50%,
    text=string.gsub((text .. " "):gsub("(.-) ", t1), "  ", " ")    --
else
    text=string.gsub(text:gsub("(.)", "%1 "), "[^ ]", t)  --
end
log (text)

. :
<<->> - . -.- ... -


--lua
log "clear"  log "mode compact"

-- () .
local text=[[ - . -.- ... -]]-- << .

log(text)

local t, t1, temp = {}, {}, {}
t[""]=".-"     t[""]="-..."   t[""]=".--"    t[""]="--."    t[""]="-.."    t[""]="."    t[""]="."
t[""]="...-"   t[""]="--.."   t[""]=".."     t[""]=".---"   t[""]="-.-"    t[""]=".-.." t[""]="--"
t[""]="-."     t[""]="---"    t[""]=".--."   t[""]=".-."    t[""]="..."    t[""]="-"    t[""]="..-"
t[""]="..-."   t[""]="...."   t[""]="-.-."   t[""]="---."   t[""]="----"   t[""]="--.-" t[""]="-..-"
t[""]="-..-"   t[""]="-.--"   t[""]="..-.."  t[""]="..--"   t[""]=".-.-"
for v in pairs(t) do temp[string_lower(v)]=t[v] end
for v in pairs(temp) do t[v]=temp[v] end
t["1"]=".----"  t["2"]="..---"  t["3"]="...--"  t["4"]="....-"  t["5"]="....."  t["6"]="-...."  t["7"]="--..."
t["8"]="---.."  t["9"]="----."  t["0"]="-----"  t["."]="......" t[":"]="---..." t[";"]="-.-.-." t["("]="-.--.-"
t[")"]="-.--.-" t["'"]=".----." t['"']=".-..-." t["-"]="-....-" t["/"]="-..-."  t["?"]="..--.." t["!"]="--..--"
t[","]=".-.-.-"
for v in pairs(t) do t1[t[v]]=v end   -- , 't'

local x=0
for v in text:gmatch("[%.%- ]") do x=x+1 end  -- ,

if x > #text*50/100 then   -- 50%,
    text=string.gsub((text .. " "):gsub("(.-) ", t1), "  ", " ")    --
else
    text=string.gsub(text:gsub("(.)", "%1 "), "[^ ]", t)  --
end
log (text)


cirus .
  Delete Post
+
 
FREEON
23.4.2019, 22:34
#2


*****

Journeyman
: 365
: 14.2.2017
:
: 0
: 18.346
: 25



CP1251 UTF-8

--lua
log ("clear")   log ("mode compact")
local q = clipboard ()      -- text

wait (300)                     -- 300
log (q)                     -- text
log()
local t={}
t["А"]="" t["Б"]="" t["В"]="" t["Г"]="" t["Д"]="" t["Е"]="" t["Ё"]="" t["Ж"]="" t["З"]="" t["И"]="" t["Й"]=""
t["К"]="" t["Л"]="" t["М"]="" t["Н"]="" t["О"]="" t["П"]="" t["Р"]="" t["С"]="" t["Т"]="" t["У"]="" t["Ф"]=""
t["Х"]="" t["Ц"]="" t["Ч"]="" t["Ш"]="" t["Щ"]="" t["Ъ"]="" t["Ы"]="" t["Ь"]="" t["Э"]="" t["Ю"]="" t["Я"]=""
t["а"]="" t["б"]="" t["в"]="" t["г"]="" t["д"]="" t["е"]="" t["ё"]="" t["ж"]="" t["з"]="" t["и"]="" t["й"]=""
t["к"]="" t["л"]="" t["м"]="" t["н"]="" t["о"]="" t["п"]="" t["р"]="" t["с"]="" t["т"]="" t["%у"]="" t["ф"]=""
t["х"]="" t["ц"]="" t["ч"]="" t["ш"]="" t["щ"]="" t["ъ"]="" t["ы"]="" t["ь"]="" t["э"]="" t["ю"]="" t["я"]=""
local s = (string.gsub(q, "[]x", t))  -- ???
log (s)
clipboard (s)                  --

:
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ
  Delete Post
+

FREEON   | .   27.1.2019, 10:52
cirus   --lua local file= io.open([[C:...   27.1.2019, 11:44
FREEON   [code]--lua local file= io.open([[C...   27.1.2019, 13:12
NoName212   php ) 3.0...   27.1.2019, 12:24
DarkMaster   :   27.1.2019, 13:28
FREEON   : t...   27.1.2019, 13:43
cirus   , . ...   27.1.2019, 13:38
FREEON   . ? .- = - 2 ...   27.1.2019, 14:31
cirus   , ...   27.1.2019, 14:04
FREEON   ... ...   27.1.2019, 16:18
cirus   [code]--lua log "clear" log "mode com...   27.1.2019, 16:25
FREEON   [spoiler= ...   27.1.2019, 17:44
cirus   .   27.1.2019, 18:26
FREEON   . ...   27.1.2019, 18:40
cirus   , ...   27.1.2019, 19:14
FREEON   ...   27.1.2019, 20:10
cirus   --lua local s1 = '"Hello!"' -...   27.1.2019, 20:27
cirus   t["<"]="" t[...   27.1.2019, 21:02
DarkMaster   local s4 = [====['"Hello!"...   27.1.2019, 21:08
FREEON   url-... :unsure...   28.1.2019, 1:16
cirus   --lua log "clear" log "mode compact...   28.1.2019, 4:24
FREEON   --lua log "clear" log "mode compact...   28.1.2019, 6:38
FREEON   ? ...   28.1.2019, 14:39
cirus   --lua log "clear" log "mode compact...   28.1.2019, 15:27
FREEON   ......   28.1.2019, 16:09
cirus   . : string_...   28.1.2019, 16:20
FREEON   . : [code]s...   28.1.2019, 17:00
cirus   --lua log "clear" log "mode compact...   28.1.2019, 17:11
FREEON   ...   28.1.2019, 20:51
cirus   for v in pairs(t) do -- ...   28.1.2019, 21:18
FREEON   for v in pairs(t) do -- ...   28.1.2019, 21:29
cirus   2 . , ...   28.1.2019, 21:50
FREEON   2 . , ...   28.1.2019, 22:04
cirus   ? ...   28.1.2019, 22:39
FREEON   ? ...   28.1.2019, 23:01
cirus   --lua log "clear" log "mode compact...   29.1.2019, 0:50
FREEON   [code]--lua log "clear" log "mode co...   29.1.2019, 1:18
cirus   . ?   29.1.2019, 1:43
FREEON   . ? ...   29.1.2019, 1:46
cirus   , ...   29.1.2019, 3:02
FREEON   , ...   29.1.2019, 11:47
FREEON   Lua , ...   29.1.2019, 12:27
sutra   , . ...   29.1.2019, 4:02
DarkMaster   . next - ...   29.1.2019, 13:10
cirus   --lua log "clear" log "mode compact...   29.1.2019, 13:27
FREEON   CP1251 UTF-8 --lua log...   23.4.2019, 22:34
FREEON   . ...   29.10.2019, 16:14
Fors1k   , . File1 File2 Fi...   30.10.2019, 13:09
FREEON   , . File1 File2 Fi...   30.10.2019, 13:30
Fors1k   calc c:/2/file2_new.txt ...   30.10.2019, 13:35
FREEON   ...   30.10.2019, 13:48
Fors1k   . . ...   30.10.2019, 14:46
FREEON   . mg8zuB4na2c ...   30.10.2019, 15:41
FREEON   ... ...   30.10.2019, 18:15
Fors1k   ...   31.10.2019, 8:04
FREEON   , ...   31.10.2019, 9:33
Fors1k   [b]#i_1.txt * " </tr> , ...   31.10.2019, 15:49
FREEON   , ...   1.11.2019, 1:26
Fors1k   . ...   30.10.2019, 1:59
FREEON   [/quote] indexOf . ...   30.10.2019, 11:27
cirus   --lua local file= io.open([[C:...   30.10.2019, 12:46
cirus   ?   31.10.2019, 1:26
FREEON   ? lua. ...   31.10.2019, 7:04
cirus   --lua local file = io.open([[C:...   31.10.2019, 11:37
FREEON   ...   18.11.2021, 14:36
cirus   . --lua log...   18.11.2021, 14:53

 

1 . (: 1, : 0)
: 0

 

: : · : ·

· · ·

- | : 18.7.2025, 4:39
Designed by Nickostyle