polytypo 1.20.1 → 1.22.1

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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/lib/polytypo/data/VERSION +1 -1
  3. data/lib/polytypo/data/fixtures/bg.json +23 -4
  4. data/lib/polytypo/data/fixtures/cs.json +20 -1
  5. data/lib/polytypo/data/fixtures/de-CH.json +23 -4
  6. data/lib/polytypo/data/fixtures/de-DE.json +124 -13
  7. data/lib/polytypo/data/fixtures/el.json +39 -4
  8. data/lib/polytypo/data/fixtures/en-GB.json +34 -7
  9. data/lib/polytypo/data/fixtures/en-US.json +988 -162
  10. data/lib/polytypo/data/fixtures/es.json +12 -1
  11. data/lib/polytypo/data/fixtures/fi.json +21 -2
  12. data/lib/polytypo/data/fixtures/fr-CA.json +20 -1
  13. data/lib/polytypo/data/fixtures/fr.json +57 -13
  14. data/lib/polytypo/data/fixtures/hr.json +20 -1
  15. data/lib/polytypo/data/fixtures/hu.json +39 -4
  16. data/lib/polytypo/data/fixtures/it.json +12 -1
  17. data/lib/polytypo/data/fixtures/locale-resolution.json +1 -1
  18. data/lib/polytypo/data/fixtures/lt.json +20 -1
  19. data/lib/polytypo/data/fixtures/nl.json +28 -1
  20. data/lib/polytypo/data/fixtures/pl.json +28 -1
  21. data/lib/polytypo/data/fixtures/pt-BR.json +20 -1
  22. data/lib/polytypo/data/fixtures/pt-PT.json +20 -1
  23. data/lib/polytypo/data/fixtures/ro.json +13 -2
  24. data/lib/polytypo/data/fixtures/ru.json +49 -6
  25. data/lib/polytypo/data/fixtures/sk.json +20 -1
  26. data/lib/polytypo/data/fixtures/sl.json +20 -1
  27. data/lib/polytypo/data/fixtures/sr.json +23 -4
  28. data/lib/polytypo/data/fixtures/sv.json +23 -4
  29. data/lib/polytypo/data/fixtures/tr.json +20 -1
  30. data/lib/polytypo/data/fixtures/uk.json +12 -1
  31. data/lib/polytypo/data/locales/bg.json +10 -1
  32. data/lib/polytypo/data/locales/cs.json +3 -0
  33. data/lib/polytypo/data/locales/de-CH.json +15 -1
  34. data/lib/polytypo/data/locales/de-DE.json +16 -1
  35. data/lib/polytypo/data/locales/el.json +10 -1
  36. data/lib/polytypo/data/locales/en-GB.json +16 -4
  37. data/lib/polytypo/data/locales/en-US.json +18 -11
  38. data/lib/polytypo/data/locales/es.json +3 -0
  39. data/lib/polytypo/data/locales/fi.json +9 -3
  40. data/lib/polytypo/data/locales/fr-CA.json +10 -1
  41. data/lib/polytypo/data/locales/fr.json +4 -1
  42. data/lib/polytypo/data/locales/hr.json +4 -1
  43. data/lib/polytypo/data/locales/hu.json +10 -1
  44. data/lib/polytypo/data/locales/it.json +3 -0
  45. data/lib/polytypo/data/locales/lt.json +13 -5
  46. data/lib/polytypo/data/locales/nl.json +11 -2
  47. data/lib/polytypo/data/locales/pl.json +11 -2
  48. data/lib/polytypo/data/locales/pt-BR.json +5 -2
  49. data/lib/polytypo/data/locales/pt-PT.json +6 -3
  50. data/lib/polytypo/data/locales/registry.json +1 -1
  51. data/lib/polytypo/data/locales/ro.json +3 -0
  52. data/lib/polytypo/data/locales/ru.json +10 -17
  53. data/lib/polytypo/data/locales/sk.json +8 -5
  54. data/lib/polytypo/data/locales/sl.json +4 -1
  55. data/lib/polytypo/data/locales/sr.json +10 -2
  56. data/lib/polytypo/data/locales/sv.json +9 -6
  57. data/lib/polytypo/data/locales/tr.json +5 -2
  58. data/lib/polytypo/data/locales/uk.json +3 -0
  59. data/lib/polytypo/data/rules/modes.md +2 -2
  60. data/lib/polytypo/data/rules/nbsp.md +271 -74
  61. data/lib/polytypo/data/rules/order.json +9 -1
  62. data/lib/polytypo/data/rules/pipeline-idempotency.md +76 -9
  63. data/lib/polytypo/data/rules/quote-punctuation.md +337 -0
  64. data/lib/polytypo/data/rules/quotes.md +23 -5
  65. data/lib/polytypo/data/rules/ranges.md +7 -1
  66. data/lib/polytypo/data/rules/spaces.md +4 -2
  67. data/lib/polytypo/data/rules/symbols.md +2 -1
  68. data/lib/polytypo/data/schema/fixtures.schema.json +1 -0
  69. data/lib/polytypo/data/schema/locale.schema.json +27 -2
  70. data/lib/polytypo/engine/locale.rb +22 -1
  71. data/lib/polytypo/engine/pipeline.rb +1 -1
  72. data/lib/polytypo/engine/rules/nbsp.rb +161 -11
  73. data/lib/polytypo/engine/rules/quote_punctuation.rb +79 -0
  74. data/lib/polytypo/engine/rules.rb +1 -0
  75. data/lib/polytypo/version.rb +1 -1
  76. metadata +3 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "es",
