Ir al contenido

Módulo:Unicode data/doc

De Wikipedia, la enciclopedia libre

Esta es una versión antigua de esta página, editada a las 12:11 17 dic 2020 por Josecurioso (discusión · contribs.). La dirección URL es un enlace permanente a esta versión, que puede ser diferente de la versión actual.


AVISO: No usar, en proceso de traducción desde en:Module:Unicode data, aún está muy verde.

Uso

Este módulo provee funciones para obtener información sobre puntos de código de Unicode. La información se obtiene de módulos de datos generados partiendo de la Unicode Character Database, o derivados mediante reglas encontradas en la Unicode Specification. Este y sus submódulos se han copiado y traducido de la Wikipedia en Inglés y a su vez del Wikcionario Inglés y posteriormente modificados; véase there para más información.

Funciones

lookup_name(codepoint)
Recibe un punto de código (número) y devuelve su nombre o etiqueta; por ejemplo, lookup_name(0xA9) retorna "COPYRIGHT SIGN".
lookup, is
Función invocable desde plantillas que permite acceder a las funciones que empiezan por lookup e is. Reemplazar el primer guión bajo en la función con una barra vertical, y añade el punto de código en base hexadecimal, o un poco de texto en el caso de is_Latin, is_rtl, e is_valid_pagename, como el siguiente parámetro. Por ejemplo, Plantilla:Tnull → LATIN SMALL LETTER A; Plantilla:Tnull → true.

Módulos de datos

Los datos utilizados por las funciones de este módulo se encuentran en submódulos. Algunos son generados mediante scripts en AWK encontrados en User:Kephir/Unicode en el Wikcionario Inglés, otros mediante scripts en Lua en las subpáginas /make de los submódulos.

Nos módulos de datos sobre nombres (Módulo:Unicode data/names/xxx) fueron compilados partiendo de UnicodeData.txt. Cada uno contiene, como máximo, puntos de código del U+xxx000 al U+xxxFFF.

Módulos de datos para nombres de caracteres,
organizados por los primeros tres dígitos del punto de código en base hexadecimal
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

The Unicode database is released by Unicode Inc. under the following terms:

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.