polytypo 1.24.0 → 1.26.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/da.json +295 -0
- 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 +1 -1
- 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/et.json +266 -0
- 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 +13 -1
- data/lib/polytypo/data/fixtures/lt.json +1 -1
- data/lib/polytypo/data/fixtures/lv.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 +1 -1
- 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/da.json +85 -0
- data/lib/polytypo/data/locales/et.json +85 -0
- data/lib/polytypo/data/locales/registry.json +4 -2
- data/lib/polytypo/data/rules/order.json +1 -1
- data/lib/polytypo/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92f33e1806011a1a39020d235a10f822620249634da5db15821a6585ba6ea385
|
|
4
|
+
data.tar.gz: 14518b26a660188d5a326b441644d90fca56f3b4faf33676434242400008a21b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0260cf3f4346076a7be9eccbdbd0f157443d30d2bf0c0efaf18a031647ff80f4594c7865639f0a4fe55472699a5a3a3fd92635ffd41e5d6e77226cdcce483dd
|
|
7
|
+
data.tar.gz: c068d0eea88d9edf7f10d149c285148d57f4b07c32bf548069ff01c7b43f9dd198567a7862efa5baa9a2983882ada84ee8b7f2a7e8758d88ec856c97d0405eb6
|
data/lib/polytypo/data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.26.0
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"spec": "1.26.0",
|
|
3
|
+
"locale": "da",
|
|
4
|
+
"cases": [
|
|
5
|
+
{
|
|
6
|
+
"id": "da-quotes-primary",
|
|
7
|
+
"rule": "quotes",
|
|
8
|
+
"mode": "text",
|
|
9
|
+
"in": "Han sagde: \"Jeg er træt.\" og gik.",
|
|
10
|
+
"out": "Han sagde: »Jeg er træt.« og gik.",
|
|
11
|
+
"note": "Retskrivningsreglerne §58, §59: direct speech takes »…«; the full stop of the speech stays inside."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "da-quotes-nested-secondary",
|
|
15
|
+
"rule": "quotes",
|
|
16
|
+
"mode": "text",
|
|
17
|
+
"in": "Han sagde: \"Hun sagde 'ja' til mig\" og gik.",
|
|
18
|
+
"out": "Han sagde: »Hun sagde ›ja‹ til mig« og gik.",
|
|
19
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §58: the inner level takes ›…‹ (pin of the listed single form)."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "da-quotes-nested-at-end",
|
|
23
|
+
"rule": "quotes",
|
|
24
|
+
"mode": "text",
|
|
25
|
+
"in": "Han sagde: \"Hun sagde 'ja'\" og gik.",
|
|
26
|
+
"out": "Han sagde: »Hun sagde ›ja‹« og gik.",
|
|
27
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §58: a nest that ends against the outer closer is still paired."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "da-quotes-already-typeset",
|
|
31
|
+
"rule": "quotes",
|
|
32
|
+
"mode": "text",
|
|
33
|
+
"in": "Han sagde »ja« og gik.",
|
|
34
|
+
"out": "Han sagde »ja« og gik.",
|
|
35
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §58: text already carrying »…« is a fixed point."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "da-quotes-already-typeset-nested",
|
|
39
|
+
"rule": "quotes",
|
|
40
|
+
"mode": "text",
|
|
41
|
+
"in": "Han sagde »hun sagde ›ja‹ til mig« og gik.",
|
|
42
|
+
"out": "Han sagde »hun sagde ›ja‹ til mig« og gik.",
|
|
43
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §58: already-typeset nesting is a fixed point."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "da-quotes-already-typeset-comma",
|
|
47
|
+
"rule": "quotes",
|
|
48
|
+
"mode": "text",
|
|
49
|
+
"in": "»Nej,« svarede hun.",
|
|
50
|
+
"out": "»Nej,« svarede hun.",
|
|
51
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §59: direct speech with the comma inside is a fixed point."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "da-quotes-double-curly-input",
|
|
55
|
+
"rule": "quotes",
|
|
56
|
+
"mode": "text",
|
|
57
|
+
"in": "Han sagde ”ja” og gik.",
|
|
58
|
+
"out": "Han sagde »ja« og gik.",
|
|
59
|
+
"note": "Dansk Sprognævn, Oversigt over ændringer 2025, §58.1 example «”godmorgen!”» uses ”…”; it is normalised to the pinned pair."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "da-quotes-low-high-input",
|
|
63
|
+
"rule": "quotes",
|
|
64
|
+
"mode": "text",
|
|
65
|
+
"in": "Han sagde „ja“ og gik.",
|
|
66
|
+
"out": "Han sagde »ja« og gik.",
|
|
67
|
+
"note": "„…“ is not among the forms §58 names (»…« and a double-quote form); it is normalised to the pinned pair."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "da-quotes-reversed-guillemets-input",
|
|
71
|
+
"rule": "quotes",
|
|
72
|
+
"mode": "text",
|
|
73
|
+
"in": "Han sagde «ja» og gik.",
|
|
74
|
+
"out": "Han sagde »ja« og gik.",
|
|
75
|
+
"note": "Every source read that uses guillemets opens with U+00BB; the reversed pair «…» is normalised to »…«."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "da-quotes-no-inner-space",
|
|
79
|
+
"rule": "quotes",
|
|
80
|
+
"mode": "text",
|
|
81
|
+
"in": "Han sagde: \" ja \" og gik.",
|
|
82
|
+
"out": "Han sagde: »ja« og gik.",
|
|
83
|
+
"note": "innerSpace is none: no example in §58–59 carries a space inside the marks."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "da-quotes-question-inside",
|
|
87
|
+
"rule": "quotes",
|
|
88
|
+
"mode": "text",
|
|
89
|
+
"in": "\"Hvad?\" spurgte han.",
|
|
90
|
+
"out": "»Hvad?« spurgte han.",
|
|
91
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §59: a question mark of the speech stays inside the closing mark."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "da-quotes-stray-period-after",
|
|
95
|
+
"rule": "quotes",
|
|
96
|
+
"mode": "text",
|
|
97
|
+
"in": "Han spurgte: \"Hvad?\".",
|
|
98
|
+
"out": "Han spurgte: »Hvad?«.",
|
|
99
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §59(4): a full stop after the closing mark is left where it stands."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "da-ellipsis-three-dots",
|
|
103
|
+
"rule": "ellipsis",
|
|
104
|
+
"mode": "text",
|
|
105
|
+
"in": "Vent... og så.",
|
|
106
|
+
"out": "Vent… og så.",
|
|
107
|
+
"note": "Oversigt 2025 §43 (RO 5.1) allows two or more dots as tøveprikker; three dots become the ellipsis character."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "da-ellipsis-before-question",
|
|
111
|
+
"rule": "ellipsis",
|
|
112
|
+
"mode": "text",
|
|
113
|
+
"in": "Er det nu...?",
|
|
114
|
+
"out": "Er det nu…?",
|
|
115
|
+
"note": "Oversigt 2025 §43 (RO 5.1): «…men så ...!», «…sagde ..?» and no space between the dots and the terminal mark; abbreviatedAfterTerminal is false."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "da-ellipsis-before-exclamation",
|
|
119
|
+
"rule": "ellipsis",
|
|
120
|
+
"mode": "text",
|
|
121
|
+
"in": "Hvad nu...!",
|
|
122
|
+
"out": "Hvad nu…!",
|
|
123
|
+
"note": "Oversigt 2025 §43 (RO 5.1) «men så ...!»: the dots stay before the terminal mark."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "da-ellipsis-four-dots-collapsed",
|
|
127
|
+
"rule": "ellipsis",
|
|
128
|
+
"mode": "text",
|
|
129
|
+
"in": "Stilheden ....",
|
|
130
|
+
"out": "Stilheden …",
|
|
131
|
+
"note": "ACCEPTED COST: Oversigt 2025 §43 allows four dots («stilheden ....»); the ellipsis rule collapses them to the ellipsis character."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "da-dashes-parenthetical",
|
|
135
|
+
"rule": "dashes",
|
|
136
|
+
"mode": "text",
|
|
137
|
+
"in": "Nu - ikke mindst - går vi.",
|
|
138
|
+
"out": "Nu – ikke mindst – går vi.",
|
|
139
|
+
"note": "Retskrivningsreglerne §55: the dash stands with a space on both sides; U+2013 per the Digitaliseringsstyrelsen guide pp. 66–67."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "da-dashes-em-input",
|
|
143
|
+
"rule": "dashes",
|
|
144
|
+
"mode": "text",
|
|
145
|
+
"in": "Nu — ikke mindst — går vi.",
|
|
146
|
+
"out": "Nu – ikke mindst – går vi.",
|
|
147
|
+
"note": "No source read mentions U+2014; an em dash is normalised to the en dash by this pin."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "da-dashes-existing-en",
|
|
151
|
+
"rule": "dashes",
|
|
152
|
+
"mode": "text",
|
|
153
|
+
"in": "Nu – ikke mindst – går vi.",
|
|
154
|
+
"out": "Nu – ikke mindst – går vi.",
|
|
155
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §55: the spaced en dash is a fixed point."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "da-ranges-none-hyphen-kept",
|
|
159
|
+
"rule": "ranges",
|
|
160
|
+
"rules": {
|
|
161
|
+
"ranges": true
|
|
162
|
+
},
|
|
163
|
+
"mode": "text",
|
|
164
|
+
"in": "mandag-fredag 9-16 og 1986-1989",
|
|
165
|
+
"out": "mandag-fredag 9-16 og 1986-1989",
|
|
166
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §57.9: the range hyphen is U+002D without spaces; dash.range is none, so the token stays as written (ranges.md §2)."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "da-ranges-word-hyphen-untouched",
|
|
170
|
+
"rule": "ranges",
|
|
171
|
+
"rules": {
|
|
172
|
+
"ranges": true
|
|
173
|
+
},
|
|
174
|
+
"mode": "text",
|
|
175
|
+
"in": "København-Aarhus",
|
|
176
|
+
"out": "København-Aarhus",
|
|
177
|
+
"note": "Retskrivningsreglerne §57.9: «København-Århus»; a hyphen between words is untouched (ranges.md §3)."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "da-hyphen-noop",
|
|
181
|
+
"rule": "hyphen",
|
|
182
|
+
"mode": "text",
|
|
183
|
+
"in": "e-mail og H.C. Andersen-prisen",
|
|
184
|
+
"out": "e-mail og H.C. Andersen-prisen",
|
|
185
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §57: no closed list of hyphenated forms is cited, so the hyphen lists are empty and nothing changes."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "da-nbsp-spaced-units",
|
|
189
|
+
"rule": "nbsp",
|
|
190
|
+
"mode": "text",
|
|
191
|
+
"in": "Prisen er 25 % og 10 kr og 3 € og 3 km og 10 kg og 5 cm og 7 ha",
|
|
192
|
+
"out": "Prisen er 25 % og 10 kr og 3 € og 3 km og 10 kg og 5 cm og 7 ha",
|
|
193
|
+
"note": "SV00000086 (% with a space), SV00015797 (currency after the number, like SI symbols), Folketingstidende p. 114 (ha, kg)."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "da-nbsp-spaced-unit-inserted",
|
|
197
|
+
"rule": "nbsp",
|
|
198
|
+
"mode": "text",
|
|
199
|
+
"in": "Prisen 50% og 5€ her",
|
|
200
|
+
"out": "Prisen 50 % og 5 € her",
|
|
201
|
+
"note": "SV00000086 and SV00015797: the space before % and € is inserted and made non-breaking."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "da-nbsp-spaced-unit-inserted-letters",
|
|
205
|
+
"rule": "nbsp",
|
|
206
|
+
"mode": "text",
|
|
207
|
+
"in": "Det koster 15kr og vejer 3kg",
|
|
208
|
+
"out": "Det koster 15 kr og vejer 3 kg",
|
|
209
|
+
"note": "SV00015797 and Folketingstidende p. 114: a letter unit (kr, kg) written closed up to the number gets the no-break space."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "da-nbsp-kr-with-full-stop",
|
|
213
|
+
"rule": "nbsp",
|
|
214
|
+
"mode": "text",
|
|
215
|
+
"in": "Det koster 15 kr. i dag",
|
|
216
|
+
"out": "Det koster 15 kr. i dag",
|
|
217
|
+
"note": "SV00015797 «10 kr.»: kr is listed without the full stop; a following full stop does not prevent the binding."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "da-nbsp-single-letter-unit-inert",
|
|
221
|
+
"rule": "nbsp",
|
|
222
|
+
"mode": "text",
|
|
223
|
+
"in": "Det er 5 m og 3 g",
|
|
224
|
+
"out": "Det er 5 m og 3 g",
|
|
225
|
+
"note": "Single-letter units are excluded (nbsp.md §3.7): they are also common words."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "da-nbsp-degree-inert",
|
|
229
|
+
"rule": "nbsp",
|
|
230
|
+
"mode": "text",
|
|
231
|
+
"in": "Det er 38 °C ude",
|
|
232
|
+
"out": "Det er 38 °C ude",
|
|
233
|
+
"note": "UNVERIFIED: SV00015408 covers angles only, so °C is not listed and the text is left as typed."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "da-nbsp-abbreviations-inert",
|
|
237
|
+
"rule": "nbsp",
|
|
238
|
+
"mode": "text",
|
|
239
|
+
"in": "f.eks. og bl.a. og dvs. samt H.C. Andersen",
|
|
240
|
+
"out": "f.eks. og bl.a. og dvs. samt H.C. Andersen",
|
|
241
|
+
"note": "Retskrivningsreglerne §42.5: abbreviations are written without an inner space, so there is nothing to bind."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "da-nbsp-before-number-inert",
|
|
245
|
+
"rule": "nbsp",
|
|
246
|
+
"mode": "text",
|
|
247
|
+
"in": "se nr. 5 og s. 12 og kl. 9 og § 10",
|
|
248
|
+
"out": "se nr. 5 og s. 12 og kl. 9 og § 10",
|
|
249
|
+
"note": "Folketingstidende pp. 50–52 list kl., nr., § and s. before numbers, and the examples (§ 10, p. 51; nr. 5-8, p. 111; kl. 15, p. 112) show a space, but no source calls it non-breaking, so nothing is bound."
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": "da-spaces-before-punctuation",
|
|
253
|
+
"rule": "spaces",
|
|
254
|
+
"mode": "text",
|
|
255
|
+
"in": "Hvad nu ? Ikke !",
|
|
256
|
+
"out": "Hvad nu? Ikke!",
|
|
257
|
+
"note": "A space before ? or ! is removed; no source read puts one there."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "da-spaces-brackets",
|
|
261
|
+
"rule": "spaces",
|
|
262
|
+
"mode": "text",
|
|
263
|
+
"in": "Han ( stille ) gik .",
|
|
264
|
+
"out": "Han (stille) gik.",
|
|
265
|
+
"note": "A space inside brackets and before a full stop is removed (the spaces rule is locale-independent)."
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "da-symbols-copyright",
|
|
269
|
+
"rule": "symbols",
|
|
270
|
+
"mode": "text",
|
|
271
|
+
"in": "(c) 2026",
|
|
272
|
+
"out": "© 2026",
|
|
273
|
+
"note": "The (c) sequence becomes the copyright sign."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "da-apostrophe-foreign-name",
|
|
277
|
+
"rule": "apostrophe",
|
|
278
|
+
"mode": "text",
|
|
279
|
+
"in": "O'Brien kom.",
|
|
280
|
+
"out": "O’Brien kom.",
|
|
281
|
+
"note": "A typewriter apostrophe inside a name becomes U+2019."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": "da-quote-punctuation-none",
|
|
285
|
+
"rule": "quote-punctuation",
|
|
286
|
+
"rules": {
|
|
287
|
+
"quote-punctuation": true
|
|
288
|
+
},
|
|
289
|
+
"mode": "text",
|
|
290
|
+
"in": "alfa »beta«, gamma",
|
|
291
|
+
"out": "alfa »beta«, gamma",
|
|
292
|
+
"note": "Dansk Sprognævn, Retskrivningsreglerne §59(4): punctuationPlacement is none, so the comma is left where it stands."
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"spec": "1.26.0",
|
|
3
|
+
"locale": "et",
|
|
4
|
+
"cases": [
|
|
5
|
+
{
|
|
6
|
+
"id": "et-quotes-primary",
|
|
7
|
+
"rule": "quotes",
|
|
8
|
+
"mode": "text",
|
|
9
|
+
"in": "Ta ütles: \"Mul on igav.\" ja läks.",
|
|
10
|
+
"out": "Ta ütles: „Mul on igav.“ ja läks.",
|
|
11
|
+
"note": "EKI, Eesti keele õigekirja põhireeglid R37: low-opening „ and 66-shaped closing “; the full stop of direct speech stays inside."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "et-quotes-nested-same-pair",
|
|
15
|
+
"rule": "quotes",
|
|
16
|
+
"mode": "text",
|
|
17
|
+
"in": "Ta ütles: \"Õpetaja ütles: \"Ega hinne parane.\" Mis siis?\"",
|
|
18
|
+
"out": "Ta ütles: „Õpetaja ütles: „Ega hinne parane.“ Mis siis?“",
|
|
19
|
+
"note": "Põhireeglid R38 Märkus 1 and R51 Märkus 2: a quotation inside a quotation takes the same pair; the same pair at both levels is the pin."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "et-quotes-nested-with-words",
|
|
23
|
+
"rule": "quotes",
|
|
24
|
+
"mode": "text",
|
|
25
|
+
"in": "Ta ütles: \"See on 'tsitaat' raamatust\" ja läks.",
|
|
26
|
+
"out": "Ta ütles: „See on „tsitaat“ raamatust“ ja läks.",
|
|
27
|
+
"note": "Põhireeglid R51 Märkus 2 permits a nested quotation; no read source uses single marks, so single straight inner quotes become the same pair (a pin)."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "et-quotes-already-typeset",
|
|
31
|
+
"rule": "quotes",
|
|
32
|
+
"mode": "text",
|
|
33
|
+
"in": "Ta ütles „jah“ ja läks.",
|
|
34
|
+
"out": "Ta ütles „jah“ ja läks.",
|
|
35
|
+
"note": "Põhireeglid R37: text already carrying U+201E/U+201C is a fixed point."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "et-quotes-old-closer-input",
|
|
39
|
+
"rule": "quotes",
|
|
40
|
+
"mode": "text",
|
|
41
|
+
"in": "Ta ütles „jah” ja läks.",
|
|
42
|
+
"out": "Ta ütles „jah“ ja läks.",
|
|
43
|
+
"note": "Raadik, Keelenõuanne soovitab 5, p. 227: ÕS 2013 abandoned the „…” form; a U+201D closer typed by the author is normalised to the pinned U+201C."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "et-quotes-angle-input",
|
|
47
|
+
"rule": "quotes",
|
|
48
|
+
"mode": "text",
|
|
49
|
+
"in": "Ta ütles «jah» ja läks.",
|
|
50
|
+
"out": "Ta ütles „jah“ ja läks.",
|
|
51
|
+
"note": "« » is ranked second by EVS 8:2008 (Raadik, Keelenõuanne soovitab 5, p. 227); it is normalised to the pinned pair."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "et-quotes-no-inner-space",
|
|
55
|
+
"rule": "quotes",
|
|
56
|
+
"mode": "text",
|
|
57
|
+
"in": "Ta ütles: \" jah \" ja läks.",
|
|
58
|
+
"out": "Ta ütles: „jah“ ja läks.",
|
|
59
|
+
"note": "Põhireeglid examples are closed: innerSpace is none."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "et-quotes-nest-at-end-declined",
|
|
63
|
+
"rule": "quotes",
|
|
64
|
+
"mode": "text",
|
|
65
|
+
"in": "Ta ütles: \"See on 'tsitaat'\" ja läks.",
|
|
66
|
+
"out": "Ta ütles: \"See on ’tsitaat'\" ja läks.",
|
|
67
|
+
"note": "ACCEPTED COST of the identical pair: a nest whose inner mark touches the outer one is declined (quotes.md §6, §3.2 V1); the inner apostrophe-shaped mark is left to the apostrophe rule."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "et-quotes-nest-at-start-declined",
|
|
71
|
+
"rule": "quotes",
|
|
72
|
+
"mode": "text",
|
|
73
|
+
"in": "Ta ütles: \"'Tsitaat' on\" ja läks.",
|
|
74
|
+
"out": "Ta ütles: \"'Tsitaat’ on\" ja läks.",
|
|
75
|
+
"note": "ACCEPTED COST of the identical pair: the nest opens against the outer opener, so it is declined (quotes.md §6, §3.2 V1)."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "et-ellipsis-three-dots",
|
|
79
|
+
"rule": "ellipsis",
|
|
80
|
+
"mode": "text",
|
|
81
|
+
"in": "Oota... ja siis.",
|
|
82
|
+
"out": "Oota… ja siis.",
|
|
83
|
+
"note": "Three dots become the ellipsis character (Põhireeglid R56, mõttepunktid)."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "et-ellipsis-after-question",
|
|
87
|
+
"rule": "ellipsis",
|
|
88
|
+
"mode": "text",
|
|
89
|
+
"in": "Järsku tuuakse veel midagi?...",
|
|
90
|
+
"out": "Järsku tuuakse veel midagi?…",
|
|
91
|
+
"note": "Raadik, Märgikobarad (Oma Keel 2/2022) p. 54: «huvitavatki?…» keeps the dots after the question mark, so abbreviatedAfterTerminal is false."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "et-ellipsis-after-exclamation",
|
|
95
|
+
"rule": "ellipsis",
|
|
96
|
+
"mode": "text",
|
|
97
|
+
"in": "Hoidku selle eest!...",
|
|
98
|
+
"out": "Hoidku selle eest!…",
|
|
99
|
+
"note": "Raadik, Märgikobarad p. 55: «Küsi- ja hüüumärk säilivad ning lause lõpus võivad nad olla nii mõttepunktide ees kui ka järel»; p. 56 «kurat!…». No two-dot form after «!» is attested."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "et-dashes-parenthetical",
|
|
103
|
+
"rule": "dashes",
|
|
104
|
+
"mode": "text",
|
|
105
|
+
"in": "Nüüd - tõsi küll - oleme siin.",
|
|
106
|
+
"out": "Nüüd – tõsi küll – oleme siin.",
|
|
107
|
+
"note": "Mäekivi, Raadik, Keelenõuanne soovitab 4, p. 194; Põhireeglid R53–54: en dash with a space on both sides."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "et-dashes-em-input",
|
|
111
|
+
"rule": "dashes",
|
|
112
|
+
"mode": "text",
|
|
113
|
+
"in": "Nüüd — tõsi küll — oleme siin.",
|
|
114
|
+
"out": "Nüüd – tõsi küll – oleme siin.",
|
|
115
|
+
"note": "ESA vormistusnõuded: the en dash is the dash in a sentence; an em dash is normalised by this pin (no read source excludes U+2014)."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "et-dashes-existing-en",
|
|
119
|
+
"rule": "dashes",
|
|
120
|
+
"mode": "text",
|
|
121
|
+
"in": "Nüüd – tõsi küll – oleme siin.",
|
|
122
|
+
"out": "Nüüd – tõsi küll – oleme siin.",
|
|
123
|
+
"note": "An en dash already in place is a fixed point."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "et-ranges-digits-tight",
|
|
127
|
+
"rule": "ranges",
|
|
128
|
+
"mode": "text",
|
|
129
|
+
"in": "1986-1989 ja 30-35 aastat",
|
|
130
|
+
"out": "1986–1989 ja 30–35 aastat",
|
|
131
|
+
"note": "Mäekivi, Raadik 2008 p. 195: «1986–1989», en dash, no spaces; the en-tight form carries U+2060 either side (ranges.md §3).",
|
|
132
|
+
"rules": {
|
|
133
|
+
"ranges": true
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "et-ranges-already-tight",
|
|
138
|
+
"rule": "ranges",
|
|
139
|
+
"mode": "text",
|
|
140
|
+
"in": "2001–2006",
|
|
141
|
+
"out": "2001–2006",
|
|
142
|
+
"note": "An en dash already between digits is left as it is (ranges.md §3).",
|
|
143
|
+
"rules": {
|
|
144
|
+
"ranges": true
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "et-ranges-word-hyphen-untouched",
|
|
149
|
+
"rule": "ranges",
|
|
150
|
+
"mode": "text",
|
|
151
|
+
"in": "Lääne-Virumaa",
|
|
152
|
+
"out": "Lääne-Virumaa",
|
|
153
|
+
"note": "A hyphen between words is not a range (ranges.md §3).",
|
|
154
|
+
"rules": {
|
|
155
|
+
"ranges": true
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "et-hyphen-noop",
|
|
160
|
+
"rule": "hyphen",
|
|
161
|
+
"mode": "text",
|
|
162
|
+
"in": "Lääne-Virumaa ja e-post",
|
|
163
|
+
"out": "Lääne-Virumaa ja e-post",
|
|
164
|
+
"note": "Põhireeglid R59–61: no closed list of unbreakable forms, so the hyphen rule changes nothing."
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "et-nbsp-spaced-units",
|
|
168
|
+
"rule": "nbsp",
|
|
169
|
+
"mode": "text",
|
|
170
|
+
"in": "Maksab 15 € ja 3 km ja 10 kg ja 25 cm ja 7 ha ja –6 °C",
|
|
171
|
+
"out": "Maksab 15 € ja 3 km ja 10 kg ja 25 cm ja 7 ha ja –6 °C",
|
|
172
|
+
"note": "Põhireeglid R36: «30 g, 15 €, –6 °C»; Rehemaa p. 26: number and unit stay on one line."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "et-nbsp-single-letter-unit-inert",
|
|
176
|
+
"rule": "nbsp",
|
|
177
|
+
"mode": "text",
|
|
178
|
+
"in": "5 m ja 3 g ja 7 a laps",
|
|
179
|
+
"out": "5 m ja 3 g ja 7 a laps",
|
|
180
|
+
"note": "Single-letter units are excluded by DECISION (they are also common words; nbsp.md §3.7); ACCEPTED COST: «4 m», «7 a» stay unbound."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "et-nbsp-closed-units",
|
|
184
|
+
"rule": "nbsp",
|
|
185
|
+
"mode": "text",
|
|
186
|
+
"in": "9 % ja 0,4 ‰",
|
|
187
|
+
"out": "9% ja 0,4‰",
|
|
188
|
+
"note": "Põhireeglid R36 Märkus 2: «9%, 0,4‰» are written closed; closedUnits deletes the space."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "et-nbsp-spaced-unit-inserted",
|
|
192
|
+
"rule": "nbsp",
|
|
193
|
+
"mode": "text",
|
|
194
|
+
"in": "Hind 15€ siin",
|
|
195
|
+
"out": "Hind 15 € siin",
|
|
196
|
+
"note": "nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "et-nbsp-abbreviations-inert",
|
|
200
|
+
"rule": "nbsp",
|
|
201
|
+
"mode": "text",
|
|
202
|
+
"in": "See on k.a ja v.a ja nt ja jne",
|
|
203
|
+
"out": "See on k.a ja v.a ja nt ja jne",
|
|
204
|
+
"note": "Mäekivi, Raadik p. 193 and Põhireeglid R63 Märkus 1: Estonian abbreviations carry no internal space, so abbreviations is empty and nothing is bound."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "et-nbsp-before-number-inert",
|
|
208
|
+
"rule": "nbsp",
|
|
209
|
+
"mode": "text",
|
|
210
|
+
"in": "määrus nr 144 ja vt lk 30",
|
|
211
|
+
"out": "määrus nr 144 ja vt lk 30",
|
|
212
|
+
"note": "The space is attested (Mäekivi, Raadik p. 192; Rehemaa p. 28) but no read source makes it non-breaking, so beforeNumber is empty."
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"id": "et-nbsp-initials-inert",
|
|
216
|
+
"rule": "nbsp",
|
|
217
|
+
"mode": "text",
|
|
218
|
+
"in": "F. R. Kreutzwald ja A. Värnik",
|
|
219
|
+
"out": "F. R. Kreutzwald ja A. Värnik",
|
|
220
|
+
"note": "Mäekivi, Raadik p. 192 attests the space after an initial but not its non-breaking form, so initialBinding is none."
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "et-spaces-before-punctuation",
|
|
224
|
+
"rule": "spaces",
|
|
225
|
+
"mode": "text",
|
|
226
|
+
"in": "Mis siis ? Ei tea !",
|
|
227
|
+
"out": "Mis siis? Ei tea!",
|
|
228
|
+
"note": "Mäekivi, Raadik, Keelenõuanne soovitab 4, p. 191: «Koma, punkti, kooloni, semikooloni, küsimärgi ja hüüumärgi ette lauses tühikut ei panda»; nbsp.beforePunctuation is empty, so the space is removed, not bound."
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "et-spaces-brackets",
|
|
232
|
+
"rule": "spaces",
|
|
233
|
+
"mode": "text",
|
|
234
|
+
"in": "Ta ( vaikselt ) läks .",
|
|
235
|
+
"out": "Ta (vaikselt) läks.",
|
|
236
|
+
"note": "Spaces inside brackets and before a full stop are removed."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"id": "et-symbols-copyright",
|
|
240
|
+
"rule": "symbols",
|
|
241
|
+
"mode": "text",
|
|
242
|
+
"in": "(c) 2026",
|
|
243
|
+
"out": "© 2026",
|
|
244
|
+
"note": "(c) becomes the copyright sign."
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "et-apostrophe-case-ending",
|
|
248
|
+
"rule": "apostrophe",
|
|
249
|
+
"mode": "text",
|
|
250
|
+
"in": "Youtube'ist ja tõest'",
|
|
251
|
+
"out": "Youtube’ist ja tõest’",
|
|
252
|
+
"note": "Põhireeglid R57 and Märkus 4: a straight apostrophe becomes U+2019."
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"id": "et-quote-punctuation-none",
|
|
256
|
+
"rule": "quote-punctuation",
|
|
257
|
+
"mode": "text",
|
|
258
|
+
"in": "alfa „beta“, gamma",
|
|
259
|
+
"out": "alfa „beta“, gamma",
|
|
260
|
+
"note": "Põhireeglid R37 vs R38; Raadik, «Kuidas vormistada tsitaati?», KS5 p. 218: placement depends on meaning, so punctuationPlacement is none and the rule leaves the text alone.",
|
|
261
|
+
"rules": {
|
|
262
|
+
"quote-punctuation": true
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.26.0",
|
|
3
3
|
"cases": [
|
|
4
4
|
{
|
|
5
5
|
"id": "exact-en-us",
|
|
@@ -294,6 +294,18 @@
|
|
|
294
294
|
"tag": "lv-LV",
|
|
295
295
|
"resolves": "lv",
|
|
296
296
|
"note": "section 3.4 step 3a: the region strip reaches lv, which needs no registry alias."
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "strip-et-ee",
|
|
300
|
+
"tag": "et-EE",
|
|
301
|
+
"resolves": "et",
|
|
302
|
+
"note": "section 3.4 step 3a: the region strip reaches et, which needs no registry alias."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "strip-da-dk",
|
|
306
|
+
"tag": "da-DK",
|
|
307
|
+
"resolves": "da",
|
|
308
|
+
"note": "section 3.4 step 3a: the region strip reaches da, which needs no registry alias."
|
|
297
309
|
}
|
|
298
310
|
]
|
|
299
311
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "da",
|
|
3
|
+
"name": "Danish",
|
|
4
|
+
"quotes": {
|
|
5
|
+
"primary": {
|
|
6
|
+
"open": "»",
|
|
7
|
+
"close": "«",
|
|
8
|
+
"innerSpace": "none"
|
|
9
|
+
},
|
|
10
|
+
"secondary": {
|
|
11
|
+
"open": "›",
|
|
12
|
+
"close": "‹",
|
|
13
|
+
"innerSpace": "none"
|
|
14
|
+
},
|
|
15
|
+
"punctuationPlacement": "none",
|
|
16
|
+
"elisionIdioms": [],
|
|
17
|
+
"elisionClitics": {
|
|
18
|
+
"before": [],
|
|
19
|
+
"after": []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dash": {
|
|
23
|
+
"parenthetical": "en-spaced",
|
|
24
|
+
"range": "none"
|
|
25
|
+
},
|
|
26
|
+
"ellipsis": {
|
|
27
|
+
"abbreviatedAfterTerminal": false
|
|
28
|
+
},
|
|
29
|
+
"hyphen": {
|
|
30
|
+
"prefixes": [],
|
|
31
|
+
"suffixes": [],
|
|
32
|
+
"compounds": []
|
|
33
|
+
},
|
|
34
|
+
"nbsp": {
|
|
35
|
+
"beforePunctuation": [],
|
|
36
|
+
"narrowBeforePunctuation": [],
|
|
37
|
+
"afterShortWords": [],
|
|
38
|
+
"abbreviations": [],
|
|
39
|
+
"beforeUnits": [],
|
|
40
|
+
"spacedUnits": ["%", "kr", "€", "km", "kg", "cm", "ha"],
|
|
41
|
+
"closedUnits": [],
|
|
42
|
+
"beforeNumber": [],
|
|
43
|
+
"beforeWord": [],
|
|
44
|
+
"afterSymbols": [],
|
|
45
|
+
"initialBinding": "none"
|
|
46
|
+
},
|
|
47
|
+
"sources": [
|
|
48
|
+
{
|
|
49
|
+
"rule": "quotes",
|
|
50
|
+
"cite": "Dansk Sprognævn, Retskrivningsreglerne, text of Retskrivningsordbogen 4. udg. (2012), read on the sproget.dk editing mirror (the public rule pages are not online at their old addresses); Nyt fra Sprognævnet 2025/1, p. 8, reports no major rule changes in RO 5. udg. (2024) other than §38, §45 and §§31–35, and Oversigt over ændringer i retskrivningsreglerne 2025 (RO 5 → RO 5.1) changes §58 only in the §58.1 example and §58.2, so that the text read still stands in RO 5.1 is an inference: §58 Anførselstegn: «Der er følgende hovedformer: »...« og \"...\"; mindre benyttede er de enkelte (ufordoblede) anførselstegn: ›...‹ eller ‘...’», «man i øvrigt bruger samme type anførselstegn i hele teksten», (4) «Enkelte (ufordoblede) anførselstegn kan bruges ved ord der står i en større sammenhæng som selv er omgivet af anførselstegn»; §59(4): punktum and komma «kan valgfrit sættes foran eller efter anførselstegnet»; Retskrivningsvejledning for Folketingstidende, 2. udg. (2013), Anførselstegn chapter pp. 17–26; Oversigt 2025 §47.3.b and §58.1",
|
|
51
|
+
"url": "https://rediger.sproget.dk/raad-og-regler/Retskrivningsregler/retskrivningsregler/a7-40-60/a7-58-anforselstegn",
|
|
52
|
+
"note": "PICK-AND-PIN: »…« (U+00BB open, U+00AB close) with ›…‹ (U+203A, U+2039) inside. §58 names two principal forms, »…« and a double-quote form whose code points the mirror text does not show, and ranks neither. The issue's «…» lead (U+00AB as the opener) is refuted: every source read that uses guillemets opens with U+00BB. »…« is pinned because §58 lists it first, every §59 example of direct speech uses it («»Nej,« svarede hun»), the Folketingstidende guide uses it throughout its Anførselstegn chapter (pp. 17–26), and `sl` ships the same pair. The rival ”…” (U+201D both sides, read from page images) is used in the examples the 2025 change list adds to §47.3.b («”Hejsa, Peter!”»), already in the §58.1 example of RO 5 (2024) retained in RO 5.1 («”godmorgen!”»), and in the Digitaliseringsstyrelsen web guide (Skrivevejledning for borger.dk, last updated 05-08-2026, p. 67); it is normalised to the pinned pair. ›…‹ for the inner level: §58 lists the single forms ›...‹ and ‘...’ as less used and §58(4) allows single marks for a quotation inside a quotation, but the inner marks of its example are straight in the mirror text, so the choice between the two single forms is a pin; Folketingstidende instead nests by doubling », and no source read states ›…‹ as the inner mark of »…«. innerSpace none: no example carries a space inside the marks. punctuationPlacement none: §59(4) allows the full stop or comma before or after the closing mark and requires the position after it for a quotation inside a sentence, so placement depends on meaning. elisionIdioms and elisionClitics empty: not addressed. Retrieved 2026-11-14."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"rule": "dashes",
|
|
56
|
+
"cite": "Dansk Sprognævn, Retskrivningsreglerne, text of Retskrivningsordbogen 4. udg. (2012), read on the sproget.dk editing mirror (the public rule pages are not online at their old addresses); Nyt fra Sprognævnet 2025/1, p. 8, reports no major rule changes in RO 5. udg. (2024) other than §38, §45 and §§31–35, and Oversigt over ændringer i retskrivningsreglerne 2025 (RO 5 → RO 5.1) changes §58 only in the §58.1 example and §58.2, so that the text read still stands in RO 5.1 is an inference: §55 Tankestreg: «skrives eller trykkes med afstand (spatium) til de omgivende ord»; Digitaliseringsstyrelsen, Skrivevejledning for borger.dk og lifeindenmark.dk (last updated 05-08-2026; file «version 5»), pp. 66–67: «Tankestreg på PC Alt + 0150», example «lægeskift – kan»; Retskrivningsvejledning for Folketingstidende (2013), pp. 121–122",
|
|
57
|
+
"url": "https://rediger.sproget.dk/raad-og-regler/Retskrivningsregler/retskrivningsregler/a7-40-60/a7-55-tankestreg",
|
|
58
|
+
"note": "dash.parenthetical = en-spaced (U+0020 U+2013 U+0020). The spacing is stated by §55, which says only that the dash is typographically longer than the hyphen; the width U+2013 is read from the web guide (Alt+0150 is Windows-1252 0x96 = U+2013) and its example, and every Folketingstidende example is spaced. No source read mentions U+2014, so an em dash is normalised to the en dash by this pin, not by a citation. Retrieved 2026-11-14."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"rule": "ranges",
|
|
62
|
+
"cite": "Dansk Sprognævn, Retskrivningsreglerne, text of Retskrivningsordbogen 4. udg. (2012), read on the sproget.dk editing mirror (the public rule pages are not online at their old addresses); Nyt fra Sprognævnet 2025/1, p. 8, reports no major rule changes in RO 5. udg. (2024) other than §38, §45 and §§31–35, and Oversigt over ændringer i retskrivningsreglerne 2025 (RO 5 → RO 5.1) changes §58 only in the §58.1 example and §58.2, so that the text read still stands in RO 5.1 is an inference: §57.9 Bindestreg «I betydningen 'fra ... til'»: «København-Århus», «mandag-fredag 9-16», «200-300 deltagere»; a spaced tankestreg only «Mellem særlig lange ord og talangivelser»: «24. december 1994 – 6. januar 1995»; Digitaliseringsstyrelsen, Skrivevejledning for borger.dk, p. 59 (times): «Hvis du alligevel skriver klokkeslæt med bindestreg, bruger vi bindestreg og ikke tankestreg, og vi har ingen luft mellem tal og bindestreg»; Retskrivningsvejledning for Folketingstidende (2013), pp. 111–112: «2013-2014», «3-4 dage», «nr. 5-8»",
|
|
63
|
+
"url": "https://rediger.sproget.dk/raad-og-regler/Retskrivningsregler/retskrivningsregler/a7-40-60/a7-57-bindestreg",
|
|
64
|
+
"note": "dash.range = none. The Danish convention for «fra … til» is the hyphen U+002D without spaces, and the schema has no hyphen value; en-tight would rewrite the normative «9-16» as «9–16», so the token is left exactly as written. Retrieved 2026-11-14."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"rule": "ellipsis",
|
|
68
|
+
"cite": "Dansk Sprognævn, Oversigt over ændringer i retskrivningsreglerne 2025 (RO 5 → RO 5.1), §43 Prikker, column «Retskrivningsordbogen 5.1»: «Først var det kedeligt, men så ...!», «Var det nu også det hun sagde ..?»; «Hvis tøveprikkerne efterfølges af et sluttegn, sættes der ikke mellemrum mellem tøveprikkerne og sluttegnet»",
|
|
69
|
+
"url": "https://dsn.dk/wp-content/uploads/2025/12/Oversigt-over-aendringer-i-retskrivningsreglerne-2025-1.pdf",
|
|
70
|
+
"note": "abbreviatedAfterTerminal = false: the terminal mark follows the dots, so no source reduces the dots after ? or !. ACCEPTED COST: §43 allows two or more dots, including four («stilheden ....»); the ellipsis rule collapses a four-dot run to the ellipsis character, and a two-dot run is left as typed. Retrieved 2026-11-14."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"rule": "hyphen",
|
|
74
|
+
"cite": "Dansk Sprognævn, Retskrivningsreglerne, text of Retskrivningsordbogen 4. udg. (2012), read on the sproget.dk editing mirror (the public rule pages are not online at their old addresses); Nyt fra Sprognævnet 2025/1, p. 8, reports no major rule changes in RO 5. udg. (2024) other than §38, §45 and §§31–35, and Oversigt over ændringer i retskrivningsreglerne 2025 (RO 5 → RO 5.1) changes §58 only in the §58.1 example and §58.2, so that the text read still stands in RO 5.1 is an inference: §57 Bindestreg (1) «Bindestreg bruges ved deling af ord ved linjeskift (se § 15-17)»",
|
|
75
|
+
"url": "https://rediger.sproget.dk/raad-og-regler/Retskrivningsregler/retskrivningsregler/a7-40-60/a7-57-bindestreg",
|
|
76
|
+
"note": "All three lists are empty: the uses of the hyphen are described, but no closed list of forms that must not break is given. Retrieved 2026-11-14."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"rule": "nbsp",
|
|
80
|
+
"cite": "Dansk Sprognævn, Svarbase SV00000086 «procenttegn og mellemrum» (2006, edited 2015): «Vi anbefaler mellemrum mellem tallet og procenttegnet: 25 %»; SV00015797 «valutabetegnelser» (NfS 2014/3, edited 2022): «I løbende tekst står betegnelsen for møntenheden efter tallet» (10 kr., 15 $), written «med mellemrum fordi de repræsenterer et ord som man siger efter tallet»; Dansk Sprognævn, Retskrivningsreglerne, text of Retskrivningsordbogen 4. udg. (2012), read on the sproget.dk editing mirror (the public rule pages are not online at their old addresses), §42.1a (units without a full stop: cm, m, km, g, kg) and §42.5: «Der skrives ikke mellemrum mellem de enkelte dele af en forkortelse»; Retskrivningsvejledning for Folketingstidende (2013), pp. 49–52, 114 («17 ha», «2 kg», «5 kr.»); Digitaliseringsstyrelsen, Skrivevejledning for borger.dk, p. 58 («50 %», «7 %»)",
|
|
81
|
+
"url": "https://sproget.dk/raad-og-regler/artikler-mv/svarbase/SV00000086",
|
|
82
|
+
"note": "(1) spacedUnits = % kr € km kg cm ha: the Sprognævn recommends the space before % (the same entry notes economists and bookkeepers often write it closed up, which makes the spaced form a recommendation, not the only form; it is pinned, as in `sv`); the currency designation follows the number, and SV00015797 treats currency and unit designations like SI symbols (kg, MW); ha is attested in the Folketingstidende guide only. kr is listed without the full stop; the engine accepts a following full stop. $ is attested («15 $») and not listed, by decision. Single-letter units (m, g, l, t) are excluded because they are also common words and nbsp.md §3.7 forbids them. °C: the only Sprognævn entry read on the degree sign (SV00015408) concerns angles and says nothing on temperatures, so it is not listed. (2) closedUnits empty: no unit is written closed up by a stated rule. (3) abbreviations empty: Danish abbreviations are written without an inner space (§42.5: osv., m.m., el.lign., H.C. Andersen; Folketingstidende: bl.a., dvs., f.eks.), so there is nothing to bind; the issue's lead of f.eks., bl.a. and dvs. is refuted as candidates. initialBinding none: initials are written closed up. (4) beforePunctuation, narrowBeforePunctuation, afterShortWords, beforeUnits, beforeNumber, beforeWord and afterSymbols empty: no source read says any space is non-breaking; kl., nr., s. and § are attested before numbers without that statement. Not expressible and so not covered: the full stop as thousands marker («250.000 kr.», Digitaliseringsstyrelsen p. 58) and dates («den 6. juni 2025»). Retrieved 2026-11-14."
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "et",
|
|
3
|
+
"name": "Estonian",
|
|
4
|
+
"quotes": {
|
|
5
|
+
"primary": {
|
|
6
|
+
"open": "„",
|
|
7
|
+
"close": "“",
|
|
8
|
+
"innerSpace": "none"
|
|
9
|
+
},
|
|
10
|
+
"secondary": {
|
|
11
|
+
"open": "„",
|
|
12
|
+
"close": "“",
|
|
13
|
+
"innerSpace": "none"
|
|
14
|
+
},
|
|
15
|
+
"punctuationPlacement": "none",
|
|
16
|
+
"elisionIdioms": [],
|
|
17
|
+
"elisionClitics": {
|
|
18
|
+
"before": [],
|
|
19
|
+
"after": []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dash": {
|
|
23
|
+
"parenthetical": "en-spaced",
|
|
24
|
+
"range": "en-tight"
|
|
25
|
+
},
|
|
26
|
+
"ellipsis": {
|
|
27
|
+
"abbreviatedAfterTerminal": false
|
|
28
|
+
},
|
|
29
|
+
"hyphen": {
|
|
30
|
+
"prefixes": [],
|
|
31
|
+
"suffixes": [],
|
|
32
|
+
"compounds": []
|
|
33
|
+
},
|
|
34
|
+
"nbsp": {
|
|
35
|
+
"beforePunctuation": [],
|
|
36
|
+
"narrowBeforePunctuation": [],
|
|
37
|
+
"afterShortWords": [],
|
|
38
|
+
"abbreviations": [],
|
|
39
|
+
"beforeUnits": [],
|
|
40
|
+
"spacedUnits": ["€", "km", "kg", "cm", "ha", "°C"],
|
|
41
|
+
"closedUnits": ["%", "‰"],
|
|
42
|
+
"beforeNumber": [],
|
|
43
|
+
"beforeWord": [],
|
|
44
|
+
"afterSymbols": [],
|
|
45
|
+
"initialBinding": "none"
|
|
46
|
+
},
|
|
47
|
+
"sources": [
|
|
48
|
+
{
|
|
49
|
+
"rule": "quotes",
|
|
50
|
+
"cite": "Eesti Keele Instituut, Eesti keele õigekirja põhireeglid (2025; heaks kiidetud Emakeele Seltsi keeletoimkonnas 6.03.2024), REEGEL 37, 38 Märkus 1, 51 Märkus 2; M. Raadik, «Mis kujuga on jutumärgid?», Keelenõuanne soovitab 5 (2015), lk 227 (= Oma Keel 2014, nr 2): «Selle sihiga on 2013. a ÕS loobunud 2006. a valitud märkidest [„ ”] ning rakendanud kuju [„ “], millel on eesti keeles kõige tugevam traditsioon»; Põhireeglid R37: «Mari ütles: „Mul on igav.“»; R51 Märkus 2: «Ühtede jutumärkide sees võivad olla ka teised»",
|
|
51
|
+
"url": "https://eki.ee/wp-content/uploads/2025/08/Eesti-keele-oigekirja-pohireeglid.pdf",
|
|
52
|
+
"note": "PICK-AND-PIN of the code points: U+201E…U+201C (low-9 opener, 66-shaped closer). The closer U+201D belongs to the ÕS 2006 form that ÕS 2013 abandoned (Raadik, KS5 p. 227); the issue's „…” lead is therefore refuted. The code points were read from glyph shapes and the verbal description «„99 all ja 66 üleval“» (Emakeele Seltsi aastaraamatu vormistusnõuded, 20.06.2026, journal house style, corroboration only), not from a text layer of the Põhireeglid PDF (it has none); the text layers of KS5 pp. 213–218 and 226–227 and of Oma Keel 2/2022 carry U+201E…U+201C (the ÕS 2006 pair is U+201E…U+201D). Secondary equals primary: R51 Märkus 2 permits («võivad») a quotation inside a quotation and R38 Märkus 1 shows «„Õpetaja ütles: „Ega hinne … parandada.““»; no read source uses single marks for it, so this is a pin, not a stated requirement. ACCEPTED COST of the identical pair: a nest whose inner mark touches the outer one is declined (quotes.md §6, §3.2 V1), pinned by fixtures. « » is ranked second by EVS 8:2008 as reported by Raadik (not read) and is normalised to the pinned pair. innerSpace none: every Põhireeglid example is closed up; no source states the rule in words. Märgikobarad (Oma Keel 2/2022) p. 60, «Kõrvutiste jutumärkide vahele üldiselt tühikut ei panda», concerns two adjacent marks, which supports the nested pair standing flush. punctuationPlacement none: the full stop stands inside for direct speech (R37) and is dropped for a quotation inside a sentence (R38; M. Raadik, «Kuidas vormistada tsitaati?», KS5 p. 218), so placement depends on meaning. elisionIdioms and elisionClitics empty: apostrophe elision (R57 Märkus 4: tõest’, a’al, on’s) and case-ending apostrophes (Youtube’ist) are open classes. The Eesti keele käsiraamat was not reachable (both URLs returned 404) and is not cited. Retrieved 2026-11-14."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"rule": "dashes",
|
|
56
|
+
"cite": "H. Mäekivi, M. Raadik, «See tühine tühik», Keelenõuanne soovitab 4 (2008), lk 194: «Kõigil neil juhtudel kirjutatakse mõttekriips mõlemalt poolt lahku (kuid näiteks järgneva komaga kokku)»; Põhireeglid REEGEL 53–54",
|
|
57
|
+
"url": "https://keeleabi.eki.ee/pdf/191.pdf",
|
|
58
|
+
"note": "dash.parenthetical = en-spaced (U+0020 U+2013 U+0020). Spacing is stated by Mäekivi and Raadik; the width U+2013 is read from the REEGEL 53–54 examples («varuosad – kõik», «Nüüd – tõsi küll – oleme») and corroborated by the Emakeele Seltsi vormistusnõuded: «poolpikk, nn enn-kriips (–) … Sama poolpikka kriipsu kasutatakse ka lauses mõttekriipsuna». No read Estonian source states an exclusion of U+2014, so an em dash is normalised to the en dash by this pin, not by a citation. Retrieved 2026-11-14."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"rule": "ranges",
|
|
62
|
+
"cite": "H. Mäekivi, M. Raadik, «See tühine tühik», Keelenõuanne soovitab 4 (2008), lk 195: «Sõna kuni asendav mõttekriips enda ette ega taha üldjuhul tühikut ei nõua: … 75–100 mm», «1986–1989»; T. Rehemaa, Arvukirjutus (2. tr, 2020), lk 38, 53",
|
|
63
|
+
"url": "https://keeleabi.eki.ee/pdf/191.pdf",
|
|
64
|
+
"note": "dash.range = en-tight (U+2013, no spaces). A spaced form is permitted when a number itself contains a space («8000 – 10 000 eurot ~ 8000–10 000 eurot», Rehemaa p. 38); the closed form is pinned. The en dash stands for «kuni» only; a hyphen between consecutive ordinals means «ja» («1.-2. jaanuar», R60), and dotted flanks are not range candidates (an algorithm limit, not data). The ranges rule is off by default. Retrieved 2026-11-14."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"rule": "ellipsis",
|
|
68
|
+
"cite": "M. Raadik, «Märgikobarad», Oma Keel 2/2022, lk 54, 60: «Küll säilivad mõttepunktide kõrval küsi- ja hüüumärk … Järsku tuuakse veel midagi huvitavatki?…»; Põhireeglid REEGEL 56",
|
|
69
|
+
"url": "https://www.emakeeleselts.ee/wp-content/uploads/2022/12/raadik_OK_2022-2.pdf",
|
|
70
|
+
"note": "abbreviatedAfterTerminal = false: the dots stay after ? and ! and no read source reduces them to two. Estonian philological omission marks («katkestuspunktid», two or four dots; Mäekivi and Raadik 2008 p. 198) are a different mark; the ellipsis rule collapses a four-dot run to the ellipsis character, an accepted cost for such texts. Retrieved 2026-11-14."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"rule": "hyphen",
|
|
74
|
+
"cite": "Põhireeglid REEGEL 17 (poolitamine), 59–61 (sidekriips)",
|
|
75
|
+
"url": "https://eki.ee/wp-content/uploads/2025/08/Eesti-keele-oigekirja-pohireeglid.pdf",
|
|
76
|
+
"note": "All three lists are empty: hyphenation and the uses of the hyphen are described, but no closed list of unbreakable hyphenated forms is given. Retrieved 2026-11-14."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"rule": "nbsp",
|
|
80
|
+
"cite": "Põhireeglid REEGEL 36 ja Märkus 2: «eraldatakse lühend või tähis numbriga kirjutatud arvust tühikuga (nt 30 g, 15 €, –6 °C, 10 m² tuba, 7 a laps, § 5 ~ 5. §)», «Arvuga kokku kirjutatakse kraadimärk, … protsendi-, promillimärk (nt 4° sooja, … 9%, 0,4‰)»; T. Rehemaa, Arvukirjutus (2. tr, 2020), lk 26: «Arv ja lühend tuleb mahutada ühele reale. Poolitamatu tühiku saab Wordi programmis, kui valida Ctrl + Shift + tühikuklahv.», lk 27: «15 °C (mitte: „15° C“)»; Mäekivi, Raadik 2008 lk 191, 193, 204",
|
|
81
|
+
"url": "https://eki.ee/wp-content/uploads/2025/08/Eesti-keele-oigekirja-pohireeglid.pdf",
|
|
82
|
+
"note": "(1) beforePunctuation and narrowBeforePunctuation empty: a stated negative, «Koma, punkti, kooloni, semikooloni, küsimärgi ja hüüumärgi ette lauses tühikut ei panda» (Mäekivi, Raadik p. 191). (2) spacedUnits = € km kg cm ha °C: R36 (€, °C) and Rehemaa pp. 26, 30, 44, 46 (kg, ha, cm, km); the one-line rule keeps number and unit together (Rehemaa p. 26). Not listed though attested: °F, Hz, dl, px (by DECISION, no closed set is stated), and EUR (not attested). Single-letter units (m, g, l, t, s, a) are excluded because they are also common words and nbsp.md §3.7 forbids them; ACCEPTED COST: Mäekivi and Raadik's own «4 m» and «2005. a» (p. 204) stay unbound. (3) closedUnits = % and ‰ (R36 Märkus 2). ACCEPTED COST: Rehemaa p. 27 tolerates a space before % in specialised texts, which N5 will delete. A bare ° is in no list in any locale (nbsp.md §3.7). (4) abbreviations empty: Estonian lowercase abbreviations are written without internal spaces (k.a, s.o, v.a, e.m.a, R63 Märkus 1; Mäekivi, Raadik p. 193), so there is no space to bind; the issue's jne, nt, vt lead is refuted. Foreign-origin abbreviations do carry one («a. D.», «P. S.», p. 193) but no source makes it non-breaking, so they are not listed: ACCEPTED COST. (5) beforeNumber, afterSymbols and initialBinding left empty or none: the space is attested («määrus nr 144» (Mäekivi, Raadik p. 192), «vt lk 30–33» (Rehemaa p. 28), «§ 5 ~ 5. §» (R36; Mäekivi, Raadik p. 199), «A. Värnik, … F. R. Kreutzwald» (Mäekivi, Raadik p. 192)) but no read source says it is non-breaking, and unverified lists ship empty. (6) afterShortWords, beforeUnits and beforeWord empty: not addressed. Not expressible and so not covered: digit groups («10 000», Mäekivi, Raadik p. 204), «2005. a», «5. §». Retrieved 2026-11-14."
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.26.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",
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
"sr",
|
|
30
30
|
"sl",
|
|
31
31
|
"lt",
|
|
32
|
-
"lv"
|
|
32
|
+
"lv",
|
|
33
|
+
"et",
|
|
34
|
+
"da"
|
|
33
35
|
],
|
|
34
36
|
"aliases": {
|
|
35
37
|
"en": "en-US",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.26.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
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.
|
|
4
|
+
version: 1.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Iurii Rogulia
|
|
@@ -42,12 +42,14 @@ files:
|
|
|
42
42
|
- lib/polytypo/data/VERSION
|
|
43
43
|
- lib/polytypo/data/fixtures/bg.json
|
|
44
44
|
- lib/polytypo/data/fixtures/cs.json
|
|
45
|
+
- lib/polytypo/data/fixtures/da.json
|
|
45
46
|
- lib/polytypo/data/fixtures/de-CH.json
|
|
46
47
|
- lib/polytypo/data/fixtures/de-DE.json
|
|
47
48
|
- lib/polytypo/data/fixtures/el.json
|
|
48
49
|
- lib/polytypo/data/fixtures/en-GB.json
|
|
49
50
|
- lib/polytypo/data/fixtures/en-US.json
|
|
50
51
|
- lib/polytypo/data/fixtures/es.json
|
|
52
|
+
- lib/polytypo/data/fixtures/et.json
|
|
51
53
|
- lib/polytypo/data/fixtures/fi.json
|
|
52
54
|
- lib/polytypo/data/fixtures/fr-CA.json
|
|
53
55
|
- lib/polytypo/data/fixtures/fr.json
|
|
@@ -71,12 +73,14 @@ files:
|
|
|
71
73
|
- lib/polytypo/data/fixtures/uk.json
|
|
72
74
|
- lib/polytypo/data/locales/bg.json
|
|
73
75
|
- lib/polytypo/data/locales/cs.json
|
|
76
|
+
- lib/polytypo/data/locales/da.json
|
|
74
77
|
- lib/polytypo/data/locales/de-CH.json
|
|
75
78
|
- lib/polytypo/data/locales/de-DE.json
|
|
76
79
|
- lib/polytypo/data/locales/el.json
|
|
77
80
|
- lib/polytypo/data/locales/en-GB.json
|
|
78
81
|
- lib/polytypo/data/locales/en-US.json
|
|
79
82
|
- lib/polytypo/data/locales/es.json
|
|
83
|
+
- lib/polytypo/data/locales/et.json
|
|
80
84
|
- lib/polytypo/data/locales/fi.json
|
|
81
85
|
- lib/polytypo/data/locales/fr-CA.json
|
|
82
86
|
- lib/polytypo/data/locales/fr.json
|