Ask Your Question
1

How do I edit .dic files?

asked 2012-09-20 23:21:54 +0200

Yohane gravatar image Yohane flag of Malawi
23 1 1 6

updated 2012-09-22 11:17:15 +0200

manj_k gravatar image manj_k
5770 4 33 49

For simplicity I want to combine 4 custom language .dic files into one file. How can I do this, and what is the limit of entries in a single .dic file in LibreOffice? [I'm using LibreOffice 3.4.4 in Linux Mint 12, Gnome 3.2.1]

delete close flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

answered 2012-09-21 17:39:24 +0200

manj_k gravatar image manj_k
5770 4 33 49

updated 2012-09-21 22:15:04 +0200

If you are referring to user-defined dictionaries "xyz.dic"
(path: .../user/wordbook) in user-editable "OOoUserDict1" format,
e.g. Language English (USA):

OOoUserDict1
lang: en-US
type: positive
---
[...]

(1) Open the "*.dic" files with a text editor, and copy/paste the word lists in a single "sample.txt" file (flat UTF-8).

(2) Sort the content: alphanumeric, ascending (you may use Writer, menu "Tools → Sort").

(3) Add the encoding lines at the beginning ("OOoUserDict1...", see above).

(4) Save the file, rename it to "sample.dic", add "sample.dic" to .../user/wordbook.

(5) Open Writer, check menu `Tools → Options → Language Settings → Writing Aids → User-defined dictionaries → ☑ sample [English (USA)].

See also (OOo) → Bug 106032 - linguistic: make human-readable user-dicts the default format?

As far as I can see in → Bug 48676 - Remove or expand limitation on User dictionary, the limit of entries in a user-defined dictionary has the value 30,000.

EDIT 2012-09-21

Thanks @Yohane,
the dictionary format for "Language: [All]":

OOoUserDict1
lang: <none>
type: positive
---
[...]
link delete flag offensive edit
1

answered 2012-09-21 21:09:23 +0200

Yohane gravatar image Yohane flag of Malawi
23 1 1 6

Thank you Manj_k, This has worked, and in 5 minutes my four user defined dictionaries were combined into one, and works faster and seems to bring up more complete lists in the correction option pop-up menu. BTW the single new file, has 7,800 entries.

Below is the file format:

OOoUserDict1 lang: <none>

type: positive

[my list of words are here, A-Z sorted, no spaces allowed, just word and return.] Note lang: <none>

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-09-20 23:21:54 +0200

Seen: 805 times

Last updated: Sep 21 '12