-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pyspelling.yml
141 lines (141 loc) · 4 KB
/
.pyspelling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# This will instruct pyspelling to perform spell check on
# - Static HTML files in "public" directory (except for WET files)
# - gcweb and gcintranet wet-messages-*.json, files:
# - For english, the "source" property
# - For french, the "target" property
# (note that is both cases values containing '<', '>' or '-' will be skipped)
#
# ref: https://facelessuser.github.io/pyspelling/pipeline/
matrix:
- name: messages-en
sources:
- 'src/gcweb/wet-messages.en.json'
- 'src/gcintranet/wet-messages.en.json'
aspell:
lang: en
d: en_CA
#filter-path: /mingw64/lib/aspell-0.60
dictionary:
wordlists:
- spell-wordlist-en.txt
output: tmp/wordlist-en.dic
encoding: utf-8
pipeline:
- pyspelling.filters.context:
context_visible_first: false
delimiters:
# In an attempt to skip values containing HTML or file names, the
# open token is basically any `"source": "` that is NOT followed at some point by a `<` or a `-`
# The URLs will be filtered out by next pipeline step
- open: '^\s*"source":\s*"(?!.*[\-\<\>])'
close: '",$'
- pyspelling.filters.url:
- name: messages-fr
sources:
- 'src/gcweb/wet-messages.fr.json'
- 'src/gcintranet/wet-messages.fr.json'
aspell:
lang: fr
#d: fr_CA
#filter-path: /mingw64/lib/aspell-0.60
dictionary:
wordlists:
- spell-wordlist-fr.txt
output: tmp/wordlist-fr.dic
encoding: utf-8
pipeline:
- pyspelling.filters.context:
context_visible_first: false
delimiters:
# In an attempt to skip values containing HTML or file names, the
# open token is basically any `"target": "` that is NOT followed at some point by a `<` or a `-`
# The URLs will be filtered out by next pipeline step
- open: '^\s*"target":\s*"(?!.*[\-\<\>])'
close: '"$'
- pyspelling.filters.url:
- name: HTML-EN
sources:
- 'public/common/**/*-en.html'
- 'public/common/**/*-eng.html'
- 'public/gcweb/**/*-en.html'
- 'public/gcweb/**/*-eng.html'
- 'public/gcintranet/**/*-en.html'
- 'public/gcintranet/**/*-eng.html'
- 'public/global/**/*-en.html'
- 'public/global/**/*-eng.html'
expect_match: false #no error is no file found
default_encoding: utf-8
aspell:
lang: en
d: en_CA
#filter-path: /mingw64/lib/aspell-0.60
dictionary:
wordlists:
- spell-wordlist-en.txt
output: tmp/wordlist-en.dic
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false # We have a lot of paths and other stuff in out HTML comments, truning spell check off
attributes:
- title
- alt
ignores:
- ':matches(code, pre)'
- 'code'
- 'pre'
- name: HTML-FR
sources:
- 'public/common/**/*-fr.html'
- 'public/common/**/*-fra.html'
- 'public/gcweb/**/*-fr.html'
- 'public/gcweb/**/*-fra.html'
- 'public/gcintranet/**/*-fr.html'
- 'public/gcintranet/**/*-fra.html'
- 'public/global/**/*-fr.html'
- 'public/global/**/*-fra.html'
expect_match: false #no error is no file found
default_encoding: utf-8
aspell:
lang: fr
#d: fr_CA
#filter-path: /mingw64/lib/aspell-0.60
dictionary:
wordlists:
- spell-wordlist-fr.txt
output: tmp/wordlist-fr.dic
encoding: utf-8
pipeline:
- pyspelling.filters.html:
comments: false # We have a lot of paths and other stuff in out HTML comments, truning spell check off
attributes:
- title
- alt
ignores:
- ':matches(code, pre)'
- 'code'
- 'pre'
#- name: markdown-en
# sources:
# #- '**/*.md|!*-fr.md'
# - '*.md|!*-fr.md'
# aspell:
# lang: en
# d: en_CA
# #filter-path: /mingw64/lib/aspell-0.60
# dictionary:
# wordlists:
# - spell-wordlist-en.txt
# output: tmp/wordlist-en.dic
# encoding: utf-8
# pipeline:
# - pyspelling.filters.markdown:
# markdown_extensions:
# - markdown.extensions.extra:
# - pyspelling.filters.html:
# comments: true
# attributes:
# - title
# - alt
# ignores:
# - :matches(code, pre, samp, kbd, var)