Module:scripts/data/combiningClasses
< Module:scripts | data
- This module lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
-- This cannot be loaded directly with mw.loadData, as its parent table has a metatable. However, using mw.loadData on this module will work instead. It is separated out of the main data module to ensure that it is only loaded when needed, as it uses ~2MB of the 100MB memory allocation.
-- Note that the table is modified so that the key is the character, rather than its codepoint.
local u = require("Module:string utilities").char
local combclass = require("ustring/normalization-data").combclass
local data = {}
for cp, class in next, combclass do
data[u(cp)] = class
end
return data