After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109190 - RFE: Use system dictionary
RFE: Use system dictionary
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: David Bolter
David Bolter
Depends on:
Blocks: 122112
 
 
Reported: 2003-03-25 21:06 UTC by simon.bates
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
provides infrastructure for doing this and proof-of-concept implementation (7.53 KB, patch)
2003-10-01 20:36 UTC, bill.haneman
none Details | Review

Description simon.bates 2003-03-25 21:06:27 UTC
At CSUN Bill Haneman suggested that GOK could make use of system
dictionaries for word completion. This is important for
internationalisation.
Comment 1 bill.haneman 2003-05-16 18:17:12 UTC
lowering priority for now; still would like to do it!
but there's the problem of storing frequency tables, which most system
dicts don't include.
Comment 2 David Bolter 2003-06-01 23:01:50 UTC
Note: once the dictionary "learns" we might want to revisit this.
Comment 3 bill.haneman 2003-09-10 12:36:05 UTC
raising prio and severity, since the alternative is localizing the
whole GOK dictionary!

much more desirable IMO to have some way to use or import the system
dictionary.  Perhaps the best workaround is to have a feature allowing
importation of the system dictionary.

Comment 4 bill.haneman 2003-09-26 08:25:44 UTC
ispell, at least, can dump the contents of its entire dictionary to
stdout.  We can use that to import the dictionary into GOK, setting
frequency of each word initially to '1' (will work best once the
frequency values are updated during word completion, i.e. when GOK can
'learn' a user's word usage patterns).
Comment 5 bill.haneman 2003-10-01 20:36:29 UTC
Created attachment 20414 [details] [review]
provides infrastructure for doing this and proof-of-concept implementation
Comment 6 bill.haneman 2003-10-01 20:42:39 UTC
above patch isn't really ready to commit:

* it uses a hard-coded location for the aspell system dictionary 
* it doesn't update the word frequencies
* it doesn't check for duplicates

possibly it'd be better to import the system dict (at first invocation
of gok?) as we've discussed, than to read in a dictionary at runtime.
 Also, instead of reading the dictionary from disk, it'd be more
acceptable to run either aspell C API (disadvantage- build-time
dependencies) or run 'aspell dump' to a tmpfile.  The latter is
probably safer and more reliable generally, and can be used for
importing the system dict.  

We should probably sort the dict too, that'd make things much more
efficient.
Comment 7 bill.haneman 2003-10-09 16:47:30 UTC
adding accessibility keyword
Comment 8 bill.haneman 2003-11-04 13:41:34 UTC
instead of a 'fixed' system dictionary, what is implemented is the
ability to specify a 'wordlist' or dictionarly anywhere in the user's
file system, via gconf.