48,355
edits
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
["y"] = "ʏ", ["i"] = "ɪ", ["e"] = "ɛ", | ["y"] = "ʏ", ["i"] = "ɪ", ["e"] = "ɛ", | ||
["u"] = "ʊ", ["o"] = "ɔ", ["a"] = "ɑ", | ["u"] = "ʊ", ["o"] = "ɔ", ["a"] = "ɑ", | ||
["ů"] = "œ" | |||
} | } | ||
| Line 44: | Line 45: | ||
end | end | ||
end | end | ||
local export = {} | local export = {} | ||
-- exportable to be used by [[Module:pine-noun]] | |||
--[[ | |||
function export.syllabify_from_spelling(term) | function export.syllabify_from_spelling(term) | ||
local vowels = "[" .. vowels_spelling .. "]" | local vowels = "[" .. vowels_spelling .. "]" | ||
| Line 82: | Line 72: | ||
function export.crux(term) | function export.crux(term) | ||
term = export.syllabify_from_spelling(term) | term = export.syllabify_from_spelling(term) | ||
-- default to short lax vowels | -- default to short lax vowels | ||
term = gsub(term, "[ | term = gsub(term, "[aeiouyů]", laxen) | ||
-- long vowels | -- long vowels | ||
term = gsub(term, "([ảẻỉỏủỷ])", long_vowels) | term = gsub(term, "([ảẻỉỏủỷ])", long_vowels) | ||