Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 613 Bytes

File metadata and controls

27 lines (18 loc) · 613 Bytes

rtf-reader

Batch-convert RTF files to plain text. Uses rtf-parser's lexer with encoding_rs for correct Windows-1251 Cyrillic decoding.

Build

cargo build --release

Usage

# Convert all .rtf files in rtf-data/ to txt-data/ (defaults)
cargo run --release

# Specify input and output
cargo run --release -- -i /path/to/rtf-files -o /path/to/output

# Convert a single file
cargo run --release -- -i document.rtf -o output/

Options

  • -i, --input <PATH> — Input file or directory (default: rtf-data)
  • -o, --output <PATH> — Output directory (default: txt-data)