-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
; Vale configuration file to test the `EnDashes` rule | ||
StylesPath = ../../../styles | ||
MinAlertLevel = suggestion | ||
[*.adoc] | ||
RedHat.EnDashes = YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
50 - 100 px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numbers 12–15 | ||
pages 100–107 | ||
X'41'–X'FE' | ||
September–December |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
extends: substitution | ||
level: warning | ||
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/endashes/ | ||
message: "Use an en dash to show a range or inclusive numbers. Do not use a space before or after the en dash." | ||
nonword: true | ||
action: | ||
name: replace | ||
swap: | ||
(\d+\s)-(\s\d+): $1–$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
:navtitle: Endashes | ||
:keywords: reference, rule, endashes | ||
|
||
= En dashes | ||
|
||
Use an link:https://www.compart.com/en/unicode/U+2013[En dash] (`–`) to show a range or inclusive numbers. | ||
Do not use spaces before or after the en dash. | ||
|
||
[NOTE] | ||
==== | ||
An link:https://www.compart.com/en/unicode/U+2014[Em dash] (`-`) is not the same as an en dash. | ||
The em dash works like a comma, a colon, or parenthesis. | ||
==== | ||
|
||
.Additional resources | ||
|
||
* link:{ibmsg-url-print}[{ibmsg-print} - En dashes, p.48] | ||
* link:{ibmsg-url}?topic=punctuation-dashes#showing-ranges-with-en-dashes[{ibmsg} - Showing ranges with en dashes] |