Skip to content

Commit

Permalink
Serbian (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttasovac committed Jan 9, 2023
1 parent 6465021 commit 3726ed4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
34 changes: 24 additions & 10 deletions extensions/serbian/README.md
Expand Up @@ -8,21 +8,32 @@ Imports the Serbian (both Cyrillic and Latin) spellchecking dictionaries for [Co

After this extension is installed, it is necessary to tell the spell checker to use it.

### Enable Dictionary
### Enable Dictionaries

Commands (use `F1` or _View -> Command Palette..._):
- `F1` `Show Spell Checker Configuration Info` (or click on the "Spell" icon in the status bar)
- Enable the language globally in the `User` tab or in just in the `Workspace` tab.

- `F1` `Show Spell Checker Configuration Info`
- Select the `Language` tab.
- Enable the language Globally or in just the Workspace.
![Selected dictionaries in the Spell Checker User Tab](https://i.imgur.com/78LApWC.png)

### Disable Dictionary
### Disable Dictionaries

Commands (use `F1` or _View -> Command Palette..._):
- `F1` `Show Spell Checker Configuration Info` (or click on the "Spell" icon in the status bar)
- Disable the language globally in the `User` tab or in just in the `Workspace` tab.

- `F1` `Show Spell Checker Configuration Info`
- Select the `Language` tab.
- Disable the language Globally or in just the Workspace.
### Enable/disable dictionaries via commands

You can also use the following commands (`F1` or _View -> Command Palette..._) to enable or disable Serbian dictionaries:

- `Enable Serbian Spell Checker Dictionary`
- `Disable Serbian Spell Checker Dictionary`
- `Enable Serbian Cyrillic Spell Checker Dictionary`
- `Disable Serbian Cyrillic Spell Checker Dictionary`
- `Enable Serbian Latin Spell Checker Dictionary`
- `Disable Serbian Latin Spell Checker Dictionary`
- `Enable Serbian Spell Checker Dictionary in Workspace`
- `Disable Serbian Spell Checker Dictionary in Workspace`

![Commands dropdown for enabling and disabling Serbian dictionaries](https://i.imgur.com/3DPWwFV.png)

### Manual Settings

Expand All @@ -31,12 +42,15 @@ This is done with the `language` setting.
_Preferences_ -> _Settings_

Adding `sr` to the `cSpell.language` setting, will enable the Serbian dictionaries, both Cyrillic and Latin.

Example using both English and Serbian dictionaries:

```javascript
"cSpell.language": "en,sr",
```

To enable only Cyrillic or Latin, use the specific locales: `sr-Cyrl` or `sr-Latn`.

## Requirements

This extension will automatically include [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) extension.
1 change: 0 additions & 1 deletion extensions/serbian/package.json
Expand Up @@ -4,7 +4,6 @@
"version": "1.0.1",
"displayName": "Serbian - Code Spell Checker",
"icon": "images/SpellCheck.png",
"preview": true,
"private": true,
"publisher": "streetsidesoftware",
"license": "GPL-3.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion extensions/serbian/samples/cspell.json
@@ -1,3 +1,3 @@
{
"language": "en"
"language": "sr"
}

0 comments on commit 3726ed4

Please sign in to comment.