Skip to content

Commit

Permalink
feat!: Update Bulgarian to use CSpell 6 format. (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Oct 29, 2022
1 parent 8fb732d commit 29886e1
Show file tree
Hide file tree
Showing 10 changed files with 6,699 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dictionaries/bg_BG/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Do not store the .gz file
*.trie.gz
7 changes: 7 additions & 0 deletions dictionaries/bg_BG/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Bulgarian dictionary for cspell.

This is a pre-built dictionary for use with cspell.

## Requirements

| Tool | Version |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| [cspell](https://github.com/streetsidesoftware/cspell) | `>= 6` |
| [Code Spell Checker - Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) | `>= 2` |

## Installation

Global Install and add to cspell global settings.
Expand Down
Binary file removed dictionaries/bg_BG/bg_BG.trie.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dictionaries/bg_BG/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dictionaryDefinitions": [
{
"name": "bg-bg",
"path": "./bg_BG.trie.gz",
"path": "./dict/bg_BG.trie.gz",
"description": "Bulgarian dictionary for cspell."
}
],
Expand Down
9 changes: 9 additions & 0 deletions dictionaries/bg_BG/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json

targets:
- name: bg_BG
sources:
- listFile: ./source-files.txt
format: trie3
targetDirectory: "./dict"
generateNonStrict: true
6,674 changes: 6,674 additions & 0 deletions dictionaries/bg_BG/dict/bg_BG.trie

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dictionaries/bg_BG/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"./cspell-ext.json": "./cspell-ext.json"
},
"scripts": {
"build": "cspell-tools compile-trie \"bg_BG.dic\" -o .",
"test": "hunspell-reader words -n 1000 \"bg_BG.dic\" | cspell -v -c ./cspell-ext.json \"--local=bg\" \"--languageId=*\" stdin",
"build": "cspell-tools-cli build && yarn run zip",
"test": "hunspell-reader words -n 1000 \"src/bg_BG.dic\" | cspell -v -c ./cspell-ext.json \"--local=bg\" \"--languageId=*\" stdin",
"prepare": "yarn run zip",
"zip": "gzip -f -k dict/*.trie",
"prepublishOnly": "echo pre-publish"
},
"repository": {
Expand All @@ -33,7 +35,7 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/bg_BG#readme",
"files": [
"bg_BG.trie.gz",
"dict/*.trie.gz",
"cspell-ext.json"
]
}
1 change: 1 addition & 0 deletions dictionaries/bg_BG/source-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/bg_BG.dic
File renamed without changes.
File renamed without changes.

0 comments on commit 29886e1

Please sign in to comment.