Module:rhymes: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 3: Line 3:


local m_languages = require("Module:languages")
local m_languages = require("Module:languages")
local m_IPA = require("Module:IPA")


local V = "aeiouyɑæɐəɵɛɜɪɨɔœɒøʊʉʌɯʏɤ"
local V = "aeiouyɑæɐəɵɛɜɪɨɔœɒøʊʉʌɯʏɤ"
Line 61: Line 62:
for i, rhyme in ipairs(args) do
for i, rhyme in ipairs(args) do
if i > 1 then
if i > 1 then
rhyme = require("Module:IPA").get_SAMPAd(rhyme)
rhyme = m_IPA.get_SAMPAd(rhyme)
rhyme = mw.ustring.gsub(rhyme, "[%/%[%]]", "")
rhyme = mw.ustring.gsub(rhyme, "[%/%[%]]", "")
local rhyme2
local rhyme2

Navigation menu