4
4
  "cases": [
5
5
  {
@@ -469,6 +469,17 @@
469
469
  "in": "Copyright (c) 2026, tamaño 40x60 cm",
470
470
  "out": "Copyright © 2026, tamaño 40×60 cm",
471
471
  "note": "symbols.md: «(c)» pasa a U+00A9 y la «x» entre cifras a U+00D7. El U+00A0 ante «cm» lo pone nbsp N5, no symbols; se deja en el mismo caso porque así se ve que las dos reglas componen."
472
+ },
473
+ {
474
+ "id": "es-quote-punctuation-none",
475
+ "rule": "quote-punctuation",
476
+ "mode": "text",
477
+ "in": "alpha «beta», gamma",
478
+ "out": "alpha «beta», gamma",
479
+ "rules": {
480
+ "quote-punctuation": true
481
+ },
482
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for es, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
472
483
  }
473
484
  ]
474
485
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "fi",
4
4
  "cases": [
5
5
  {
@@ -1185,7 +1185,7 @@
1185
1185
  "mode": "text",
1186
1186
  "in": "Matkaa on 20km rannikolle",
1187
1187
  "out": "Matkaa on 20km rannikolle",
1188
- "note": "N5 converts, never inserts."
1188
+ "note": "`km` is in beforeUnits for fi (only BIPM supports it): a typed space is bound, nothing is inserted."
1189
1189
  },
1190
1190
  {
1191
1191
  "id": "fi-nbsp-unit-already-bound",
@@ -1317,6 +1317,25 @@
1317
1317
  "in": "lehti l'\"Humanité\"",
1318
1318
  "out": "lehti l’”Humanité”",
1319
1319
  "note": "apostrophe.md §3.3 cases 3 and 3a (spec 1.2.0): fi opens and closes with U+201D, which is in CLOSEISH, so case 3 already converted this before 1.2.0. Pinned so that case 3a is not read as changing a shared-glyph locale."
1320
+ },
1321
+ {
1322
+ "id": "fi-quote-punctuation-none",
1323
+ "rule": "quote-punctuation",
1324
+ "mode": "text",
1325
+ "in": "alpha ”beta”, gamma",
1326
+ "out": "alpha ”beta”, gamma",
1327
+ "rules": {
1328
+ "quote-punctuation": true
1329
+ },
1330
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for fi, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
1331
+ },
1332
+ {
1333
+ "id": "fi-nbsp-spaced-unit-inserted",
1334
+ "rule": "nbsp",
1335
+ "mode": "text",
1336
+ "in": "Value 50% here",
1337
+ "out": "Value 50 % here",
1338
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
1320
1339
  }
1321
1340
  ]
