Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Description

Ophir ODT Import is a module for Drupal 7 that imports ODT files directly into drupal nodes (articles, pages...).
The base drupal module is a port of odfimport module to drupal 7, but the script that converts ODT to HTML has been written from scratch by myself, and is available here: Ophir.php ODT to HTML converter.

Features

Currently, the script parses bold (b tag), italic (i tag), underline (u tag), quotations (blockquote tag), images (using data URIs), links, headings (h1, h2, ...), lists (ul and li), tables (table, tr and td) annotations and footnotes. Ophir.php (the conversion script on which this module is based) can also ignore or remove some tags on demand. This can be useful if you want to extract only unformatted text from a document, or if you don't want tables, footnotes or annotations in the resulting HTML, or if the application that generated the ODT file produced unnecessary formatting informations. This will be supported in a future version of the module.

Limitations

Everything that is not mentioned in the feature section is not supported.

Project information