3 ms·
In your case, LibreOffice allows you to save the file as Flat XML (e.g., .fodt), and the document will be written as a single uncompressed file. Unfortunately,
by sjhuang26 5y ago
In your case, LibreOffice allows you to save the file as Flat XML (e.g., .fodt), and the document will be written as a single uncompressed file. Unfortunately, few apps have a feature like this.
- ktpsns 5y agoWow, thanks for the Flat OpenDocument file type! Such kind of files are much better to treat with git (i.e. human readable diffs, for instance). However, unfortunately, these files tend to get very large (200kB ODS vs. 7MB FODS). What a pity the XML itself is not less verbose.
- lelanthran 5y agoI dunno if that will help. I know Dia lets you store the uncompressed XML, but I have seen it sometimes have a 100% diff due to the serialiser moving *everything* around when all that happened was that I rearranged half the blocks on the diagram.
- dotancohen 5y agoThis is perfect for my use case, thank you! The .fodt file is 150K, vs 117K for the .odt file. But after changing a word less than 20 of the 1983 lines in the file have changed. $ ls -hl todo.fodt -rw-rw-r-- 1 dotancohen dotancohen 150K Apr 7 16:41 todo.fodt $ ls -hl todo.odt -rwxrwxr-x 1 dotancohen dotancohen 117K Apr 6 12:01 todo.odt $ wc -l todo.fodt 1983 todo.fodt $ cp todo.fodt todo-edit-one-line.fodt $ libreoffice todo-edit-one-line.fodt $ diff todo.fodt todo-2.fodt | grep "+ " | wc -l 19