Module:User:Isomorphyc/th-translit-draft

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is a private module sandbox of Isomorphyc, for their own experimentation. Items in this module may be added and removed at Isomorphyc's discretion; do not rely on this module's stability.


local export = {}

local m_pron = require("Module:th-pron")

function export.tr(text, lang, sc)
	return m_pron.translit(text, lang, sc, "paiboon", "translit-module"), export.trFull(text)
end

function export.trFull(text)
	return { orthographic = table.concat(m_pron.getCharSeqTbl(text)),  
		     phonemic = "phonemic-stub",
		     phonetic = "phonetic-stub" }
end

return export