Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2011 11:53:54 GMT
From:      Martin Laabs <spamtrap@martinlaabs.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156034: print/lyx-devel spell checking with enchant does not work
Message-ID:  <201103291153.p2TBrs4j054195@red.freebsd.org>
Resent-Message-ID: <201103291200.p2TC0MgZ017728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103291153.p2TBrs4j054195>