FarNet.RightWords 5.2.1

Prefix Reserved
dotnet add package FarNet.RightWords --version 5.2.1                
NuGet\Install-Package FarNet.RightWords -Version 5.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FarNet.RightWords" Version="5.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarNet.RightWords --version 5.2.1                
#r "nuget: FarNet.RightWords, 5.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FarNet.RightWords as a Cake Addin
#addin nuget:?package=FarNet.RightWords&version=5.2.1

// Install FarNet.RightWords as a Cake Tool
#tool nuget:?package=FarNet.RightWords&version=5.2.1                

FarNet.RightWords

RightWords is the FarNet module for Far Manager. It provides the spell-checker based on WeCantSpell.Hunspell. Hunspell dictionaries are used by OpenOffice and may be found on OpenOffice.org.

Interface

Project

Credits

WeCantSpell.Hunspell - A port of Hunspell for .NET https://github.com/aarondandy/WeCantSpell.Hunspell


Install

Contents

How to install and update FarNet and modules
https://github.com/nightroman/FarNet#readme

OpenOffice dictionaries: http://wiki.services.openoffice.org/wiki/Dictionaries
(get and maintain your own dictionary files, the module does not provide them)

Dictionary files structure (example)

%FARPROFILE%\FarNet\RightWords\

    English\
        en_GB.aff  (Hunspell affix file)
        en_GB.dic  (Hunspell words file)

    Russian\
        ru_RU.aff  (Hunspell affix file)
        ru_RU.dic  (Hunspell words file)

    RightWords.dic          (user common words)
    RightWords.English.dic  (user words for English)
    RightWords.Russian.dic  (user words for Russian)

Language dictionaries are up to a user. Directories may have any names, e.g. above English, Russian. These names are used in the dictionary menu and as suffixes in user dictionary names (English ~ RightWords.English.dic).

Encoding (UTF-8 is recommended)

UTF-8 is recommended for all dictionaries. How to convert dictionaries in Far Manager editor:

  • .aff - open, find and change SET ... to SET UTF-8, save as UTF-8
  • .dic - open and save as UTF-8

Options

Contents

[F11] \ FarNet \ Drawers \ Spelling mistakes

Switches "Spelling mistakes" highlighting in the current editor.

Options \ Plugin configuration \ FarNet \ Drawers \ Spelling mistakes

The dialog with saved options:

  • Mask

    Specifies the files for "Spelling mistakes" highlighting turned on.

  • Priority

    Specifies the color priority.


Settings

Contents

Module settings: [F11] \ FarNet \ Settings \ RightWords


WordRegex

The regular expression for words recognition.

The default is [\p{Lu}\p{Ll}]\p{Ll}+ ~ words with two or more letters, with joined words like "RightWords" treated as separate words "Right" and "Words".


SkipRegex

The regular expression for text areas excluded from checks.

The default is none, empty.

Example:

  <SkipRegex><![CDATA[
  (?x:
    # words with digits
    \w*\d+\w*
    |
    # quoted paths
    "(?:\w+:|\.+)?[\\/][^"]+"
    |
    # simple paths
    (?:\w+:|\.+)?[\\/][^\s]+
  )
  ]]></SkipRegex>

RemoveRegex

The regular expression for areas removed from words found by WordRegex.

The default is none, empty, assuming WordRegex defines exact words.

Example WordRegex and RemoveRegex for words with ampersands:

  <WordRegex><![CDATA[
  (?x:
    # words with ampersands
    [\p{Lu}\p{Ll}](?:\p{Ll}|&)+
  )
  ]]></WordRegex>

  <RemoveRegex><![CDATA[
  (?x:
    # ampersands
    [&]+
  )
  ]]></RemoveRegex>

HighlightingBackgroundColor
HighlightingForegroundColor

Highlighting colors: Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White.

The default is Black on Yellow.


UserDictionaryDirectory

The custom directory of user dictionaries, expanding environment variables.

The default is %FARPROFILE%\FarNet\RightWords.


MaximumLineLength

Tells to skip checking too long lines and instead just highlight them. Otherwise, too long lines may cause lags on highlighting.

The default is 0, no limit.


Contents

This menu is called by [F11] \ RightWords.

Commands:

  • Correct word (editor, dialog, command line)

    Checks spelling and shows suggestions for the current word. See Correction list.

  • Correct text (editor)

    Checks spelling and shows suggestions in the selected text or starting from the caret position. See Correction list.

See also Options.


Correction list

Contents

This list shows suggestions for correcting a misspelled word and additional commands.

Additional commands:

  • Ignore

    Ignores the word once.

  • Ignore All

    Ignores the word in the current session.

  • Add to Dictionary

    Adds the word to the user dictionary.


Add to Dictionary

Contents

Add to Dictionary supports the common and language dictionaries.

On adding a word to the common dictionary, choose one of the suggested variants.

On adding to a language dictionary, provide two stems: the new word and sample existing in the dictionary. If the sample stem is empty the word is added as is.

Examples:

English stems: "plugin" and "pin". These forms become correct:

plugin   plugins   Plugin   Plugins

Russian stems: "плагин" and "камин". These forms become correct:

плагин   плагины   Плагин   Плагины
плагина  плагинов  Плагина  Плагинов
плагину  плагинам  Плагину  Плагинам
плагином плагинами Плагином Плагинами
плагине  плагинах  Плагине  Плагинах

CAUTION: Mind capitalization, e.g. "plugin", not "Plugin".

User dictionaries are UTF-8 text files in the module roaming directory: RightWords.dic (common) and files like RightWords.English.dic (languages).


There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.2.1 56 1/7/2025
5.2.0 58 1/6/2025
5.1.0 106 12/6/2024
5.0.0 393 11/19/2023
4.0.1 593 1/1/2023
4.0.0 371 11/18/2022
3.0.1 479 8/25/2022
3.0.0 458 7/19/2022
2.5.2 482 6/11/2022
2.5.1 503 6/8/2022
2.5.0 469 5/18/2022
2.4.0 1,060 12/3/2021
2.3.3 530 1/8/2021
2.3.2 509 1/1/2021
2.3.1 421 12/27/2020
2.3.0 519 10/27/2020
2.2.0 703 2/1/2020
2.1.7 1,319 8/9/2016
2.1.6 1,280 2/13/2016
2.1.5 1,896 3/28/2014
2.1.4 1,162 12/31/2013