Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1: Line 1:
local getArgs = require('Module:Arguments').getArgs
local getArgs = require('Module:Arguments').getArgs
local p = {}
local export = {}


local data = {
local data = {
Line 140: Line 140:
local i_iteration = -2
local i_iteration = -2


mw.log("\n=========================\n\nCURRENT TEST STRING: <".. mw.ustring.upper(s) .. ">")
mw.log("=========================\nCURRENT TEST STRING: <".. mw.ustring.upper(s) .. ">")


if s_len < 3 then
if s_len < 3 then
Line 224: Line 224:
end
end


mw.log('\n————— STRING EXHAUSTED —————')
mw.log('————— STRING EXHAUSTED —————')
return table.concat(IPA)
return table.concat(IPA)


Line 230: Line 230:
end
end


function p.generate(frame)
function export.generate(frame)
local args = getArgs(frame)
local args = getArgs(frame)
return generate_IPA(args[1])
return generate_IPA(args[1])
end
end


return p
return export

Navigation menu