Module:siwa-pron: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
function export.separateSyllables(frame) | function export.separateSyllables(frame) | ||
local syllables = {} | local syllables = {} | ||
local pattern = "(" .. tostring(m_data.internal_clusters_2) .. ")?(aeiou)" | local pattern = "(" .. tostring(m_data.internal_clusters_2) .. ")?(aeiou)" | ||
table.insert(syllables, m_su.capturing_split( | table.insert(syllables, m_su.capturing_split(mw.title.getCurrentTitle().text, pattern)) | ||
return syllables | return syllables | ||