10,794
edits
TheNightAvl (talk | contribs) (Test) |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 121: | Line 121: | ||
function export.generate_IPA(s) | function export.generate_IPA(s) | ||
local s_len = | local s_len = mw.umw.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] = | split_s[i] = mw.umw.ustring.sub(s, i,i) | ||
end | end | ||
Line 213: | Line 213: | ||
print("Target acquired of length " .. 1 - i .. ", converting to [" .. getData .. "].") | print("Target acquired of length " .. 1 - i .. ", converting to [" .. getData .. "].") | ||
append_IPA(getData) | append_IPA(getData) | ||
s = | s = mw.ustring.sub(s, 1, s_len + i - 1) | ||
s_len = | s_len = mw.ustring.len(s) | ||
break | break | ||
elseif deadEnd == false then | elseif deadEnd == false then |