Hi,
The file format of the files in the share/wordbook/* directories seems
to be pretty straightforward. 2 bytes length, then the string.

Well, almost. There is also place for the suggested word in case of
'negative' dictionaries.

But the
very first entry seems to be different: It's 2 bytes length, a string
(not an entry, something else) and then 2 bytes of some Info, followed
by a '\0' byte.

What do these first few bytes mean?

It is to distinguish different file format versions.
Since AFAIK those dictionaries were around since
StarOffice/StarWriter 2.0 the file format has changed several times.

Theoretically a dictionary from SO4, SO5 or even SO2 should still work.
But I guess there is no such dictionary in use anymore to check this.

Anyway, if what you are trying to get at is reading/processing the
contents of the user-dictionaries you should use the respective API
(XDictionaryList & XDictionary) to access them.
It would be more straight forward than to guess about the file format
where even I would need to check the code if you had asked anything
beyond the above.

Regards,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to