• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

An Antic Disposition

  • Home
  • About
  • Archives
  • Writings
  • Links
You are here: Home / Archives for ODF

ODF

ODF Performance Tip #1: Don’t re-compress images

2010/04/07 By Rob 4 Comments

ODFDOM is an open source (Apache 2.0) Java library for reading, writing and modifying ODF documents.  It runs standalone, not requiring OpenOffice.org or any other editor to be installed.  It operates directly on the ODF document itself.

One of the things we’re focusing on in the next release of (the 0.9 release) is optimizing the performance, getting ODFDOM to read and write ODF documents as fast as possible, and with as low a memory footprint as possible.  The aim is to make it optimal for concurrent use, say in a Java servlet.

Some of the the things we’re finding as we profile ODFDOM are worth sharing, since they are not specific to this library.  They are tips and techniques that are applicable more broadly, potentially to all applications that work with ODF documents.  I’ll do a series of posts on these ideas.  Hopefully you will find them useful and maybe even can share your tricks as well.

The first thing I’ll point out concerns documents with many image resources, such as large presentation files with a lot of graphics.  We found that writing these documents was rather slow.  The problem was in how the images were stored in the ZIP archive.  As you may know, ZIP allows a file to be compressed (most commonly using the DEFLATE algorithm).  Most ZIP libraries will, by default, compress every file you add to the archive.  However, for many common media types, like PNG and JPG images, the data has already been compressed, at the level of the image encoding.  So if you have your ZIP library try to compress the images a second time, you will typically waste time with very little incremental savings in storage.

Most ZIP libraries have an alternative way to store files in their original, uncompressed form, a method called STORE.  What we found in ODFDOM was that if we store images rather than compress them, the time needed to save our large presentation was reduced by 20%, while the size of the archive increased only 3%.  So this was a good trade-off.

I think this technique would be applicable to other libraries and editors.

Filed Under: ODF, Performance

Fifth Anniversary of ODF is May 1st

2010/04/02 By Rob 2 Comments

We’ll be hitting a significant date next month.  It was on May 1st, 2005 that Open Document Format (ODF) 1.0 was approved by OASIS.

I hope we can all take time to reflect on far we’ve gone, with the specification itself,  with the quality and diversity of implementations and with world-wide adoption.

As we read that the other “standard”, after only 2 years,  appear to be circling the drain, I hope we take a few moments on May 1st to ask ourselves why ODF did not suffer a similar fate.  What worked well with ODF?  And what can we teach the world about open standards?

Of course, not everything in ODF is perfect, but to be still so relevant after 5 years is an accomplishment worth bragging about.  Not every standard makes it this far.  We should celebrate.

Filed Under: ODF

Introducing ISO ODF 1.1

2010/04/01 By Rob 2 Comments

Stockholm Gamla Stan

It was cold and dreary in Stockholm for last week’s meeting of ISO/IEC JTC1/SC34.  There is nothing surprising or particularly interesting to report.  That is a sign of a successful meeting.  No drama.  These face-to-face meetings tend to be formulaic rituals.  The real work is done in WG teleconferences and email discussions that occur in advance of the face-to-face meetings.  If the WGs have done their work well, the physical meetings are boring.  In Stockholm we were not disappointed.

However, I would like to report on the advancement of an ODF initiative that we’ve been working on in the OASIS ODF TC and in SC34/WG6 for a couple months now.  The idea is to “upgrade” the ISO version of  ODF (ISO/IEC 26300) so it aligns with OASIS ODF 1.1, rather than its current alignment with ODF 1.0.  ODF 1.1 was standardized by OASIS back in 2007 and is widely implemented, including support in OpenOffice, Microsoft Office, Symphony, KOffice and so on.

