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


local insert = table.insert

local export = {}

local byte_lookup = {
	 = "\\a",
	 = "\\b",
	 = "\\t",
	 = "\\n",
	 = "\\v",
	 = "\\f",
	 = "\\r",
	 = "\\\"",
	 = "\\\\",
}

local _char = string.char
local function char(ch)
	return byte_lookup or
		(ch < 0x20 or ch >= 0x7F) and "\\" .. ("%03d"):format(ch) or
		_char(ch)
end

function export.main(checker)
	local keys = require("Module:Hani-sortkey/data")
	local radicals = require("Module:Hani-sortkey/data/core").radicals
	local ret, val = {}
	
	for i = 1, 0x323AF do
		if keys then
			for r, as in keys:gmatch("(%d+)%.(.*)") do
				insert(ret, char(tonumber(r)))
				-- Negative additional stroke counts are subtractive (i.e. -1 becomes -9, -2 becomes -8 etc.), so that lower values sort before higher ones (i.e. -3, -2, -1 ...).
				as = tonumber(as)
				insert(ret, char(as < 0 and 0 - as or as + 10))
			end
		end
	end
	
	-- Compress the result.
	for i = 1, #ret do
		local ch = ret
		if ch:match("^\\%d%d%d$") then
			local nxt = ret
			if not (nxt and nxt:sub(1, 1):match("%d")) then
				ret = ("\\%d"):format(ch:sub(2))
			end
		end
	end
	
	return table.concat(ret)
end

return export