Skip to content

agateau/odtfusion

Repository files navigation

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

About

Merge txt files into an odt document

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •