Support validating flat odf documents
I'm building rechenbrett, a go library for creating open document spreadsheet files. I care about creating valid documents, so I was looking for a validator. If I understood it right, odf toolkit can only work with 'normal'/zipped ods files, not with flat ods files (fods). I like using fods files because they are friendly for version control.
Would it be possible to allow validating flat ods files with this validator? This would simplify my development workflow as working with zipped ods files is a bit cumbersome when developing/debugging.
yes that's true; so far nobody required flat ODF validation but if there's a patch to implement that i'd review it...
@fwilhe2, you might also consider unzipping the ODS, normalising the XML (like ODF conform line indent) and checking this into Git: https://github.com/oasis-tcs/odf-tc/tree/master/src/main/resources/odf1.4/OpenDocument-v1.4-part4-formula_odt ) Four years ago, there was a bug in LibreOffice that, with every save, the automatic style names changed, causing a lot of noise.. This batch might work with pre-commit actions of Git or a plain script, but I got a cold and can not wrap my head around atm...
PS: Of course, you might use the LibreOffice pretty printing, see https://github.com/oasis-tcs/odf-tc?tab=readme-ov-file#odf-editing-tool (as I have a cold, better stop now)...
yes that's true; so far nobody required flat ODF validation but if there's a patch to implement that i'd review it...
Got it, might look into it. Thanks.