What is the Encoding of User-Defined Dictionaries?

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
skipidar
Posts: 2
Joined: Fri Sep 25, 2009 5:51 pm

What is the Encoding of User-Defined Dictionaries?

Post by skipidar »

Hello, I would like to convert lists of words into user-defined dictionaries for spell-checking,
but I can't figure out the encoding of the .dic files in Open Office.

Do someone know the used encoding?
OpenOffice 3.1 on Windows Vista
User avatar
Hagar Delest
Moderator
Posts: 30420
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: What is the Encoding of User-Defined Dictionaries?

Post by Hagar Delest »

I remember that one: Sharing dictionary files.
LibreOffice 7.2.6 on Xubuntu 22.04 and 7.2.6 portable on Windows 10
User avatar
franx
Volunteer
Posts: 540
Joined: Wed Nov 12, 2008 9:25 pm
Location: FRA 'n' QXB

Re: What is the Encoding of User-Defined Dictionaries?

Post by franx »

Hi,
there's also a macro which can execute that task →

OOo Dictionary Importer/Exporter
Import/Export Text File into/from OOo Dictionary
Author: Russ Phillips
Latest release: ImportExportDictionary1-1.zip Version 1.1 (June 21, 2004)
This macro has a GUI that makes it simple to import words from a text
file into an OOo dictionary, or to export an OOo dictionary to a text
file for easier editing.
(Please set Macro Security to Medium before starting the macro
Tools > Options > OpenOffice.org > Security > Macro security > Macro Security ... > [X] Medium)
LibreOffice 4.0.4 · WinXP
skipidar
Posts: 2
Joined: Fri Sep 25, 2009 5:51 pm

Re: What is the Encoding of User-Defined Dictionaries?

Post by skipidar »

Hello all,

thanks franx, this makro comes close to that, what i would like to have.

I found out, that user-defined dictionaries are compiled binary files. It' format is WBSWG6 - an specific Open Office thing.
The possibility of compiling own user-defined dictionaries seem no to exist yet,
some time ago there was an article (http://www.linux.com/archive/articles/51675), which included a "howto" about editing user-defined dictionaries manually but this didn't work for me on Windows, with Open Office 3.1.0

What I want, is editing user-defined dictionaries programmatically.

Its possible to convert OO Dic to any String, by opening it with UTF-8 encoding, and deleting all special characters.
I didn't find the possibility to turn a String to a user-defined dictionary yet. For that i need the possibility of compiling WBSWG6 Files.

I will try to contact the developers, and post everything i will find out.
OpenOffice 3.1 on Windows Vista
Post Reply