Skip to content

Commit a6f77ba

Browse files
Jason3SKi-er
andauthored
feat: Add Armenian Library (#4052)
Co-authored-by: Kieran <kieranrobson1999@gmail.com>
1 parent 4cfa7cf commit a6f77ba

File tree

16 files changed

+74686
-0
lines changed

16 files changed

+74686
-0
lines changed

dictionaries/hy/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## 1.0.0
4+
5+
- Initial Release

dictionaries/hy/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2023 Street Side Software <support@streetsidesoftware.nl>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

dictionaries/hy/README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# CSpell Armenian Dictionary
2+
3+
Armenian dictionary for cspell.
4+
5+
This is a pre-built dictionary for use with CSpell.
6+
7+
## Installation
8+
9+
Global Install and add to CSpell global settings.
10+
11+
```sh
12+
npm install -g @cspell/dict-hy
13+
cspell link add @cspell/dict-hy
14+
```
15+
16+
## Uninstall from CSpell
17+
18+
```sh
19+
cspell link remove @cspell/dict-hy
20+
```
21+
22+
## Manual Installation
23+
24+
Manual installation is useful if you want to include this dictionary as part of your CI/CD lint process.
25+
26+
```
27+
npm i @cspell/dict-am
28+
```
29+
30+
The `cspell-ext.json` file in this package should be added to the import section in your `cspell.json` file.
31+
32+
```javascript
33+
{
34+
//
35+
"import": ["@cspell/dict-hy/cspell-ext.json"],
36+
//
37+
}
38+
```
39+
40+
## Dictionary Development
41+
42+
See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)
43+
44+
## Source
45+
46+
[martakert/hyspell: Hunspell dictionary for Armenian language](https://github.com/martakert/hyspell)
47+
48+
## License
49+
50+
MIT
51+
52+
> Some packages may have other licenses included.
53+
54+
<!--
55+
cspell:words hyspell martakert
56+
-->
57+
58+
<!--- @@inject: ../../static/footer.md --->

dictionaries/hy/checksum.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
f8d1f8a18f1168f4f3ce3c5c02575c90c2a32be6 dict/hy.trie
2+
ddcd2691e71d0367be9b9a0ebb59b8ccd9500da8 src/additional_words.txt
3+
7030ea45333a169585475dc4cd7b92f550e67f06 src/hy_AM.aff
4+
c3c65b5bd0b7291ba18622cf89d00dfa22bae33f src/hy_AM.dic

dictionaries/hy/cspell-ext.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// cSpell Settings
2+
{
3+
"id": "hy_AM",
4+
"version": "0.2",
5+
"name": "Armenian",
6+
"description": "Armenian dictionary for cspell.",
7+
"readonly": true,
8+
// List of dictionary files to add to the global list of dictionaries
9+
"dictionaryDefinitions": [
10+
{
11+
"name": "hy_am",
12+
"path": "./dict/hy.trie",
13+
"description": "Armenian dictionary for cspell."
14+
}
15+
],
16+
// Dictionaries to always be used.
17+
// Generally left empty
18+
"dictionaries": [],
19+
// Language Rules to apply to matching files.
20+
// Files are matched on `languageId` and `locale`
21+
"languageSettings": [
22+
{
23+
// VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
24+
// * will match against any file type.
25+
"languageId": "*",
26+
// Language locale. i.e. en-US, de-AT, or ru. * will match all locales.
27+
// Multiple locales can be specified like: "en, en-US" to match both English and English US.
28+
"locale": "hy,hy-AM",
29+
// By default the whole text of a file is included for spell checking
30+
// Adding patterns to the "includeRegExpList" to only include matching patterns
31+
"includeRegExpList": [],
32+
// To exclude patterns, add them to "ignoreRegExpList"
33+
"ignoreRegExpList": [],
34+
// regex patterns than can be used with ignoreRegExpList or includeRegExpList
35+
// Example: "pattern": [{ "name": "mdash", "pattern": "&mdash;" }]
36+
// This could be included in "ignoreRegExpList": ["mdash"]
37+
"patterns": [],
38+
// List of dictionaries to enable by name in `dictionaryDefinitions`
39+
"dictionaries": ["hy_am"],
40+
// Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
41+
"dictionaryDefinitions": []
42+
}
43+
]
44+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json
2+
3+
targets:
4+
- name: 'hy'
5+
sources:
6+
- filename: 'src/additional_words.txt'
7+
- filename: 'src/hy_AM.dic'
8+
maxDepth: 3
9+
format: 'trie3'
10+
targetDirectory: './dict'
11+
generateNonStrict: true
12+
compress: false
13+
checksumFile: true

dictionaries/hy/cspell.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "0.2",
3+
"files": [
4+
"**/*.{md,txt}"
5+
],
6+
"language": "hy,en",
7+
"import": [
8+
"./cspell-ext.json"
9+
]
10+
}

dictionaries/hy/dict/README.md

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.

0 commit comments

Comments
 (0)