Initial commit

This commit is contained in:
duck
2025-12-17 21:43:32 +05:00
commit 591831666f
38 changed files with 2382 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
local M = {}
M.autoscript = function(table)
local output = {}
for i = 1, #table, 3 do
local path = table[i]
local cmod = output
for j = 1, string.len(path) do
local dir = string.sub(path, j, j)
if cmod[dir] == nil then
cmod[dir] = { stop = string.len(path) == j }
else
cmod[dir].stop = false
end
cmod = cmod[dir]
end
cmod.stopper = { table[i + 1], table[i + 2] }
end
return output
end
return M

View File

@@ -0,0 +1,37 @@
local auto = require("scripter.presets.auto")
return auto.autoscript({
"zh", "ж", "Ж",
"ch", "ч", "Ч",
"sh", "ш", "Ш",
"sh'", "щ", "Щ",
"yi", "ы", "Ы",
"j", "ë", "Ë",
"''", "ъ", "Ъ",
"c", "ц", "Ц",
"ye", "э", "Э",
"yu", "ю", "Ю",
"ya", "я", "Я",
"a", "а", "А",
"b", "б", "Б",
"v", "в", "В",
"g", "г", "Г",
"d", "д", "Д",
"e", "е", "Е",
"z", "з", "З",
"i", "и", "И",
"y", "й", "Й",
"k", "к", "К",
"l", "л", "Л",
"m", "м", "М",
"n", "н", "Н",
"o", "о", "О",
"p", "п", "П",
"r", "р", "Р",
"s", "с", "С",
"t", "т", "Т",
"u", "у", "У",
"f", "ф", "Ф",
"h", "х", "Х",
"'", "ь", "Ь",
})

View File

@@ -0,0 +1,6 @@
local M = {}
M.cyrillic = require("scripter.presets.cyrillic")
M.none = require("scripter.presets.none")
return M

View File

@@ -0,0 +1,3 @@
return {
stop = true,
}