SpellingDictionariesOptions class

Namespace Runic.Spelling in Runic.Spelling 0.23.0-preview.1

public sealed class SpellingDictionariesOptions

Where SpellingDictionaries looks for dictionaries and installs downloaded ones.

Constructors

SpellingDictionariesOptions

public SpellingDictionariesOptions()

No documentation.

Properties

ApplicationDirectories

public IReadOnlyList<string>? ApplicationDirectories { get; init; }

The application's own directories of dictionaries (SpellingDictionarySource.Bundled), each with <name>.dic and <name>.aff files, the first of a name winning. null, the default: dictionaries beside the program, where the package's build targets copy the English dictionaries, and on macOS in the bundle's Contents/Resources. SpellingDictionaries.DirectoryEnvironmentVariable comes before them either way.

DownloadDirectory

public string? DownloadDirectory { get; init; }

The directory downloaded dictionaries are installed in and read from. null, the default: the directory all Runic applications of the user share (SpellingDictionaries.SharedDownloadDirectory).

HttpClient

public HttpClient? HttpClient { get; init; }

The client downloads use. null, the default: one of the package's own, which sends a generic User-Agent and nothing that identifies the user or the application.

UseSystemDictionaries

public bool UseSystemDictionaries { get; init; }

Whether the computer's Hunspell dictionaries are used. Default true.

UserLanguages

public IReadOnlyList<string>? UserLanguages { get; init; }

The user's languages, most preferred first, as BCP 47 tags or POSIX locales (de_CH.UTF-8): they choose the region of a language asked for without one, such as en_GB for en. Runic applications pass Runic.Platform.DesktopLanguages.Preferred. null, the default: the current UI culture.