モジュール:UnicodeCategory

出典: フリー多機能辞典『ウィクショナリー日本語版(Wiktionary)』
ナビゲーションに移動 検索に移動

このモジュールについての説明文ページを モジュール:UnicodeCategory/doc に作成できます

local p = {}

p.table = {
	{ 0x000000, 0x00007F, 'Unicode Basic Latin' },
	{ 0x000080, 0x0000FF, 'Unicode Latin-1 Supplement' },
	{ 0x000100, 0x00017F, 'Unicode Latin Extended-A' },
	{ 0x000180, 0x00024F, 'Unicode Latin Extended-B' },
	{ 0x000250, 0x0002AF, 'Unicode IPA Extensions' },
	{ 0x0002B0, 0x0002FF, 'Unicode Spacing Modifier Letters' },
	{ 0x000300, 0x00036F, 'Unicode Combining Diacritical Marks' },
	{ 0x000370, 0x0003FF, 'Unicode Greek and Coptic' },
	{ 0x000400, 0x0004FF, 'Unicode Cyrillic' },
	{ 0x000500, 0x00052F, 'Unicode Cyrillic Supplement' },
	{ 0x000530, 0x00058F, 'Unicode Armenian' },
	{ 0x000590, 0x0005FF, 'Unicode Hebrew' },
	{ 0x000600, 0x0006FF, 'Unicode Arabic' },
	{ 0x000700, 0x00074F, 'Unicode Syriac' },
	{ 0x000750, 0x00077F, 'Unicode Arabic Supplement' },
	{ 0x000780, 0x0007BF, 'Unicode Thaana' },
	{ 0x0007C0, 0x0007FF, 'Unicode NKo' },
	{ 0x000800, 0x00083F, 'Unicode Samaritan' },
	{ 0x000840, 0x00085F, 'Unicode Mandaic' },
	{ 0x000860, 0x00086F, 'Unicode Syriac Supplement' },
	{ 0x0008A0, 0x0008FF, 'Unicode Arabic Extended-A' },
	{ 0x000900, 0x00097F, 'Unicode Devanagari' },
	{ 0x000980, 0x0009FF, 'Unicode Bengali' },
	{ 0x000A00, 0x000A7F, 'Unicode Gurmukhi' },
	{ 0x000A80, 0x000AFF, 'Unicode Gujarati' },
	{ 0x000B00, 0x000B7F, 'Unicode Oriya' },
	{ 0x000B80, 0x000BFF, 'Unicode Tamil' },
	{ 0x000C00, 0x000C7F, 'Unicode Telugu' },
	{ 0x000C80, 0x000CFF, 'Unicode Kannada' },
	{ 0x000D00, 0x000D7F, 'Unicode Malayalam' },
	{ 0x000D80, 0x000DFF, 'Unicode Sinhala' },
	{ 0x000E00, 0x000E7F, 'Unicode Thai' },
	{ 0x000E80, 0x000EFF, 'Unicode Lao' },
	{ 0x000F00, 0x000FFF, 'Unicode Tibetan' },
	{ 0x001000, 0x00109F, 'Unicode Myanmar' },
	{ 0x0010A0, 0x0010FF, 'Unicode Georgian' },
	{ 0x001100, 0x0011FF, 'Unicode Hangul Jamo' },
	{ 0x001200, 0x00137F, 'Unicode Ethiopic' },
	{ 0x001380, 0x00139F, 'Unicode Ethiopic Supplement' },
	{ 0x0013A0, 0x0013FF, 'Unicode Cherokee' },
	{ 0x001400, 0x00167F, 'Unicode Unified Canadian Aboriginal Syllabics' },
	{ 0x001680, 0x00169F, 'Unicode Ogham' },
	{ 0x0016A0, 0x0016FF, 'Unicode Runic' },
	{ 0x001700, 0x00171F, 'Unicode Tagalog' },
	{ 0x001720, 0x00173F, 'Unicode Hanunoo' },
	{ 0x001740, 0x00175F, 'Unicode Buhid' },
	{ 0x001760, 0x00177F, 'Unicode Tagbanwa' },
	{ 0x001780, 0x0017FF, 'Unicode Khmer' },
	{ 0x001800, 0x0018AF, 'Unicode Mongolian' },
	{ 0x0018B0, 0x0018FF, 'Unicode Unified Canadian Aboriginal Syllabics Extended' },
	{ 0x001900, 0x00194F, 'Unicode Limbu' },
	{ 0x001950, 0x00197F, 'Unicode Tai Le' },
	{ 0x001980, 0x0019DF, 'Unicode New Tai Lue' },
	{ 0x0019E0, 0x0019FF, 'Unicode Khmer Symbols' },
	{ 0x001A00, 0x001A1F, 'Unicode Buginese' },
	{ 0x001A20, 0x001AAF, 'Unicode Tai Tham' },
	{ 0x001AB0, 0x001AFF, 'Unicode Combining Diacritical Marks Extended' },
	{ 0x001B00, 0x001B7F, 'Unicode Balinese' },
	{ 0x001B80, 0x001BBF, 'Unicode Sundanese' },
	{ 0x001BC0, 0x001BFF, 'Unicode Batak' },
	{ 0x001C00, 0x001C4F, 'Unicode Lepcha' },
	{ 0x001C50, 0x001C7F, 'Unicode Ol Chiki' },
	{ 0x001C80, 0x001C8F, 'Unicode Cyrillic Extended-C' },
	{ 0x001C90, 0x001CBF, 'Unicode Georgian Extended' },
	{ 0x001CC0, 0x001CCF, 'Unicode Sundanese Supplement' },
	{ 0x001CD0, 0x001CFF, 'Unicode Vedic Extensions' },
	{ 0x001D00, 0x001D7F, 'Unicode Phonetic Extensions' },
	{ 0x001D80, 0x001DBF, 'Unicode Phonetic Extensions Supplement' },
	{ 0x001DC0, 0x001DFF, 'Unicode Combining Diacritical Marks Supplement' },
	{ 0x001E00, 0x001EFF, 'Unicode Latin Extended Additional' },
	{ 0x001F00, 0x001FFF, 'Unicode Greek Extended' },
	{ 0x002000, 0x00206F, 'Unicode General Punctuation' },
	{ 0x002070, 0x00209F, 'Unicode Superscripts and Subscripts' },
	{ 0x0020A0, 0x0020CF, 'Unicode Currency Symbols' },
	{ 0x0020D0, 0x0020FF, 'Unicode Combining Diacritical Marks for Symbols' },
	{ 0x002100, 0x00214F, 'Unicode Letterlike Symbols' },
	{ 0x002150, 0x00218F, 'Unicode Number Forms' },
	{ 0x002190, 0x0021FF, 'Unicode Arrows' },
	{ 0x002200, 0x0022FF, 'Unicode Mathematical Operators' },
	{ 0x002300, 0x0023FF, 'Unicode Miscellaneous Technical' },
	{ 0x002400, 0x00243F, 'Unicode Control Pictures' },
	{ 0x002440, 0x00245F, 'Unicode Optical Character Recognition' },
	{ 0x002460, 0x0024FF, 'Unicode Enclosed Alphanumerics' },
	{ 0x002500, 0x00257F, 'Unicode Box Drawing' },
	{ 0x002580, 0x00259F, 'Unicode Block Elements' },
	{ 0x0025A0, 0x0025FF, 'Unicode Geometric Shapes' },
	{ 0x002600, 0x0026FF, 'Unicode Miscellaneous Symbols' },
	{ 0x002700, 0x0027BF, 'Unicode Dingbats' },
	{ 0x0027C0, 0x0027EF, 'Unicode Miscellaneous Mathematical Symbols-A' },
	{ 0x0027F0, 0x0027FF, 'Unicode Supplemental Arrows-A' },
	{ 0x002800, 0x0028FF, 'Unicode Braille Patterns' },
	{ 0x002900, 0x00297F, 'Unicode Supplemental Arrows-B' },
	{ 0x002980, 0x0029FF, 'Unicode Miscellaneous Mathematical Symbols-B' },
	{ 0x002A00, 0x002AFF, 'Unicode Supplemental Mathematical Operators' },
	{ 0x002B00, 0x002BFF, 'Unicode Miscellaneous Symbols and Arrows' },
	{ 0x002C00, 0x002C5F, 'Unicode Glagolitic' },
	{ 0x002C60, 0x002C7F, 'Unicode Latin Extended-C' },
	{ 0x002C80, 0x002CFF, 'Unicode Coptic' },
	{ 0x002D00, 0x002D2F, 'Unicode Georgian Supplement' },
	{ 0x002D30, 0x002D7F, 'Unicode Tifinagh' },
	{ 0x002D80, 0x002DDF, 'Unicode Ethiopic Extended' },
	{ 0x002DE0, 0x002DFF, 'Unicode Cyrillic Extended-A' },
	{ 0x002E00, 0x002E7F, 'Unicode Supplemental Punctuation' },
	{ 0x002E80, 0x002EFF, 'Unicode CJK Radicals Supplement' },
	{ 0x002F00, 0x002FDF, 'Unicode Kangxi Radicals' },
	{ 0x002FF0, 0x002FFF, 'Unicode Ideographic Description Characters' },
	{ 0x003000, 0x00303F, 'Unicode CJK Symbols and Punctuation' },
	{ 0x003040, 0x00309F, 'Unicode Hiragana' },
	{ 0x0030A0, 0x0030FF, 'Unicode Katakana' },
	{ 0x003100, 0x00312F, 'Unicode Bopomofo' },
	{ 0x003130, 0x00318F, 'Unicode Hangul Compatibility Jamo' },
	{ 0x003190, 0x00319F, 'Unicode Kanbun' },
	{ 0x0031A0, 0x0031BF, 'Unicode Bopomofo Extended' },
	{ 0x0031C0, 0x0031EF, 'Unicode CJK Strokes' },
	{ 0x0031F0, 0x0031FF, 'Unicode Katakana Phonetic Extensions' },
	{ 0x003200, 0x0032FF, 'Unicode Enclosed CJK Letters and Months' },
	{ 0x003300, 0x0033FF, 'Unicode CJK Compatibility' },
	{ 0x003400, 0x004DBF, 'Unicode CJK Unified Ideographs Extension A' },
	{ 0x004DC0, 0x004DFF, 'Unicode Yijing Hexagram Symbols' },
	{ 0x004E00, 0x009FFF, 'Unicode CJK Unified Ideographs' },
	{ 0x00A000, 0x00A48F, 'Unicode Yi Syllables' },
	{ 0x00A490, 0x00A4CF, 'Unicode Yi Radicals' },
	{ 0x00A4D0, 0x00A4FF, 'Unicode Lisu' },
	{ 0x00A500, 0x00A63F, 'Unicode Vai' },
	{ 0x00A640, 0x00A69F, 'Unicode Cyrillic Extended-B' },
	{ 0x00A6A0, 0x00A6FF, 'Unicode Bamum' },
	{ 0x00A700, 0x00A71F, 'Unicode Modifier Tone Letters' },
	{ 0x00A720, 0x00A7FF, 'Unicode Latin Extended-D' },
	{ 0x00A800, 0x00A82F, 'Unicode Syloti Nagri' },
	{ 0x00A830, 0x00A83F, 'Unicode Common Indic Number Forms' },
	{ 0x00A840, 0x00A87F, 'Unicode Phags-pa' },
	{ 0x00A880, 0x00A8DF, 'Unicode Saurashtra' },
	{ 0x00A8E0, 0x00A8FF, 'Unicode Devanagari Extended' },
	{ 0x00A900, 0x00A92F, 'Unicode Kayah Li' },
	{ 0x00A930, 0x00A95F, 'Unicode Rejang' },
	{ 0x00A960, 0x00A97F, 'Unicode Hangul Jamo Extended-A' },
	{ 0x00A980, 0x00A9DF, 'Unicode Javanese' },
	{ 0x00A9E0, 0x00A9FF, 'Unicode Myanmar Extended-B' },
	{ 0x00AA00, 0x00AA5F, 'Unicode Cham' },
	{ 0x00AA60, 0x00AA7F, 'Unicode Myanmar Extended-A' },
	{ 0x00AA80, 0x00AADF, 'Unicode Tai Viet' },
	{ 0x00AAE0, 0x00AAFF, 'Unicode Meetei Mayek Extensions' },
	{ 0x00AB00, 0x00AB2F, 'Unicode Ethiopic Extended-A' },
	{ 0x00AB30, 0x00AB6F, 'Unicode Latin Extended-E' },
	{ 0x00AB70, 0x00ABBF, 'Unicode Cherokee Supplement' },
	{ 0x00ABC0, 0x00ABFF, 'Unicode Meetei Mayek' },
	{ 0x00AC00, 0x00D7AF, 'Unicode Hangul Syllables' },
	{ 0x00D7B0, 0x00D7FF, 'Unicode Hangul Jamo Extended-B' },
	{ 0x00D800, 0x00DB7F, 'Unicode High Surrogates' },
	{ 0x00DB80, 0x00DBFF, 'Unicode High Private Use Surrogates' },
	{ 0x00DC00, 0x00DFFF, 'Unicode Low Surrogates' },
	{ 0x00E000, 0x00F8FF, 'Unicode Private Use Area' },
	{ 0x00F900, 0x00FAFF, 'Unicode CJK Compatibility Ideographs' },
	{ 0x00FB00, 0x00FB4F, 'Unicode Alphabetic Presentation Forms' },
	{ 0x00FB50, 0x00FDFF, 'Unicode Arabic Presentation Forms-A' },
	{ 0x00FE00, 0x00FE0F, 'Unicode Variation Selectors' },
	{ 0x00FE10, 0x00FE1F, 'Unicode Vertical Forms' },
	{ 0x00FE20, 0x00FE2F, 'Unicode Combining Half Marks' },
	{ 0x00FE30, 0x00FE4F, 'Unicode CJK Compatibility Forms' },
	{ 0x00FE50, 0x00FE6F, 'Unicode Small Form Variants' },
	{ 0x00FE70, 0x00FEFF, 'Unicode Arabic Presentation Forms-B' },
	{ 0x00FF00, 0x00FFEF, 'Unicode Halfwidth and Fullwidth Forms' },
	{ 0x00FFF0, 0x00FFFF, 'Unicode Specials' },
	{ 0x010000, 0x01007F, 'Unicode Linear B Syllabary' },
	{ 0x010080, 0x0100FF, 'Unicode Linear B Ideograms' },
	{ 0x010100, 0x01013F, 'Unicode Aegean Numbers' },
	{ 0x010140, 0x01018F, 'Unicode Ancient Greek Numbers' },
	{ 0x010190, 0x0101CF, 'Unicode Ancient Symbols' },
	{ 0x0101D0, 0x0101FF, 'Unicode Phaistos Disc' },
	{ 0x010280, 0x01029F, 'Unicode Lycian' },
	{ 0x0102A0, 0x0102DF, 'Unicode Carian' },
	{ 0x0102E0, 0x0102FF, 'Unicode Coptic Epact Numbers' },
	{ 0x010300, 0x01032F, 'Unicode Old Italic' },
	{ 0x010330, 0x01034F, 'Unicode Gothic' },
	{ 0x010350, 0x01037F, 'Unicode Old Permic' },
	{ 0x010380, 0x01039F, 'Unicode Ugaritic' },
	{ 0x0103A0, 0x0103DF, 'Unicode Old Persian' },
	{ 0x010400, 0x01044F, 'Unicode Deseret' },
	{ 0x010450, 0x01047F, 'Unicode Shavian' },
	{ 0x010480, 0x0104AF, 'Unicode Osmanya' },
	{ 0x0104B0, 0x0104FF, 'Unicode Osage' },
	{ 0x010500, 0x01052F, 'Unicode Elbasan' },
	{ 0x010530, 0x01056F, 'Unicode Caucasian Albanian' },
	{ 0x010600, 0x01077F, 'Unicode Linear A' },
	{ 0x010800, 0x01083F, 'Unicode Cypriot Syllabary' },
	{ 0x010840, 0x01085F, 'Unicode Imperial Aramaic' },
	{ 0x010860, 0x01087F, 'Unicode Palmyrene' },
	{ 0x010880, 0x0108AF, 'Unicode Nabataean' },
	{ 0x0108E0, 0x0108FF, 'Unicode Hatran' },
	{ 0x010900, 0x01091F, 'Unicode Phoenician' },
	{ 0x010920, 0x01093F, 'Unicode Lydian' },
	{ 0x010980, 0x01099F, 'Unicode Meroitic Hieroglyphs' },
	{ 0x0109A0, 0x0109FF, 'Unicode Meroitic Cursive' },
	{ 0x010A00, 0x010A5F, 'Unicode Kharoshthi' },
	{ 0x010A60, 0x010A7F, 'Unicode Old South Arabian' },
	{ 0x010A80, 0x010A9F, 'Unicode Old North Arabian' },
	{ 0x010AC0, 0x010AFF, 'Unicode Manichaean' },
	{ 0x010B00, 0x010B3F, 'Unicode Avestan' },
	{ 0x010B40, 0x010B5F, 'Unicode Inscriptional Parthian' },
	{ 0x010B60, 0x010B7F, 'Unicode Inscriptional Pahlavi' },
	{ 0x010B80, 0x010BAF, 'Unicode Psalter Pahlavi' },
	{ 0x010C00, 0x010C4F, 'Unicode Old Turkic' },
	{ 0x010C80, 0x010CFF, 'Unicode Old Hungarian' },
	{ 0x010D00, 0x010D3F, 'Unicode Hanifi Rohingya' },
	{ 0x010E60, 0x010E7F, 'Unicode Rumi Numeral Symbols' },
	{ 0x010F00, 0x010F2F, 'Unicode Old Sogdian' },
	{ 0x010F30, 0x010F6F, 'Unicode Sogdian' },
	{ 0x010FE0, 0x010FFF, 'Unicode Elymaic' },
	{ 0x011000, 0x01107F, 'Unicode Brahmi' },
	{ 0x011080, 0x0110CF, 'Unicode Kaithi' },
	{ 0x0110D0, 0x0110FF, 'Unicode Sora Sompeng' },
	{ 0x011100, 0x01114F, 'Unicode Chakma' },
	{ 0x011150, 0x01117F, 'Unicode Mahajani' },
	{ 0x011180, 0x0111DF, 'Unicode Sharada' },
	{ 0x0111E0, 0x0111FF, 'Unicode Sinhala Archaic Numbers' },
	{ 0x011200, 0x01124F, 'Unicode Khojki' },
	{ 0x011280, 0x0112AF, 'Unicode Multani' },	
	{ 0x0112B0, 0x0112FF, 'Unicode Khudawadi' },
	{ 0x011300, 0x01137F, 'Unicode Grantha' },
	{ 0x011400, 0x01147F, 'Unicode Newa' },
	{ 0x011480, 0x0114DF, 'Unicode Tirhuta' },
	{ 0x011580, 0x0115FF, 'Unicode Siddham' },
	{ 0x011600, 0x01165F, 'Unicode Modi' },
	{ 0x011660, 0x01167F, 'Unicode Mongolian Supplement' },
	{ 0x011680, 0x0116CF, 'Unicode Takri' },
	{ 0x011700, 0x01173F, 'Unicode Ahom' },
	{ 0x011800, 0x01184F, 'Unicode Dogra' },
	{ 0x0118A0, 0x0118FF, 'Unicode Warang Citi' },
	{ 0x0119A0, 0x0119FF, 'Unicode Nandinagari' },
	{ 0x011A00, 0x011A4F, 'Unicode Zanabazar Square' },
	{ 0x011A50, 0x011AAF, 'Unicode Soyombo' },
	{ 0x011AC0, 0x011AFF, 'Unicode Pau Cin Hau' },
	{ 0x011C00, 0x011C6F, 'Unicode Bhaiksuki' },
	{ 0x011C70, 0x011CBF, 'Unicode Marchen' },
	{ 0x011D00, 0x011D5F, 'Unicode Masaram Gondi' },
	{ 0x011D60, 0x011DAF, 'Unicode Gunjala Gondi' },
	{ 0x011EE0, 0x011EFF, 'Unicode Makasar' },
	{ 0x011FC0, 0x011FFF, 'Unicode Tamil Supplement' },
	{ 0x012000, 0x0123FF, 'Unicode Cuneiform' },
	{ 0x012400, 0x01247F, 'Unicode Cuneiform Numbers and Punctuation' },
	{ 0x012480, 0x01254F, 'Unicode Early Dynastic Cuneiform' },
	{ 0x013000, 0x01342F, 'Unicode Egyptian Hieroglyphs' },
	{ 0x013430, 0x01343F, 'Unicode Egyptian Hieroglyph Format Controls' },
	{ 0x014400, 0x01467F, 'Unicode Anatolian Hieroglyphs' },
	{ 0x016800, 0x016A3F, 'Unicode Bamum Supplement' },
	{ 0x016A40, 0x016A6F, 'Unicode Mro' },
	{ 0x016AD0, 0x016AFF, 'Unicode Bassa Vah' },
	{ 0x016B00, 0x016B8F, 'Unicode Pahawh Hmong' },
	{ 0x016E40, 0x016E9F, 'Unicode Medefaidrin' },
	{ 0x016F00, 0x016F9F, 'Unicode Miao' },
	{ 0x016FE0, 0x016FFF, 'Unicode Ideographic Symbols and Punctuation' },
	{ 0x017000, 0x0187FF, 'Unicode Tangut' },
	{ 0x018800, 0x018AFF, 'Unicode Tangut Components' },
	{ 0x01B000, 0x01B0FF, 'Unicode Kana Supplement' },
	{ 0x01B100, 0x01B12F, 'Unicode Kana Extended-A' },
	{ 0x01B130, 0x01B16F, 'Unicode Small Kana Extension' },
	{ 0x01B170, 0x01B2FF, 'Unicode Nushu' },
	{ 0x01BC00, 0x01BC9F, 'Unicode Duployan' },
	{ 0x01BCA0, 0x01BCAF, 'Unicode Shorthand Format Controls' },
	{ 0x01D000, 0x01D0FF, 'Unicode Byzantine Musical Symbols' },
	{ 0x01D100, 0x01D1FF, 'Unicode Musical Symbols' },
	{ 0x01D200, 0x01D24F, 'Unicode Ancient Greek Musical Notation' },
	{ 0x01D2E0, 0x01D2FF, 'Unicode Mayan Numerals' },
	{ 0x01D300, 0x01D35F, 'Unicode Tai Xuan Jing Symbols' },
	{ 0x01D360, 0x01D37F, 'Unicode Counting Rod Numerals' },
	{ 0x01D400, 0x01D7FF, 'Unicode Mathematical Alphanumeric Symbols' },
	{ 0x01D800, 0x01DAAF, 'Unicode Sutton SignWriting' },
	{ 0x01E000, 0x01E02F, 'Unicode Glagolitic Supplement' },
	{ 0x01E100, 0x01E14F, 'Unicode Nyiakeng Puachue Hmong' },
	{ 0x01E2C0, 0x01E2FF, 'Unicode Wancho' },
	{ 0x01E800, 0x01E8DF, 'Unicode Mende Kikakui' },
	{ 0x01E900, 0x01E95F, 'Unicode Adlam' },
	{ 0x01EC70, 0x01ECBF, 'Unicode Indic Siyaq Numbers' },
	{ 0x01ED00, 0x01ED4F, 'Unicode Ottoman Siyaq Numbers' },
	{ 0x01EE00, 0x01EEFF, 'Unicode Arabic Mathematical Alphabetic Symbols' },
	{ 0x01F000, 0x01F02F, 'Unicode Mahjong Tiles' },
	{ 0x01F030, 0x01F09F, 'Unicode Domino Tiles' },
	{ 0x01F0A0, 0x01F0FF, 'Unicode Playing Cards' },
	{ 0x01F100, 0x01F1FF, 'Unicode Enclosed Alphanumeric Supplement' },
	{ 0x01F200, 0x01F2FF, 'Unicode Enclosed Ideographic Supplement' },
	{ 0x01F300, 0x01F5FF, 'Unicode Miscellaneous Symbols And Pictographs' },
	{ 0x01F600, 0x01F64F, 'Unicode Emoticons' },
	{ 0x01F650, 0x01F67F, 'Unicode Ornamental Dingbats' },
	{ 0x01F680, 0x01F6FF, 'Unicode Transport And Map Symbols' },
	{ 0x01F700, 0x01F77F, 'Unicode Alchemical Symbols' },
	{ 0x01F780, 0x01F7FF, 'Unicode Geometric Shapes Extended' },
	{ 0x01F800, 0x01F8FF, 'Unicode Supplemental Arrows-C' },
	{ 0x01F900, 0x01F9FF, 'Unicode Supplemental Symbols and Pictographs' },
	{ 0x01FA00, 0x01FA6F, 'Unicode Chess Symbols' },
	{ 0x01FA70, 0x01FAFF, 'Unicode Symbols and Pictographs Extended-A' },	
	{ 0x020000, 0x02A6DF, 'Unicode CJK Unified Ideographs Extension B' },
	{ 0x02A700, 0x02B73F, 'Unicode CJK Unified Ideographs Extension C' },
	{ 0x02B740, 0x02B81F, 'Unicode CJK Unified Ideographs Extension D' },
	{ 0x02B820, 0x02CEAF, 'Unicode CJK Unified Ideographs Extension E' },
	{ 0x02CEB0, 0x02EBEF, 'Unicode CJK Unified Ideographs Extension F' },
	{ 0x02F800, 0x02FA1F, 'Unicode CJK Compatibility Ideographs Supplement' },
	{ 0x0E0000, 0x0E007F, 'Unicode Tags' },
	{ 0x0E0100, 0x0E01EF, 'Unicode Variation Selectors Supplement' },
	{ 0x0F0000, 0x0FFFFF, 'Unicode Supplementary Private Use Area-A' },
	{ 0x100000, 0x10FFFF, 'Unicode Supplementary Private Use Area-B' }
}

function p.getCategoryString( frame )
	local a1 = frame.args[1]
	local code = tonumber(a1)
	if code == nil then
		mw.log('char: ' .. a1)
		return ('UnicodeCategoryに非数値が渡されているページ')
	end
	local cat = ''
	for i,v in ipairs(p.table) do
		if v[1] <= code and code <= v[2] then
			cat = v[3]
			break
		end
	end
	if cat == '' then
		mw.log('char: ' .. code)
		return 'UnicodeCategoryが未対応の範囲に適用されているページ'
	end
	return cat
end

function p.getCategoryName( frame ) -- for compatibility
	return p.main(frame)
end

function p.main( frame )
	local cat  = p.getCategoryString( frame )
	local skey = frame:getParent().args[2] or mw.title.getCurrentTitle().text
	return '[[Category:' .. cat .. '|' .. skey .. ']]'
end

return p