[Osgeo4w-trac] [osgeo4w] #874: Add Enchant C-library to OSGEO4W
OSGeo4W
trac_osgeo4w at osgeo.org
Thu Mar 27 04:28:23 PDT 2025
#874: Add Enchant C-library to OSGEO4W
------------------------+----------------------------
Reporter: seewhy | Owner: osgeo4w-dev@…
Type: enhancement | Status: new
Priority: normal | Component: Package
Version: | Resolution:
Keywords: |
------------------------+----------------------------
Comment (by seewhy):
As there is no spell checking capability for QGIS users (editing
attributes) I have developed a plug-in, but it cannot work on Windows at
present due to conflicts with DLLs used by GRASS.
For pyenchant to work in Windows the following binaries are included (some
of these appear to be older versions than those used by QGIS):
libenchant-2.dll
libgcc_s_seh-1.dll
libglib-2.0-0.dll
libgmodule-2.0-0.dll
libgobject-2.0-0.dll
libhunspell-1.6-0.dll
libiconv-2.dll
libintl-8.dll
libp11-kit-0.dll
libpcre-1.dll
libpcre16-0.dll
libpcre32-0.dll
libpcrecpp-0.dll
libpcreposix-0.dll
libstdc++-6.dll
libwinpthread-1.dll
Pyenchant works in python 3.12 (tested in OSGeo4W shell).
The spell checking engine associated is Enchant (which is available in
mingw). Dictionaries include Hunspell - in the packaged version only
English, but presumably additional dictionaries can be installed (they
exist). Other flavours are compatible.
If python bindings for qplaintextedit were exposed it would be possible to
integrate the functions of my plug-in with attribute forms seamlessly. Or
the class could potentially be ported to the core and then work across
QGIS to modify the qplaintext widgets. But none of this can be unlocked
without Enchant.
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/874#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list