Module:IPA: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 13: Line 13:


function get_SAMPAd(ipa)
function get_SAMPAd(ipa)
local correspondences = {
local correspondences = mw.loadData("Module:IPA/SAMPA")
["g"] = "ɡ",
 
["E"] = "ɛ",
["O"] = "ɔ",
["%%"] = "ˌ",
["%:"] = "ː",
['%"'] = "ˈ",
["%'"] = "ʲ",
["%_j"] = "ʲ",
}
for from, to in pairs(correspondences) do
for from, to in pairs(correspondences) do
ipa = mw.ustring.gsub(ipa, "'''", "ʹʹ")
ipa = mw.ustring.gsub(ipa, "'''", "ʹʹ")