1322
1341
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "fr-CA",
4
4
  "cases": [
5
5
  {
@@ -320,6 +320,25 @@
320
320
  "in": "Il dit 'l'<em>idée</em> est bonne.' Fin.",
321
321
  "out": "Il dit « l’<em>idée</em> est bonne. » Fin.",
322
322
  "note": "quotes.md §3.2's span-boundary elision veto (spec 1.4.0), on the identical OQLF citation fr carries — the OQLF is Quebec's own authority, so for fr-CA the evidence is direct rather than a substitute. No retrieved source states any France/Quebec divergence on elision, so the two lists are identical."
323
+ },
324
+ {
325
+ "id": "fr-ca-quote-punctuation-none",
326
+ "rule": "quote-punctuation",
327
+ "mode": "text",
328
+ "in": "alpha « beta », gamma",
329
+ "out": "alpha « beta », gamma",
330
+ "rules": {
331
+ "quote-punctuation": true
332
+ },
333
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for fr-CA, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
334
+ },
335
+ {
336
+ "id": "fr-ca-nbsp-spaced-unit-inserted",
337
+ "rule": "nbsp",
338
+ "mode": "text",
339
+ "in": "Value 20°C here",
340
+ "out": "Value 20 °C here",
341
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
323
342
  }
324
343
  ]
