Module:eo-spel

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

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local u = require("Module:string/char")
local toNFC = mw.ustring.toNFC

local export = {}

local lang = require("Module:languages").getByCode("eo")
local hat = u(0x302)
local breve = u(0x306)

function export.convert(word)
	if word:match("") then
		return toNFC(word
			:gsub("()", "%1" .. hat)
			:gsub("()", "%1" .. breve))
	else
		return toNFC(word
			:gsub("()", "%1" .. hat)
			:gsub("()", "%1" .. breve))
	end
end

function export.spelling(frame)
	return frame:expandTemplate{ title = "spelling of",
		args = { = "eo",  = (mw.title.getCurrentTitle().text:match("") and "X" or "H") .. "-system",  = frame:getParent() and frame:getParent().args or export.convert(mw.title.getCurrentTitle().text)}}
end

return export