Skip to content

Commit c24291b

Browse files
sync with cpython 97f5fdf5
1 parent 683fcd0 commit c24291b

File tree

4 files changed

+980
-878
lines changed

4 files changed

+980
-878
lines changed

library/codecs.po

Lines changed: 76 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-07-14 00:18+0000\n"
9+
"POT-Creation-Date: 2025-07-28 00:20+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:40+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -397,7 +397,7 @@ msgstr ""
397397

398398
#: ../../library/codecs.rst:352 ../../library/codecs.rst:395
399399
#: ../../library/codecs.rst:415 ../../library/codecs.rst:1360
400-
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
400+
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
401401
msgid "Meaning"
402402
msgstr "含義"
403403

@@ -1404,12 +1404,12 @@ msgid "an IBM PC code page, which is ASCII compatible"
14041404
msgstr ""
14051405

14061406
#: ../../library/codecs.rst:1104 ../../library/codecs.rst:1360
1407-
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
1407+
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
14081408
msgid "Codec"
14091409
msgstr ""
14101410

14111411
#: ../../library/codecs.rst:1104 ../../library/codecs.rst:1360
1412-
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
1412+
#: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
14131413
msgid "Aliases"
14141414
msgstr ""
14151415

@@ -2569,73 +2569,111 @@ msgid "Restoration of the aliases for the binary transforms."
25692569
msgstr ""
25702570

25712571
#: ../../library/codecs.rst:1478
2572-
msgid "Text Transforms"
2572+
msgid "Standalone Codec Functions"
25732573
msgstr ""
25742574

25752575
#: ../../library/codecs.rst:1480
25762576
msgid ""
2577+
"The following functions provide encoding and decoding functionality similar "
2578+
"to codecs, but are not available as named codecs through :func:`codecs."
2579+
"encode` or :func:`codecs.decode`. They are used internally (for example, by :"
2580+
"mod:`pickle`) and behave similarly to the ``string_escape`` codec that was "
2581+
"removed in Python 3."
2582+
msgstr ""
2583+
2584+
#: ../../library/codecs.rst:1487
2585+
msgid ""
2586+
"Encode *input* using escape sequences. Similar to how :func:`repr` on bytes "
2587+
"produces escaped byte values."
2588+
msgstr ""
2589+
2590+
#: ../../library/codecs.rst:1490
2591+
msgid "*input* must be a :class:`bytes` object."
2592+
msgstr ""
2593+
2594+
#: ../../library/codecs.rst:1492 ../../library/codecs.rst:1501
2595+
msgid ""
2596+
"Returns a tuple ``(output, length)`` where *output* is a :class:`bytes` "
2597+
"object and *length* is the number of bytes consumed."
2598+
msgstr ""
2599+
2600+
#: ../../library/codecs.rst:1497
2601+
msgid "Decode *input* from escape sequences back to the original bytes."
2602+
msgstr ""
2603+
2604+
#: ../../library/codecs.rst:1499
2605+
#, fuzzy
2606+
msgid "*input* must be a :term:`bytes-like object`."
2607+
msgstr "*stream* 引數必須是類檔案物件。"
2608+
2609+
#: ../../library/codecs.rst:1508
2610+
msgid "Text Transforms"
2611+
msgstr ""
2612+
2613+
#: ../../library/codecs.rst:1510
2614+
msgid ""
25772615
"The following codec provides a text transform: a :class:`str` to :class:"
25782616
"`str` mapping. It is not supported by :meth:`str.encode` (which only "
25792617
"produces :class:`bytes` output)."
25802618
msgstr ""
25812619

2582-
#: ../../library/codecs.rst:1489
2620+
#: ../../library/codecs.rst:1519
25832621
msgid "rot_13"
25842622
msgstr "rot_13"
25852623

2586-
#: ../../library/codecs.rst:1489
2624+
#: ../../library/codecs.rst:1519
25872625
msgid "rot13"
25882626
msgstr ""
25892627

2590-
#: ../../library/codecs.rst:1489
2628+
#: ../../library/codecs.rst:1519
25912629
msgid "Return the Caesar-cypher encryption of the operand."
25922630
msgstr ""
25932631

