AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Procesador de texto
  • Overview
  • Default operating mode
  • Default setting
  • Operating mode
  • Configuring the spell check
  • Overview
  • Automatic copy of dictionaries
  • Loading and associating dictionaries with a language
  • Enable or disable the spelling checker
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
WINDEV allows you to use the integrated spelling checker on several controls in WINDEV applications:
  • Word Processing control.
  • edit control.
  • column of Table control in edit mode.
This spelling correction can be carried out on the user's workstation using dictionaries such as Hunspell. These dictionaries can be easily found online. These dictionaries include a ".dic" file and a ".aff" file with the same name that must be found at the same location.
Note: It is recommended to comply with the redistribution license of each dictionary file used..
Default operating mode

Default setting

By default, if your project contains a control that uses a spelling checker (Word Processing, edit control, etc.):
  • The spelling checker is enabled in the controls, in English and French.
  • The FR and US dictionaries (and their readmexxx.txt licenses) are automatically copied into the generation directory of the application.
Note: Until version 23, spelling correction in Edit control fields and Table Columns was performed via OpenOffice.. From version 24, it is possible to use the integrated spelling checker for these controls as well.
To configure the spelling checker used by the project:
  1. Open the project description window. To do so, go to the "Proyecto" tab, "Proyecto" group, and click "Descripción".
  2. On the "Options" tab, in the "Spelling checker" area, select the spelling checker used for the project:
    • Integrated spell-checker: spell-checking based on Hunspell dictionaries.
    • Open Office spelling checker: spelling checks (for Edit control fields and Table field columns) will be based on OpenOffice dictionaries..

Operating mode

The French and English dictionaries are automatically loaded. Spelling mistakes are underlined in red in the control. By right-clicking on the underlined word you can:
  • get a list of suggestions.
  • add the word to the Hunspell dictionary. In this case, the words added to the dictionary are stored in the following file: "C:\Users\<User>\AppData\Roaming\PC SOFT\perso.dic".
Configuring the spell check

Automatic copy of dictionaries

The management of dictionary copy is performed in the project options:
  1. On the "Proyecto" tab, in the "Proyecto" group, click "Descripción".
  2. On the "Options" tab, check or uncheck "Copiar automáticamente los diccionarios en el directorio de generación".
  3. Validate.

Loading and associating dictionaries with a language

You can use the DictionaryLoad function to load a Hunspell dictionary and associate it with a language or sublanguage. This function must be called before starting the spelling checker.
Notes on the Word Processing control:
  • A docx document contains information about the document language. This information is used to identify the dictionary language that will be used.
  • If the dictionary corresponding to the document language is placed beside the executable, it is automatically loaded and used to correct the document. If the dictionary corresponding to the document language is not found, the spell check is not available.
  • When creating a docx document via the Word Processing control, the document language corresponds to the current application language (defined by Nation for example).

Enable or disable the spelling checker

The spelling checker can be enabled:
  • by the end-user (only for the Word Processing control): simply select the "Enable spelling correction" option in the Word Processing control ribbon..
  • programmatically with the CheckSpell property.
  • in the control description window:
    • For the Word Processing control: option "Activar [Revisar ortografía] de forma predeterminada" ("General" tab).
    • For Edit control: option "Revisar ortografía" ("Detail" tab).
    • For Table field columns: option "Revisar ortografía" ("Detail" tab of the Text column description).
Versión mínima requerida
  • Versión 22
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local