polytypo 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/polytypo/data/VERSION +1 -1
- data/lib/polytypo/data/fixtures/bg.json +1 -1
- data/lib/polytypo/data/fixtures/cs.json +1 -1
- data/lib/polytypo/data/fixtures/de-CH.json +1 -1
- data/lib/polytypo/data/fixtures/de-DE.json +1 -1
- data/lib/polytypo/data/fixtures/el.json +46 -4
- data/lib/polytypo/data/fixtures/en-GB.json +1 -1
- data/lib/polytypo/data/fixtures/en-US.json +1 -1
- data/lib/polytypo/data/fixtures/es.json +1 -1
- data/lib/polytypo/data/fixtures/fi.json +1 -1
- data/lib/polytypo/data/fixtures/fr-CA.json +1 -1
- data/lib/polytypo/data/fixtures/fr.json +1 -1
- data/lib/polytypo/data/fixtures/hr.json +1 -1
- data/lib/polytypo/data/fixtures/hu.json +1 -1
- data/lib/polytypo/data/fixtures/it.json +1 -1
- data/lib/polytypo/data/fixtures/locale-resolution.json +1 -1
- data/lib/polytypo/data/fixtures/lt.json +1 -1
- data/lib/polytypo/data/fixtures/nl.json +1 -1
- data/lib/polytypo/data/fixtures/pl.json +1 -1
- data/lib/polytypo/data/fixtures/pt-BR.json +1 -1
- data/lib/polytypo/data/fixtures/pt-PT.json +1 -1
- data/lib/polytypo/data/fixtures/ro.json +1 -1
- data/lib/polytypo/data/fixtures/ru.json +1 -1
- data/lib/polytypo/data/fixtures/sk.json +1 -1
- data/lib/polytypo/data/fixtures/sl.json +1 -1
- data/lib/polytypo/data/fixtures/sr.json +29 -5
- data/lib/polytypo/data/fixtures/sv.json +1 -1
- data/lib/polytypo/data/fixtures/tr.json +1 -1
- data/lib/polytypo/data/fixtures/uk.json +1 -1
- data/lib/polytypo/data/locales/el.json +2 -2
- data/lib/polytypo/data/locales/registry.json +1 -1
- data/lib/polytypo/data/locales/sr.json +4 -4
- data/lib/polytypo/data/rules/dashes.md +19 -40
- data/lib/polytypo/data/rules/modes.md +0 -1
- data/lib/polytypo/data/rules/order.json +1 -1
- data/lib/polytypo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bff61b997418609ea76c2857f4d65da96354f33e72f36a6a6a3154598dd2e51
|
|
4
|
+
data.tar.gz: 98671cb5c466cff402fd8e15e90718a4c98150984e9931ba40258ff9d8b0e78e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbd96abe50731f895b23862f721bfe274779e87a981eff15b16694a98d12c78249e1f2de994709835f203b968edd30671a5fa636861d403a25fe2509b9d7e6e1
|
|
7
|
+
data.tar.gz: 302875cf5c4d5e3c361fca3024a294a5fe0a0a82efeea53a293ef302bf4f2cf543fb125f9fdcf2f42a8e1cdfb2d45fe8673131ca22616fb0edb6762e807ed835
|
data/lib/polytypo/data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.20.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.20.0",
|
|
3
3
|
"locale": "el",
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -94,12 +94,54 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
"id": "el-dashes-
|
|
97
|
+
"id": "el-dashes-paired-spaced-hyphens",
|
|
98
98
|
"rule": "dashes",
|
|
99
99
|
"mode": "text",
|
|
100
100
|
"in": "Το σχέδιο - αν υπάρχει - αποτυγχάνει.",
|
|
101
|
-
"out": "Το σχέδιο
|
|
102
|
-
"note": "dashes.md §6 case 34. dash.parenthetical is \"
|
|
101
|
+
"out": "Το σχέδιο —αν υπάρχει— αποτυγχάνει.",
|
|
102
|
+
"note": "dashes.md §6 case 34. dash.parenthetical is \"em-paired\" since spec 1.19.0: U+2014 with a space outside the pair and none inside, as the EU guide §10.1.8 prescribes."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "el-dashes-paired-double-hyphen",
|
|
106
|
+
"rule": "dashes",
|
|
107
|
+
"mode": "text",
|
|
108
|
+
"in": "Περπατήσαμε -- σχεδόν 3 χλμ -- και το βρήκαμε κλειστό.",
|
|
109
|
+
"out": "Περπατήσαμε —σχεδόν 3 χλμ— και το βρήκαμε κλειστό."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "el-dashes-paired-tight-em",
|
|
113
|
+
"rule": "dashes",
|
|
114
|
+
"mode": "text",
|
|
115
|
+
"in": "Το σχέδιο—αν υπάρχει—αποτυγχάνει.",
|
|
116
|
+
"out": "Το σχέδιο —αν υπάρχει— αποτυγχάνει."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "el-dashes-paired-already-correct",
|
|
120
|
+
"rule": "dashes",
|
|
121
|
+
"mode": "text",
|
|
122
|
+
"in": "Έφτασε —επιτέλους— σπίτι.",
|
|
123
|
+
"out": "Έφτασε —επιτέλους— σπίτι."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "el-dashes-paired-spaced-em",
|
|
127
|
+
"rule": "dashes",
|
|
128
|
+
"mode": "text",
|
|
129
|
+
"in": "Έφτασε — επιτέλους — σπίτι.",
|
|
130
|
+
"out": "Έφτασε —επιτέλους— σπίτι."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "el-dashes-single-hyphen-untouched",
|
|
134
|
+
"rule": "dashes",
|
|
135
|
+
"mode": "text",
|
|
136
|
+
"in": "Αθήνα - η πρωτεύουσα της Ελλάδας.",
|
|
137
|
+
"out": "Αθήνα - η πρωτεύουσα της Ελλάδας."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "el-dashes-lone-en-dash-untouched",
|
|
141
|
+
"rule": "dashes",
|
|
142
|
+
"mode": "text",
|
|
143
|
+
"in": "Έφτασε – επιτέλους – σπίτι.",
|
|
144
|
+
"out": "Έφτασε – επιτέλους – σπίτι."
|
|
103
145
|
},
|
|
104
146
|
{
|
|
105
147
|
"id": "el-ranges-existing-en-dash-noop",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.20.0",
|
|
3
3
|
"locale": "sr",
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -132,12 +132,36 @@
|
|
|
132
132
|
"note": "No closed list ships, so nothing changes."
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"id": "sr-nbsp-units
|
|
135
|
+
"id": "sr-nbsp-units",
|
|
136
136
|
"rule": "nbsp",
|
|
137
137
|
"mode": "text",
|
|
138
|
-
"in": "3 kg,
|
|
139
|
-
"out": "3
|
|
140
|
-
"note": "
|
|
138
|
+
"in": "Тежи 3 kg, 20 cm и 5 mm.",
|
|
139
|
+
"out": "Тежи 3 kg, 20 cm и 5 mm.",
|
|
140
|
+
"note": "DMDM, Pravila upotrebe mernih jedinica: a space separates the unit symbol from its number and the symbol is never carried alone to a new line."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "sr-nbsp-celsius",
|
|
144
|
+
"rule": "nbsp",
|
|
145
|
+
"mode": "text",
|
|
146
|
+
"in": "Било је 25 °C у хладу.",
|
|
147
|
+
"out": "Било је 25 °C у хладу.",
|
|
148
|
+
"note": "DMDM: «25 °C» is written with a space."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "sr-nbsp-unattested-units-inert",
|
|
152
|
+
"rule": "nbsp",
|
|
153
|
+
"mode": "text",
|
|
154
|
+
"in": "Прешао је 5 km за 40 min.",
|
|
155
|
+
"out": "Прешао је 5 km за 40 min.",
|
|
156
|
+
"note": "km and min are not attested with a space in the source read, so they are not in beforeUnits."
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "sr-nbsp-percent-inert",
|
|
160
|
+
"rule": "nbsp",
|
|
161
|
+
"mode": "text",
|
|
162
|
+
"in": "Остало је 50 % и 99,90 €.",
|
|
163
|
+
"out": "Остало је 50 % и 99,90 €.",
|
|
164
|
+
"note": "'%' is deliberately absent from beforeUnits: BIPM spaces it, Serbian print closes it up, and no Serbian norm was read. A typed space is left as typed."
|
|
141
165
|
},
|
|
142
166
|
{
|
|
143
167
|
"id": "sr-nbsp-short-words-inert",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dash": {
|
|
22
|
-
"parenthetical": "
|
|
22
|
+
"parenthetical": "em-paired",
|
|
23
23
|
"range": "none"
|
|
24
24
|
},
|
|
25
25
|
"ellipsis": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"rule": "dashes",
|
|
53
53
|
"cite": "Διοργανικό εγχειρίδιο σύνταξης κειμένων (EL, 2011), §10.1.8 «Ενωτικό — Παύλα μεσαίου μεγέθους — Μεγάλη παύλα»: για τα αριθμητικά διαστήματα, «Παύλα μεσαίου μεγέθους ή μείον (–) […] γ) για να δηλώσει το διάστημα μεταξύ δύο ορίων (π.χ. άτομα ηλικίας 25–45 ετών) […] δ) στην αναφορά σε περιόδους τουλάχιστον δύο πλήρων ετών (π.χ. 1989–1991) […] Ωστόσο, και στην περίπτωση αυτή μπορεί να χρησιμοποιηθεί και ενωτικό». Ο ίδιος κανόνας για τα αριθμητικά διαστήματα εμφανίζεται ΔΥΟ ΦΟΡΕΣ στην §10.1.8, μία στην υποενότητα «Ενωτικό (-)» και μία στην υποενότητα «Παύλα μεσαίου μεγέθους (–)», και κάθε φορά η υποενότητα παραχωρεί ρητά το άλλο σημείο (paraphrase of the «Ενωτικό» occurrence — its verbatim text was not captured at review time; the «Παύλα» occurrence is quoted above verbatim)· για την παρενθετική χρήση, «Όπως η παρένθεση, η διπλή παύλα δεν χωρίζεται με κενά διαστήματα από τη λέξη, φράση ή πρόταση που περικλείει· αντίθετα, μπαίνουν διαστήματα πριν από την πρώτη και μετά τη δεύτερη παύλα»",
|
|
54
54
|
"url": "http://publications.europa.eu/resource/cellar/e774ea2a-ef84-4bf6-be92-c9ebebf91c1b.0015.03/DOC_2",
|
|
55
|
-
"note": "Justifies \"
|
|
55
|
+
"note": "Justifies parenthetical \"em-paired\" and range \"none\", for two different reasons. Parenthetical: the guide prescribes a U+2014 pair (its own header gives «Alt 0151») with ordinary spaces outside the pair and none on the inner edges, which is exactly what \"em-paired\" writes (dashes.md §3.4a). Range: genuinely ambivalent. The rule appears twice in §10.1.8, once under «Ενωτικό (-)» and once under «Παύλα μεσαίου μεγέθους (–)», and each occurrence explicitly concedes the other mark, so substituting either would express a preference the citation does not carry. SOURCE CONFLICT, recorded and settled by operator decision rather than by a source (spec 1.19.0): ΥΠΕΠΘ/ΙΤΥΕ Γραμματική Α΄–Γ΄ Γυμνασίου §3.3 appears to set U+2013 in the parenthetical role, while this guide, the one cited, sets U+2014; the em dash follows the cited source. The sources array has no way to represent a conflict, so it is recorded here in prose. Retrieved 2026-08-15."
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"rule": "ellipsis",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.20.0",
|
|
3
3
|
"$comment": "Locale resolution input. Algorithm is specified in spec/rules/locale-resolution.md and is identical in every runtime — never delegate it to a platform locale-negotiation library. \"spec\" here must track spec/VERSION exactly — it is not itself the global version source; scripts/validate-spec.mjs enforces the match.",
|
|
4
4
|
"locales": [
|
|
5
5
|
"en-US",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"narrowBeforePunctuation": [],
|
|
36
36
|
"afterShortWords": [],
|
|
37
37
|
"abbreviations": [],
|
|
38
|
-
"beforeUnits": [],
|
|
38
|
+
"beforeUnits": ["kg", "cm", "mm", "°C"],
|
|
39
39
|
"beforeNumber": [],
|
|
40
40
|
"beforeWord": [],
|
|
41
41
|
"afterSymbols": [],
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"rule": "nbsp",
|
|
77
|
-
"cite": "
|
|
78
|
-
"url": "https://www.
|
|
79
|
-
"note": "
|
|
77
|
+
"cite": "Direkcija za mere i dragocene metale (DMDM), «Pravila upotrebe i pisanja mernih jedinica i fizičkih veličina»: «Oznake mernih jedinica pišu se iza numeričkih vrednosti u izrazima za veličinu, ostavljajući razmak između numeričke vrednosti i oznake merne jedinice.»; «U novi red se ne sme preneti samo oznaka merne jedinice.»; primeri označeni kao ispravni: «2 kg, 3 kg i 4 kg», «80 mm • 25 mm • 50 mm», «lAl = 30 cm», «25 °C ± 5 °C». Uredba o zakonskim mernim jedinicama i načinu njihove upotrebe («Sl. glasnik RS», br. 132/2021), član 5: «Način pisanja mernih jedinica mora biti u skladu sa standardom SRPS EN ISO 80000.»",
|
|
78
|
+
"url": "https://www.dmdm.rs/sr/o-nama/merne-jedinice/pravila",
|
|
79
|
+
"note": "beforeUnits = kg, cm, mm, °C (U+00B0 U+0043): each printed with a space after the number by the national metrology authority, which also states outright that the unit symbol must not be carried alone to a new line. A metrology source, not a language authority, so MEDIUM — the same footing as the form evidence of hr, sk and bg. Single-letter units are excluded as in hr, sk and bg. km, km/h, ha, min and the Cyrillic forms (кг, км) are not attested with a space and are not added. '%' is deliberately absent: BIPM SI Brochure 9th ed. §5.4.7 sets a space before it, but Serbian practice in print is closed up (Брборић and Новокмет, Књижевност и језик 64/3–4, 2017, «96%», «73,5%») and no Serbian norm was read, so neither form is pinned; empty means a typed space is left as typed. Corroborated, language-neutrally, by BIPM SI Brochure 9th ed. §5.4.3 (https://www.bipm.org/documents/20126/41483022/SI-Brochure-9.pdf). Currency, afterSymbols, abbreviations, afterShortWords and initialBinding stay empty or none because no free source states a rule: Klikovac, Српска интерпункција, pp. 57–64 lists % and ° among signs of Пижурица и др. 2010 without any spacing rule; the Pravopis 2010 (paid) was not read. Operator decision (no paid sources, pick and pin). Retrieved 2026-11-06."
|
|
80
80
|
}
|
|
81
81
|
]
|
|
82
82
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
**Spec version:** 0.6.0 (0.2.0 for everything except the 0.5.0/0.6.0 changes noted inline and in
|
|
5
5
|
§8 History), amended in **1.3.0**: §1 and §3.4's statement of what belongs to `ranges`, §3.2a's
|
|
6
6
|
re-entry condition, and §3.2 steps 7 and 8, all for [ranges.md](ranges.md) §3.2a's closed-up
|
|
7
|
-
symbols, and again in **1.18.0**: the value `"em-paired"` and its own algorithm, §3.4a.
|
|
7
|
+
symbols, and again in **1.18.0**: the value `"em-paired"` and its own algorithm, §3.4a; `el` adopts it in **1.19.0** (§6).
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -980,49 +980,28 @@ never reaches a digit-flanked token at all.
|
|
|
980
980
|
| 46 | `de-DE` | `1–1␣-␣1` | ⟶ | digit-flanked — never reaches `dashes`; see [ranges.md](ranges.md) §6 row 46 (the control for row 45) |
|
|
981
981
|
| 47 | `ru` | `1-1␣-␣1` | ⟶ | digit-flanked — never reaches `dashes`; see [ranges.md](ranges.md) §6 row 47 |
|
|
982
982
|
|
|
983
|
-
### `el` — `parenthetical: "none"` (`range` is now [ranges.md](ranges.md)'s field
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
the
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
- **`range: "none"` — genuine ambivalence.** The rule appears **twice** in §10.1.8 of the EU
|
|
1002
|
-
Interinstitutional Style Guide (Greek edition), once under «Ενωτικό (-)» and once under «Παύλα
|
|
1003
|
-
μεσαίου μεγέθους (–)», and **each occurrence explicitly concedes the other mark**. A source
|
|
1004
|
-
that names both forms in both places is not being vague; it is declining to rank them.
|
|
1005
|
-
Emitting either would express a preference the citation does not carry, so the rule emits
|
|
1006
|
-
nothing.
|
|
1007
|
-
- **`parenthetical: "none"` — a source conflict, no longer a schema limit.** The guide prescribes a U+2014
|
|
1008
|
-
pair (its own header gives «Alt 0151») and states the spacing exactly: «Όπως η παρένθεση, η
|
|
1009
|
-
διπλή παύλα δεν χωρίζεται με κενά διαστήματα από τη λέξη, φράση ή πρόταση που περικλείει·
|
|
1010
|
-
αντίθετα, μπαίνουν διαστήματα πριν από την πρώτη και μετά τη δεύτερη παύλα.» — ordinary spaces
|
|
1011
|
-
**outside** the pair, none on the **inner** edges. Until spec 1.18.0 the enum had no value for
|
|
1012
|
-
that asymmetry; `"em-paired"` (§3.4a) is that value. `el` stays `"none"` all the same, because
|
|
1013
|
-
`"em-paired"` is an em dash and the state school grammar appears to set an en dash in the same
|
|
1014
|
-
role: choosing between them needs a source that ranks the two, and is not a licence to
|
|
1015
|
-
approximate.
|
|
1016
|
-
|
|
1017
|
-
In both cases `"none"` is the honest encoding, not a placeholder awaiting a default (§2) — and
|
|
1018
|
-
both are now waiting on a _source_. `spec/locales/el.json`'s `dashes.note` carries the
|
|
1019
|
-
detail, including a **source conflict** this document does not try to settle: the EU guide sets
|
|
1020
|
-
U+2014 parenthetically while the state school grammar appears to set U+2013.
|
|
983
|
+
### `el` — `parenthetical: "em-paired"`, `range: "none"` (`range` is now [ranges.md](ranges.md)'s field)
|
|
984
|
+
|
|
985
|
+
`el` has been `parenthetical: "em-paired"` since spec 1.19.0 (it was `"none"` before, because the
|
|
986
|
+
enum had no value for the asymmetric spacing until 1.18.0 and the em/en choice was unsettled). The
|
|
987
|
+
EU Interinstitutional Style Guide (Greek edition) §10.1.8 prescribes a U+2014 pair (its own header
|
|
988
|
+
gives «Alt 0151») and states the spacing exactly: «Όπως η παρένθεση, η διπλή παύλα δεν χωρίζεται με
|
|
989
|
+
κενά διαστήματα από τη λέξη, φράση ή πρόταση που περικλείει· αντίθετα, μπαίνουν διαστήματα πριν από
|
|
990
|
+
την πρώτη και μετά τη δεύτερη παύλα.» — ordinary spaces **outside** the pair, none on the **inner**
|
|
991
|
+
edges, which is what §3.4a writes. The state school grammar (ΥΠΕΠΘ/ΙΤΥΕ §3.3) appears to set an en
|
|
992
|
+
dash in the same role; that conflict is recorded in `spec/locales/el.json`'s `dashes.note` and
|
|
993
|
+
settled by operator decision for the cited source, not by a source that ranks the two. The
|
|
994
|
+
conditions and the accepted cost of §3.4a and §7 item 8 apply to `el` unchanged.
|
|
995
|
+
|
|
996
|
+
`range` stays `"none"` for a different reason: genuine ambivalence. The rule appears **twice** in
|
|
997
|
+
§10.1.8, once under «Ενωτικό (-)» and once under «Παύλα μεσαίου μεγέθους (–)», and **each
|
|
998
|
+
occurrence explicitly concedes the other mark**. Emitting either would express a preference the
|
|
999
|
+
citation does not carry, so `ranges` emits nothing.
|
|
1021
1000
|
|
|
1022
1001
|
| # | Input | Output | Why |
|
|
1023
1002
|
| --- | -------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- |
|
|
1024
1003
|
| 48 | `άτομα ηλικίας 25-45 ετών` | ⟶ | digit-flanked — never reaches `dashes` (§1, §3.3); see [ranges.md](ranges.md) §6 row 48 for `ranges`' own no-op here (`range: "none"` — nothing to emit even when explicitly enabled) |
|
|
1025
|
-
| 49 | `Το σχέδιο␣-␣αν υπάρχει␣-␣αποτυγχάνει` |
|
|
1004
|
+
| 49 | `Το σχέδιο␣-␣αν υπάρχει␣-␣αποτυγχάνει` | `Το σχέδιο␣—αν υπάρχει—␣αποτυγχάνει` | two strokes in one segment, `parenthetical: "em-paired"` → §3.4a |
|
|
1026
1005
|
| 50 | `την περίοδο 1989–1991` | ⟶ | digit-flanked — never reaches `dashes` (§1, §3.3); already an en dash in the form the source prints, so [ranges.md](ranges.md) is inert here too even when explicitly enabled |
|
|
1027
1006
|
|
|
1028
1007
|
### A locale with no verified convention — `parenthetical: "none"` (`range` is now [ranges.md](ranges.md)'s field, also `"none"`, not this rule's)
|
|
@@ -2170,7 +2170,6 @@ each, the rule is given fewer chances to fire and the text is left as typed.
|
|
|
2170
2170
|
| `en-US` | `em-tight` | **converts** — `a<em>—</em>b`, since 2 → 1 is a contraction | converts |
|
|
2171
2171
|
| `de-CH`, `de-DE`, `en-GB`, `fi`, `sv` | `en-spaced` | unchanged — 2 → 3 grows both edges | converts, `a<em>x – y</em>b` |
|
|
2172
2172
|
| `fr`, `ru` | `em-spaced` | unchanged — same reason | converts |
|
|
2173
|
-
| `el` | `none` | unchanged — emits nothing anywhere | unchanged |
|
|
2174
2173
|
|
|
2175
2174
|
`en-US` is the only locale whose parenthetical form is shorter than the `--` that triggers it,
|
|
2176
2175
|
and it is therefore the only one that converts at an edge. The asymmetry is real — the same
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.20.0",
|
|
3
3
|
"$comment": "Single source of truth for pipeline order. Rules run in ascending `order`. Disabling a rule removes it from the sequence and never reorders the rest. Rule ids are public API (see docs/ARCHITECTURE.md section 5). \"spec\" here must track spec/VERSION exactly — it is not itself the global version source; scripts/validate-spec.mjs enforces the match.",
|
|
4
4
|
"rules": [
|
|
5
5
|
{
|
data/lib/polytypo/version.rb
CHANGED