انتقل إلى المحتوى

وحدة:ko/data/range

من ويكاموس، القاموس الحر
local u = require("Module:string utilities").char

local range = {}

-- Traditional/modern Hanja for Korean
range.hanja =
	u(0x4E00) .. "-" .. u(0x9FFF) .. -- CJK Unified Ideographs (basic)
	u(0x3400) .. "-" .. u(0x4DBF) .. -- CJK Unified Ideographs Extension A
	u(0xF900) .. "-" .. u(0xFAFF)   -- CJK Compatibility Ideographs

-- Hangul Compatibility Jamo + Jamo
range.jamo =
	u(0x1100) .. "-" .. u(0x11FF) .. -- Hangul Jamo (initial, medial, final)
	u(0x3130) .. "-" .. u(0x318F) .. -- Hangul Compatibility Jamo
	u(0xA960) .. "-" .. u(0xA97F) .. -- Hangul Jamo Extended-A
	u(0xD7B0) .. "-" .. u(0xD7FF)   -- Hangul Jamo Extended-B

-- Precomposed Hangul Syllables
range.syllables = u(0xAC00) .. "-" .. u(0xD7A3)

-- Korean punctuation
range.punctuation =
	"·︰﹔!?。。、〃〆" .. -- Common Korean + CJK punctuation
	"ㆍ" -- Middle dot, traditional Korean mark

-- Korean numbers (including fullwidth)
range.numbers =
	"0-9" ..
	"0-9"

-- Latin letters (as in your Japanese module)
range.latin = require("Module:scripts").getByCode("Latn"):getCharacters()

-- Korean vowels/consonants (Hangul Jamo by type)
range.consonants = u(0x1100) .. "-" .. u(0x1112) .. -- Choseong
                   u(0x3131) .. "-" .. u(0x314E)     -- Compatibility Choseong

range.vowels = u(0x1161) .. "-" .. u(0x1175) .. -- Jungseong
               u(0x3150) .. "-" .. u(0x3163)   -- Compatibility Jungseong

range.final_consonants = u(0x11A8) .. "-" .. u(0x11C2) -- Jongseong

-- Combined Hangul
range.hangul = range.jamo .. range.syllables

return range