Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 102: Line 102:
data["!"] = data["."]
data["!"] = data["."]
data["?"] = data["."]
data["?"] = data["."]
IPA = {}
IPA = {}
function append_IPA (working_IPA)
function append_IPA (working_IPA)
local IPA_size = #IPA --This variable needs to be set before the function or it breaks.
local IPA_size = #IPA --This variable needs to be set before the function or it breaks.
print("————— REGISTERING PHONE —————")
if IPA_size > 0 then
if IPA_size > 0 then
for i=1, IPA_size do
for i=1, IPA_size do
Line 111: Line 114:
end
end
IPA[1] = working_IPA
IPA[1] = working_IPA
print("[" .. working_IPA .. "] registered.")
print("Current IPA: [" .. table.concat(IPA, "][") .. "]")
end
end
-- BEGIN BASE GENERATION --
-- BEGIN BASE GENERATION --
function generate_IPA(s)
 
function export.generate_IPA(s)
local s_len = utf8.len(s)
local s_len = utf8.len(s)
IPA = {}
IPA = {}