325
344
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "fr",
4
4
  "cases": [
5
5
  {
@@ -412,7 +412,7 @@
412
412
  "mode": "text",
413
413
  "in": "20km à pied",
414
414
  "out": "20km à pied",
415
- "note": "nbsp.md §7.2: N5 converts, never inserts — adding a space is a content change."
415
+ "note": "`km` is in beforeUnits for fr (André's class statement is the only support), which converts a typed space and never inserts one."
416
416
  },
417
417
  {
418
418
  "id": "fr-nbsp-before-number",
@@ -752,7 +752,9 @@
752
752
  "rule": "nbsp",
753
753
  "mode": "markdown",
754
754
  "dialect": "commonmark",
755
- "frontmatterKeys": ["title"],
755
+ "frontmatterKeys": [
756
+ "title"
757
+ ],
756
758
  "in": "---\ntitle: \"Chapitre 1: le début\"\ndate: \"2026-09-25\"\n---\n\nVoici: le corps.\n",
757
759
  "out": "---\ntitle: \"Chapitre 1 : le début\"\ndate: \"2026-09-25\"\n---\n\nVoici : le corps.\n",
758
760
  "note": "modes.md §3.7.4 with the locale that made §3.7.3 skip the block in the first place: inside a listed quoted scalar a colon is content, so fr inserts its narrow no-break space, while the unlisted date field and the key itself keep every byte. That contrast is the whole argument for a caller-named list."
@@ -861,7 +863,9 @@
861
863
  "id": "fr-yaml-narrow-space-in-quoted",
862
864
  "rule": "nbsp",
863
865
  "mode": "yaml",
864
- "keys": ["description"],
866
+ "keys": [
867
+ "description"
868
+ ],
865
869
  "in": "description: \"Une note !\"\n",
866
870
  "out": "description: \"Une note !\"\n",
867
871
  "note": "modes.md §3.8.6: a quoted scalar's content is one span, and French spacing applies inside it exactly as in text mode."
@@ -870,7 +874,9 @@
870
874
  "id": "fr-yaml-no-space-across-colon-split",
871
875
  "rule": "nbsp",
872
876
  "mode": "yaml",
873
- "keys": ["description"],
877
+ "keys": [
878
+ "description"
879
+ ],
874
880
  "in": "description: prose:more prose\n",
875
881
  "out": "description: prose:more prose\n",
876
882
  "note": "modes.md §3.8.6: the `:` is outside every span, so the insertion `nbsp` would make before it lands on a span edge and is discarded by §3.4. This is the accepted cost of the split, and it is what keeps the scalar parseable."
@@ -879,7 +885,9 @@
879
885
  "id": "fr-yaml-guillemets-across-block-lines",
880
886
  "rule": "quotes",
881
887
  "mode": "yaml",
882
- "keys": ["description"],
888
+ "keys": [
889
+ "description"
890
+ ],
883
891
  "in": "description: |\n Il a dit \"bonjour\n monsieur\" et il est parti\n",
884
892
  "out": "description: |\n Il a dit « bonjour\n monsieur » et il est parti\n",
885
893
  "note": "modes.md §3.2 model C in a locale whose quotation output is guillemets plus U+00A0 rather than curly quotes — structurally different from the en-US case of the same shape."
@@ -945,7 +953,9 @@
945
953
  "id": "fr-yaml-plain-elision",
946
954
  "rule": "apostrophe",
947
955
  "mode": "yaml",
948
- "keys": ["description"],
956
+ "keys": [
957
+ "description"
958
+ ],
949
959
  "in": "description: l'idee et l'autre\n",
950
960
  "out": "description: l’idee et l’autre\n",
951
961
  "note": "modes.md §3.8.6 in a locale where the apostrophe is elision rather than possession: the same cell as en-us-yaml-plain-apostrophe, and §8 item 4's requirement that a construct be pinned in more than one locale rather than the same English output with the locale field changed."
@@ -954,7 +964,9 @@
954
964
  "id": "fr-yaml-single-quoted-escape-elision-stays",
955
965
  "rule": "apostrophe",
956
966
  "mode": "yaml",
957
- "keys": ["description"],
967
+ "keys": [
968
+ "description"
969
+ ],
958
970
  "in": "description: 'l''idee et l''autre'\n",
959
971
  "out": "description: 'l''idee et l''autre'\n",
960
972
  "note": "modes.md §3.8.6: in a locale where the apostrophe is elision, the unit is the elision, and it is outside every span. The scalar has nothing else to convert and comes back unchanged — the cost §7.13 measures, pinned so that it is a documented property and not a surprise."
@@ -963,7 +975,9 @@
963
975
  "id": "fr-yaml-single-quoted-escape-split",
964
976
  "rule": "dashes",
965
977
  "mode": "yaml",
966
- "keys": ["description"],
978
+ "keys": [
979
+ "description"
980
+ ],
967
981
  "in": "description: 'l''idee -- et ''l''autre...'\n",
968
982
  "out": "description: 'l''idee — et ''l''autre…'\n",
969
983
  "note": "modes.md §3.8.6: a spaced dash and an ellipsis interior to a span convert, either side of units; the elisions stay straight."
@@ -972,7 +986,9 @@
972
986
  "id": "fr-yaml-single-quoted-escape-growth-declined",
973
987
  "rule": "dashes",
974
988
  "mode": "yaml",
975
- "keys": ["description"],
989
+ "keys": [
990
+ "description"
991
+ ],
976
992
  "in": "description: 'a''--''b'\n",
977
993
  "out": "description: 'a''--''b'\n",
978
994
  "note": "modes.md §3.8.6 and §3.4: `fr` is a `-spaced` locale, so the dash would grow from 2 to 3 code points against a unit. The edge-growth rule discards it, as it does against `:` and `#`. The en-US case with the same input is applied, which is what makes this one discriminate."
@@ -981,7 +997,9 @@
981
997
  "id": "fr-yaml-single-quoted-no-escape",
982
998
  "rule": "dashes",
983
999
  "mode": "yaml",
984
- "keys": ["description"],
1000
+ "keys": [
1001
+ "description"
1002
+ ],
985
1003
  "in": "description: 'deux -- trois'\n",
986
1004
  "out": "description: 'deux — trois'\n",
987
1005
  "note": "modes.md §3.8.6: a single-quoted scalar with nothing doubled inside it is claimed like any other. The style itself never disables the mode — only the doubling does, which is what the neighbouring case pins."
@@ -1000,7 +1018,10 @@
1000
1018
  "rule": "quotes",
1001
1019
  "mode": "markdown",
1002
1020
  "dialect": "commonmark",
1003
- "frontmatterKeys": ["title", "slug"],
1021
+ "frontmatterKeys": [
1022
+ "title",
1023
+ "slug"
1024
+ ],
1004
1025
  "in": "---\ntitle: \"a\rb\"\nslug: c \"d\"\n---\n\nBody \"q\" here.\n",
1005
1026
  "out": "---\ntitle: \"a\rb\"\nslug: c « d »\n---\n\nBody « q » here.\n",
1006
1027
  "note": "modes.md §3.7.4 per-line U+000D bail in a locale whose quotation marks carry their own spacing, so the declined line and the converted one are visibly different constructions rather than the same English output relabelled (§8 item 4)."
@@ -1009,7 +1030,11 @@
1009
1030
  "id": "fr-yaml-lone-cr-costs-one-line",
1010
1031
  "rule": "quotes",
1011
1032
  "mode": "yaml",
1012
- "keys": ["title", "slug", "summary"],
1033
+ "keys": [
1034
+ "title",
1035
+ "slug",
1036
+ "summary"
1037
+ ],
1013
1038
  "in": "title: a \"b\"\nslug: c\rd \"e\"\n",
1014
1039
  "out": "title: a « b »\nslug: c\rd \"e\"\n",
1015
1040
  "note": "modes.md §3.8.4 step 9 in a locale whose quotation marks carry their own spacing: the line with the lone U+000D is declined and the line before it converts, so the cost is one line and not the document."
@@ -1089,6 +1114,25 @@
1089
1114
  "in": "Écrire à foo@example.com ; oui\n",
1090
1115
  "out": "Écrire à foo@example.com ; oui\n",
1091
1116
  "note": "modes.md §3.7.3 terminator guard: it applies to http, https and www addresses only, so the space after an e-mail address converts as before."
1117
+ },
1118
+ {
1119
+ "id": "fr-quote-punctuation-none",
1120
+ "rule": "quote-punctuation",
1121
+ "mode": "text",
1122
+ "in": "alpha « beta », gamma",
1123
+ "out": "alpha « beta », gamma",
1124
+ "rules": {
1125
+ "quote-punctuation": true
1126
+ },
1127
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for fr, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
1128
+ },
1129
+ {
1130
+ "id": "fr-nbsp-spaced-unit-inserted",
1131
+ "rule": "nbsp",
1132
+ "mode": "text",
1133
+ "in": "Value 50% here",
1134
+ "out": "Value 50 % here",
1135
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
1092
1136
  }
1093
1137
  ]
1094
1138
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "hr",
4
4
  "cases": [
5
5
  {
@@ -248,6 +248,25 @@
248
248
  "in": "To je McDonald's",
249
249
  "out": "To je McDonald’s",
250
250
  "note": "apostrophe rule, locale-neutral; 8.18 uses U+2019 for the elision mark as well."
251
+ },
252
+ {
253
+ "id": "hr-quote-punctuation-none",
254
+ "rule": "quote-punctuation",
255
+ "mode": "text",
256
+ "in": "alpha „beta”, gamma",
257
+ "out": "alpha „beta”, gamma",
258
+ "rules": {
259
+ "quote-punctuation": true
260
+ },
261
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for hr, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
262
+ },
263
+ {
264
+ "id": "hr-nbsp-spaced-unit-inserted",
265
+ "rule": "nbsp",
266
+ "mode": "text",
267
+ "in": "Value 50% here",
268
+ "out": "Value 50 % here",
269
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
251
270
  }
252
271
  ]
253
272
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "hu",
4
4
  "cases": [
5
5
  {
@@ -173,12 +173,12 @@
173
173
  "note": "AkH12 §275: «23 °C» with a space."
174
174
  },
175
175
  {
176
- "id": "hu-nbsp-percent-inert",
176
+ "id": "hu-nbsp-percent-closed",
177
177
  "rule": "nbsp",
178
178
  "mode": "text",
179
179
  "in": "48 % és 48%",
180
- "out": "48 % és 48%",
181
- "note": "AkH12 §275 prints 48% without a space, so % is not a unit here and nothing is bound."
180
+ "out": "48% és 48%",
181
+ "note": "AkH12 §275 prints 48% without a space, so % is in closedUnits: the typed space is deleted."
182
182
  },
183
183
  {
184
184
  "id": "hu-nbsp-single-letter-unit-inert",
@@ -259,6 +259,41 @@
259
259
  "in": "Ez a McDonald's",
260
260
  "out": "Ez a McDonald’s",
261
261
  "note": "apostrophe rule, locale-neutral."
262
+ },
263
+ {
264
+ "id": "hu-quote-punctuation-none",
265
+ "rule": "quote-punctuation",
266
+ "mode": "text",
267
+ "in": "alpha „beta”, gamma",
268
+ "out": "alpha „beta”, gamma",
269
+ "rules": {
270
+ "quote-punctuation": true
271
+ },
272
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for hu, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
273
+ },
274
+ {
275
+ "id": "hu-nbsp-spaced-unit-inserted",
276
+ "rule": "nbsp",
277
+ "mode": "text",
278
+ "in": "Value 20km here",
279
+ "out": "Value 20 km here",
280
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
281
+ },
282
+ {
283
+ "id": "hu-nbsp-closed-nbsp-deleted",
284
+ "rule": "nbsp",
285
+ "mode": "text",
286
+ "in": "Value 5 % here",
287
+ "out": "Value 5% here",
288
+ "note": "spec 1.22.0, nbsp.md §3.7: a typed U+00A0 before a closedUnits entry is deleted as well as a U+0020."
289
+ },
290
+ {
291
+ "id": "hu-nbsp-celsius-spaced",
292
+ "rule": "nbsp",
293
+ "mode": "text",
294
+ "in": "Ma 23°C van",
295
+ "out": "Ma 23 °C van",
296
+ "note": "AkH12 §275 writes `23 °C`: `°C` is in spacedUnits (spec 1.22.0)."
262
297
  }
263
298
  ]
264
299
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "it",
4
4
  "cases": [
5
5
  {
@@ -172,6 +172,17 @@
172
172
  "in": "Lui dice 'un'<em>idea</em> è buona.' Fine.",
173
173
  "out": "Lui dice «un’<em>idea</em> è buona.» Fine.",
174
174
  "note": "The entry un covers the feminine indefinite un' only; Crusca is categorical that the masculine un takes no apostrophe. The mechanism cannot tell the two apart, which is harmless here because it only ever declines a pairing."
175
+ },
176
+ {
177
+ "id": "it-quote-punctuation-none",
178
+ "rule": "quote-punctuation",
179
+ "mode": "text",
180
+ "in": "alpha «beta», gamma",
181
+ "out": "alpha «beta», gamma",
182
+ "rules": {
183
+ "quote-punctuation": true
184
+ },
185
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for it, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
175
186
  }
176
187
  ]
177
188
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "cases": [
4
4
  {
5
5
  "id": "exact-en-us",
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "lt",
4
4
  "cases": [
5
5
  {
@@ -309,6 +309,25 @@
309
309
  "in": "O'Brien atėjo.",
310
310
  "out": "O’Brien atėjo.",
311
311
  "note": "apostrophe.md: a straight apostrophe inside a foreign name becomes U+2019."
312
+ },
313
+ {
314
+ "id": "lt-quote-punctuation-none",
315
+ "rule": "quote-punctuation",
316
+ "mode": "text",
317
+ "in": "alpha „beta“, gamma",
318
+ "out": "alpha „beta“, gamma",
319
+ "rules": {
320
+ "quote-punctuation": true
321
+ },
322
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for lt, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
323
+ },
324
+ {
325
+ "id": "lt-nbsp-spaced-unit-inserted",
326
+ "rule": "nbsp",
327
+ "mode": "text",
328
+ "in": "Value 50% here",
329
+ "out": "Value 50 % here",
330
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
312
331
  }
313
332
  ]
314
333
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "nl",
4
4
  "cases": [
5
5
  {
@@ -132,6 +132,33 @@
132
132
  "in": "Hij zegt 'ik kom <em>vroeg </em>'t is laat.' Klaar.",
133
133
  "out": "Hij zegt “ik kom <em>vroeg </em>’t is laat.” Klaar.",
134
134
  "note": "The same mechanism on the entry t ('t was), attested by the same Taalunie pair of pages."
135
+ },
136
+ {
137
+ "id": "nl-quote-punctuation-none",
138
+ "rule": "quote-punctuation",
139
+ "mode": "text",
140
+ "in": "alpha “beta”, gamma",
141
+ "out": "alpha “beta”, gamma",
142
+ "rules": {
143
+ "quote-punctuation": true
144
+ },
145
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for nl, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
146
+ },
147
+ {
148
+ "id": "nl-nbsp-spaced-unit-inserted",
149
+ "rule": "nbsp",
150
+ "mode": "text",
151
+ "in": "Value 20kg here",
152
+ "out": "Value 20 kg here",
153
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
154
+ },
155
+ {
156
+ "id": "nl-nbsp-closed-nbsp-deleted",
157
+ "rule": "nbsp",
158
+ "mode": "text",
159
+ "in": "Value 5 % here",
160
+ "out": "Value 5% here",
161
+ "note": "spec 1.22.0, nbsp.md §3.7: a typed U+00A0 before a closedUnits entry is deleted as well as a U+0020."
135
162
  }
136
163
  ]
137
164
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "pl",
4
4
  "cases": [
5
5
  {
@@ -132,6 +132,33 @@
132
132
  "in": "d'Artagnan",
133
133
  "out": "d’Artagnan",
134
134
  "note": "U+0027 staje się U+2019. Reguła nie czyta danych locale; przypadek ją dla polskiego poświadcza."
135
+ },
136
+ {
137
+ "id": "pl-quote-punctuation-none",
138
+ "rule": "quote-punctuation",
139
+ "mode": "text",
140
+ "in": "alpha „beta”, gamma",
141
+ "out": "alpha „beta”, gamma",
142
+ "rules": {
143
+ "quote-punctuation": true
144
+ },
145
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for pl, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
146
+ },
147
+ {
148
+ "id": "pl-nbsp-spaced-unit-inserted",
149
+ "rule": "nbsp",
150
+ "mode": "text",
151
+ "in": "Value 20km here",
152
+ "out": "Value 20 km here",
153
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
154
+ },
155
+ {
156
+ "id": "pl-nbsp-closed-nbsp-deleted",
157
+ "rule": "nbsp",
158
+ "mode": "text",
159
+ "in": "Value 5 % here",
160
+ "out": "Value 5% here",
161
+ "note": "spec 1.22.0, nbsp.md §3.7: a typed U+00A0 before a closedUnits entry is deleted as well as a U+0020."
135
162
  }
136
163
  ]
137
164
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "pt-BR",
4
4
  "cases": [
5
5
  {
@@ -159,6 +159,25 @@
159
159
  "in": "Ele diz 'd'<em>Os Lusíadas</em> é bom.' Fim.",
160
160
  "out": "Ele diz “d’<em>Os Lusíadas</em> é bom.” Fim.",
161
161
  "note": "Same input and same Base XVIII citation as pt-PT, different primary pair — pt-BR opens with U+201C where pt-PT opens with a guillemet. Pinned in both files so a runtime cannot pass one and fail the other."
162
+ },
163
+ {
164
+ "id": "pt-br-quote-punctuation-none",
165
+ "rule": "quote-punctuation",
166
+ "mode": "text",
167
+ "in": "alpha “beta”, gamma",
168
+ "out": "alpha “beta”, gamma",
169
+ "rules": {
170
+ "quote-punctuation": true
171
+ },
172
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for pt-BR, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
173
+ },
174
+ {
175
+ "id": "pt-br-nbsp-spaced-unit-inserted",
176
+ "rule": "nbsp",
177
+ "mode": "text",
178
+ "in": "Value 20kg here",
179
+ "out": "Value 20 kg here",
180
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
162
181
  }
163
182
  ]
164
183
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "pt-PT",
4
4
  "cases": [
5
5
  {
@@ -159,6 +159,25 @@
159
159
  "in": "Ele diz 'd'<em>Os Lusíadas</em> é bom.' Fim.",
160
160
  "out": "Ele diz «d’<em>Os Lusíadas</em> é bom.» Fim.",
161
161
  "note": "quotes.md §3.2's span-boundary elision veto (spec 1.4.0), on Acordo Ortográfico Base XVIII 1.º a) — whose own examples are book titles, which is what makes this list load-bearing: a title set in emphasis rather than italics puts the span boundary immediately after the mark."
162
+ },
163
+ {
164
+ "id": "pt-pt-quote-punctuation-none",
165
+ "rule": "quote-punctuation",
166
+ "mode": "text",
167
+ "in": "alpha «beta», gamma",
168
+ "out": "alpha «beta», gamma",
169
+ "rules": {
170
+ "quote-punctuation": true
171
+ },
172
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for pt-PT, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
173
+ },
174
+ {
175
+ "id": "pt-pt-nbsp-spaced-unit-inserted",
176
+ "rule": "nbsp",
177
+ "mode": "text",
178
+ "in": "Value 50% here",
179
+ "out": "Value 50 % here",
180
+ "note": "spec 1.22.0, nbsp.md §3.7: the unit is in spacedUnits, so the missing space is inserted as U+00A0."
162
181
  }
163
182
  ]
164
183
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "spec": "1.20.1",
2
+ "spec": "1.22.0",
3
3
  "locale": "ro",
4
4
  "cases": [
5
5
  {
@@ -164,7 +164,7 @@
164
164
  "mode": "text",
165
165
  "in": "50 % din preț",
166
166
  "out": "50 % din preț",
167
- "note": "% is not listed: it rests only on a non-normative guide, so it is not bound."
167
+ "note": "`%` is not listed: it rests only on a non-normative guide, so it is not bound, inserted or deleted."
168
168
  },
169
169
  {
170
170
  "id": "ro-nbsp-initial-single",
@@ -229,6 +229,17 @@
229
229
  "in": "A mers la McDonald's și înapoi",
230
230
  "out": "A mers la McDonald’s și înapoi",
231
231
  "note": "An apostrophe in a foreign name is written U+2019."
232
+ },
233
+ {
234
+ "id": "ro-quote-punctuation-none",
235
+ "rule": "quote-punctuation",
236
+ "mode": "text",
237
+ "in": "alpha „beta”, gamma",
238
+ "out": "alpha „beta”, gamma",
239
+ "rules": {
240
+ "quote-punctuation": true
241
+ },
242
+ "note": "quote-punctuation.md §2, §6: quotes.punctuationPlacement is \"none\" for ro, so enabling the rule is a no-op; the input is already in the locale's own quotation marks."
232
243
  }
233
244
  ]
234
245
  }