https://help.superhosting.bg/en/php-pspell-aspell.html
  • bg
  • en

Hosting, Domains, Cloud, Virtual Private Servers (VPS), Managed VPS, SSL Certificates

PHP extension - pspell (Portable Spell Checker Interface Library)

PHP
pspell, php pspell, aspell, pspell spellcheck, pspell spell-checking, pspell spelling, pspell check spelling

pspell (Portable Spell Checker Interface Library) is a PHP extension, providing generic interface to the GNU Aspell (C++) system spell-checking library.

Aspell might be used for other programming languages along with specific extensions, such as Text:Aspell for Perl.

To check spelling, you can use the pre-installed Aspell language dictionaries or word lists.

info-iconYou can enable pspell in your hosting account via cPanel -> PHP Manager by SuperHosting.

info-iconYou can activate pspell with php.ini using: extension=pspell.so.

info-iconpspell and Aspell are supported on all Linux hosting servers by SuperHosting.BG.

Bulgarian Encoding

Depending on the text language you can set the respective dictionary to be used.

To enable the Bulgarian spell checker you might have to add a few settings to the PHP script:

header('Content-Type: text/html; charset=utf-8');
...
$pspell_link = pspell_new('bg', ' ', ' ', 'utf-8');

Aspell settings

You can check Aspell system settings through SSH.

Check the installed dictionaries:

aspell dump dicts

Aspell version:

aspell -v

Check the language dictionary contents (in this case EN):

aspell -l en dump master

Check Aspell configuration:

aspell config

Aspell settings are stored in a system configuration file which cannot be modified by users. To change specific settings, you must use the user configuration file .aspell.conf, which must be located in the home directory of the hosting account.

Tо use the Aspell configuration file you should first copy the system file settings with the following command:

aspell dump config > /home/cpuser/.aspell.conf

Then you can edit your Aspell settings in the .aspell.conf file.

500px270px
SuperHosting.BG

Comments

Be the First to Comment!

Notify of
avatar
wpDiscuz
All rights reserved © 2005-2017 , www.superhosting.bg