Module:yi-translit: Difference between revisions

Created page with "local export = {} local tt = { ["א"] = "q", ["אָ"] = "o", ["אַ"] = "a", ["בּ"] = "b", ["ב"] = "b", ["בֿ"] = "v", ["גּ"] = "g", ["ג"] = "g", ["גֿ"] = "g", ["דּ"] = "d", ["ד"] = "d", ["דֿ"] = "d", ["ה"] = "H", ["ו"] = "w", ["וּ"] = "u", ["וו"] = "v", ["װ"] = "v", ["וי"] = "oy", ["ױ"] = "oy", ["ז"] = "z", ["ח"] = "kh", ["ט"] = "t", ["י"] = "y", ["יִ"] = "i", ["יִ"] = "i", ["יי"] = "ey", ["ײ"] = "ey", ["י..."
 
m 1 revision imported
 
(One intermediate revision by one other user not shown)
Line 139: Line 139:
"ת",
"ת",
}
}
local function track(page)
require("Module:debug/track")("yi-translit/" .. page)
return true
end


function export.tr(text, lang, sc)
function export.tr(text, lang, sc)
Line 186: Line 191:
text = string.gsub(text, "H", "h")
text = string.gsub(text, "H", "h")
local categories = nil
if hebrew_only then
if hebrew_only then
categories = {"Requests for transliteration of Yiddish terms with Hebrew-only letters"}
track("hebrew-only")
end
end


return text, nil, categories
return text
end
end


return export
return export