Commit graph

5 commits

Author SHA1 Message Date
Bradley M. Kuhn
8852595327 Convert to Python 3 2015-12-21 23:57:33 -08:00
Tom Marble
634924e002 Correct licensing info per author's instructions.
I discussed the licensing of this file with Tom Marble, and he agreed in
IRC that LGPLv2.1-or-later is the proper license.

  <bkuhn> tmarble: in 2013-01 you sent me some scripts for ods2xls
  <bkuhn> you mention they're based on ssconv
  <bkuhn> but they don't have license info
  <bkuhn> I was putting it into a public repository and then figured I should
          ask you first.  [11:45]
  <tmarble> oh my.. I will look  [11:46]
  <bkuhn> tmarble: if you figure it out, I can commit the files and you can add
          a license.  [11:47]
  <bkuhn> the lib is lgpl'd, that's marked
  <bkuhn> (although you didn't mark your copyright notice if you canged it)
  <tmarble>
            http://www.linuxjournal.com/content/convert-spreadsheets-csv-files-python-and-pyuno
                                                                        [11:57]
  <tmarble> bkuhn: sorry this was sort of a small, hacky script and didn't get
            the "full treatment"  [11:58]
  <tmarble> clearly it should be LGPLv2+
  <bkuhn> tmarble: do you recall if you modified the library as well as the
          script?  [12:07]
  <bkuhn> I see you put this in the lib:
  <bkuhn> #   PyODConverter (Python OpenDocument Converter) v1.0.0 - 2008-05-05
  <bkuhn> #   Copyright (C) 2008 Mirko Nasato <mirko@artofsolving.com>
  <bkuhn> #   Licensed under the GNU LGPL v2.1 - or any later version.
  <bkuhn> #   http://www.gnu.org/licenses/lgpl-2.1.html
  <bkuhn> and no copyright notices in the main program file
  <bkuhn> can you tell me what it should be?
  <tmarble> bkuhn: IIRC I did not modify ooutils  [12:09]
  <tmarble> bkuhn: yeah, sorry about that.. it's not even in VCS  [12:10]
  <bkuhn> It's ok.
  <bkuhn> I'm putting it public in my small hacks directory.
  <tmarble> bkuhn: as I mentioned before let's stick with LGPLv2.1+
  <bkuhn> As I use it all the time.
  <bkuhn> and someone else might find it useful
  <bkuhn> I believe one has a moral duty to share all software. :)
  <tmarble> please feel free to adjust the headers!
  <bkuhn> tmarble: may I quote this conversation  in the Git log?
  <tmarble> bkuhn: I loved karen's citing your quote "You may say I'm a dreamer,
            but I'm not the only one."  [12:11]
 <tmarble> bkuhn: yes
2014-09-05 16:34:50 -04:00
Tom Marble
b3da77a17d Updated version to generate xls instead of xls.
This was emailed to bkuhn by tmarble in the email identified below:

  Date: Fri, 04 Jan 2013 14:38:49 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: w/debug ods2xls.py
  Message-ID: <50E73DD9.4010602@info9.net>
2014-09-05 16:28:58 -04:00
Tom Marble
e35ab803e9 Update as emailed to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 21:55:08 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: Re: ods2xlsx.py
  Message-ID: <50E6529C.7040009@info9.net>
2014-09-05 16:26:44 -04:00
Tom Marble
5906f15f4b ods2xls.py, sent to bkuhn by tmarble in this email:
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/1007788
http://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
$
2014-09-04 11:41:06 -04:00