Jump to content
Wikipedia The Free Encyclopedia

Module:Unicode data/combining

From Wikipedia, the free encyclopedia
Module documentation[view] [edit] [history] [purge]

Contains data used by Module:Unicode data to determine whether a character is combining or not. Can also be used to return the character's combining class. Generated from DerivedCombiningClass.txt using a script.

Affecting two characters

[edit ]

Note: combing class = 230 (some), 233, 234 require second dotted circle (suffix) for their effect: ◌͜◌ (see § U+035C, § U+035D, § U+20DB).

The above documentation is transcluded from Module:Unicode data/combining/doc. (edit | history)
Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages.
Subpages of this module.

 -- [[:commons:Data:Unicode/data/combining/singles.tab]]
 -- [[:commons:Data:Unicode/data/combining/ranges.tab]]

 localfunctionget_result()
 localwrite_index
 localresult={}

 -- singles
 result.singles={}
 localdata=mw.ext.data.get("Unicode/data/combining/singles.tab")
 forindex,colsinipairs(data.data)do
 ifcols[1]andcols[2]then
 result.singles[tonumber(cols[1],16)]=cols[2]
 end
 end

 -- ranges
 data=mw.ext.data.get("Unicode/data/combining/ranges.tab")
 write_index=1
 result.ranges={}
 forindex,colsinipairs(data.data)do
 ifcols[1]andcols[2]andcols[3]then
 result.ranges[write_index]={tonumber(cols[1],16),tonumber(cols[2],16),cols[3]}
 write_index=write_index+1
 end
 end
 result.ranges.length=#result.ranges

 returnresult
 end

 returnget_result()

AltStyle によって変換されたページ (->オリジナル) /