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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/polytypo/data/VERSION +1 -1
  3. data/lib/polytypo/data/fixtures/bg.json +1 -1
  4. data/lib/polytypo/data/fixtures/cs.json +1 -1
  5. data/lib/polytypo/data/fixtures/de-CH.json +1 -1
  6. data/lib/polytypo/data/fixtures/de-DE.json +1 -1
  7. data/lib/polytypo/data/fixtures/el.json +46 -4
  8. data/lib/polytypo/data/fixtures/en-GB.json +1 -1
  9. data/lib/polytypo/data/fixtures/en-US.json +1 -1
  10. data/lib/polytypo/data/fixtures/es.json +1 -1
  11. data/lib/polytypo/data/fixtures/fi.json +1 -1
  12. data/lib/polytypo/data/fixtures/fr-CA.json +1 -1
  13. data/lib/polytypo/data/fixtures/fr.json +1 -1
  14. data/lib/polytypo/data/fixtures/hr.json +1 -1
  15. data/lib/polytypo/data/fixtures/hu.json +1 -1
  16. data/lib/polytypo/data/fixtures/it.json +1 -1
  17. data/lib/polytypo/data/fixtures/locale-resolution.json +1 -1
  18. data/lib/polytypo/data/fixtures/lt.json +1 -1
  19. data/lib/polytypo/data/fixtures/nl.json +1 -1
  20. data/lib/polytypo/data/fixtures/pl.json +1 -1
  21. data/lib/polytypo/data/fixtures/pt-BR.json +1 -1
  22. data/lib/polytypo/data/fixtures/pt-PT.json +1 -1
  23. data/lib/polytypo/data/fixtures/ro.json +1 -1
  24. data/lib/polytypo/data/fixtures/ru.json +1 -1
  25. data/lib/polytypo/data/fixtures/sk.json +1 -1
  26. data/lib/polytypo/data/fixtures/sl.json +1 -1
  27. data/lib/polytypo/data/fixtures/sr.json +29 -5
  28. data/lib/polytypo/data/fixtures/sv.json +1 -1
  29. data/lib/polytypo/data/fixtures/tr.json +1 -1
  30. data/lib/polytypo/data/fixtures/uk.json +1 -1
  31. data/lib/polytypo/data/locales/el.json +2 -2
  32. data/lib/polytypo/data/locales/registry.json +1 -1
  33. data/lib/polytypo/data/locales/sr.json +4 -4
  34. data/lib/polytypo/data/rules/dashes.md +19 -40
  35. data/lib/polytypo/data/rules/modes.md +0 -1
  36. data/lib/polytypo/data/rules/order.json +1 -1
  37. data/lib/polytypo/version.rb +1 -1
  38. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b78196aba8f371ed14077dbbb0a1642276cf567628d2fc4dfc9c467e2f543f02
4
- data.tar.gz: e9a2b2df572deb0eaf529813d63dc8d72f378e06c541f8567f81b1451219e557
3
+ metadata.gz: 7bff61b997418609ea76c2857f4d65da96354f33e72f36a6a6a3154598dd2e51
4
+ data.tar.gz: 98671cb5c466cff402fd8e15e90718a4c98150984e9931ba40258ff9d8b0e78e
5
5
  SHA512:
