News for hackers. Stuff that matters.
Re:The 0.5 MB of nothing in all Apple Music files (2020) by sjhuang26 on Thursday April 07, 2022 @09:32AM (#30944192)
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.
Re:The 0.5 MB of nothing in all Apple Music files (2020) by dotancohen on Thursday April 07, 2022 @09:47AM (#30944369)
This 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
Re:The 0.5 MB of nothing in all Apple Music files (2020) by ktpsns on Thursday April 07, 2022 @09:39AM (#30944282)
Wow, 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.
Re:The 0.5 MB of nothing in all Apple Music files (2020) by lelanthran on Thursday April 07, 2022 @09:47AM (#30944364)
I 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.