Skip to content

Commit

Permalink
feat: Added Macedonian Cyrillic Dictionary (#3807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshkovski-David authored Nov 14, 2024
1 parent bdef6fd commit ed45994
Show file tree
Hide file tree
Showing 13 changed files with 83,951 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dictionaries/mk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Change Log

## 1.0.0

- Initial Release
21 changes: 21 additions & 0 deletions dictionaries/mk/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2023 Street Side Software <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
50 changes: 50 additions & 0 deletions dictionaries/mk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# CSpell Macedonian Dictionary

Macedonian dictionary for cspell.

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

## Installation

Global Install and add to CSpell global settings.

```sh
npm install -g @cspell/dict-mk
cspell link add @cspell/dict-mk
```

## Uninstall from CSpell

```sh
cspell link remove @cspell/dict-mk
```

## Manual Installation

Manual installation is useful if you want to include this dictionary as part of your CI/CD lint process.

```
npm i @cspell/dict-mk
```

The `cspell-ext.json` file in this package should be added to the import section in your `cspell.json` file.

```javascript
{
//
"import": ["@cspell/dict-mk/cspell-ext.json"],
//
}
```

# Dictionary Development

See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)

## License

MIT

> Some packages may have other licenses included.
<!--- @@inject: ../../static/footer.md --->
3 changes: 3 additions & 0 deletions dictionaries/mk/checksum.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
179c35b957605c894a8f67fa6074a183cc5e0c72 dict/mk.trie
51e832b5843259337a24e6d59d59f23c5e57020c src/index.aff
28ac975f8b44392e7c3317128c181edb4c82601e src/index.dic
44 changes: 44 additions & 0 deletions dictionaries/mk/cspell-ext.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// cSpell Settings
{
"id": "mk",
"version": "0.2",
"name": "Macedonian",
"description": "Macedonian dictionary for cspell.",
"readonly": true,
// List of dictionary files to add to the global list of dictionaries
"dictionaryDefinitions": [
{
"name": "mk",
"path": "./dict/mk.trie",
"description": "Macedonian dictionary for cspell."
}
],
// Dictionaries to always be used.
// Generally left empty
"dictionaries": [],
// Language Rules to apply to matching files.
// Files are matched on `languageId` and `locale`
"languageSettings": [
{
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
// * will match against any file type.
"languageId": "*",
// Language locale. i.e. en-US, de-AT, or ru. * will match all locales.
// Multiple locales can be specified like: "en, en-US" to match both English and English US.
"locale": "mk-cyrl",
// By default the whole text of a file is included for spell checking
// Adding patterns to the "includeRegExpList" to only include matching patterns
"includeRegExpList": [],
// To exclude patterns, add them to "ignoreRegExpList"
"ignoreRegExpList": [],
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
// Example: "pattern": [{ "name": "mdash", "pattern": "&mdash;" }]
// This could be included in "ignoreRegExpList": ["mdash"]
"patterns": [],
// List of dictionaries to enable by name in `dictionaryDefinitions`
"dictionaries": ["mk"],
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
"dictionaryDefinitions": []
}
]
}
12 changes: 12 additions & 0 deletions dictionaries/mk/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json

targets:
- name: 'mk'
sources:
- filename: 'src/index.dic'
maxDepth: 1 # This is set to 1 to prevent initial builds from taking too long.
format: 'trie3'
targetDirectory: './dict'
generateNonStrict: true
compress: false
checksumFile: true
12 changes: 12 additions & 0 deletions dictionaries/mk/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2",
"files": [
"**/*.{md,txt}"
],
"dictionaries": [
"mk"
],
"import": [
"./cspell-ext.json"
]
}
3 changes: 3 additions & 0 deletions dictionaries/mk/dict/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dict Directory

NOTE: This directory contains generated content. Please edit [src](../src/README.md) files.
Loading

0 comments on commit ed45994

Please sign in to comment.