Skip to content

Commit 982fdab

Browse files
committed
Fix over-applied \\ escaping before closing/medial full-width punctuation
The prior commit inserted \\ zero-width separators before full-width punctuation on the assumption that *any* role/literal close touching full-width punctuation needs escaping. CLAUDE.md's reST Syntax section (established by a prior run's corpus analysis) is more precise: \\ is only needed before *opening* punctuation ((「『); closing/medial marks (。,:;!?」』)、) follow the dominant unescaped convention corpus-wide (confirmed here: 1182 unescaped vs. 9 escaped instances of `、 alone). Reverts the incorrect \\ insertions from the previous commit while keeping the two that were correctly placed before opening full-width parentheses. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSmHq7nqqTrRwTigk6kNeh
1 parent eb6fe62 commit 982fdab

12 files changed

Lines changed: 22 additions & 22 deletions

File tree

faq/programming.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3872,7 +3872,7 @@ msgid ""
38723872
"at the instance level and the latter at the class level."
38733873
msgstr ""
38743874
"快取方法的兩個主要工具是 :deco:`functools.cached_property` 和 :deco:"
3875-
"`functools.lru_cache`\\ 。前者在實例層級儲存結果,後者在類別層級儲存結果。"
3875+
"`functools.lru_cache`。前者在實例層級儲存結果,後者在類別層級儲存結果。"
38763876

38773877
#: ../../faq/programming.rst:2010
38783878
msgid ""

glossary.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ msgid ""
910910
msgstr ""
911911
"一個函式,它會回傳另一個函式,通常它會使用 ``@wrapper`` 語法,被應用為一種函"
912912
"式的變換 (function transformation)。裝飾器的常見範例是 :deco:`classmethod` "
913-
"和 :deco:`staticmethod`\\ 。"
913+
"和 :deco:`staticmethod`。"
914914

915915
#: ../../glossary.rst:421
916916
msgid ""
@@ -1538,7 +1538,7 @@ msgid ""
15381538
"singledispatch` decorator, and :pep:`443`."
15391539
msgstr ""
15401540
"另請參閱 :term:`single dispatch`\\ (單一調度)術語表條目、:deco:`functools."
1541-
"singledispatch` 裝飾器和 :pep:`443`\\ 。"
1541+
"singledispatch` 裝飾器和 :pep:`443`。"
15421542

15431543
#: ../../glossary.rst:693
15441544
msgid "generic type"

howto/annotations.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ msgid ""
305305
"accessing either ``o.__wrapped__`` or ``o.func`` as appropriate, until you "
306306
"have found the root unwrapped function."
307307
msgstr ""
308-
"如果 ``o`` 是使用 :func:`functools.update_wrapper`\\ 、:deco:`functools."
308+
"如果 ``o`` 是使用 :func:`functools.update_wrapper`、:deco:`functools."
309309
"wraps` 或 :func:`functools.partial` 包裝的 callable ,請依據需求,透過存取 "
310310
"``o.__wrapped__`` 或 ``o.func`` 來疊代解開它,直到找到根解包函式。"
311311

howto/descriptor.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ msgid ""
8585
"`classmethod`, :deco:`staticmethod`, :deco:`property`, and :term:`__slots__`."
8686
msgstr ""
8787
"最後一個章節提供以 C 語言撰寫的內建描述器的純 Python 等價實作。如果你好奇函式"
88-
"如何轉變為綁定方法,或者想了解常見工具如 :deco:`classmethod`\\ 、:deco:"
89-
"`staticmethod`\\ 、:deco:`property` 和 :term:`__slots__` 的實作方式,請閱讀此"
88+
"如何轉變為綁定方法,或者想了解常見工具如 :deco:`classmethod`、:deco:"
89+
"`staticmethod`、:deco:`property` 和 :term:`__slots__` 的實作方式,請閱讀此"
9090
"章節。"
9191

9292
#: ../../howto/descriptor.rst:36
@@ -629,7 +629,7 @@ msgid ""
629629
"all implemented as descriptors."
630630
msgstr ""
631631
"描述器在整個語言中被廣泛使用。函式就是透過這種方式轉變為綁定方法。常見工具"
632-
"如 :deco:`classmethod`\\ 、:deco:`staticmethod`\\ 、:deco:`property` 和 :"
632+
"如 :deco:`classmethod`、:deco:`staticmethod`、:deco:`property` 和 :"
633633
"deco:`functools.cached_property` 都是以描述器實作的。"
634634

635635
#: ../../howto/descriptor.rst:326

library/abc.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ msgid ""
422422
msgstr ""
423423
"為了能正確地與 ABC 機制實作相互操作,描述器必須使用 :attr:`!"
424424
"__isabstractmethod__` 將自身標識為抽象的。一般來說,如果被用於組成描述器的任"
425-
"一方法是抽象的,則此屬性應當為 ``True``\\ 。 例如,Python 的內建 :deco:"
425+
"一方法是抽象的,則此屬性應當為 ``True``。 例如,Python 的內建 :deco:"
426426
"`property` 所做的就等價於: ::"
427427

428428
#: ../../library/abc.rst:223
@@ -539,7 +539,7 @@ msgid ""
539539
"`property.setter` and :deco:`property.deleter` with :deco:`abstractmethod`, "
540540
"making this decorator redundant."
541541
msgstr ""
542-
"現在可以讓 :deco:`property`\\ 、:deco:`property.getter`\\ 、:deco:`property."
542+
"現在可以讓 :deco:`property`、:deco:`property.getter`、:deco:`property."
543543
"setter` 和 :deco:`property.deleter` 配合 :deco:`abstractmethod` 使用,使得此"
544544
"裝飾器變得冗餘。"
545545

library/asyncio-stream.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ msgstr ""
520520
"當寫入緩衝區低於最高標記位 (high watermark) 時,:meth:`drain` 會立即回傳,而"
521521
"不會讓出控制權給事件迴圈。因此,重複呼叫 ``write()`` 後接著呼叫 ``await "
522522
"drain()`` 的程式碼可能會阻止其他 Task 執行。為了避免阻塞行為,請明確使用 "
523-
"``await asyncio.sleep(0)``\\ (請見 :func:`asyncio.sleep`\\ )讓出控制權給事"
523+
"``await asyncio.sleep(0)``\\ (請見 :func:`asyncio.sleep`)讓出控制權給事"
524524
"件迴圈。"
525525

526526
#: ../../library/asyncio-stream.rst:399

library/csv.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ msgid ""
514514
"matter how many times each of them occurs."
515515
msgstr ""
516516
"如果有多個分隔字元都同樣適合該樣本 -- 例如 ``','`` 和 ``';'`` 都能一致地分割"
517-
"每一列 -- 則會依序偏好使用分隔字元 ``','``\\ 、``'\\t'``\\ 、``';'``\\ 、``' "
518-
"'`` 和 ``':'``\\ ,不論它們各自出現的次數為何。"
517+
"每一列 -- 則會依序偏好使用分隔字元 ``','``、``'\\t'``、``';'``、``' "
518+
"'`` 和 ``':'``,不論它們各自出現的次數為何。"
519519

520520
#: ../../library/csv.rst:325
521521
msgid ""

library/functools.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ msgid ""
115115
"computed properties of instances that are otherwise effectively immutable."
116116
msgstr ""
117117
"將類別的一個方法轉換為屬性 (property),其值會計算一次,然後在實例的生命週期內"
118-
"快取為普通屬性。類似 :deco:`property`\\ ,但增加了快取機制。對於除使用該裝飾"
118+
"快取為普通屬性。類似 :deco:`property`,但增加了快取機制。對於除使用該裝飾"
119119
"器的屬性外實質上幾乎是不可變 (immutable) 的實例,針對其所需要繁重計算會很有"
120120
"用。"
121121

@@ -702,7 +702,7 @@ msgid ""
702702
"Placeholder`:"
703703
msgstr ""
704704
"如果將 :func:`!partial` 套用於現有的 :ref:`partial 物件 <partial-"
705-
"objects>`\\ ,該輸入物件的 :data:`!Placeholder` 標記會被新的位置引數所填入。"
705+
"objects>`,該輸入物件的 :data:`!Placeholder` 標記會被新的位置引數所填入。"
706706
"可以透過在先前 :data:`!Placeholder` 所在的位置插入新的 :data:`!Placeholder` "
707707
"標記,來保留該佔位符:"
708708

@@ -1376,7 +1376,7 @@ msgid ""
13761376
"that refers to the function being wrapped."
13771377
msgstr ""
13781378
"為了允許出於內省 (introspection) 和其他目的所對原始函式的存取(例如繞過快取裝"
1379-
"飾器,如 :deco:`lru_cache`\\ ),此函式會自動向包裝器新增 ``__wrapped__`` 屬"
1379+
"飾器,如 :deco:`lru_cache`),此函式會自動向包裝器新增 ``__wrapped__`` 屬"
13801380
"性,該包裝器參照被包裝的函式。"
13811381

13821382
#: ../../library/functools.rst:739

library/platform.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ msgid ""
235235
"or Linux kernel release, use :func:`os.uname`."
236236
msgstr ""
237237
"在 iOS 和 Android 上,這是面向使用者的 OS 版本。若要取得 Darwin 或 Linux 核心"
238-
"版本,請使用 :func:`os.uname`\\ 。"
238+
"版本,請使用 :func:`os.uname`。"
239239

240240
#: ../../library/platform.rst:152
241241
msgid ""

whatsnew/3.11.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ msgid ""
11861186
"DynamicClassAttribute`."
11871187
msgstr ""
11881188
"新增 :deco:`~enum.property` 裝飾器,它的作用類似 :deco:`property` 但是是用於"
1189-
"列舉,用以替代 :func:`types.DynamicClassAttribute`\\ 。"
1189+
"列舉,用以替代 :func:`types.DynamicClassAttribute`。"
11901190

11911191
#: ../../whatsnew/3.11.rst:693
11921192
msgid ""

0 commit comments

Comments
 (0)