[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: Re: [Aspell-user] Bug?
From: Kevin Atkinson <kevina () gnu ! org>
Date: 2004-05-20 21:09:07
Message-ID: Pine.LNX.4.44.0405201708440.19186-200000 () kevin-p3 ! atkinson ! dhs ! org
[Download RAW message or body]
On Thu, 20 May 2004, Mashrab Kuvatov wrote:
> Dear Kevin
>
> > A bug in Aspell. Attached is a patch to fix it.
>
> Thanks for the patch. It works. The error message has gone, but
> I still have problem with adding words into personal dictionary.
>
> Namely, pressing "a" does not add a word into personal dict. I have
> ~/.aspell.uz.pws, but it has only one line "personal_ws-1.1 uz 3 utf-8".
> Every time I spell check a file and add some words the number between
> "uz" and "utf-8" in the above line is reset and no word is added.
>
> Replace is working as expected.
Attached is a fix.
--
http://kevin.atkinson.dhs.org
["save.diff" (TEXT/PLAIN)]
--- modules/speller/default/writable.cpp~ Wed May 19 23:18:05 2004
+++ modules/speller/default/writable.cpp Thu May 20 17:05:23 2004
@@ -522,16 +522,14 @@
out.printf("personal_ws-1.1 %s %i %s\n",
lang_name(), word_lookup->size(), file_encoding.c_str());
- SoundslikeLookup::const_iterator i = soundslike_lookup_.begin();
- SoundslikeLookup::const_iterator e = soundslike_lookup_.end();
+ WordLookup::const_iterator i = word_lookup->begin();
+ WordLookup::const_iterator e = word_lookup->end();
StrVector::const_iterator j;
ConvP conv(oconv);
for (;i != e; ++i) {
- for (j = i->second.begin(); j != i->second.end(); ++j) {
- out.printf("%s\n", conv(*j));
- }
+ out.printf("%s\n", conv(*i));
}
return no_err;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic