Modul:Unicode data/doc
Penggunaan
[sunting sumber]Modul ini mengaktifkan fungsi yang mengakses informasi di titik-titik kode Unicode. Informasi ini berasal dari modul data yang dihasilkan dari Unicode Character Database, atau dihasilkan sesuai ketentuan Unicode Specification. Modul beserta submodulnya disalin dari Wiktionary bahasa Inggris, lalu dimodifikasi, lihat modul di sana untuk informasi lebih lanjut.
Fungsi
[sunting sumber]lookup_name(codepoint)
- Menerima titik kode (angka) dan menghasilkan nama atau label; contohnya,
lookup_name(0xA9)
menghasilkan"COPYRIGHT SIGN"
. lookup, is
- Template-invokable functions that allow access to the functions starting with
lookup
andis
. Replace the first underscore in the function name with a pipe, and add the codepoint in hexadecimal base, or a bit of text, foris_Latin
,is_rtl
, andis_valid_pagename
, as the next parameter. For example,{{#invoke:Unicode data|lookup|name|61}}
→ LATIN SMALL LETTER A;{{#invoke:Unicode data|is|Latin|àzàhàr̃iyyā̀}}
→ true.
Modul data
[sunting sumber]Data yang digunakan oleh fungsi-fungsi dalam modul ini dapat dilihat di subhalamannya. Untuk melihat kode dasarnya, lihat User:Kephir/Unicode di Wiktionary bahasa Inggris.
- Module:Unicode data/aliases: nama resmi alias karakter (dari NameAliases.txt)
- Module:Unicode data/blocks: daftar blok Unicode (dari Blocks.txt)
- Module:Unicode data/category: data yang menyesuaikan karakter dengan General Category (dari DerivedGeneralCategory.txt)
- Module:Unicode data/control: data untuk mengidentifikasi karakter General Categories of Separator and Other (dari DerivedGeneralCategory.txt)
- Module:Unicode data/combining: data yang menyesuaikan karakter dengan Combining Classes (dari DerivedCombiningClass.txt)
- Module:Unicode data/Hangul: data untuk menghasilkan nama suku kata Hangul (dari Jamo.txt)
- Module:Unicode data/scripts: data yang menyesuaikan karakter dengan properti aksara Unicode (dari Scripts.txt).
Modul data nama (Module:Unicode data/names/xxx) berasal dari UnicodeData.txt. Setiap modul sebanyak-banyaknya mengandung titik kode U+xxx000 sampai U+xxxFFF.
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00x | U+0000– U+0FFF |
U+1000– U+1FFF |
U+2000– U+2FFF |
U+3000– U+3FFF |
U+4000– U+4FFF |
U+A000– U+AFFF |
U+D000– U+DFFF |
U+F000– U+FFFF | ||||||||
01x | U+10000– U+10FFF |
U+11000– U+11FFF |
U+12000– U+12FFF |
U+13000– U+13FFF |
U+14000– U+14FFF |
U+16000– U+16FFF |
U+18000– U+18FFF |
U+1B000– U+1BFFF |
U+1D000– U+1DFFF |
U+1E000– U+1EFFF |
U+1F000– U+1FFFF | |||||
0Ex | U+E0000– U+E0FFF |
Hak cipta
[sunting sumber]Pangkalan data Unicode dirilis oleh Unicode Inc. dengan ketentuan sebagai berikut:
Copyright © 1991-2018 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the "Data Files") or Unicode software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that either (a) this copyright and permission notice appear with all copies of the Data Files or Software, or (b) this copyright and permission notice appear in associated Documentation.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder.