View Single Post
Old 02-07-2011, 06:36 PM   #10
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
TXTZ input and output support added. It's just a zip archive with TXT files renamed to .txtz. It supports images and they can be top level or in directories. If they are in directories they must be referenced that way in the document. It also stores an OPF file called metadata.opf that stores the metadata.

This is the preferred approach for handling TXT using Markdown or Textile that references images. It is also the preferred method of having TXT documents with metadata.

On my TODO list is making an import plugin to read a TXT file find all Markdown and Textile image references and put everything into a TXTZ file then storing the TXTZ calibre. This would be similar to what happens with PML being pulled in as PMLZ and HTML being pulled in as ZIP.

@Perkin, let me know if you find any issues or any shortcomings of this solution. It will be available in 0.7.45.
user_none is offline   Reply With Quote