Convert TXT to DOCBOOK

Turn TXT files into DOCBOOK. A DocBook 5 article with one paragraph per block of lines, where a block of several lines becomes a literal layout that keeps every line break and leading indentation.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TXT files on the dialor turn it to pick what to do

Plain text as a DocBook article.Each block of lines is marked up for DocBook 5 in a way that suits its length.

  1. What you get

    A DocBook 5 article with one paragraph per block of lines. A block that holds a single line is a plain paragraph.

    A block of several lines becomes a literal layout. It keeps every line break and any leading indentation, so lists, code and aligned text are not reflowed.

  2. What changes

    Runs of spaces inside a line become one space. If you rely on spaces to line up columns within a line, that alignment is not kept.

    Leading indentation is different. In a literal layout it stays as it is.

TXT and DOCBOOK.What each format is.

The formats

From · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data
To · DOCBOOK

DocBook

DocBook XML, the structured format of technical books and manuals.

Extensions
.dbk .docbook
MIME type
application/docbook+xml
Kind
Text and data

In your code.The same TXT to DOCBOOK conversion through the API, for your app or your agent.

terminal
$ cv convert report.txt report.dbk
$ cv convert report.txt report.dbk

Questions.What people ask about TXT to DOCBOOK.

01OF 04

In a block of several lines, yes. The block becomes a literal layout that keeps every line break.

Leading indentation is kept in blocks of several lines, which become a literal layout. Runs of spaces inside a line become one space.

No. This conversion has no options. It produces one file.

Yes. Use DOCBOOK to TXT to go the other way.

More conversions.Other ways in and out of TXT and DOCBOOK.