2594-
#: ../../library/codecs.rst:1494
2632+
#: ../../library/codecs.rst:1524
25952633
msgid "Restoration of the ``rot_13`` text transform."
25962634
msgstr ""
25972635

2598-
#: ../../library/codecs.rst:1497
2636+
#: ../../library/codecs.rst:1527
25992637
msgid "Restoration of the ``rot13`` alias."
26002638
msgstr ""
26012639

2602-
#: ../../library/codecs.rst:1502
2640+
#: ../../library/codecs.rst:1532
26032641
msgid ":mod:`encodings` --- Encodings package"
26042642
msgstr ""
26052643

2606-
#: ../../library/codecs.rst:1507
2644+
#: ../../library/codecs.rst:1537
26072645
msgid "This module implements the following functions:"
26082646
msgstr ""
26092647

2610-
#: ../../library/codecs.rst:1511
2648+
#: ../../library/codecs.rst:1541
26112649
msgid "Normalize encoding name *encoding*."
26122650
msgstr ""
26132651

2614-
#: ../../library/codecs.rst:1513
2652+
#: ../../library/codecs.rst:1543
26152653
msgid ""
26162654
"Normalization works as follows: all non-alphanumeric characters except the "
26172655
"dot used for Python package names are collapsed and replaced with a single "
26182656
"underscore, leading and trailing underscores are removed. For example, ``' "
26192657
"-;#'`` becomes ``'_'``."
26202658
msgstr ""
26212659

2622-
#: ../../library/codecs.rst:1518
2660+
#: ../../library/codecs.rst:1548
26232661
msgid "Note that *encoding* should be ASCII only."
26242662
msgstr ""
26252663

2626-
#: ../../library/codecs.rst:1522
2664+
#: ../../library/codecs.rst:1552
26272665
msgid ""
26282666
"The following function should not be used directly, except for testing "
26292667
"purposes; :func:`codecs.lookup` should be used instead."
26302668
msgstr ""
26312669

2632-
#: ../../library/codecs.rst:1528
2670+
#: ../../library/codecs.rst:1558
26332671
msgid ""
26342672
"Search for the codec module corresponding to the given encoding name "
26352673
"*encoding*."
26362674
msgstr ""
26372675

2638-
#: ../../library/codecs.rst:1531
2676+
#: ../../library/codecs.rst:1561
26392677
msgid ""
26402678
"This function first normalizes the *encoding* using :func:"
26412679
"`normalize_encoding`, then looks for a corresponding alias. It attempts to "
@@ -2645,40 +2683,40 @@ msgid ""
26452683
"the codec is cached and returned."
26462684
msgstr ""
26472685

2648-
#: ../../library/codecs.rst:1538
2686+
#: ../../library/codecs.rst:1568
26492687
msgid ""
26502688
"If the codec module defines a ``getaliases()`` function any returned aliases "
26512689
"are registered for future use."
26522690
msgstr ""
26532691

2654-
#: ../../library/codecs.rst:1542
2692+
#: ../../library/codecs.rst:1572
26552693
msgid "This module implements the following exception:"
26562694
msgstr ""
26572695

2658-
#: ../../library/codecs.rst:1546
2696+
#: ../../library/codecs.rst:1576
26592697
msgid "Raised when a codec is invalid or incompatible."
26602698
msgstr ""
26612699

2662-
#: ../../library/codecs.rst:1550
2700+
#: ../../library/codecs.rst:1580
26632701
msgid ""
26642702
":mod:`encodings.idna` --- Internationalized Domain Names in Applications"
26652703
msgstr ""
26662704

2667-
#: ../../library/codecs.rst:1556
2705+
#: ../../library/codecs.rst:1586
26682706
msgid ""
26692707
"This module implements :rfc:`3490` (Internationalized Domain Names in "
26702708
"Applications) and :rfc:`3492` (Nameprep: A Stringprep Profile for "
26712709
"Internationalized Domain Names (IDN)). It builds upon the ``punycode`` "
26722710
"encoding and :mod:`stringprep`."
26732711
msgstr ""
26742712

2675-
#: ../../library/codecs.rst:1561
2713+
#: ../../library/codecs.rst:1591
26762714
msgid ""
26772715
"If you need the IDNA 2008 standard from :rfc:`5891` and :rfc:`5895`, use the "
26782716
"third-party :pypi:`idna` module."
26792717
msgstr ""
26802718

