Module:User:Erutuon/05

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

ᾰ̓́γω (3 non-combining characters long), ἀθῡμῐ́ᾱ (6 non-combining characters long)


local export = {}

local isCombining = require("Module:Unicode data").is_combining

local function getLength(str)
	local length = 0
	for codepoint in mw.ustring.gcodepoint(str) do
		if not isCombining(codepoint) then
			length = length + 1
		end
	end
	return length
end

local function displayLength(str)
	return str .. " (" .. getLength(str) .. " non-combining characters long)"
end

function export.show(frame)
	local output = {}
	
	for i, arg in ipairs(frame.args or {}) do
		table.insert(output, displayLength(arg))
	end
	
	return table.concat(output, ", ")
end

return export