Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 121: Line 121:


function export.generate_IPA(s)
function export.generate_IPA(s)
local s_len = mw.umw.ustring.len(s)
local s_len = mw.ustring.len(s)
IPA = {}
IPA = {}


local split_s = {}
local split_s = {}
for i = 1, s_len do
for i = 1, s_len do
  split_s[i] = mw.umw.ustring.sub(s, i,i)
  split_s[i] = mw.ustring.sub(s, i,i)
end
end


Navigation menu