45,333
edits
No edit summary |
No edit summary |
||
Line 257: | Line 257: | ||
end | end | ||
function format_dialect(replaced, dialect) | --[[function format_dialect(replaced, dialect) | ||
local function IPA_format(items) | local function IPA_format(items) | ||
local bits = {} | local bits = {}]] | ||
-- local prefix = "[[w:IPA chart|IPA]]<sup>([[IPA for Siwa|key]])</sup>: " | |||
--[[ 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>" | ||
Line 274: | Line 274: | ||
end | end | ||
return "(''"..dialect.."'') " .. table.concat(prons, ' or ') | return "(''"..dialect.."'') " .. table.concat(prons, ' or ') | ||
end]] | |||
local function make_row(phoneticizations, dials) | |||
local full_pronuns = {} | |||
for _, phoneticization in ipairs(phoneticizations) do | |||
local phonemic = phoneticization[1] | |||
local phonetic = phoneticization[2] | |||
local IPA_args = {{pron = '/' .. phonemic .. '/'}} | |||
if phonemic ~= phonetic then | |||
table.insert(IPA_args, {pron = '[' .. phonetic .. ']'}) | |||
end | |||
table.insert(full_pronuns, m_IPA.format_IPA_full(lang, IPA_args)) | |||
end | |||
return m_a.show(dials) .. ' ' .. table.concat(full_pronuns, ' or ') | |||
end | end | ||
function export.show(frame) | function export.show(frame) | ||
Line 295: | Line 307: | ||
if args.a then | if args.a then | ||
ipa = ipa .. | ipa = ipa .. make_row(export.crux(term, false, false), accent and #accent > 0 or {'Aingo'}) | ||
end | end | ||
Line 302: | Line 314: | ||
ipa = ipa .. "\n* " | ipa = ipa .. "\n* " | ||
end | end | ||
out = out .. | out = out .. make_row(export.crux(term, true, false), accent and #accent > 0 or {'Eastern'}) | ||
table.insert(categories, "Siwa terms with Eastern IPA pronunciation") | table.insert(categories, "Siwa terms with Eastern IPA pronunciation") | ||
end | end | ||
Line 310: | Line 322: | ||
ipa = ipa .. "\n* " | ipa = ipa .. "\n* " | ||
end | end | ||
ipa = ipa .. | ipa = ipa .. make_row(export.crux(term, false, true), accent and #accent > 0 or {'Western'}) | ||
table.insert(categories, "Siwa terms with Western IPA pronunciation") | table.insert(categories, "Siwa terms with Western IPA pronunciation") | ||
end | end |