Skip to content

Commit 393f472

Browse files
authored
fix: move generated files to dict dir (#5219)
1 parent ca34df7 commit 393f472

File tree

8 files changed

+30770
-30722
lines changed

8 files changed

+30770
-30722
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
cc2775ed4da05d67a9dd76fc501732a6291ebfcd custom_scientific_US.trie
1+
442d111940f52663d5547f81d5d793730695db8b dict/custom_scientific_US.trie
2+
206aeaaf65a15bcb81d767c91b033cec93071119 dict/custom_scientific_US.trie.gz
3+
5ea5757e8a925b3eca72a77b4711ce4262a7ff5d dict/mathematics_US.txt
4+
4df93ddb46e48aa99d15721547966bc9116fec4d dict/mathematics_US.txt.gz
25
833755fdf18d2e4685fea2bb58691d1e560dbcd9 src/additional_words.txt
36
61efec43fbef76b3abbd49edc895e14925048c43 src/custom_scientific_US.dic.txt
7+
b858baec22e7bc2297a3114300fae142cbf2997f src/mathematics.txt

dictionaries/scientific_terms_US/cspell-ext.json

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,29 @@
1-
// cSpell Settings
21
{
32
"id": "scientific-terms-us",
43
"name": "Scientific Terms US",
54
"description": "Scientific Terms US dictionary.",
65
"readonly": true,
7-
// List of dictionary files to add to the global list of dictionaries
86
"dictionaryDefinitions": [
97
{
108
"name": "scientific-terms-us",
11-
"path": "./custom_scientific_US.trie.gz",
9+
"path": "./dict/custom_scientific_US.trie.gz",
1210
"description": "Scientific Terms US dictionary."
1311
},
1412
{
1513
"name": "mathematics-terms-us",
16-
"path": "./mathematics.trie.gz",
14+
"path": "./dict/mathematics_US.txt.gz",
1715
"description": "Mathematics Terms US dictionary."
1816
}
1917
],
20-
// Dictionaries to always be used.
21-
// Generally left empty
2218
"dictionaries": [],
23-
// Language Rules to apply to matching files.
24-
// Files are matched on `languageId` and `locale`
2519
"languageSettings": [
2620
{
27-
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
28-
// * will match against any file type.
2921
"languageId": "*",
30-
// Language locale. i.e. en-US, de-AT, or ru. * will match all locals.
31-
// Multiple locals can be specified like: "en, en-US" to match both English and English US.
3222
"locale": "*",
33-
// By default the whole text of a file is included for spell checking
34-
// Adding patterns to the "includeRegExpList" to only include matching patterns
3523
"includeRegExpList": [],
36-
// To exclude patterns, add them to "ignoreRegExpList"
3724
"ignoreRegExpList": [],
38-
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
39-
// Example: "pattern": [{ "name": "mdash", "pattern": "—" }]
40-
// This could be included in "ignoreRegExpList": ["mdash"]
4125
"patterns": [],
42-
// List of dictionaries to enable by name in `dictionaryDefinitions`
43-
"dictionaries": ["scientific-terms-us"],
44-
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
26+
"dictionaries": ["scientific-terms-us", "mathematics-terms-us"],
4527
"dictionaryDefinitions": []
4628
}
4729
]

dictionaries/scientific_terms_US/cspell-tools.config.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
targets:
44
- name: custom_scientific_US
5-
targetDirectory: .
6-
compress: false
5+
targetDirectory: dict
6+
compress: true
7+
keepUncompressed: true
78
format: trie3
89
sources:
910
- src/custom_scientific_US.dic.txt
1011
- src/additional_words.txt
1112
generateNonStrict: true
13+
1214
- name: mathematics_US
13-
targetDirectory: .
14-
compress: false
15-
format: trie3
15+
targetDirectory: dict
16+
compress: true
17+
keepUncompressed: true
18+
format: plaintext
1619
sources:
1720
- src/mathematics.txt
18-
generateNonStrict: true
21+
generateNonStrict: false
22+
1923
checksumFile: true

dictionaries/scientific_terms_US/custom_scientific_US.trie

Lines changed: 0 additions & 30690 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dict Directory
2+
3+
NOTE: This directory contains generated content. Please edit [src](../src/README.md) files.

dictionaries/scientific_terms_US/dict/custom_scientific_US.trie

Lines changed: 30741 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dictionaries/scientific_terms_US/dict/mathematics_US.txt

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dictionaries/scientific_terms_US/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"./cspell-ext.json": "./cspell-ext.json"
1313
},
1414
"scripts": {
15-
"build": "cspell-tools-cli build && pnpm gz",
16-
"conditional-build": "cspell-tools-cli build --conditional && pnpm gz",
15+
"build": "cspell-tools-cli build",
16+
"conditional-build": "cspell-tools-cli build --conditional",
1717
"test": "shx head -n 1000 \"src/custom_scientific_US.dic.txt\" | cspell -c ./cspell-ext.json --locale=en --languageId=* stdin",
18-
"gz": "cspell-tools-cli gzip \"*.trie\"",
18+
"gz": "cspell-tools-cli gzip \"dict/*.trie\" \"dict/*.txt\"",
1919
"prepare:dictionary": "pnpm gz",
2020
"prepublishOnly": "echo pre-publish"
2121
},
@@ -38,7 +38,7 @@
3838
},
3939
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/scientific_terms_US#readme",
4040
"files": [
41-
"custom_scientific_US.trie.gz",
41+
"dict/*.gz",
4242
"cspell-ext.json"
4343
]
4444
}

0 commit comments

Comments
 (0)