Struct ispell::SpellLauncher [] [src]

pub struct SpellLauncher { /* fields omitted */ }

Spell Launcher wizard (ah, ah).

Runs ispell or one of its variant for you.

Examples

  • Launches ispell with british dictionary:
use ispell::SpellLauncher;
let checker = SpellLauncher::new()
              .dictionary("british")
              .launch()
              .unwrap();Run
  • Launches aspell with french (France) language:
use ispell::SpellLauncher;
let checker = SpellLauncher::new()
              .aspell(true)
              .language("fr_FR")
              .launch()
              .unwrap();Run

Methods

impl SpellLauncher
[src]

Creates a new spell checker with default options

If true, sets compatibility mode to aspell instead of ispell.

Set the name of the command to run

By default, it is "ispell", or "aspell" if the aspell flag has been set.

Set the dictionary that should be used

Example

use ispell::SpellLauncher;
let checker = SpellLauncher::new()
              .dictionary("american")
              .launch()
              .unwrap();Run

Set the language option for aspell.

Used only if the aspell flag has been set, else use dictionary. (Avoid mixing the two.)

Example

use ispell::SpellLauncher;
let checker = SpellLauncher::new()
              .aspell(true)
              .language("en_GB")
              .launch()
              .unwrap();Run

Launch ispell (or aspell) and return a SpellChecker

Trait Implementations

impl Debug for SpellLauncher
[src]

Formats the value using the given formatter.