All guides

How MiniRead finds chapters and volumes in TXT books

A TXT file has no real table of contents, only lines of text. MiniRead looks for lines that read like chapter titles and turns them into a table of contents you can search and jump through. Books split into volumes get two levels: volumes, and the chapters inside them.

Automatic detection

By default every TXT book uses Automatic, which recognises the usual ways chapters are written, for example:

  • 第一章 …, 第12回 …, 第三节 …, 第五话, 第一幕
  • volume lines such as 第一卷 or 卷二, with the chapters that follow as the second level
  • 序章, 楔子, 番外, 【第一章】
  • Chapter 1, CHAPTER IV, Roman numerals, 1. Title, 一、标题

If Automatic finds fewer than three chapters in a long book, MiniRead tries each enabled rule and keeps the one that finds the most chapters. A rule that matches more than half of all lines is ignored, because it has matched the text itself rather than the titles.

Choose another rule for one book

  1. Open the book and tap Contents.
  2. Tap the chapter rule menu at the top and pick a rule.

The table of contents is rebuilt straight away. The choice applies only to this book. If no chapters were found at all, the Contents panel still opens and explains why, so you can switch rules from there.

Turn rules on or off, or write your own

Go to Settings › Chapter Rules (or Manage Rules… in the chapter rule menu).

  • MiniRead has 12 built-in rules. Each one can be switched on or off. “Number + space” and separator lines are off by default, because they often match ordinary lines.
  • To add your own, tap Add Rule and write a regular expression. A line becomes a chapter title when the whole line, without leading and trailing spaces, matches the rule.
  • While editing, paste a few lines from the book. MiniRead lists the lines your rule would turn into chapters, so you can check it before saving.

For example, a book whose chapters look like § 12 The Storm can use the rule § ?[0-9]+.*.

The table of contents of a TXT book in MiniRead, with a search field and the current chapter marked.

Try it in MiniRead

Free on iPhone and iPad. No account, nothing uploaded.