The Following 77 Users Say Thank You to Rob1n For This Useful Post: | ||
AlMehdi, b-man, bakuur, benny1967, Benson, Bingley Joe, birefringence, BLC, bockersjv, ceevee, Chrome, cipper, cjp, codeMonkey, D4rKlar, dana.s, DaSilva, debernardis, Dosenblech, EmmaGx, F2thaK, Flandry, fms, geneven, Helmuth, HtheB, hypoxic, ivgalvez, jbw89, jcharpak, jeffsf, joerg_rw, Kaamp, krk969, lma, logicalsid, lolloo, lsolano, m1lan, Maj3stic, mannakiosk, marble, matts76, MohammadAG, n900maniac, Natan_xy, Netweaver, P@t, Patola, pelago, qole, qosmio, quipper8, qwerty12, qwertyberty, rmoravcik, Sasler, scifi.guy, skalogre, sowwhatyoureap, Stealth131, steph, The Arsonist, thommy, travla, tuxsavvy, uvatbc, Venemo, w00t, Wikiwide, woody14619, xperto, YoDude, youngcalihottie, zimon, ZogG |
|
2010-06-11
, 10:12
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#2
|
|
2010-06-11
, 10:15
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#3
|
The Following User Says Thank You to pelago For This Useful Post: | ||
|
2010-06-11
, 10:19
|
Posts: 1,397 |
Thanked: 2,126 times |
Joined on Nov 2009
@ Dublin, Ireland
|
#4
|
|
2010-06-11
, 10:53
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#5
|
|
2010-06-11
, 13:46
|
Posts: 68 |
Thanked: 16 times |
Joined on Feb 2007
|
#7
|
File "/opt/AutoCompleteEditor/AutoCompleteEditor.py", line 17, in <module>Wasn't able to catch the whole stuff.
w.loadData()
File "/opt/AutoCompleteEditor/ACE_gui.py", line 157, in loadData
self._dict = ACEFile()
File "/opt/AutoCompleteEditor/ACE_file.py", line 34, in __init__
self.read()
File "/opt/AutoCompleteEditor/ACE_file.py", line 119, in read
|
2010-06-11
, 13:49
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#8
|
|
2010-06-11
, 14:07
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#9
|
Just tried it but got error:File "/opt/AutoCompleteEditor/AutoCompleteEditor.py", line 17, in <module>Wasn't able to catch the whole stuff.
w.loadData()
File "/opt/AutoCompleteEditor/ACE_gui.py", line 157, in loadData
self._dict = ACEFile()
File "/opt/AutoCompleteEditor/ACE_file.py", line 34, in __init__
self.read()
File "/opt/AutoCompleteEditor/ACE_file.py", line 119, in read
Any clue?
|
2010-06-11
, 14:15
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#10
|
Out of interest, how did you determine the format anyway? It's a shame it isn't documented openly by Nokia.
The Following User Says Thank You to Rob1n For This Useful Post: | ||
So, I'd like to announce the snappily-named "AutoComplete Editor", coming shortly to an extras-devel repository near you. It allows deletion and addition of terms from the custom auto-complete dictionary. I'm not sure how well this'll handle international character sets, so I'd appreciate some feedback from anyone using those.
For future reference, the custom auto-complete dictionary (/home/user/.osso/dictionaries/.personal.dictionary) format is:
An 8 byte header, consisting of a 3-byte hex sequence 80 00 01 (though I've also seen 01 00 01), followed by a single byte indicating the number of different dictionaries, followed by a single byte indicating the file size (in 256-byte multiples, so 0x04 indicates a 1kb file), followed by 0x00, followed by a 2-byte sequence indicating the position the padding starts.
This is followed by one or more 8-byte dictionary entries, consisting of a 2-byte sequence indicating the dictionary language (or 0x00 followed by a single byte), then a 2-byte sequence indicating the start position of the dictionary entries, followed by a 2-byte sequence indicating the number of entries in the dictionary, followed by a 2-byte hex sequence 00 00.
The dictionary data is stored as a single byte indicating the string length, followed by the string itself. The multiple entries follow straight on from each other, with no other delimiters.
Here's a screenshot for 0.0.4 (there's been no major changes to the default layout since then):
Current releases are:
0.0.12 in extras-devel. This allows:
For those having issues, please see this post for how to generate a clean dictionary file. If this doesn't show the same issue then please consider sending me the original dictionary - all received files will be kept completely confidential and will be deleted as soon as I've fixed the relevant issue. Any dictionaries can be emailed to me at: maemo at robinhill.me.uk
Last edited by Rob1n; 2010-07-08 at 10:57. Reason: Cleaned up and removed old edits. Added details for 0.0.11.