6
- metadata.gz: 92a5ca301117e7baa8647b1b0148d1e2980c506a3efda57fbd36b973fdcb4dae31c7e011e53973dd39954539e12090651860bff1de4b11223bc11bbc401c873f
7
- data.tar.gz: 534cc7cedb87c00a83cee59e2cba5a6fe396b8c5b8bc512ccc5576ac5c271286cad15af3e10c53e40d9c452a594236202c2894f2cfde8edd9efe6ec7bf1f91c0
6
+ metadata.gz: bbd96abe50731f895b23862f721bfe274779e87a981eff15b16694a98d12c78249e1f2de994709835f203b968edd30671a5fa636861d403a25fe2509b9d7e6e1
7
+ data.tar.gz: 302875cf5c4d5e3c361fca3024a294a5fe0a0a82efeea53a293ef302bf4f2cf543fb125f9fdcf2f42a8e1cdfb2d45fe8673131ca22616fb0edb6762e807ed835
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.20.0
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "bg",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "cs",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "de-CH",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "de-DE",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
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-parenthetical-noop",
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 \"none\": the source prescribes spaces outside the dash pair and none inside, which no value of the enum expresses."
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.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "en-GB",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "en-US",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "es",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "fi",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "fr-CA",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "fr",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "hr",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "hu",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "it",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "cases": [
4
4
  {
5
5
  "id": "exact-en-us",
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "lt",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "nl",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "pl",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "pt-BR",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "pt-PT",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "ro",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "ru",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "sk",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "sl",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
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-inert",
135
+ "id": "sr-nbsp-units",
136
136
  "rule": "nbsp",
137
137
  "mode": "text",
138
- "in": "3 kg, 50 % и 99,90 €",
139
- "out": "3 kg, 50 % и 99,90 €",
140
- "note": "No verified rule: every nbsp list ships empty, so the plain spaces stay."
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",
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "sv",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "tr",
4
4
  "cases": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.18.0",
2
+ "spec": "1.20.0",
3
3
  "locale": "uk",
4
4
  "cases": [
5
5
  {
@@ -19,7 +19,7 @@
19
19
  }
20
20
  },
21
21
  "dash": {
22
- "parenthetical": "none",
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 \"none\" on BOTH fields, which no other locale has — but for TWO DIFFERENT REASONS, and conflating them would misrepresent the source. Range: genuinely ambivalent. The rule appears twice in §10.1.8, once under «Ενωτικό (-)» and once under «Παύλα μεσαίου μεγέθους (–)», and each occurrence explicitly concedes the other mark. That mutual concession is the proof — a source that names both forms in both places is not being vague, it is declining to rank them, and substituting either would express a preference the citation does not carry. Parenthetical: NOT ambivalent. 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. \"none\" here is forced by the SOURCE CONFLICT below, not by a schema limit: the schema has expressed the spacing this sentence prescribes since \"em-paired\" (spec 1.18.0), but that value is an em dash, and the choice between em and en for Greek is not settled. See spec/rules/dashes.md §6 «el», which states the two justifications separately. SOURCE CONFLICT, recorded and deliberately not settled: this guide prescribes U+2014 for the parenthetical dash, while ΥΠΕΠΘ/ΙΤΥΕ Γραμματική Α΄–Γ΄ Γυμνασίου §3.3 appears to set U+2013 in the same role. The sources array has no way to represent a conflict — it models agreement, not disagreement — so it is recorded here in prose. Resolving it is with the operator and needs a source that ranks the two, not a third that adds a form. Retrieved 2026-08-15."
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.18.0",
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": "Д. Кликовац, Српска интерпункција, Филолошки факултет Универзитета у Београду, 2024 (серија «Монографије – језик»), ISBN 978-86-6153-752-3, analysing Пешикан/Јерковић/Пижурица, Правопис српскога језика, Матица српска, Нови Сад, 2010, (not consulted)",
78
- "url": "https://www.fil.bg.ac.rs/uploads/files/Strane/Biblioteke/Izdavacka%20delatnost/Monografije%20-%20Jezik/SRSKA%20INTERPUNKCIJA%20elek%20izd.pdf",
79
- "note": "Every list is empty and initialBinding is none: no source consulted gives a rule for a space between a number and a unit or percent sign, for one-letter words or initials at a line end. Nothing is derived from another language. The 2010 Pravopis chapters on numbers and word division were not consulted. Operator decision (no paid sources, pick and pin): ship empty. The Pravopis 2010 itself was not read (paid); every statement is the edition of 2010 as Klikovac reports it. The PDF has no text layer and was read as page images. Retrieved 2026-10-24."
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, also `"none"`, not this rule's)
984
-
985
- The first locale with `"none"` on **both** fields, so the rule is a **total no-op** for it in the
986
- same provable sense `hyphen` is a no-op for a locale with empty lists. It is no longer the only
987
- one: `tr` (spec 1.6.0) is both-`none` too, and `es` was from spec 1.3.0 until 1.17.1, each for its
988
- own reason and each recorded in its own locale file. (`es` sets `parenthetical` to `"em-paired"` since spec 1.18.0 — it was
989
- `"em-spaced"`, an approximation, from 1.17.0 — and keeps `range` at `"none"`.) This section stays written about `el` because its two fields are
990
- `"none"` for two *different* reasons, which is what makes it worth reading. Tokens are still
991
- classified — §3.3's "a range token is never reconsidered as a parenthetical" still holds — but no
992
- classification has an emission to make. The rows below are therefore all "no change" rows by
993
- construction, and they are worth pinning precisely because nothing else in the suite exercises
994
- the both-`none` combination.
995
-
996
- **The two fields are `"none"` for two different reasons, and collapsing them into one sentence
997
- misrepresents the source.** An earlier revision of this section said the Greek source "is not
998
- silent here, it is _ambivalent_". That is true of `range` and **false of `parenthetical`**, where
999
- the guide is explicit.
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 | `Το σχέδιο␣-␣αν υπάρχει␣-␣αποτυγχάνει` | ⟶ | classified as a parenthetical, `parenthetical: "none"` → nothing emitted |
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.18.0",
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
  {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polytypo
4
- VERSION = "1.18.0"
4
+ VERSION = "1.20.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polytypo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iurii Rogulia