|
This functionality is a +PxPlus Exclusive (build 9182) |
|||||||||||
| Description | PxPlus
now includes a spell checker interface that provides the
ability to add spell checking to input fields using
either Popup menus or through other application coding. The interface is designed to utilize the spell checker engine: ispell or its follow along product aspell. These utilities are already installed with most Linux systems. Versions are also available for Windows and most other systems. |
||||||||||
| *Note* | Obtaining, installing, and distributing ispell or aspell and associated dictionaries are the responsibility of the application provider. PVX Plus Technologies makes no claim to provide these tools but only to provide an interface to them. | ||||||||||
| Basic Configuration | In
order for the spell checker to function, it needs to know
the location of the spell checker engine and the language
to use. Two global variables are used for this.
|
||||||||||
| Adding to Nomads Application | Adding
to an individual control: In order to use the spell checker in any application, you will first have to set %SPELL_SITE$ to identify where the spell checker itself resides and optionally define the language to use in %SPELL_LANG$. Once these have been defined, within Nomads you can use a popup_menu to add the spell checker to any input field. To use, attach a popup menu to the control you want to have the spell checking capabilities then add a menu item that will issue a PERFORM of "*plus/spell/spell". |
||||||||||
| *Note* | Only add the spell checker to input fields (MULTI-LINES) otherwise an error will result. | ||||||||||
| Adding
to all inputs in a Nomads application: You can also have the system automatically add the spell checker to all unformatted input fields (multi-lines). Two additional global variables are used to control this functionality, they are:
|
|||||||||||
| Using outside of Nomads | Directly
invoking the Spell Checker If desired, the spell checker can be called directly from your application to check the spelling of a text field. This is done by issuing a call to "*plus/spell/spell" where you can pass the control to check or the text to check/change. The calling sequence is:
Where:
|
||||||||||
| *Note* | In all cases, the spell checker will require a graphics terminal to display the spelling errors and allow the user to correct them. | ||||||||||
| Developer Aids | By default,
the spell checker is enabled within Nomads and the
Integrated Toolkit (*IT) to provide the developer with
spell checking during application development. If %SPELL_SITE$ is not set, the built-in interface uses the Internet to validate spelling on a secure PVX Plus Technologies web site. |
||||||||||
| Hosting aspell on the web | Using a Web
site to host the spell checker software makes
installation and on-going dictionary updates much easier
to handle. This can be done using a small 'CGI' script
and the Apache web server. To create an aspell web site to provide spell checking install and setup your Apache server then create the following CGI script:
This will run aspell with whatever text is submitted with the Web request and will work with the *plus/spell/spell module as provided. This can be hosted as either a secure (https://) or unsecured (http://) web site. |
||||||||||
| *Note* | PVX Plus Technologies currently offers web hosting of a spell checker. There is a small annual fee charged for this service that covers our costs to maintain the site and to keep the dictionaries current. | ||||||||||