-
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
8 changed files
with
53 additions
and
6 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 @@ | ||
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,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
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,9 @@ | ||
--- | ||
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, letters, pages, dates, or codes. Do not use a space before or after the en dash." | ||
action: | ||
name: replace | ||
swap: | ||
(?<=[\w\d]+)\s-\s(?=[\w\d]+): – |
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
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,22 @@ | ||
:navtitle: endashes | ||
:keywords: reference, rule, endashes | ||
|
||
= En Dashes | ||
|
||
Use an en dash to show a range, or inclusive numbers, letters, pages, dates, or codes. | ||
Do not use spaces before or after the en dash. | ||
|
||
[NOTE] | ||
==== | ||
An em dash not the same as an en dash. | ||
The em dash works like a comma, a colon, or parenthesis. | ||
Em dashes (`-`) are found on standard keyboards. | ||
En dashes (`–`) are used between numbers, dates, or ranges. | ||
En dashes are special characters. | ||
To render an en dash character in AsciiDoc, use two `--` dashes. | ||
==== | ||
|
||
.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] |