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
- Host: GitHub
- URL: https://github.com/agateau/odtfusion
- Owner: agateau
- License: gpl-3.0
- Created: 2011-06-24T15:38:42.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-09-02T15:17:49.000Z (over 12 years ago)
- Last Synced: 2025-02-13T19:49:52.729Z (11 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: COPYING
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: