Page 1 of 1

Editing a dictionary (.oxt)

PostPosted: Sun Oct 23, 2016 1:40 pm
by zkvvoob

Could anyone help me understand how to edit an existing .oxt dictionary file? I fear that the current Bulgarian dictionary is not Unicode and as a result causes some problems when I try to use it with an external app.

Is there a way this could be rectified?


Re: Editing a dictionary (.oxt)

PostPosted: Sun Oct 23, 2016 1:44 pm
by RoryOF
Dictionaries in OO are in Hunspell format, so start with the Hunspell site.

Re: Editing a dictionary (.oxt)

PostPosted: Wed Oct 26, 2016 8:52 am
by esperantisto
An OXT file is merely a zip archive. Unpack its contents to any location and edit the bg_BG.dic file. It is plain-text file and the encoding should be cp1251, as I understand, thus it is editable in any good text editor. If you wish (and your are certain that the problem(s) you mention are really related to the encoding, which seems doubtful to me), you can re-save it to UTF-8, but then you should respectively re-save the bg_BG.aff file with the new encoding and modify the encoding declaration in that file.