Skip to content

Commit d12fb6d

Browse files
authored
Merge pull request #42 from couchbaselabs/DOC-13594-latin-updates
[DOC-13594] Fix Latin Abbreviation Flags
2 parents 280cbbb + c3a4bc6 commit d12fb6d

File tree

5 files changed

+47
-13
lines changed

5 files changed

+47
-13
lines changed

ValeStyles/Couchbase/Latin.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extends: substitution
2+
message: "Use '%s' instead of '%s'."
3+
link: https://docs.couchbase.com/styleguide/latin-abbreviations.html
4+
ignorecase: true
5+
level: error
6+
nonword: true
7+
scope: raw # required to parse the `. ` alternatives
8+
action:
9+
name: replace
10+
swap:
11+
# e.g.
12+
'(?i)\b(eg|e\.g)\b': for example
13+
'(?i)\be\. g\b': for example
14+
15+
# i.e.
16+
'(?i)\b(ie|i\.e)\b': specifically
17+
'(?i)\bi\. e\b': specifically
18+
19+
# etc.
20+
'(?i)\b(etc|e\.t\.c)\b': and so on
21+
'(?i)\bet ?cetera\b': and so on

ValeStyles/Couchbase/Terminology.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ swap:
3232
'(?:de-select|unselect|un-select)': clear
3333
'(?:de-selected|unselected|un-selected)': cleared
3434
'(?:different to|different than)': different from
35-
'(?:eg|e\.g)': for example
35+
#'(?:eg|e\.g)': for example
3636
encryptor: encrypter
3737
end user experience: end-user experience
3838
ensure: make sure|verify
3939
'(?:e-payment)': ePayment
40-
etc: and so on
40+
#etc: and so on
4141
file name: filename
4242
file system: filesystem
4343
'(?:fine grained|finegrained)': fine-grained

ValeStyles/Google/Latin.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

styleguide/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
** xref:contractions.adoc[]
1111
** xref:values.adoc[]
1212
** xref:directional-language.adoc[]
13+
** xref:latin-abbreviations.adoc[]
1314
** xref:less-fewer.adoc[]
1415
** xref:only.adoc[]
1516
** xref:there-is.adoc[]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
= Latin Abbreviations
2+
3+
Do not use the following Latin abbreviations in Couchbase documentation:
4+
5+
* e.g.
6+
* i.e.
7+
* etc.
8+
9+
If you feel you need to use these Latin abbreviations, try 1 of the following alternatives:
10+
11+
|====
12+
|Instead of... |Try...
13+
14+
| e.g.
15+
| for example
16+
17+
| i.e.
18+
| specifically
19+
20+
| etc.
21+
| and so on
22+
23+
|====

0 commit comments

Comments
 (0)