[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/python/python-docs-es/pr-451/c-api/unicode.po [Back]  [Original]

# Copyright (C) 2001-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
# Maintained by the python-doc-es workteam.
# docs-es@python.org /
# https://mail.python.org/mailman3/lists/docs-es.python.org/
# Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to
# get the list of volunteers
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-05 12:54+0200\n"
"PO-Revision-Date: 2020-05-09 02:25+0200\n"
"Language-Team: python-doc-es (https://mail.python.org/mailman3/lists/docs-es."
"python.org)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: \n"
"Language: es\n"
"X-Generator: Poedit 2.3\n"

#: ../Doc/c-api/unicode.rst:6
msgid "Unicode Objects and Codecs"
msgstr "Objetos y cdecs Unicode"

#: ../Doc/c-api/unicode.rst:12
msgid "Unicode Objects"
msgstr "Objetos Unicode"

#: ../Doc/c-api/unicode.rst:14
msgid ""
"Since the implementation of :pep:`393` in Python 3.3, Unicode objects "
"internally use a variety of representations, in order to allow handling the "
"complete range of Unicode characters while staying memory efficient.  There "
"are special cases for strings where all code points are below 128, 256, or "
"65536; otherwise, code points must be below 1114112 (which is the full "
"Unicode range)."
msgstr ""
"Desde la implementacin del :pep:`393` en Python 3.3, los objetos Unicode "
"utilizan internamente una variedad de representaciones, para permitir el "
"manejo del rango completo de caracteres Unicode mientras se mantiene la "
"eficiencia de memoria. Hay casos especiales para cadenas de caracteres donde "
"todos los puntos de cdigo estn por debajo de 128, 256 o 65536; de lo "
"contrario, los puntos de cdigo deben estar por debajo de 1114112 (que es el "
"rango completo de Unicode)."

#: ../Doc/c-api/unicode.rst:20
msgid ""
":c:type:`Py_UNICODE*` and UTF-8 representations are created on demand and "
"cached in the Unicode object.  The :c:type:`Py_UNICODE*` representation is "
"deprecated and inefficient; it should be avoided in performance- or memory-"
"sensitive situations."
msgstr ""
":c:type:`Py_UNICODE *` y las representaciones UTF-8 se crean a pedido y se "
"almacenan en cach en el objeto Unicode. La representacin :c:type:"
"`Py_UNICODE *` est en desuso y es ineficiente; debe evitarse en situaciones "
"sensibles al rendimiento o la memoria."

#: ../Doc/c-api/unicode.rst:25
msgid ""
"Due to the transition between the old APIs and the new APIs, Unicode objects "
"can internally be in two states depending on how they were created:"
msgstr ""
"Debido a la transicin entre las API antiguas y las API nuevas, los objetos "
"Unicode pueden estar internamente en dos estados dependiendo de cmo se "
"crearon:"

#: ../Doc/c-api/unicode.rst:28
msgid ""
"\"canonical\" Unicode objects are all objects created by a non-deprecated "
"Unicode API.  They use the most efficient representation allowed by the "
"implementation."
msgstr ""
"Los objetos Unicode \"cannicos\" son todos los objetos creados por una API "
"Unicode no obsoleta. Utilizan la representacin ms eficiente permitida por "
"la implementacin."

#: ../Doc/c-api/unicode.rst:32
msgid ""
"\"legacy\" Unicode objects have been created through one of the deprecated "
"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear the :c:type:"
"`Py_UNICODE*` representation; you will have to call :c:func:"
"`PyUnicode_READY` on them before calling any other API."
msgstr ""
"Los objetos Unicode \"heredados\" se han creado a travs de una de las API "
"obsoletas (normalmente :c:func:`PyUnicode_FromUnicode`) y solo tienen la "
"representacin :c:type:`Py_UNICODE*`; Ser necesario llamar a :c:func:"
"`PyUnicode_READY` en ellos antes de llamar a cualquier otra API."

#: ../Doc/c-api/unicode.rst:39
msgid "Unicode Type"
msgstr "Tipo Unicode"

#: ../Doc/c-api/unicode.rst:41
msgid ""
"These are the basic Unicode object types used for the Unicode implementation "
"in Python:"
msgstr ""
"Estos son los tipos bsicos de objetos Unicode utilizados para la "
"implementacin de Unicode en Python:"

#: ../Doc/c-api/unicode.rst:48
msgid ""
"These types are typedefs for unsigned integer types wide enough to contain "
"characters of 32 bits, 16 bits and 8 bits, respectively.  When dealing with "
"single Unicode characters, use :c:type:`Py_UCS4`."
msgstr ""
"Estos tipos son definiciones de tipo (*typedefs*) para los tipos 'enteros "
"sin signo' (*unsigned int*) lo suficientemente anchos como para contener "
"caracteres de 32 bits, 16 bits y 8 bits, respectivamente. Cuando se trate "
"con caracteres Unicode individuales, use :c:type:`Py_UCS4`."

#: ../Doc/c-api/unicode.rst:57
msgid ""
"This is a typedef of :c:type:`wchar_t`, which is a 16-bit type or 32-bit "
"type depending on the platform."
msgstr ""
"Este es una definicin de tipo (*typedef*) de :c:type:`wchar_t`, que es un "
"tipo de 16 bits o de 32 bits dependiendo de la plataforma."

#: ../Doc/c-api/unicode.rst:60
msgid ""
"In previous versions, this was a 16-bit type or a 32-bit type depending on "
"whether you selected a \"narrow\" or \"wide\" Unicode version of Python at "
"build time."
msgstr ""
"En versiones anteriores, este era un tipo de 16 bits o de 32 bits, "
"dependiendo de si seleccion una versin Unicode \"estrecha\" o \"amplia\" "
"de Python en el momento de la compilacin."

#: ../Doc/c-api/unicode.rst:70
msgid ""
"These subtypes of :c:type:`PyObject` represent a Python Unicode object.  In "
"almost all cases, they shouldn't be used directly, since all API functions "
"that deal with Unicode objects take and return :c:type:`PyObject` pointers."
msgstr ""
"Estos subtipos de :c:type:`PyObject` representan un objeto Python Unicode. "
"En casi todos los casos, no deben usarse directamente, ya que todas las "
"funciones API que se ocupan de objetos Unicode toman y retornan punteros :c:"
"type:`PyObject`."

#: ../Doc/c-api/unicode.rst:79
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python Unicode type.  "
"It is exposed to Python code as ``str``."
msgstr ""
"Esta instancia de :c:type:`PyTypeObject` representa el tipo Python Unicode. "
"Est expuesto al cdigo de Python como ``str``."

#: ../Doc/c-api/unicode.rst:83
msgid ""
"The following APIs are really C macros and can be used to do fast checks and "
"to access internal read-only data of Unicode objects:"
msgstr ""
"Las siguientes API son realmente macros de C y se pueden utilizar para "
"realizar comprobaciones rpidas y acceder a datos internos de solo lectura "
"de objetos Unicode:"

#: ../Doc/c-api/unicode.rst:88
msgid ""
"Return true if the object *o* is a Unicode object or an instance of a "
"Unicode subtype."
msgstr ""
"Retorna verdadero si el objeto *o* es un objeto Unicode o una instancia de "
"un subtipo Unicode."

#: ../Doc/c-api/unicode.rst:94
msgid ""
"Return true if the object *o* is a Unicode object, but not an instance of a "
"subtype."
msgstr ""
"Retorna verdadero (*True*) si el objeto *o* es un objeto Unicode, pero no "
"una instancia de un subtipo."

#: ../Doc/c-api/unicode.rst:100
msgid ""
"Ensure the string object *o* is in the \"canonical\" representation.  This "
"is required before using any of the access macros described below."
msgstr ""
"Asegura que el objeto de cadena de caracteres *o* est en la representacin "
"\"cannica\". Esto es necesario antes de usar cualquiera de las macros de "
"acceso que se describen a continuacin."

#: ../Doc/c-api/unicode.rst:105
msgid ""
"Returns ``0`` on success and ``-1`` with an exception set on failure, which "
"in particular happens if memory allocation fails."
msgstr ""
"Retorna ``0`` en caso de xito y ``-1`` con una excepcin establecida en "
"caso de error, que ocurre en particular si falla la asignacin de memoria."

#: ../Doc/c-api/unicode.rst:113
msgid ""
"Return the length of the Unicode string, in code points.  *o* has to be a "
"Unicode object in the \"canonical\" representation (not checked)."
msgstr ""
"Retorna la longitud de la cadena de caracteres Unicode, en puntos de cdigo. "
"*o* tiene que ser un objeto Unicode en la representacin \"cannica\" (no "
"marcada)."

#: ../Doc/c-api/unicode.rst:123
msgid ""
"Return a pointer to the canonical representation cast to UCS1, UCS2 or UCS4 "
"integer types for direct character access.  No checks are performed if the "
"canonical representation has the correct character size; use :c:func:"
"`PyUnicode_KIND` to select the right macro.  Make sure :c:func:"
"`PyUnicode_READY` has been called before accessing this."
msgstr ""
"Retorna un puntero a la representacin cannica emitida a los tipos enteros "
"UCS1, UCS2 o UCS4 para el acceso directo a los caracteres. No se realizan "
"verificaciones si la representacin cannica tiene el tamao de carcter "
"correcto; use :c:func:`PyUnicode_KIND` para seleccionar el macro correcto. "
"Asegrese de que se haya llamado a :c:func:`PyUnicode_READY` antes de "
"acceder a esto."

#: ../Doc/c-api/unicode.rst:137
msgid "Return values of the :c:func:`PyUnicode_KIND` macro."
msgstr "Retorna los valores de la macro :c:func:`PyUnicode_KIND`."

#: ../Doc/c-api/unicode.rst:144
msgid ""
"Return one of the PyUnicode kind constants (see above) that indicate how "
"many bytes per character this Unicode object uses to store its data.  *o* "
"has to be a Unicode object in the \"canonical\" representation (not checked)."
msgstr ""
"Retorna una de las constantes de tipo ``PyUnicode`` (ver arriba) que indican "
"cuntos bytes por carcter utiliza este objeto Unicode para almacenar sus "
"datos. *o* tiene que ser un objeto Unicode en la representacin \"cannica"
"\" (no marcada)."

#: ../Doc/c-api/unicode.rst:155
msgid ""
"Return a void pointer to the raw Unicode buffer.  *o* has to be a Unicode "
"object in the \"canonical\" representation (not checked)."
msgstr ""
"Retorna un puntero vaco al bfer Unicode sin formato. *o* tiene que ser un "
"objeto Unicode en la representacin \"cannica\" (no marcada)."

#: ../Doc/c-api/unicode.rst:164
msgid ""
"Write into a canonical representation *data* (as obtained with :c:func:"
"`PyUnicode_DATA`).  This macro does not do any sanity checks and is intended "
"for usage in loops.  The caller should cache the *kind* value and *data* "
"pointer as obtained from other macro calls.  *index* is the index in the "
"string (starts at 0) and *value* is the new code point value which should be "
"written to that location."
msgstr ""
"Escribe en una representacin cannica *data* (como se obtiene con :c:func:"
"`PyUnicode_DATA`). Esta macro no realiza ninguna comprobacin de cordura y "
"est diseado para su uso en bucles. La persona que llama debe almacenar en "
"cach el valor *kind* y el puntero *data* como se obtiene de otras llamadas "
"de la macro. *index* es el ndice en la cadena de caracteres (comienza en 0) "
"y *value* es el nuevo valor del punto de cdigo que debe escribirse en esa "
"ubicacin."

#: ../Doc/c-api/unicode.rst:176
msgid ""
"Read a code point from a canonical representation *data* (as obtained with :"
"c:func:`PyUnicode_DATA`).  No checks or ready calls are performed."
msgstr ""
"Lee un punto de cdigo de una representacin cannica *data* (obtenido con :"
"c:func:`PyUnicode_DATA`). No se realizan verificaciones ni llamadas "
"preparadas."

#: ../Doc/c-api/unicode.rst:184
msgid ""
"Read a character from a Unicode object *o*, which must be in the \"canonical"
"\" representation.  This is less efficient than :c:func:`PyUnicode_READ` if "
"you do multiple consecutive reads."
msgstr ""
"Lee un carcter de un objeto Unicode *o*, que debe estar en la "
"representacin \"cannica\". Esto es menos eficiente que :c:func:"
"`PyUnicode_READ` si realiza varias lecturas consecutivas."

#: ../Doc/c-api/unicode.rst:193
msgid ""
"Return the maximum code point that is suitable for creating another string "
"based on *o*, which must be in the \"canonical\" representation.  This is "
"always an approximation but more efficient than iterating over the string."
msgstr ""
"Retorna el punto de cdigo mximo adecuado para crear otra cadena de "
"caracteres basada en *o*, que debe estar en la representacin \"cannica\". "
"Esto siempre es una aproximacin pero ms eficiente que iterar sobre la "
"cadena."

#: ../Doc/c-api/unicode.rst:202
msgid "Clear the free list. Return the total number of freed items."
msgstr ""
"Borra la lista gratuita. Retorna el nmero total de artculos liberados."

#: ../Doc/c-api/unicode.rst:207
msgid ""
"Return the size of the deprecated :c:type:`Py_UNICODE` representation, in "
"code units (this includes surrogate pairs as 2 units).  *o* has to be a "
"Unicode object (not checked)."
msgstr ""
"Retorna el tamao de la representacin en desuso :c:type:`Py_UNICODE`, en "
"unidades de cdigo (esto incluye pares sustitutos como 2 unidades). *o* "
"tiene que ser un objeto Unicode (no marcado)."

#: ../Doc/c-api/unicode.rst:213 ../Doc/c-api/unicode.rst:223
msgid ""
"Part of the old-style Unicode API, please migrate to using :c:func:"
"`PyUnicode_GET_LENGTH`."
msgstr ""
"Parte de la API Unicode de estilo antiguo, por favor migrar para usar :c:"
"func:`PyUnicode_GET_LENGTH`."

#: ../Doc/c-api/unicode.rst:218
msgid ""
"Return the size of the deprecated :c:type:`Py_UNICODE` representation in "
"bytes.  *o* has to be a Unicode object (not checked)."
msgstr ""
"Retorna el tamao de la representacin en desuso :c:type:`Py_UNICODE` en "
"bytes. *o* tiene que ser un objeto Unicode (no marcado)."

#: ../Doc/c-api/unicode.rst:229
msgid ""
"Return a pointer to a :c:type:`Py_UNICODE` representation of the object.  "
"The returned buffer is always terminated with an extra null code point.  It "
"may also contain embedded null code points, which would cause the string to "
"be truncated when used in most C functions.  The ``AS_DATA`` form casts the "
"pointer to :c:type:`const char *`.  The *o* argument has to be a Unicode "
"object (not checked)."
msgstr ""
"Retorna un puntero a una representacin :c:type:`Py_UNICODE` del objeto. El "
"bfer retornado siempre termina con un punto de cdigo nulo adicional. "
"Tambin puede contener puntos de cdigo nulo incrustados, lo que provocara "
"que la cadena de caracteres se truncara cuando se usara en la mayora de las "
"funciones de C. La forma ``AS_DATA`` arroja el puntero a :c:type:`const char "
"*`. El argumento *o* tiene que ser un objeto Unicode (no marcado)."

#: ../Doc/c-api/unicode.rst:236
msgid ""
"This macro is now inefficient -- because in many cases the :c:type:"
"`Py_UNICODE` representation does not exist and needs to be created -- and "
"can fail (return ``NULL`` with an exception set).  Try to port the code to "
"use the new :c:func:`PyUnicode_nBYTE_DATA` macros or use :c:func:"
"`PyUnicode_WRITE` or :c:func:`PyUnicode_READ`."
msgstr ""
"Esta macro ahora es ineficiente, porque en muchos casos la representacin :c:"
"type:`Py_UNICODE` no existe y necesita ser creada, y puede fallar (retornar "
"``NULL`` con un conjunto de excepciones). Intente portar el cdigo para usar "
"las nuevas macros :c:func:`PyUnicode_nBYTE_DATA` o use :c:func:"
"`PyUnicode_WRITE` o :c:func:`PyUnicode_READ`."

#: ../Doc/c-api/unicode.rst:245
msgid ""
"Part of the old-style Unicode API, please migrate to using the :c:func:"
"`PyUnicode_nBYTE_DATA` family of macros."
msgstr ""
"Parte de la antigua API Unicode, por favor migre para usar la familia de "
"macros :c:func:`PyUnicode_nBYTE_DATA`."

#: ../Doc/c-api/unicode.rst:249
msgid "Unicode Character Properties"
msgstr "Propiedades de caracteres Unicode"

#: ../Doc/c-api/unicode.rst:251
msgid ""
"Unicode provides many different character properties. The most often needed "
"ones are available through these macros which are mapped to C functions "
"depending on the Python configuration."
msgstr ""
"Unicode proporciona muchas propiedades de caracteres diferentes. Los que se "
"necesitan con mayor frecuencia estn disponibles a travs de estas macros "
"que se asignan a las funciones de C segn la configuracin de Python."

#: ../Doc/c-api/unicode.rst:258
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is a whitespace character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter de espacio en "
"blanco."

#: ../Doc/c-api/unicode.rst:263
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is a lowercase character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter en minscula."

#: ../Doc/c-api/unicode.rst:268
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is an uppercase character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter en mayscula."

#: ../Doc/c-api/unicode.rst:273
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is a titlecase character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter en caso de "
"ttulo (*titlecase*)."

#: ../Doc/c-api/unicode.rst:278
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is a linebreak character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter de salto de "
"lnea."

#: ../Doc/c-api/unicode.rst:283
msgid "Return ``1`` or ``0`` depending on whether *ch* is a decimal character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter decimal o no."

#: ../Doc/c-api/unicode.rst:288
msgid "Return ``1`` or ``0`` depending on whether *ch* is a digit character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter de dgitos."

#: ../Doc/c-api/unicode.rst:293
msgid "Return ``1`` or ``0`` depending on whether *ch* is a numeric character."
msgstr "Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter numrico."

#: ../Doc/c-api/unicode.rst:298
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is an alphabetic character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter alfabtico."

#: ../Doc/c-api/unicode.rst:303
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is an alphanumeric character."
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter alfanumrico."

#: ../Doc/c-api/unicode.rst:308
msgid ""
"Return ``1`` or ``0`` depending on whether *ch* is a printable character. "
"Nonprintable characters are those characters defined in the Unicode "
"character database as \"Other\" or \"Separator\", excepting the ASCII space "
"(0x20) which is considered printable.  (Note that printable characters in "
"this context are those which should not be escaped when :func:`repr` is "
"invoked on a string. It has no bearing on the handling of strings written "
"to :data:`sys.stdout` or :data:`sys.stderr`.)"
msgstr ""
"Retorna ``1`` o ``0`` dependiendo de si *ch* es un carcter imprimible. Los "
"caracteres no imprimibles son aquellos definidos en la base de datos de "
"caracteres Unicode como \"Otro\" o \"Separador\", excepto el espacio ASCII "
"(0x20) que se considera imprimible. (Tenga en cuenta que los caracteres "
"imprimibles en este contexto son aquellos a los que no se debe escapar "
"cuando :func:`repr` se invoca en una cadena de caracteres. No tiene relacin "
"con el manejo de cadenas de caracteres escritas en :data:`sys.stdout` o :"
"data:`sys.stderr`.)"

#: ../Doc/c-api/unicode.rst:317
msgid "These APIs can be used for fast direct character conversions:"
msgstr ""
"Estas API se pueden usar para conversiones caracteres rpidas y directos:"

#: ../Doc/c-api/unicode.rst:322
msgid "Return the character *ch* converted to lower case."
msgstr "Retorna el carcter *ch* convertido a minsculas."

#: ../Doc/c-api/unicode.rst:324 ../Doc/c-api/unicode.rst:332
#: ../Doc/c-api/unicode.rst:340
msgid "This function uses simple case mappings."
msgstr "Esta funcin utiliza conversiones simples."

#: ../Doc/c-api/unicode.rst:330
msgid "Return the character *ch* converted to upper case."
msgstr "Retorna el carcter *ch* convertido a maysculas."

#: ../Doc/c-api/unicode.rst:338
msgid "Return the character *ch* converted to title case."
msgstr "Retorna el carcter *ch* convertido a formato de ttulo (*titlecase*)."

#: ../Doc/c-api/unicode.rst:346
msgid ""
"Return the character *ch* converted to a decimal positive integer.  Return "
"``-1`` if this is not possible.  This macro does not raise exceptions."
msgstr ""
"Retorna el carcter *ch* convertido a un entero positivo decimal. Retorna "
"``-1`` si esto no es posible. Esta macro no genera excepciones."

#: ../Doc/c-api/unicode.rst:352
msgid ""
"Return the character *ch* converted to a single digit integer. Return ``-1`` "
"if this is not possible.  This macro does not raise exceptions."
msgstr ""
"Retorna el carcter *ch* convertido a un entero de un solo dgito. Retorna "
"``-1`` si esto no es posible. Esta macro no genera excepciones."

#: ../Doc/c-api/unicode.rst:358
msgid ""
"Return the character *ch* converted to a double. Return ``-1.0`` if this is "
"not possible.  This macro does not raise exceptions."
msgstr ""
"Retorna el carcter *ch* convertido a doble. retorne ``-1.0`` si esto no es "
"posible. Esta macro no genera excepciones."

#: ../Doc/c-api/unicode.rst:362
msgid "These APIs can be used to work with surrogates:"
msgstr "Estas API se pueden usar para trabajar con sustitutos:"

#: ../Doc/c-api/unicode.rst:366
msgid "Check if *ch* is a surrogate (``0xD800 

Web Proxy Viewer  |  New URL  |  Original Page