Corinthia is a library for converting between different word processing file formats. Currently it supports .docx (part of the OOXML specification), HTML, and LaTeX (export-only). Corinthia also contain convinience executables.
For more information, visit our forum or the Wiki or contact any of the following people
- Peter Kelly peter@uxproductivity.com
- Louis Suárez-Potts luispo@gmail.com
- Jan Iverson jani@apache.org
Please note that the documentation for this project is in a very preliminary stage. We'll be improving this in due course; feel free to contact us with any questions.
Corinthia is licensed under the Apache License version 2.0; see LICENSE.txt for details.
- Create new HTML files from a .docx source
- Create new .docx files from a HTML source
- Update existing .docx files based on a modified HTML file produced in (1)
- Convert .docx or HTML files to LaTeX
- Provide access to document structure, in terms of a DOM-like API for manipulating XML trees, and an object model for working with CSS stylesheets
There are three major components, in their respective directories:
DocFormats
- the library itselfdfutil
- a driver program used for running [...]- automated tests (located in the tests directory)
Run dfutil without any command-line arguments to see a list of operations. Here is an example of converting a .docx file to HTML, modifying it, and then updating the original .docx. Note that it is important, due to how internal mapping works, that the .docx file being written is the same file as the original; using a new file won't work.
dfutil filename.docx filename.html
vi filename.html # Make some changes
dfutil filename.html filename.docx
If you examine the convertFile function in dfutil/Commands.c
, you will see the
main entry points to perform these conversions, which you can call from your own
program.
DocFormats has been shipping as part of UX Write on the iOS app store since February 2013.
Corinthia builds and runs on iOS, OS X, Linux and Windows.
To build DocFormats, you will need to have the following installed:
Corinthia currently builds on Linux, OS X (mac) and Windows.
For detailed instructions, please see
please see mail list for contacts