@@ -44,86 +44,98 @@ msgid ""
4444"<http://www.unicode.org/reports/tr44/tr44-6.html>`_. It defines the "
4545"following functions:"
4646msgstr ""
47+ "该模块使用与 Unicode 标准附件 #44 , `“Unicode字符数据库” "
48+ "<http://www.unicode.org/reports/tr44/tr44-6.html>`_ 定义的相同名称和符号。它定义了以下功能:"
4749
4850#: ../../library/unicodedata.rst:31
4951msgid ""
5052"Look up character by name. If a character with the given name is found, "
5153"return the corresponding character. If not found, :exc:`KeyError` is "
5254"raised."
53- msgstr ""
55+ msgstr "按名称查找字符。如果找到具有给定名称的字符,则返回相应的字符。 如果没有找到,则 :exc:`KeyError` 被引发。 "
5456
5557#: ../../library/unicodedata.rst:34
5658msgid "Support for name aliases [#]_ and named sequences [#]_ has been added."
57- msgstr ""
59+ msgstr "已添加对名称别名 [#]_ 和命名序列 [#]_ 的支持。 "
5860
5961#: ../../library/unicodedata.rst:40
6062msgid ""
6163"Returns the name assigned to the character *chr* as a string. If no name is "
6264"defined, *default* is returned, or, if not given, :exc:`ValueError` is "
6365"raised."
6466msgstr ""
67+ "返回分配给字符 *chr* 的名称作为字符串。如果没有定义名称,则返回 *default* ,如果没有给出,则 :exc:`ValueError` "
68+ "被引发。"
6569
6670#: ../../library/unicodedata.rst:47
6771msgid ""
6872"Returns the decimal value assigned to the character *chr* as integer. If no "
6973"such value is defined, *default* is returned, or, if not given, "
7074":exc:`ValueError` is raised."
7175msgstr ""
76+ "返回分配给字符 *chr* 的十进制值作为整数。 如果没有定义这样的值,则返回 *default* ,如果没有给出,则 "
77+ ":exc:`ValueError` 被引发。"
7278
7379#: ../../library/unicodedata.rst:54
7480msgid ""
7581"Returns the digit value assigned to the character *chr* as integer. If no "
7682"such value is defined, *default* is returned, or, if not given, "
7783":exc:`ValueError` is raised."
7884msgstr ""
85+ "返回分配给字符 *chr* 的数字值作为整数。 如果没有定义这样的值,则返回 *default* ,如果没有给出,则 :exc:`ValueError`"
86+ " 被引发。"
7987
8088#: ../../library/unicodedata.rst:61
8189msgid ""
8290"Returns the numeric value assigned to the character *chr* as float. If no "
8391"such value is defined, *default* is returned, or, if not given, "
8492":exc:`ValueError` is raised."
8593msgstr ""
94+ "返回分配给字符 *chr* 的数值作为浮点数。 如果没有定义这样的值,则返回 *default* ,如果没有给出,则 :exc:`ValueError`"
95+ " 被引发。"
8696
8797#: ../../library/unicodedata.rst:68
8898msgid ""
8999"Returns the general category assigned to the character *chr* as string."
90- msgstr ""
100+ msgstr "返回分配给字符 *chr* 的常规类别为字符串。 "
91101
92102#: ../../library/unicodedata.rst:74
93103msgid ""
94104"Returns the bidirectional class assigned to the character *chr* as string. "
95105"If no such value is defined, an empty string is returned."
96- msgstr ""
106+ msgstr "返回分配给字符 *chr* 的双向类作为字符串。如果未定义此类值,则返回空字符串。 "
97107
98108#: ../../library/unicodedata.rst:80
99109msgid ""
100110"Returns the canonical combining class assigned to the character *chr* as "
101111"integer. Returns ``0`` if no combining class is defined."
102- msgstr ""
112+ msgstr "返回分配给字符 *chr* 的规范组合类作为整数。如果没有定义组合类,则返回 ``0`` 。 "
103113
104114#: ../../library/unicodedata.rst:86
105115msgid ""
106116"Returns the east asian width assigned to the character *chr* as string."
107- msgstr ""
117+ msgstr "返回分配给字符 *chr* 的东亚宽度作为字符串。 "
108118
109119#: ../../library/unicodedata.rst:92
110120msgid ""
111121"Returns the mirrored property assigned to the character *chr* as integer. "
112122"Returns ``1`` if the character has been identified as a \" mirrored\" "
113123"character in bidirectional text, ``0`` otherwise."
114- msgstr ""
124+ msgstr "返回分配给字符 *chr* 的镜像属性为整数。如果字符在双向文本中被识别为“镜像”字符,则返回 ``1`` ,否则返回 ``0`` 。 "
115125
116126#: ../../library/unicodedata.rst:99
117127msgid ""
118128"Returns the character decomposition mapping assigned to the character *chr* "
119129"as string. An empty string is returned in case no such mapping is defined."
120- msgstr ""
130+ msgstr "返回分配给字符 *chr* 的字符分解映射作为字符串。如果未定义此类映射,则返回空字符串。 "
121131
122132#: ../../library/unicodedata.rst:106
123133msgid ""
124134"Return the normal form *form* for the Unicode string *unistr*. Valid values "
125135"for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'."
126136msgstr ""
137+ "返回 Unicode 字符串 *unistr* 的正常形式 *form* 。 *form* 的有效值为 'NFC' 、 'NFKC' 、 'NFD' 和"
138+ " 'NFKD' 。"
127139
128140#: ../../library/unicodedata.rst:109
129141msgid ""
@@ -134,6 +146,9 @@ msgid ""
134146" also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 "
135147"(COMBINING CEDILLA)."
136148msgstr ""
149+ "Unicode 标准基于规范等价和兼容性等效的定义定义了 Unicode 字符串的各种规范化形式。在 Unicode 中,可以以各种方式表示多个字符。 "
150+ "例如,字符 U+00C7 (带有 CEDILLA 的 LATIN CAPITAL LETTER C )也可以表示为序列 U+0043( LATIN "
151+ "CAPITAL LETTER C )U+0327( COMBINING CEDILLA )。"
137152
138153#: ../../library/unicodedata.rst:115
139154msgid ""
@@ -143,6 +158,8 @@ msgid ""
143158"first applies a canonical decomposition, then composes pre-combined "
144159"characters again."
145160msgstr ""
161+ "对于每个字符,有两种正规形式:正规形式 C 和正规形式 D 。正规形式D(NFD)也称为规范分解,并将每个字符转换为其分解形式。 "
162+ "正规形式C(NFC)首先应用规范分解,然后再次组合预组合字符。"
146163
147164#: ../../library/unicodedata.rst:120
148165msgid ""
@@ -153,40 +170,45 @@ msgid ""
153170" I). However, it is supported in Unicode for compatibility with existing "
154171"character sets (e.g. gb2312)."
155172msgstr ""
173+ "除了这两种形式之外,还有两种基于兼容性等效的其他常规形式。 在 Unicode 中,支持某些字符,这些字符通常与其他字符统一。 例如, "
174+ "U+2160(ROMAN NUMERAL ONE)与 U+0049(LATIN CAPITAL LETTER I)完全相同。 但是, Unicode "
175+ "支持它与现有字符集(例如 gb2312 )的兼容性。"
156176
157177#: ../../library/unicodedata.rst:127
158178msgid ""
159179"The normal form KD (NFKD) will apply the compatibility decomposition, i.e. "
160180"replace all compatibility characters with their equivalents. The normal form"
161181" KC (NFKC) first applies the compatibility decomposition, followed by the "
162182"canonical composition."
163- msgstr ""
183+ msgstr "正规形式KD(NFKD)将应用兼容性分解,即用其等价项替换所有兼容性字符。 正规形式KC(NFKC)首先应用兼容性分解,然后是规范组合。 "
164184
165185#: ../../library/unicodedata.rst:132
166186msgid ""
167187"Even if two unicode strings are normalized and look the same to a human "
168188"reader, if one has combining characters and the other doesn't, they may not "
169189"compare equal."
170- msgstr ""
190+ msgstr "即使两个 unicode 字符串被规范化并且人类读者看起来相同,如果一个具有组合字符而另一个没有,则它们可能无法相等。 "
171191
172192#: ../../library/unicodedata.rst:137
173193msgid "In addition, the module exposes the following constant:"
174- msgstr ""
194+ msgstr "此外,该模块暴露了以下常量: "
175195
176196#: ../../library/unicodedata.rst:141
177197msgid "The version of the Unicode database used in this module."
178- msgstr ""
198+ msgstr "此模块中使用的 Unicode 数据库的版本。 "
179199
180200#: ../../library/unicodedata.rst:146
181201msgid ""
182202"This is an object that has the same methods as the entire module, but uses "
183203"the Unicode database version 3.2 instead, for applications that require this"
184204" specific version of the Unicode database (such as IDNA)."
185205msgstr ""
206+ "这是一个与整个模块具有相同方法的对象,但对于需要此特定版本的 Unicode 数据库(如 IDNA )的应用程序,则使用 Unicode 数据库版本 "
207+ "3.2 。"
186208
187209#: ../../library/unicodedata.rst:150
188210msgid "Examples:"
189- msgstr ""
211+ msgstr "示例: "
190212
191213#: ../../library/unicodedata.rst:170
192214msgid "Footnotes"
@@ -198,4 +220,4 @@ msgstr "http://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt"
198220
199221#: ../../library/unicodedata.rst:173
200222msgid "http://www.unicode.org/Public/11.0.0/ucd/NamedSequences.txt"
201- msgstr ""
223+ msgstr "http://www.unicode.org/Public/11.0.0/ucd/NamedSequences.txt "
0 commit comments