An open API service indexing awesome lists of open source software.

https://github.com/agateau/odtfusion

Merge txt files into an odt document
https://github.com/agateau/odtfusion

Last synced: 9 months ago
JSON representation

Merge txt files into an odt document

Awesome Lists containing this project

README

          

# Presentation

odtfusion lets you merge text files or fragment of text files in an
OpenDocument Text document.

To include files in a .odt:

- Create a .odt
- Add placeholders for the text files. Placeholders are paragraphs of the form:

`${file.cpp}`

- Run odtfusion like this:

`odtfusion.py input.odt output.odt dir-containing-text-files`

To include fragments of text files:

- Insert fragment delimiters in your text files. Fragment delimiters look like
this:

`/// my-fragment`

- In your odt-file, refer to the fragment by using a placeholder like this:

`${file.cpp#my-fragment}`

There is also another tool: odtdump, which can be used to dump an indented
version of the content.xml of a .odt document. This tool can be useful for
debugging.

# Future

I may add a way to specify custom placeholders in the future, as well as
content-specific fragment delimiters (for example using "### my-fragment" for
Python or shell scripts)

# Contact

- Mail: Aurélien Gâteau
- github: