polytypo 1.17.4 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/polytypo/data/VERSION +1 -1
- data/lib/polytypo/data/fixtures/bg.json +1 -1
- data/lib/polytypo/data/fixtures/cs.json +1 -1
- data/lib/polytypo/data/fixtures/de-CH.json +1 -1
- data/lib/polytypo/data/fixtures/de-DE.json +1 -1
- data/lib/polytypo/data/fixtures/el.json +1 -1
- data/lib/polytypo/data/fixtures/en-GB.json +64 -1
- data/lib/polytypo/data/fixtures/en-US.json +64 -1
- data/lib/polytypo/data/fixtures/es.json +272 -7
- data/lib/polytypo/data/fixtures/fi.json +1 -1
- data/lib/polytypo/data/fixtures/fr-CA.json +1 -1
- data/lib/polytypo/data/fixtures/fr.json +1 -1
- data/lib/polytypo/data/fixtures/hr.json +1 -1
- data/lib/polytypo/data/fixtures/hu.json +1 -1
- data/lib/polytypo/data/fixtures/it.json +1 -1
- data/lib/polytypo/data/fixtures/locale-resolution.json +1 -1
- data/lib/polytypo/data/fixtures/lt.json +1 -1
- data/lib/polytypo/data/fixtures/nl.json +1 -1
- data/lib/polytypo/data/fixtures/pl.json +1 -1
- data/lib/polytypo/data/fixtures/pt-BR.json +1 -1
- data/lib/polytypo/data/fixtures/pt-PT.json +1 -1
- data/lib/polytypo/data/fixtures/ro.json +1 -1
- data/lib/polytypo/data/fixtures/ru.json +1 -1
- data/lib/polytypo/data/fixtures/sk.json +1 -1
- data/lib/polytypo/data/fixtures/sl.json +1 -1
- data/lib/polytypo/data/fixtures/sr.json +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/el.json +1 -1
- data/lib/polytypo/data/locales/es.json +2 -2
- data/lib/polytypo/data/locales/registry.json +1 -1
- data/lib/polytypo/data/rules/dashes.md +108 -16
- data/lib/polytypo/data/rules/modes.md +49 -4
- data/lib/polytypo/data/rules/order.json +2 -2
- data/lib/polytypo/data/rules/pipeline-idempotency.md +7 -0
- data/lib/polytypo/data/schema/locale.schema.json +2 -2
- data/lib/polytypo/engine/rules/dash_shared.rb +32 -21
- data/lib/polytypo/engine/rules/dashes.rb +4 -1
- data/lib/polytypo/engine/rules/dashes_paired.rb +160 -0
- data/lib/polytypo/modes/spans.rb +53 -2
- data/lib/polytypo/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b78196aba8f371ed14077dbbb0a1642276cf567628d2fc4dfc9c467e2f543f02
|
|
4
|
+
data.tar.gz: e9a2b2df572deb0eaf529813d63dc8d72f378e06c541f8567f81b1451219e557
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92a5ca301117e7baa8647b1b0148d1e2980c506a3efda57fbd36b973fdcb4dae31c7e011e53973dd39954539e12090651860bff1de4b11223bc11bbc401c873f
|
|
7
|
+
data.tar.gz: 534cc7cedb87c00a83cee59e2cba5a6fe396b8c5b8bc512ccc5576ac5c271286cad15af3e10c53e40d9c452a594236202c2894f2cfde8edd9efe6ec7bf1f91c0
|
data/lib/polytypo/data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.18.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.18.0",
|
|
3
3
|
"locale": "en-GB",
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -1871,6 +1871,69 @@
|
|
|
1871
1871
|
"in": "Note[^a's] and it's.\n\n[^a's]: it's text\n",
|
|
1872
1872
|
"out": "Note[^a's] and it’s.\n\n[^a's]: it’s text\n",
|
|
1873
1873
|
"note": "modes.md §3.7.3: footnote labels are skipped in both dialects."
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"id": "en-gb-markdown-commonmark-bracket-task-marker-space-after-open",
|
|
1877
|
+
"rule": "spaces",
|
|
1878
|
+
"mode": "markdown",
|
|
1879
|
+
"dialect": "commonmark",
|
|
1880
|
+
"in": "- [ x] item and a , b.\n",
|
|
1881
|
+
"out": "- [ x] item and a, b.\n",
|
|
1882
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space after the opening bracket would make a task-list marker for a parser with GFM extensions; that edit is discarded. The space in a , b is deleted as usual."
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"id": "en-gb-markdown-commonmark-bracket-task-marker-space-before-close",
|
|
1886
|
+
"rule": "spaces",
|
|
1887
|
+
"mode": "markdown",
|
|
1888
|
+
"dialect": "commonmark",
|
|
1889
|
+
"in": "- [x ] item and a , b.\n",
|
|
1890
|
+
"out": "- [x ] item and a, b.\n",
|
|
1891
|
+
"note": "modes.md §3.4 bracket-shape rule: the same marker from the other side: deleting the space before the closing bracket is discarded."
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"id": "en-gb-markdown-commonmark-bracket-task-marker-both-spaces",
|
|
1895
|
+
"rule": "spaces",
|
|
1896
|
+
"mode": "markdown",
|
|
1897
|
+
"dialect": "commonmark",
|
|
1898
|
+
"in": "- [ X ] item , y\n",
|
|
1899
|
+
"out": "- [ X ] item, y\n",
|
|
1900
|
+
"note": "modes.md §3.4 bracket-shape rule: the skip over spaces keeps both deletions from being evaluated as safe on their own; the two are discarded together, and the space before the comma is deleted."
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"id": "en-gb-markdown-commonmark-bracket-footnote-space-after-open",
|
|
1904
|
+
"rule": "spaces",
|
|
1905
|
+
"mode": "markdown",
|
|
1906
|
+
"dialect": "commonmark",
|
|
1907
|
+
"in": "a [ ^1] b , c\n\n[^1]: n\n",
|
|
1908
|
+
"out": "a [ ^1] b, c\n\n[^1]: n\n",
|
|
1909
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space after the opening bracket would make a footnote reference; that edit is discarded."
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"id": "en-gb-markdown-commonmark-bracket-footnote-space-before-close",
|
|
1913
|
+
"rule": "spaces",
|
|
1914
|
+
"mode": "markdown",
|
|
1915
|
+
"dialect": "commonmark",
|
|
1916
|
+
"in": "a [^1 ] b , c\n\n[^1]: n\n",
|
|
1917
|
+
"out": "a [^1 ] b, c\n\n[^1]: n\n",
|
|
1918
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space before the closing bracket would make a footnote reference; that edit is discarded."
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"id": "en-gb-markdown-commonmark-bracket-ordinary-text-still-tightened",
|
|
1922
|
+
"rule": "spaces",
|
|
1923
|
+
"mode": "markdown",
|
|
1924
|
+
"dialect": "commonmark",
|
|
1925
|
+
"in": "a [ word ] b and ( x ) c.\n",
|
|
1926
|
+
"out": "a [word] b and (x) c.\n",
|
|
1927
|
+
"note": "modes.md §3.4 bracket-shape rule: the rule tests a shape, not a bracket: a bracket around an ordinary word, and a parenthesis around a single letter, are tightened as before."
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"id": "en-gb-markdown-commonmark-bracket-task-marker-two-spaces",
|
|
1931
|
+
"rule": "spaces",
|
|
1932
|
+
"mode": "markdown",
|
|
1933
|
+
"dialect": "commonmark",
|
|
1934
|
+
"in": "- [ ] item and a , b.\n",
|
|
1935
|
+
"out": "- [ ] item and a, b.\n",
|
|
1936
|
+
"note": "modes.md §3.4 bracket-shape rule: collapsing two spaces between the brackets to one would make an unchecked task-list marker out of literal text; that edit is discarded."
|
|
1874
1937
|
}
|
|
1875
1938
|
]
|
|
1876
1939
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.18.0",
|
|
3
3
|
"locale": "en-US",
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -4284,6 +4284,69 @@
|
|
|
4284
4284
|
"in": "Read https://example.com/a -- fine and b -- c\n",
|
|
4285
4285
|
"out": "Read https://example.com/a -- fine and b—c\n",
|
|
4286
4286
|
"note": "modes.md §3.7.3 terminator guard: collapsing the spaced dash would delete the space that ends the URL, and the parser would read the dash and the next word as part of it; that edit is discarded. The same collapse away from a URL (b -- c) is applied."
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"id": "en-us-markdown-commonmark-bracket-task-marker-space-after-open",
|
|
4290
|
+
"rule": "spaces",
|
|
4291
|
+
"mode": "markdown",
|
|
4292
|
+
"dialect": "commonmark",
|
|
4293
|
+
"in": "- [ x] item and a , b.\n",
|
|
4294
|
+
"out": "- [ x] item and a, b.\n",
|
|
4295
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space after the opening bracket would make a task-list marker for a parser with GFM extensions; that edit is discarded. The space in a , b is deleted as usual."
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"id": "en-us-markdown-commonmark-bracket-task-marker-space-before-close",
|
|
4299
|
+
"rule": "spaces",
|
|
4300
|
+
"mode": "markdown",
|
|
4301
|
+
"dialect": "commonmark",
|
|
4302
|
+
"in": "- [x ] item and a , b.\n",
|
|
4303
|
+
"out": "- [x ] item and a, b.\n",
|
|
4304
|
+
"note": "modes.md §3.4 bracket-shape rule: the same marker from the other side: deleting the space before the closing bracket is discarded."
|
|
4305
|
+
},
|
|
4306
|
+
{
|
|
4307
|
+
"id": "en-us-markdown-commonmark-bracket-task-marker-both-spaces",
|
|
4308
|
+
"rule": "spaces",
|
|
4309
|
+
"mode": "markdown",
|
|
4310
|
+
"dialect": "commonmark",
|
|
4311
|
+
"in": "- [ X ] item , y\n",
|
|
4312
|
+
"out": "- [ X ] item, y\n",
|
|
4313
|
+
"note": "modes.md §3.4 bracket-shape rule: the skip over spaces keeps both deletions from being evaluated as safe on their own; the two are discarded together, and the space before the comma is deleted."
|
|
4314
|
+
},
|
|
4315
|
+
{
|
|
4316
|
+
"id": "en-us-markdown-commonmark-bracket-footnote-space-after-open",
|
|
4317
|
+
"rule": "spaces",
|
|
4318
|
+
"mode": "markdown",
|
|
4319
|
+
"dialect": "commonmark",
|
|
4320
|
+
"in": "a [ ^1] b , c\n\n[^1]: n\n",
|
|
4321
|
+
"out": "a [ ^1] b, c\n\n[^1]: n\n",
|
|
4322
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space after the opening bracket would make a footnote reference; that edit is discarded."
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"id": "en-us-markdown-commonmark-bracket-footnote-space-before-close",
|
|
4326
|
+
"rule": "spaces",
|
|
4327
|
+
"mode": "markdown",
|
|
4328
|
+
"dialect": "commonmark",
|
|
4329
|
+
"in": "a [^1 ] b , c\n\n[^1]: n\n",
|
|
4330
|
+
"out": "a [^1 ] b, c\n\n[^1]: n\n",
|
|
4331
|
+
"note": "modes.md §3.4 bracket-shape rule: deleting the space before the closing bracket would make a footnote reference; that edit is discarded."
|
|
4332
|
+
},
|
|
4333
|
+
{
|
|
4334
|
+
"id": "en-us-markdown-commonmark-bracket-ordinary-text-still-tightened",
|
|
4335
|
+
"rule": "spaces",
|
|
4336
|
+
"mode": "markdown",
|
|
4337
|
+
"dialect": "commonmark",
|
|
4338
|
+
"in": "a [ word ] b and ( x ) c.\n",
|
|
4339
|
+
"out": "a [word] b and (x) c.\n",
|
|
4340
|
+
"note": "modes.md §3.4 bracket-shape rule: the rule tests a shape, not a bracket: a bracket around an ordinary word, and a parenthesis around a single letter, are tightened as before."
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"id": "en-us-markdown-commonmark-bracket-task-marker-two-spaces",
|
|
4344
|
+
"rule": "spaces",
|
|
4345
|
+
"mode": "markdown",
|
|
4346
|
+
"dialect": "commonmark",
|
|
4347
|
+
"in": "- [ ] item and a , b.\n",
|
|
4348
|
+
"out": "- [ ] item and a, b.\n",
|
|
4349
|
+
"note": "modes.md §3.4 bracket-shape rule: collapsing two spaces between the brackets to one would make an unchecked task-list marker out of literal text; that edit is discarded."
|
|
4287
4350
|
}
|
|
4288
4351
|
]
|
|
4289
4352
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"spec": "1.
|
|
2
|
+
"spec": "1.18.0",
|
|
3
3
|
"locale": "es",
|
|
4
4
|
"cases": [
|
|
5
5
|
{
|
|
@@ -43,20 +43,285 @@
|
|
|
43
43
|
"note": "abbreviatedAfterTerminal = false: la forma de dos puntos tras «?» que usa el ruso no existe en español, así que los dos puntos se completan a U+2026 en vez de conservarse."
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"id": "es-dashes-
|
|
46
|
+
"id": "es-dashes-paired-spaced-hyphens",
|
|
47
47
|
"rule": "dashes",
|
|
48
48
|
"mode": "text",
|
|
49
49
|
"in": "El plan - si existe - fracasa.",
|
|
50
|
-
"out": "El plan —
|
|
51
|
-
"note": "
|
|
50
|
+
"out": "El plan —si existe— fracasa.",
|
|
51
|
+
"note": "Guiones espaciados a ambos lados: el par se escribe «—si existe—», con espacio fuera del par y ninguno dentro (DPD «raya», 2)."
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"id": "es-dashes-double-hyphen
|
|
54
|
+
"id": "es-dashes-paired-double-hyphen",
|
|
55
55
|
"rule": "dashes",
|
|
56
56
|
"mode": "text",
|
|
57
57
|
"in": "Caminamos -- casi 3 km -- y estaba cerrada.",
|
|
58
|
-
"out": "Caminamos —
|
|
59
|
-
"note": "
|
|
58
|
+
"out": "Caminamos —casi 3 km— y estaba cerrada.",
|
|
59
|
+
"note": "La forma «--» que se teclea a menudo converge a la misma forma del DPD."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "es-dashes-paired-tight-em",
|
|
63
|
+
"rule": "dashes",
|
|
64
|
+
"mode": "text",
|
|
65
|
+
"in": "El plan—si existe—fracasa.",
|
|
66
|
+
"out": "El plan —si existe— fracasa.",
|
|
67
|
+
"note": "Rayas pegadas por ambos lados: se añade el espacio exterior y no se toca el interior."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "es-dashes-paired-already-correct",
|
|
71
|
+
"rule": "dashes",
|
|
72
|
+
"mode": "text",
|
|
73
|
+
"in": "Llegó —por fin— a casa.",
|
|
74
|
+
"out": "Llegó —por fin— a casa.",
|
|
75
|
+
"note": "Forma del DPD ya correcta: punto fijo."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "es-dashes-paired-spaced-em",
|
|
79
|
+
"rule": "dashes",
|
|
80
|
+
"mode": "text",
|
|
81
|
+
"in": "Llegó — por fin — a casa.",
|
|
82
|
+
"out": "Llegó —por fin— a casa.",
|
|
83
|
+
"note": "Salida de las versiones 1.17.x (espacios interiores): se cierran los interiores."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "es-dashes-paired-half-correct",
|
|
87
|
+
"rule": "dashes",
|
|
88
|
+
"mode": "text",
|
|
89
|
+
"in": "Llegó —por fin — a casa.",
|
|
90
|
+
"out": "Llegó —por fin— a casa.",
|
|
91
|
+
"note": "Raya de cierre con espacio interior: se cierra."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "es-dashes-paired-before-full-stop",
|
|
95
|
+
"rule": "dashes",
|
|
96
|
+
"mode": "text",
|
|
97
|
+
"in": "Llegó a casa--por fin--.",
|
|
98
|
+
"out": "Llegó a casa —por fin—.",
|
|
99
|
+
"note": "El cierre queda pegado al punto: no se inserta espacio donde `spaces` lo borraría."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "es-dashes-paired-guillemets",
|
|
103
|
+
"rule": "dashes",
|
|
104
|
+
"mode": "text",
|
|
105
|
+
"in": "«Llegó - por fin - a casa»",
|
|
106
|
+
"out": "«Llegó —por fin— a casa»",
|
|
107
|
+
"note": "Las comillas angulares no cambian el reparto del par."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "es-dashes-paired-compound-inside",
|
|
111
|
+
"rule": "dashes",
|
|
112
|
+
"mode": "text",
|
|
113
|
+
"in": "Llegó - por fin - a la zona hispano-árabe.",
|
|
114
|
+
"out": "Llegó —por fin— a la zona hispano-árabe.",
|
|
115
|
+
"note": "Un guion de palabra compuesta dentro del par no cuenta como raya."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "es-dashes-paired-digit-inside",
|
|
119
|
+
"rule": "dashes",
|
|
120
|
+
"mode": "text",
|
|
121
|
+
"in": "Llegó - tras 3 - a casa.",
|
|
122
|
+
"out": "Llegó —tras 3— a casa.",
|
|
123
|
+
"note": "Un número dentro del par no impide la conversión."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "es-dashes-paired-range-inside",
|
|
127
|
+
"rule": "dashes",
|
|
128
|
+
"mode": "text",
|
|
129
|
+
"in": "Llegó - tras 3-5 - a casa.",
|
|
130
|
+
"out": "Llegó —tras 3-5— a casa.",
|
|
131
|
+
"note": "Un rango con guion dentro del par queda como está (lo gestiona `ranges`)."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "es-dashes-dialogue-untouched",
|
|
135
|
+
"rule": "dashes",
|
|
136
|
+
"mode": "text",
|
|
137
|
+
"in": "—Hola —dijo—. ¿Vienes? —preguntó María.",
|
|
138
|
+
"out": "—Hola —dijo—. ¿Vienes? —preguntó María.",
|
|
139
|
+
"note": "Las rayas de diálogo no se tocan: la primera abre la línea y el segmento tiene más de dos rayas."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "es-dashes-dialogue-open",
|
|
143
|
+
"rule": "dashes",
|
|
144
|
+
"mode": "text",
|
|
145
|
+
"in": "—Hola —dijo.",
|
|
146
|
+
"out": "—Hola —dijo.",
|
|
147
|
+
"note": "Diálogo con una sola raya de incisa: se deja como está."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "es-dashes-dialogue-hyphens",
|
|
151
|
+
"rule": "dashes",
|
|
152
|
+
"mode": "text",
|
|
153
|
+
"in": "—Hola - dijo - y se fue.",
|
|
154
|
+
"out": "—Hola - dijo - y se fue.",
|
|
155
|
+
"note": "Una raya de diálogo al inicio hace que el segmento tenga tres rayas: ninguna se convierte."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "es-dashes-single-hyphen-untouched",
|
|
159
|
+
"rule": "dashes",
|
|
160
|
+
"mode": "text",
|
|
161
|
+
"in": "Madrid - la capital de España.",
|
|
162
|
+
"out": "Madrid - la capital de España.",
|
|
163
|
+
"note": "Un solo guion espaciado no forma par: se deja tal como está (el DPD no describe este uso)."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "es-dashes-two-sentences-untouched",
|
|
167
|
+
"rule": "dashes",
|
|
168
|
+
"mode": "text",
|
|
169
|
+
"in": "Madrid - la capital. Sevilla - la bella.",
|
|
170
|
+
"out": "Madrid - la capital. Sevilla - la bella.",
|
|
171
|
+
"note": "Cada frase tiene una sola raya: no hay par y no se toca ninguna."
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "es-dashes-three-untouched",
|
|
175
|
+
"rule": "dashes",
|
|
176
|
+
"mode": "text",
|
|
177
|
+
"in": "Juan - mi primo - llegó y - según dicen - durmió.",
|
|
178
|
+
"out": "Juan - mi primo - llegó y - según dicen - durmió.",
|
|
179
|
+
"note": "Cuatro rayas en una frase: no se empareja ninguna."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "es-dashes-across-line-untouched",
|
|
183
|
+
"rule": "dashes",
|
|
184
|
+
"mode": "text",
|
|
185
|
+
"in": "Llegó - por\nfin - a casa.",
|
|
186
|
+
"out": "Llegó - por\nfin - a casa.",
|
|
187
|
+
"note": "El par no cruza un salto de línea."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "es-dashes-affix-hyphens-untouched",
|
|
191
|
+
"rule": "dashes",
|
|
192
|
+
"mode": "text",
|
|
193
|
+
"in": "el sufijo -mente y el prefijo pre- son",
|
|
194
|
+
"out": "el sufijo -mente y el prefijo pre- son",
|
|
195
|
+
"note": "Guiones de afijo, pegados por un solo lado, no son rayas."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "es-dashes-option-flag-untouched",
|
|
199
|
+
"rule": "dashes",
|
|
200
|
+
"mode": "text",
|
|
201
|
+
"in": "usa --force y -v",
|
|
202
|
+
"out": "usa --force y -v",
|
|
203
|
+
"note": "Opciones de línea de comandos: no son rayas."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "es-dashes-misplaced-spacing-untouched",
|
|
207
|
+
"rule": "dashes",
|
|
208
|
+
"mode": "text",
|
|
209
|
+
"in": "Llegó— por fin —a casa.",
|
|
210
|
+
"out": "Llegó— por fin —a casa.",
|
|
211
|
+
"note": "Espacios invertidos respecto a la forma del DPD: no se reinterpretan."
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "es-dashes-question-inside-paired",
|
|
215
|
+
"rule": "dashes",
|
|
216
|
+
"mode": "text",
|
|
217
|
+
"in": "Llegó —¿quién lo diría?— a casa.",
|
|
218
|
+
"out": "Llegó —¿quién lo diría?— a casa.",
|
|
219
|
+
"note": "El signo de interrogación dentro del par no corta la frase."
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "es-dashes-abbreviation-splits-pair",
|
|
223
|
+
"rule": "dashes",
|
|
224
|
+
"mode": "text",
|
|
225
|
+
"in": "Llegó - p. ej. ayer - a casa.",
|
|
226
|
+
"out": "Llegó - p. ej. ayer - a casa.",
|
|
227
|
+
"note": "El punto de la abreviatura cierra la frase: cada mitad tiene una sola raya, no hay par y no se toca ninguna (el espacio duro U+00A0 tras «p.» lo pone nbsp)."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "es-dashes-lone-en-dash-untouched",
|
|
231
|
+
"rule": "dashes",
|
|
232
|
+
"mode": "text",
|
|
233
|
+
"in": "Llegó – por fin – a casa.",
|
|
234
|
+
"out": "Llegó – por fin – a casa.",
|
|
235
|
+
"note": "P5 de dashes.md: una semirraya sola escrita por el autor no se reinterpreta."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "es-dashes-digit-far-dash-untouched",
|
|
239
|
+
"rule": "dashes",
|
|
240
|
+
"mode": "text",
|
|
241
|
+
"in": "Vimos 3 - 4--por fin--bien.",
|
|
242
|
+
"out": "Vimos 3 - 4--por fin--bien.",
|
|
243
|
+
"note": "T1 de dashes.md: no se inserta un espacio junto a una cifra que tiene otra raya al otro lado."
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "es-dashes-roman-range-before-pair",
|
|
247
|
+
"rule": "dashes",
|
|
248
|
+
"mode": "text",
|
|
249
|
+
"in": "En los siglos XV—XVII - según dicen - hubo guerras.",
|
|
250
|
+
"out": "En los siglos XV—XVII - según dicen - hubo guerras.",
|
|
251
|
+
"note": "Un rango en cifras romanas cuenta como raya del segmento: tres rayas, no se toca ninguna."
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"id": "es-dashes-abbreviation-title-splits-pair",
|
|
255
|
+
"rule": "dashes",
|
|
256
|
+
"mode": "text",
|
|
257
|
+
"in": "Llegó - dijo el Sr. Pérez - a casa.",
|
|
258
|
+
"out": "Llegó - dijo el Sr. Pérez - a casa.",
|
|
259
|
+
"note": "El punto de «Sr.» cierra la frase aunque `nbsp` ponga después un espacio duro: cada mitad tiene una sola raya y no se toca ninguna. Debe dar lo mismo en la segunda pasada."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "es-dashes-plus-minus-outside-pair",
|
|
263
|
+
"rule": "dashes",
|
|
264
|
+
"mode": "text",
|
|
265
|
+
"in": "Llegó - con +/- 5 kg - a casa.",
|
|
266
|
+
"out": "Llegó —con ± 5 kg— a casa.",
|
|
267
|
+
"note": "El guion de «+/-» no es una raya: `symbols` lo convierte en «±» después, de modo que no debe contar para el par."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": "es-dashes-roman-range-beside-single",
|
|
271
|
+
"rule": "dashes",
|
|
272
|
+
"mode": "text",
|
|
273
|
+
"in": "Era XV—XVII - dicen.",
|
|
274
|
+
"out": "Era XV—XVII - dicen.",
|
|
275
|
+
"note": "P4: la raya pegada entre dos números romanos es un rango ya correcto y cuenta como raya del segmento; con la otra son dos y no se convierte ninguna."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "es-dashes-digit-inside-pair-cluster",
|
|
279
|
+
"rule": "dashes",
|
|
280
|
+
"mode": "text",
|
|
281
|
+
"in": "Salió - 5 - de casa.",
|
|
282
|
+
"out": "Salió —5— de casa.",
|
|
283
|
+
"note": "El número solo dentro del par convierte; en la segunda pasada las dos rayas forman un grupo con la cifra y se rechazan, de modo que el resultado no cambia."
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"id": "es-dashes-nbsp-beside-stroke-untouched",
|
|
287
|
+
"rule": "dashes",
|
|
288
|
+
"mode": "text",
|
|
289
|
+
"in": "Llegó - por fin - a casa.",
|
|
290
|
+
"out": "Llegó - por fin - a casa.",
|
|
291
|
+
"note": "Un espacio duro junto a una raya la deja fuera: el segmento queda como está."
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "es-dashes-asymmetric-range-inside-pair",
|
|
295
|
+
"rule": "dashes",
|
|
296
|
+
"mode": "text",
|
|
297
|
+
"in": "Llegó - a 5 -10 km - a casa.",
|
|
298
|
+
"out": "Llegó —a 5 -10 km— a casa.",
|
|
299
|
+
"note": "Un rango de cifras escrito con espacio solo a un lado es un candidato de `ranges`, sea simétrico o no, y no cuenta como raya."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"id": "es-dashes-question-space-splits-pair",
|
|
303
|
+
"rule": "dashes",
|
|
304
|
+
"mode": "text",
|
|
305
|
+
"in": "Llegó - ¿cómo? ya - a casa.",
|
|
306
|
+
"out": "Llegó - ¿cómo? ya - a casa.",
|
|
307
|
+
"note": "Un «?» seguido de espacio cierra la frase: cada mitad tiene una sola raya."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "es-dashes-marker-splits-pair-html",
|
|
311
|
+
"rule": "dashes",
|
|
312
|
+
"mode": "html",
|
|
313
|
+
"in": "<p>Llegó - ayer.<em>Hoy</em> - a casa.</p>",
|
|
314
|
+
"out": "<p>Llegó - ayer.<em>Hoy</em> - a casa.</p>",
|
|
315
|
+
"note": "Un punto antes de un límite de marcado cierra la frase: cada mitad tiene una sola raya."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "es-dashes-marker-splits-pair-markdown",
|
|
319
|
+
"rule": "dashes",
|
|
320
|
+
"mode": "markdown",
|
|
321
|
+
"in": "Llegó - ayer.*Hoy* - a casa.",
|
|
322
|
+
"out": "Llegó - ayer.*Hoy* - a casa.",
|
|
323
|
+
"note": "Un punto antes de un límite de marcado cierra la frase: cada mitad tiene una sola raya.",
|
|
324
|
+
"dialect": "commonmark"
|
|
60
325
|
},
|
|
61
326
|
{
|
|
62
327
|
"id": "es-dashes-compound-hyphen",
|