TXTZ to EPUB
Nothing you choose here leaves your browser, and nothing is downloaded to make it work — not a library, not a reader, nothing. A .txtz is a ZIP with text in it, and your browser already knows how to inflate.
A book, made from the text in the archive.
The text becomes chapters, split at its top-level headings where it has them, with the title and author from metadata.opf written into the book. The pictures in the archive do not come across, and the page says how many were left: a .txtz keeps them beside the text and the text does not refer to them, so there is no way to know where any of them go.
What a .txtz actually is
A ZIP with the text inside it. calibre writes
index.txt — or index.text when the text
is Textile — with a metadata.opf beside it and any
pictures under images/. Rename one to .zip and
anything will open it.
It does not say what its own text is, except in one place
Nothing about a .txt inside a ZIP tells you
whether it is meant to be plain text, Markdown or Textile, and the three
want to be treated quite differently. calibre solved that by appending an
element to the metadata that no specification has:
<text-formatting>markdown</text-formatting>
That is calibre telling calibre, and it is the only thing in the file that says. This page reads it and tells you what it found, rather than looking at the text and guessing — because a line starting with a hash is a heading in one of those three and a line starting with a hash in the other two.
Its metadata is the old OPF, not the one in an EPUB
calibre writes this file with to_opf1(), so
the title is <dc:Title> with a capital T where an EPUB
would say <dc:title>. A reader that knows only the
modern spelling finds nothing and reports a book with no title —
which looks like a file missing its metadata rather than like a reader
looking in the wrong place. Both spellings are tried here, in that
order.
What it will not do
- It will not bring the pictures across. A .txtz keeps them beside the text, and the text does not refer to them, so there is no way to work out where any of them belong. How many there were is on the report.
- It will not convert Textile. That is a different markup language from Markdown and nothing here reads it; the page says so when the archive says that is what it holds.
- It will not guess. An archive that says nothing about its formatting gets its text back unchanged.