Skip to content

Commit b434096

Browse files
derek73claude
andauthored
Restructure locales.rst by task: the shipped-packs table as an index, a section per pack, and Choosing languages as its own section (#1411)
* Restructure locales.rst by task: the shipped-packs table as an index, a section per pack that had none, and Choosing languages as its own section Shipped packs, Choosing languages and Stacking packs are promoted out of "Using a pack"; the pack table is cut to Code / For / Turns on / Example with a link per row, and its boundary cases move to sections (new ones here for ru, tr_az, ne, ga/gd and pt/pt_br; the rest already in languages.rst and east-asian.rst). Two sentences the table alone held move to east-asian.rst (the zh list's composition, and a Chinese name losing 君 under ja), with a label for the honorifics section. Fixes one claim that was false on master: the cs/sk row said both packs turn on MgA. and BcA., which only cs does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Narrow six claims the review found widened by the move in locales.rst The tr_az row said every marker name has its first word read as the family (only a four-word one does); the strict "read as a name word" sentence had been parted from its exceptions (your own words, a word read by its shape); "enable a pack only for data in the order it detects" read as true of packs that detect no order; zh and ja were called "the other two" though ja chooses a language too; and "a pack that chooses no language leaves the vocabulary exactly as it was" ignored zh's surname list. The ne row and the language-packs intro again say what customize.rst and policy.rst point at them for. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Narrow five more claims in locales.rst after the review of the fix commit A strict choice's shape reading is not the default's (Lt.Gov. ending a name is a suffix under it, a title by default), so the sentence no longer says it reads as it does by default; the no-language sentence names the three shipped packs it is true of; ru's guidance names its real cost; SB is pt_br's alone; ja divides only with a segmenter. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Narrow ru's cost to three name words, give the strict Mx. example its position, and restore es_ar's contrast with es ru reorders a name of exactly three name words (Mary Ann Petrovna), not any name ending in a patronymic (Anna Petrovna, John Paul David Abramovich read as the default does). Under a strict ko choice Mx. is a title only opening a name (Kim Min Jun Mx. gives family Mx.). The es_ar row's example reads the same by default, so it says again what es gives. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 1264717 commit b434096

2 files changed

Lines changed: 733 additions & 501 deletions

File tree

‎docs/east-asian.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ data you know is Chinese, and the ``ja`` pack for Japanese data
106106
(:ref:`japanese-segmenter`). A name whose surname is not on the pack's
107107
list stays whole.
108108

109+
The list holds the commonest surnames of the mainland and Taiwan, in
110+
both scripts, and the compound surnames still borne.
111+
109112
A Chinese name can carry two surnames. In Taiwan a married woman
110113
wrote her husband's surname before her own (冠夫姓) — the Civil Code's
111114
default until 1998, and still a choice — and a mainland child may carry
@@ -420,6 +423,8 @@ family 王, given 小明 and suffix 先生 for the same reason. Spacing the
420423
honorific is no lever there, and for Korean data there is no pack to
421424
decline either, hangul segmentation being on by default.
422425

426+
.. _glued-honorifics:
427+
423428
Which honorifics peel when glued
424429
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
425430

@@ -438,6 +443,10 @@ neither form by default, since 王君 is a complete Chinese name, though
438443
its kana spelling くん peels. ``parser_for(locales.JA)`` turns 君 on, glued
439444
and spaced, as the Diet writes it (``逢沢 一郎君`` gives suffix ``君``).
440445

446+
A Chinese name read under ``locales.JA`` loses its ``君`` the same way
447+
(``王君`` gives family ``王``, suffix ``君``), so keep the pack for
448+
Japanese data.
449+
441450
Exactly one honorific peels off a token, and the entries are whole
442451
honorifics rather than parts: ``김민준박사님`` gives up 박사님 entire,
443452
not 님 with 박사 left behind.

0 commit comments

Comments
 (0)