Gå til hovedinnhold

Plain Text format (.txt, .text)

The plain text format reads generic .txt documents and emits the text content as translatable blocks. It is the fallback for files that carry no markup or structure of their own: release notes, prompts, word lists, or any free-form text that needs translating.

By default the reader segments by line: each non-empty line becomes one block, and blank lines and the original line endings (LF, CRLF, or bare CR) are preserved as skeleton so the document round-trips after merge. Switching to paragraph mode groups runs of lines separated by blank lines into a single block, which suits prose where sentences span several wrapped lines. This mirrors Okapi's plain-text filter.

IDplaintext
SourceBuilt-in
Extensions.txt, .text
MIME Typestext/plain
CapabilitiesRead + Write

Parameters

ParameterTypeDefaultDescription
paragraphsbooleanfalseHvis sann, blir avsnitt atskilt med tomme linjer til blokker i stedet for enkeltlinjer.
segmentByLinebooleantrueHvis sann, blir hver linje en separat blokk. Hvis usann, er avsnitt (atskilt med blanke linjer) blokker.
spliceLinesbooleanfalseHvis sann, blir linjer som slutter med skjøtmarkøren slått sammen med neste linje til én enkelt blokk.
spliceMarkerstring\Fortsettelsesmarkør som gjenkjennes på slutten av en linje i sammenslåingsmodus.

Configure it live

Configuration
Loading form…

Examples

Paragraph mode

Group wrapped lines into paragraph blocks instead of one block per line.

segmentByLine: false

Processing notes

  • LF, CRLF, and bare CR are all recognised as line terminators and preserved.

  • Blank lines emit a non-translatable data part; they are never extracted as blocks.

← Back to the Format Reference