Formally this alignment to ODF 1.1 would be done via an amendment to ISO/IEC 26300:2006, to add the enhancements from OASIS ODF 1.1 — primarily accessibility improvements.  The process will look something like this:

  1. OASIS submits the full text of ODF 1.1 to JTC1 (done)
  2. The ODF Project Editor will work with SC34/WG6 to prepare the text of an amendment to ISO/IEC 26300.  Think of it as a diff between ODF 1.0 and ODF 1.1 (in progress)
  3. A ballot of  SC4 NBs in what is called an FPDAM (Final Preliminary Draft Amendment)
  4. A ballot of JTC1 NBs in what is called an FDAM (you guessed it — a Final Draft Amendment)

The full process will take 9-12 months, so we can expect the amendment to be published sometime in 2011.

So you may be thinking, what does this mean for ODF 1.2? The answer is: nothing. I was not willing to support this amendment unless it could be done in a way that would not divert the ODF TC from its current work completing ODF 1.2.  After quite a bit of discussion in OASIS and with WG6 we found a way to process the amendment that did not effect the ODF 1.2 schedule.  However, the result is that it is likely that OASIS ODF 1.2 will be approved before the ODF 1.1 amendment is approved in JTC1.  This may look silly, but it is not a serious problem.  The important thing to remember is that the latest and greatest ODF work will be found at OASIS, and that this work will slowly but steadily progress through JTC1, and will eventually be published with an ISO/IEC coversheet,  12-16 months later.  The ISO version of ODF 1.1 should not matter to implementors, since most are already supporting ODF 1.1 and now moving on to ODF 1.2, but it may be of interest to some adopters.

Filed Under: ODF

Document Freedom: How to know when you have it

2010/03/31 By Rob 6 Comments

Today is Document Freedom Day.  In the five years since Open Document Format (ODF) first was approved in OASIS we have certainly made progress, but there is still work remaining to be done.  How will we know when we have arrived?  At what point can we declare victory and say “Free at last”?  I think that when we  can agree that all of the following statements are true, then at that point we have achieved the substantial benefits of document freedom.

  • I can create documents on the platform of my choice, using the software of my choice.
  • I can migrate to another editing environment (application or operating system) without losing high-fidelity access to my existing documents.
  • I can send my documents to anyone and know that they can read them without requiring the purchase of new software.
  • I can receive documents from anyone and know that I can read them without requiring the purchase of new software.
  • I have confidence that the documents I create today can be read and understood, 10, 25 or 50 years from now.
  • Programmers can write and distribute software that reads and writes documents without paying royalties to anyone.
  • I have confidence that the document format standard is being evolved in a way that guarantees the above rights equally for all users and vendors.

We’ve made substantial progress on these fronts, but I don’t think we’re there yet.  We should celebrate our substantial progress, while at the same time commit ourselves for the remaining work ahead.  For example, we still need to improve interoperability.  In a few weeks we will have our next ODF Plugfest, in Granada, where ODF implementors will gather for the 3rd time to work together to improve interoperability among their implementations.

Filed Under: ODF Tagged With: Document Freedom Day, Interoperability, OASIS, Open Document Format

Public review of “The State of ODF Interoperability”

2010/03/14 By Rob 3 Comments

The OASIS ODF Interoperability and Conformance TC has as a primary goal to:

Initially and periodically thereafter, to review the current state of conformance and interoperability among a number of ODF implementations; To produce reports on overall trends in conformance and interoperability that note areas of accomplishment as well as areas needing improvement, and to recommend prioritized activities for advancing the state of conformance and interoperability among ODF implementations in general without identifying or commenting on particular implementations;

The initial  “State of ODF Interoperability” report has now gone out for public review.  It is a baseline report, surveying the context of document interoperability, the sources of interoperability problems as well the ways in which these problems are being addressed.  Although it explicitly deals with ODF interoperability, much of the report is equally relevant to any other office document format, XML-based or binary.

If you want to participate in the public review,  you can find links to the  draft, as well as instructions for submitting comments, in the OASIS announcement of the review.

Filed Under: ODF

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Interim pages omitted …
  • Page 25
  • Go to Next Page »

Primary Sidebar

Copyright © 2006-2026 Rob Weir · Site Policies