Module:kht-headword

Hello, you have come here looking for the meaning of the word Module:kht-headword. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:kht-headword, but we will also tell you about its etymology, its characteristics and you will know how to say Module:kht-headword in singular and plural. Everything you need to know about the word Module:kht-headword you have here. The definition of the word Module:kht-headword will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:kht-headword, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


-- The following code is same as aio, phk. Just different at language code.

local export = {}
local pos_functions = {}

local gsub = mw.ustring.gsub
local u = mw.ustring.char

local lang = require("Module:languages").getByCode("kht")
local script = require("Module:scripts").getByCode("Mymr")
local PAGENAME = mw.title.getCurrentTitle().text

function export.show(frame)

	local args = frame:getParent().args
	local poscat = frame.args or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.")

	local headword = args or PAGENAME
	if mw.ustring.find(headword, u(0xFE00), 1, true) then
		error("Please remove the variant selector character  from headword.")
	end
	local head = dotted_form(headword) -- for displaying only
	local tr = args

	local data = {lang = lang, sc = script, pos_category = poscat, categories = {}, heads = {head}, translits = {tr}, inflections = {}}

	if pos_functions then
		pos_functions(args, data)
	end

	return require("Module:headword").full_headword(data)

end

-- https://www.unicode.org/Public/UNIDATA/StandardizedVariants.txt
function dotted_form(text)

	return gsub(text, "()", "%1" .. u(0xFE00))

end

--pos_functions here

return export