From mfioretti at nexaima.net Fri May 21 16:53:39 2010 From: mfioretti at nexaima.net (M. Fioretti) Date: Fri May 21 17:23:02 2010 Subject: [odf-discuss] Why and how the OpenDocument format can save you a lot of time! Message-ID: <20100521205339.GL2785@nexaima.net> Greetings, here is the introduction to a series of quick and dirty recipes I'll publish on my "tips &tricks" website: http://freesoftware.zona-m.net/why-and-how-opendocument-format-can-save-you-lot-time If there's any specific trick you'd like to see explained in that series, just ask and I'll do my best to add it. HTH, Marco -- Why Open Digital Standards Matter in Government: http://stop.zona-m.net/digiworld/why-open-digital-standards-matter-government From andy at the-martin-byrd.net Fri May 21 18:00:32 2010 From: andy at the-martin-byrd.net (Andy Brown) Date: Fri May 21 19:04:27 2010 Subject: [odf-discuss] Why and how the OpenDocument format can save you a lot of time! In-Reply-To: <20100521205339.GL2785@nexaima.net> References: <20100521205339.GL2785@nexaima.net> Message-ID: <4BF70280.3090801@the-martin-byrd.net> M. Fioretti wrote: > Greetings, > > here is the introduction to a series of quick and dirty recipes I'll > publish on my "tips &tricks" website: > > http://freesoftware.zona-m.net/why-and-how-opendocument-format-can-save-you-lot-time > > If there's any specific trick you'd like to see explained in that > series, just ask and I'll do my best to add it. > > HTH, > Marco Thank for link, Marco. I just took a quick glance at it but it looks promising and I will be passing it on to a group that I am trying to convince to switch to ODF. Andy From mfioretti at nexaima.net Sat May 22 04:49:24 2010 From: mfioretti at nexaima.net (M. Fioretti) Date: Sat May 22 04:52:10 2010 Subject: [odf-discuss] Why and how the OpenDocument format can save you a lot of time! In-Reply-To: <4BF70280.3090801@the-martin-byrd.net> References: <20100521205339.GL2785@nexaima.net> <4BF70280.3090801@the-martin-byrd.net> Message-ID: <20100522084924.GE2557@nexaima.net> On Fri, May 21, 2010 15:00:32 PM -0700, Andy Brown (andy@the-martin-byrd.net) wrote: > M. Fioretti wrote: > >Greetings, > > > >here is the introduction to a series of quick and dirty recipes I'll > >publish on my "tips &tricks" website: > > > >http://freesoftware.zona-m.net/why-and-how-opendocument-format-can-save-you-lot-time > > Thank for link, Marco. I just took a quick glance at it but it > looks promising and I will be passing it on to a group that I am > trying to convince to switch to ODF. You're welcome! Here's a first, practical example of what I was talking about: http://freesoftware.zona-m.net/how-automatically-create-opendocument-invoices-without-openoffice Marco From soren.roug at eea.europa.eu Sat May 22 06:00:16 2010 From: soren.roug at eea.europa.eu (=?iso-8859-1?q?S=F8ren_Roug?=) Date: Sat May 22 06:19:16 2010 Subject: [odf-discuss] Why and how the OpenDocument format can save you a lot of time! In-Reply-To: <20100522084924.GE2557@nexaima.net> References: <20100521205339.GL2785@nexaima.net> <4BF70280.3090801@the-martin-byrd.net> <20100522084924.GE2557@nexaima.net> Message-ID: <201005221200.16920.soren.roug@eea.europa.eu> It's somewhat of a brute force solution. The main issue is that the mimetype has to be the first element in the zip-file and not be compressed in order to comply fully with the specification Since the my_template.odt file already complies, it is much easier to take out only content.xml and then stuff it back in. cp my_template.odt new_$FILENAME.odt unzip new_$FILENAME.odt content.xml sed ..... content.xml >custom_content.xml mv custom_content.xml content.xml zip -f new_$FILENAME.odt content.xml On Fri, May 21, 2010 15:00:32 PM -0700, Andy Brown (andy@the-martin-byrd.net) wrote: > M. Fioretti wrote: > >Greetings, > > > >here is the introduction to a series of quick and dirty recipes I'll > >publish on my "tips &tricks" website: > > > >http://freesoftware.zona-m.net/why-and-how-opendocument-format-can-save- you-lot-time > > Thank for link, Marco. I just took a quick glance at it but it > looks promising and I will be passing it on to a group that I am > trying to convince to switch to ODF. You're welcome! Here's a first, practical example of what I was talking about: http://freesoftware.zona-m.net/how-automatically-create-opendocument-invoices- without-openoffice Marco _______________________________________________ odf-discuss mailing list odf-discuss@opendocumentfellowship.com http://lists.opendocumentfellowship.com/mailman/listinfo/odf-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.opendocumentfellowship.com/pipermail/odf-discuss/attachments/20100522/7028edd1/attachment.htm From mfioretti at nexaima.net Sat May 22 06:33:41 2010 From: mfioretti at nexaima.net (M. Fioretti) Date: Sat May 22 06:36:10 2010 Subject: [odf-discuss] Why and how the OpenDocument format can save you a lot of time! In-Reply-To: <201005221200.16920.soren.roug@eea.europa.eu> References: <20100521205339.GL2785@nexaima.net> <4BF70280.3090801@the-martin-byrd.net> <20100522084924.GE2557@nexaima.net> <201005221200.16920.soren.roug@eea.europa.eu> Message-ID: <20100522103341.GI2557@nexaima.net> On Sat, May 22, 2010 12:00:16 PM +0200, S?ren Roug (soren.roug@eea.europa.eu) wrote: > It's somewhat of a brute force solution. excellent point. I have already added your suggestion as a comment to the article, obviously giving credit: http://freesoftware.zona-m.net/how-automatically-create-opendocument-invoices-without-openoffice Again, you're all welcome to suggest more, either here or on the website itself. Just one quick note about "brute force": I assume that you refer only to the unzipping of the whole file, not to the general approach, right? Because I _do_ know that the approach is brute, or at least not elegant, nor scalable. I explained well in the introduction page when and why this way to process ODF is more effective than doing things seriously with real, XML-aware tools. Marco