Package Details: enchant-pure 1.6.1-1

Git Clone URL: https://aur.archlinux.org/enchant-pure.git (read-only)
Package Base: enchant-pure
Description: A wrapper library for pure and generic spell checking for all languages, supporting Aspell and Myspell/Hunspell backend engines
Upstream URL: https://github.com/AbiWord/enchant
Licenses: LGPL
Conflicts: enchant
Provides: enchant
Submitter: sbmomeni
Maintainer: sbmomeni
Last Packager: sbmomeni
Votes: 9
Popularity: 0.778868
First Submitted: 2013-07-31 19:47
Last Updated: 2016-09-14 10:21

Dependencies (3)

Required by (101)

Sources (2)

Latest Comments

sbmomeni commented on 2016-09-14 10:24

@notuxius
Updated.

notuxius commented on 2016-09-14 02:26

i get the following errors upon build:

myspell_checker.cpp: In member function ‘bool MySpellChecker::checkWord(const char*, size_t)’:
myspell_checker.cpp:154:12: error: ‘MAXWORDLEN’ was not declared in this scope
if (len > MAXWORDLEN || !g_iconv_is_valid(m_translate_in))
^~~~~~~~~~
myspell_checker.cpp:160:13: error: ‘MAXWORDLEN’ was not declared in this scope
char word8[MAXWORDLEN + 1];
^~~~~~~~~~
myspell_checker.cpp:161:14: error: ‘word8’ was not declared in this scope
char *out = word8;
^~~~~
myspell_checker.cpp: In member function ‘char** MySpellChecker::suggestWord(const char*, size_t, size_t*)’:
myspell_checker.cpp:178:12: error: ‘MAXWORDLEN’ was not declared in this scope
if (len > MAXWORDLEN
^~~~~~~~~~
myspell_checker.cpp:186:13: error: ‘MAXWORDLEN’ was not declared in this scope
char word8[MAXWORDLEN + 1];
^~~~~~~~~~
myspell_checker.cpp:187:14: error: ‘word8’ was not declared in this scope
char *out = word8;
^~~~~
myspell_checker.cpp: In member function ‘bool MySpellChecker::checkWord(const char*, size_t)’:
myspell_checker.cpp:173:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [Makefile:420: myspell_checker.lo] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-nurunner/aur-enchant-pure/src/enchant-1.6.0/src/myspell'
make[1]: *** [Makefile:427: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-nurunner/aur-enchant-pure/src/enchant-1.6.0/src'
make: *** [Makefile:379: all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build enchant-pure.

sbmomeni commented on 2013-08-03 13:40

The 'dbus-glib' dependency is updated to indicate its minimum required version.

sbmomeni commented on 2013-08-01 06:40

@cfr42
About Hunspell:
The description is updated :) Thanks for notice =)

About inclusion of hspell:
If the 'hspell' could not be supported without making it one of dependencies of 'enchant', I would completely agree with your reasoning =)
But there is another solution: Did you see the 'enchant-voikko' <https://aur.archlinux.org/packages/enchant-voikko/> package? It depends on 'enchant' and adds 'voikko' backend (for Finnish) by adding its .so file.

Here, they can create 'enchant-hspell' which depends on 'enchant' and adds 'hspell' .so files.
I'm going to submit the 'enchant-hspell' package soon =)

cfr42 commented on 2013-07-31 23:04

Also I think you may have misunderstood 'minimalist'. If the only way to provide hspell functionality through enchant is to build against it, I think Arch's philosophy supports its inclusion. Lots of packages include dependencies which are "not required" because they provide functionality. Some users may not want all of those functions but the packages have to be configured to support as many users as possible within reasonable limits. For most languages, it is easy to split off the language-specific stuff from the spell checker framework (enchant, aspell, hunspell) but it seems the best option for Hebrew happens to be language specific (hspell). So there is a completely logical reason to treat Hebrew differently. Lots of packages have dependencies I don't personally need. If I don't want them, I can always use ABS. I don't see why this case is any different.

cfr42 commented on 2013-07-31 22:57

I think you should alter the description to reflect the fact that this does also support hunspell since that provides at least a little more support for the claim that it supports "all" languages.

sbmomeni commented on 2013-07-31 20:03

This package provides 'enchant' package.
It fixes some of compile time warnings by the 'warnings-fix.patch' file.
It only depends on packages which are required to support 'Aspell' and 'Myspell' backends.

Unfortunately, the 'enchant' package in the 'extra' repository has non-required dependencies, contradicting the Arch's minimalist approach.
It depends upon the 'hspell' and installs 'Hebrew' dictionary on all systems by default.
This is reported at <https://bugs.archlinux.org/task/36278>.
However, maintainer refuses to omit 'hspell' dependency, while the 'hunspell-he' package is already available in the 'extra' repo (at <https://www.archlinux.org/packages/extra/x86_64/hunspell-he/>) for 'Hebrew' language. Argued reason can be summarized as: "hspell is a small dependency and it outperforms hunspell-he, so I want to keep it there".

If you feel bad about this contradicting situation, please show your support by voting for this pure package.