Ask Your Question
0

Adding bulk entries into autocorrect list

asked 2019-02-25 14:48:30 +0200

crazypiglady gravatar image

Hi. I have an 'empty' computer and want to import a large number of autocorrect entries into libreoffice. I've found part of the answer (in https://ask.libreoffice.org/en/questi...) which explains how to add or replace the accor.dat file with a newer one.

The problem with this is that my existing autocorrect entries aren't in libreoffice dat format (they're in an alternative wordprocessor in plain text) I was hoping to find a text file to copy and paste my existing entries into.

Let me know if I'm missing something please.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-02-26 10:18:06 +0200

gabix gravatar image

An autocorrect .dat file is actually a zip archive with a certain structure. An autocorrect list is an XML file (DocumentList.xml) within the .dat archive and, obviously, has a certain structure too. Here is an example of an entry to replace 2/3 with :

<block-list:block block-list:abbreviated-name="2/3" block-list:name="⅔"/>

Thus, if your autocorrect file is structured in a way that can be converted to the above structure, then:

  1. Convert.
  2. Extract DocumentList.xml.
  3. Paste the entries into DocumentList.xml.
  4. Pack DocumentList.xml back into the .dat file (first, back up the latter).
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-02-25 14:48:30 +0200

Seen: 24 times

Last updated: Feb 26