@cspell/dict-en-gb-legacy 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +53 -0
- package/cspell-ext.json +21 -0
- package/dict/en_GB-legacy.trie.gz +0 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License Copyright (c) 2025 Jason Dent
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of
|
|
4
|
+
charge, to any person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use, copy, modify, merge,
|
|
7
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice
|
|
12
|
+
(including the next paragraph) shall be included in all copies or substantial
|
|
13
|
+
portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
18
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
19
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# CSpell en_GB Legacy Dictionary
|
|
2
|
+
|
|
3
|
+
British English Legacy dictionary for cspell.
|
|
4
|
+
|
|
5
|
+
This dictionary includes words that had been included in older versions of the en_GB dictionary.
|
|
6
|
+
They have been moved here to make the en_GB dictionary easier to maintain.
|
|
7
|
+
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
| Tool | Version |
|
|
11
|
+
| ------------------------------------------------------------------------------------------------------------------------------------ | ------- |
|
|
12
|
+
| [cspell](https://github.com/streetsidesoftware/cspell) | `>= 6` |
|
|
13
|
+
| [Code Spell Checker - Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) | `>= 2` |
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
Global Install and add to cspell global settings.
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install @cspell/dict-en-gb-legacy
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Manual Installation
|
|
24
|
+
|
|
25
|
+
The `cspell-ext.json` file in this package should be added to the import section in your cspell.json file.
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
{
|
|
29
|
+
// …
|
|
30
|
+
"import": ["@cspell/dict-en-gb/cspell-ext.json"],
|
|
31
|
+
// …
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
|
38
|
+
|
|
39
|
+
> Some packages may have other licenses included.
|
|
40
|
+
|
|
41
|
+
<!--- @@inject: ../../static/footer.md --->
|
|
42
|
+
|
|
43
|
+
<br/>
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
49
|
+
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
50
|
+
</a>
|
|
51
|
+
</p>
|
|
52
|
+
|
|
53
|
+
<!--- @@inject-end: ../../static/footer.md --->
|
package/cspell-ext.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "en-gb-legacy",
|
|
3
|
+
"name": "English - British (Legacy)",
|
|
4
|
+
"description": "British English Dictionary (Legacy)",
|
|
5
|
+
"readonly": true,
|
|
6
|
+
"dictionaryDefinitions": [
|
|
7
|
+
{
|
|
8
|
+
"name": "en-gb-legacy",
|
|
9
|
+
"path": "./dict/en_GB-legacy.trie.gz",
|
|
10
|
+
"repMap": [["'|`|’", "'"]],
|
|
11
|
+
"description": "Legacy British English Dictionary"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"languageSettings": [
|
|
15
|
+
{
|
|
16
|
+
"languageId": "*",
|
|
17
|
+
"locale": "en-GB",
|
|
18
|
+
"dictionaries": ["en-gb-legacy"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cspell/dict-en-gb-legacy",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "British English Legacy dictionary for cspell.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"provenance": true
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./cspell-ext.json",
|
|
11
|
+
"./cspell": "./cspell-ext.json",
|
|
12
|
+
"./cspell-ext.json": "./cspell-ext.json"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "cspell-tools-cli build && pnpm gz",
|
|
16
|
+
"conditional-build": "cspell-tools-cli build --conditional && pnpm gz",
|
|
17
|
+
"gz": "cspell-tools-cli gzip \"dict/*.trie\"",
|
|
18
|
+
"prepare:dictionary": "pnpm gz",
|
|
19
|
+
"prepublishOnly": "echo pre-publish",
|
|
20
|
+
"test-dict": "shx head -n 1000 \"./src/wordsEnGb.txt\" | cspell -c ./cspell-ext.json --locale=en_gb --languageId=* stdin",
|
|
21
|
+
"test-text": "cspell -c ./cspell-ext.json --locale=en_gb --languageId=* \"tests/*.txt\"",
|
|
22
|
+
"test": "pnpm run test-dict && pnpm run test-text"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/streetsidesoftware/cspell-dicts",
|
|
27
|
+
"directory": "dictionaries/en_GB-legacy"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"cspell",
|
|
31
|
+
"cspell-ext",
|
|
32
|
+
"en_GB",
|
|
33
|
+
"dictionary",
|
|
34
|
+
"spelling"
|
|
35
|
+
],
|
|
36
|
+
"author": "Street Side Software <support@streetsidesoftware.nl>",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/streetsidesoftware/cspell-dicts/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/en_GB#readme",
|
|
42
|
+
"files": [
|
|
43
|
+
"dict/*.gz",
|
|
44
|
+
"cspell-ext.json",
|
|
45
|
+
"src/**/README_en_GB.txt"
|
|
46
|
+
],
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@cspell/aoo-mozilla-en-dict": "workspace:^",
|
|
49
|
+
"@cspell/dict-en-shared": "workspace:^"
|
|
50
|
+
},
|
|
51
|
+
"gitHead": "5aafcca7494be9a5a12cd68e3c34103a1973fe8b"
|
|
52
|
+
}
|