Koodo Reader

TXT parser and text rules

Choose or create TXT parsers, and clean up text with replacement, deletion and highlight rules.

TXT files contain no chapter structure, so a parser splits them. Text rules handle ads, watermarks and broken line breaks.

TXT parser

Switch parsers

  1. Open reading options → More.
  2. Find TXT parser.
  3. Choose a built-in or custom parser; it applies immediately.

Built-in parsers

ParserUse case
Default parserMost TXT files
Chinese novel parser第一章, 第2回 and similar
English novel parserChapter 1, Part II and similar
Number parserNumeric titles such as 1, 2, 3

Custom parsers

  1. Open Settings > TXT parser.
  2. Fill in Parser name and Parser regex.
  3. Click Add.
  4. The parser appears in the reading options dropdown.

Examples:

CaseRegex
Chinese chapters^(第[一二三四五六七八九十百千0-9]+[章回节卷].*)$
English chapters`^(Chapter
Numeric headings^\d+(\.\d+)*\s+.*$

Names cannot be empty or duplicated; invalid regex reports “Invalid regex pattern”. Custom parsers can be edited or deleted.

Text rules

On desktop, open Settings > Text rules; on mobile, open Settings > Reading options > Text rules management. There are three kinds:

TypeEffect
Replacement rulesReplace matched text
Deletion rulesRemove matched text
Highlight rulesApply a highlight style to matched text

Rule fields

FieldDescription
Match typePlain text or Regular expression
Match patternText or regular expression
ReplacementReplacement rules only; empty means delete
Highlight styleHighlight rules only, including colour
ScopeAll books, or one specific book

Rules can be edited and deleted. Saving validates the pattern, replacement and regex; choosing a specific book without selecting one reports “Please select a book”.

Examples

GoalPatternReplacement
Remove URLshttps?://\S+empty
Drop ad lines^本章未完.*$empty
Normalise quotes[“”]"
Space chapter numbers第(\d+)章第 $1 章

Notes

  • Rules affect display and copied text, never the original file.
  • Book-specific rules win over global rules.
  • Highlight rules do not create exportable annotations.

FAQ

TXT has no chapters. Try another parser, or check for invisible characters in title lines.

Chapters are merged. The regex is too strict; use a looser pattern.

A rule does nothing. Check the scope and the match type.

A rule removed too much. Disable or delete the rule.

On this page