Date: Thu, 03 Jan 2013 18:57:19 -0600
From: Tom Marble <tmarble@info9.net>
To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
Subject: ods2xlsx.py
Tom did not indicate the license of this file or ssconv.py, so I'm
waiting for him to clarify.
Tom mentioned this usage information in the email:
You will need:
These examples are adapted from:
http://www.linuxjournal.com/node/1007788http://www.linuxjournal.com/node/1007797
^ I saved as ssconv.py and can share with you if you like
NOTE: you MUST save and exit LibreOffice first!
NOTE: you must save both *.py in the same directory.
I could not figure out the filter for XLSX as for XLS:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options
Usage:
$ ./ods2xlsx.py ~/Documents/sample.ods ~/Documents/sample2.ods
/home/tmarble/Documents/sample.ods => /home/tmarble/Documents/sample.xls
Warning: -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager is deprecated. Use --accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager instead.
Warning: -norestore is deprecated. Use --norestore instead.
Warning: -nofirststartwizard is deprecated. Use --nofirststartwizard instead.
Warning: -nologo is deprecated. Use --nologo instead.
Warning: -headless is deprecated. Use --headless instead.
/home/tmarble/Documents/sample2.ods => /home/tmarble/Documents/sample2.xls
$
Date: Thu, 03 Jan 2013 18:57:19 -0600
From: Tom Marble <tmarble@info9.net>
To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
Subject: ods2xlsx.py
Message-ID: <50E628EF.7080207@info9.net>
Tom indicates it was adapted from Mirko Nasato's code. I don't know if
Tom adapted it himself. The license therefore is clearly
LGPLv2.1-or-later, but Tom may also have copyrights here. I've asked
him to add his copyright notice if he does.
It's possible this cleanup code is causing serious problems during failures,
because it's leaving us no ics files when the export fails. Probably it
would be better if we move aside the ics files and restore them later.
Instead, give a message in the conky output, which is the better thing to do,
since the config file (at least for me) may be on a partition that hasn't
been mounted.