Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 256: Line 256:
end
end


--[[function format_dialect(replaced, dialect)
function IPA_format(items)
local function IPA_format(items)
local prefix = "[[w:IPA chart|IPA]]<sup>([[IPA for Siwa|key]])</sup>:&#32;"
local bits = {}]]
local span = "<span style=\"font-size:110%;font-family:Gentium,'DejaVu Sans','Segoe UI',sans-serif>"
-- 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>"
return prefix .. span .. items.pron .. "</span>"
return prefix .. span .. items.pron .. "</span>"
end
end
local prons = {}
for _, done in ipairs(replaced) do
local phonetic = done[1]
local IPA_args = {{pron = '[' .. phonetic .. ']'}}
table.insert(prons, m_IPA.format_IPA_full(lang, IPA_args))
end
return "(''"..dialect.."'') " .. table.concat(prons, ' or ')
end]]


function make_row(phonetic, dials)
function make_row(phonetic, dials)
local full_pronuns = {}
local full_pronuns = {}
local IPA_args = {{pron = '[' .. phonetic .. ']'}}
local IPA_args = {{pron = '[' .. phonetic .. ']'}}
table.insert(full_pronuns, m_IPA.format_IPA_full(lang, IPA_args))
table.insert(full_pronuns, IPA_format(IPA_args))
return "(''" .. dials .. "'')" .. ' ' .. table.concat(full_pronuns, ' or ')
return "(''" .. dials .. "'')" .. ' ' .. table.concat(full_pronuns, ' or ')
end
end

Navigation menu