wiki:PadrePluginSpellCheck

Version 24 (modified by bowtie, 22 months ago) (diff)

--

<-plug-ins

Padre::Plugin::SpellCheck

To Enable Padre::Plugin::SpellCheck in Padre, go to Tools->Plug-in Manager, select Spell Checker in left area, then click preferences to open dialog and save your chosen dictionary and language.

Tip plug-in has to be disabled to set preferences, see top right hand corner of plug-in Manager for status.

Please note version compatibility, it's important, you can check what version is installed for SpellCheck use Plug-in Manager for Padre look in Help -> About -> Information

Padre::Plugin::SpellCheck v1.31_03

Padre 0.97+

Padre::Plugin::SpellCheck v1.29

Padre 0.96

NB Bold shows current release of Padre ( Green Current )


Padre Plug-in Manager

Padre Plug-in Manager


Usage F7

  • works against whole file or selected text.
  • you can click on a suggested word to replace.

sample view of checker

NB in Padre 0.97+ with pp-sc v1.31_01 you can edit preferences from context_menu


Engine's

You need to install either or both of the following, plus a language file.

Text::Aspell

Outline

$ sudo apt-get install aspell libaspell-dev aspell-en

check aspell is installed

$ aspell dump dicts

install current version.

$ cpanm -v http://cpan.metacpan.org/authors/id/H/HA/HANK/Text-Aspell-0.09.tar.gz

Text::Hunspell

Outline

$ sudo apt-get install hunspell libhunspell-dev hunspell-en-GB

check hunspell is installed

$ hunspell -D

install current version.

$ cpanm -v http://cpan.metacpan.org/authors/id/C/CO/COSIMO/Text-Hunspell-2.03.tar.gz

Limitations

  • Hunspell assumes static location
    $speller = Text::Hunspell->new(
        "/usr/share/hunspell/$iso.aff", # Hunspell affix file
        "/usr/share/hunspell/$iso.dic"  # Hunspell dictionary file
    );
    

ToDo

  • Release version 1.25 after Padre 0.96 is out
  • #383 Padre::Plugin::SpellCheck Add to dictionary
  • #384 Padre::Plugin::SpellCheck allow replacing a word by typing in a new word


__END__

<-plug-ins

Attachments (2)

Download all attachments as: .zip