Ask Your Question

Can I edit autocorrect DAT files?

asked 2016-02-26 04:15:24 +0200

JeanP gravatar image

updated 2016-02-26 04:19:31 +0200

I have lots of Autohotkeys autocorrect entries which I want to import in LibreOffice, and not by hand. In OpenOffice I could edit the Oos file, what about here?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-02-26 08:56:24 +0200

oweng gravatar image

updated 2016-02-26 08:57:44 +0200

The AutoCorrect DAT files are actually just ZIP files:

$ unzip -l /opt/libreoffice5.1/share/autocorr/acor_en-AU.dat 
Archive:  /opt/libreoffice5.1/share/autocorr/acor_en-AU.dat
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2016-02-11 14:15   mimetype
      464  2016-02-11 17:06   BlockList.xml
   169204  2016-02-11 17:06   DocumentList.xml
      373  2016-02-11 17:06   META-INF/manifest.xml
     6871  2016-02-11 17:06   SentenceExceptList.xml
     1344  2016-02-11 17:06   WordExceptList.xml
---------                     -------
   178256                     6 files

... so either use an XML editor or some other kind of transforming tool.

edit flag offensive delete link more


Thanks. I finally managed it.

JeanP gravatar imageJeanP ( 2016-02-26 14:23:50 +0200 )edit

answered 2019-05-13 19:08:08 +0200

egl gravatar image

Hi there! Exporting/importing Autocorrect Entries is not working for me (on Mac High Sierra, and LibreOffice Version:

What I have done: - found the "acor_pt-BR.dat" file (it stands for Brazilian Portuguese); - extracted the .dat file with "The Unarchiver"; - edited the “DocumentList.xml”; - compressed all the "acor_pt-BR" files with "The Unarchiver", which became ""; - renamed "" to "acor_pt-BR.dat".

But it did not work. I even tested decompressing/compressing the "acor_pt-BR.dat" file with no editing at all. No luck.

I think there are two options here: 1. I think "open" and "extract" are different things. Then, instead of extracting the .dat file, I could just to open it, and then edit the “DocumentList.xml” inside the .dat file. So, I would not have to "dat" it again just close the file. But I could not find an app that does that on a Mac. (Actually I do not know wether it is possible to open a compressed file and edit it, without extracting it, and simply closing it). or 2. Find a way to compress the "acor_pt-BR" extracted folder into "acor_pt-BR.dat" again, but I do not know how to do it.

Therefore, my questions are: 1. Is there a way to open and edit a dat file without extracting it? 2. Does anyone know an app to compress a folder into a ".dat" file?

Thank you!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-02-26 04:15:24 +0200

Seen: 195 times

Last updated: May 13