ports/156034: print/lyx-devel spell checking with enchant does not work
Martin Laabs
spamtrap at martinlaabs.de
Tue Mar 29 12:00:22 UTC 2011
>Number: 156034
>Category: ports
>Synopsis: print/lyx-devel spell checking with enchant does not work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 29 12:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Martin Laabs
>Release: 8.1-STABLE
>Organization:
-
>Environment:
FreeBSD pc.martinlaabs.de 8.1-STABLE FreeBSD 8.1-STABLE #2: Fri Oct 29 12:55:22 CEST 2010 martin at pc.martinlaabs.de:/usr/obj/usr/src/sys/MYKERNEL i386
>Description:
With enchant as spell checker lyx-devel does not spell check any word. All words are marked as correct.
I use lyx-devel-2.0.0.r1 and enchant-1.6.0.
I solved this problem by commenting a check out that evaluates to false, even if the dictionary exists. I do not why this check fails since the code seems to be a 1:1 copy out of the enchant API documentation.
However - without the check lyx spellchecking works as expected.
>How-To-Repeat:
Install lyx-devel, enable the enchant option with make config, install enchant and a dictionary and try spell checking a document out of lyx
>Fix:
@ -70,10 +70,17 @@ enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang)
{
enchant::Broker * instance = enchant::Broker::instance();
- if (!instance->dict_exists(lang))
+
+/* The following staement evaluates to false even if the
+ directory exist.
+ If the directory really does not exist the following
+ statment ( if (dict)... ) will fail so we do not need
+ this error handling for the moment
+
+ if (!instance->dict_exists(lang))
// FIXME error handling?
return 0;
-
+*/
enchant::Dict * dict = instance->request_dict(lang);
if (dict) {
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list