Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
local export = {}
local export = {}
 
local lang = "siwa"
local m_IPA = require("Module:IPA")
local m_IPA = require("Module:IPA")
local m_su = require("Module:string utilities")
local m_su = require("Module:string utilities")
Line 261: Line 262:
local prefix = "[[w:IPA chart|IPA]]<sup>([[IPA for Siwa|key]])</sup>:&#32;"
local prefix = "[[w:IPA chart|IPA]]<sup>([[IPA for Siwa|key]])</sup>:&#32;"
local span = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>"
local span = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>"
for _, item in ipairs(items) do
local bit = item.pron
table.insert(bits, bit)
end
return prefix .. span .. items.pron .. "</span>"
return prefix .. span .. items.pron .. "</span>"
end
end
Line 273: Line 271:
local IPA_args = {{pron = '[' .. phonetic .. ']'}}
local IPA_args = {{pron = '[' .. phonetic .. ']'}}
table.insert(prons, IPA_format(IPA_args))
table.insert(prons, m_IPA.format_IPA_full(lang, IPA_args))
end
end
return "(''"..dialect.."'') " .. table.concat(prons, ' or ')
return "(''"..dialect.."'') " .. table.concat(prons, ' or ')