2681-
#: ../../library/codecs.rst:1564
2719+
#: ../../library/codecs.rst:1594
26822720
msgid ""
26832721
"These RFCs together define a protocol to support non-ASCII characters in "
26842722
"domain names. A domain name containing non-ASCII characters (such as ``www."
@@ -2692,7 +2730,7 @@ msgid ""
26922730
"presenting them to the user."
26932731
msgstr ""
26942732

2695-
#: ../../library/codecs.rst:1575
2733+
#: ../../library/codecs.rst:1605
26962734
msgid ""
26972735
"Python supports this conversion in several ways: the ``idna`` codec "
26982736
"performs conversion between Unicode and ACE, separating an input string into "
@@ -2709,64 +2747,64 @@ msgid ""
27092747
"sends that field at all)."
27102748
msgstr ""
27112749

2712-
#: ../../library/codecs.rst:1588
2750+
#: ../../library/codecs.rst:1618
27132751
msgid ""
27142752
"When receiving host names from the wire (such as in reverse name lookup), no "
27152753
"automatic conversion to Unicode is performed: applications wishing to "
27162754
"present such host names to the user should decode them to Unicode."
27172755
msgstr ""
27182756

2719-
#: ../../library/codecs.rst:1592
2757+
#: ../../library/codecs.rst:1622
27202758
msgid ""
27212759
"The module :mod:`encodings.idna` also implements the nameprep procedure, "
27222760
"which performs certain normalizations on host names, to achieve case-"
27232761
"insensitivity of international domain names, and to unify similar "
27242762
"characters. The nameprep functions can be used directly if desired."
27252763
msgstr ""
27262764

2727-
#: ../../library/codecs.rst:1600
2765+
#: ../../library/codecs.rst:1630
27282766
msgid ""
27292767
"Return the nameprepped version of *label*. The implementation currently "
27302768
"assumes query strings, so ``AllowUnassigned`` is true."
27312769
msgstr ""
27322770

2733-
#: ../../library/codecs.rst:1606
2771+
#: ../../library/codecs.rst:1636
27342772
msgid ""
27352773
"Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules`` "
27362774
"is assumed to be false."
27372775
msgstr ""
27382776

2739-
#: ../../library/codecs.rst:1612
2777+
#: ../../library/codecs.rst:1642
27402778
msgid "Convert a label to Unicode, as specified in :rfc:`3490`."
27412779
msgstr ""
27422780

2743-
#: ../../library/codecs.rst:1616
2781+
#: ../../library/codecs.rst:1646
27442782
msgid ":mod:`encodings.mbcs` --- Windows ANSI codepage"
27452783
msgstr ":mod:`encodings.mbcs` --- Windows ANSI 碼頁"
27462784

2747-
#: ../../library/codecs.rst:1621
2785+
#: ../../library/codecs.rst:1651
27482786
msgid "This module implements the ANSI codepage (CP_ACP)."
27492787
msgstr "這個模組實作了 ANSI 碼頁 (CP_ACP)。"
27502788

2751-
#: ../../library/codecs.rst:1623
2789+
#: ../../library/codecs.rst:1653
27522790
msgid "Availability"
27532791
msgstr "可用性"
27542792

2755-
#: ../../library/codecs.rst:1625
2793+
#: ../../library/codecs.rst:1655
27562794
msgid ""
27572795
"Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used "
27582796
"to encode, and ``'ignore'`` to decode."
27592797
msgstr ""
27602798

2761-
#: ../../library/codecs.rst:1629
2799+
#: ../../library/codecs.rst:1659
27622800
msgid "Support any error handler."
27632801
msgstr ""
27642802

2765-
#: ../../library/codecs.rst:1634
2803+
#: ../../library/codecs.rst:1664
27662804
msgid ":mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature"
27672805
msgstr ""
27682806

2769-
#: ../../library/codecs.rst:1640
2807+
#: ../../library/codecs.rst:1670
27702808
msgid ""
27712809
"This module implements a variant of the UTF-8 codec. On encoding, a UTF-8 "
27722810
"encoded BOM will be prepended to the UTF-8 encoded bytes. For the stateful "

0 commit comments

Comments
 (0)