Naromat: Narou format converter

Coverage Status

What's Naromat?

Naromat is a library crate that converts text file from specific typesetting format to Shosetsuka ni Naro(https://syosetu.com/) format.

Getting started

As a tool

  1. cargo install naromat
  2. naromat -h

As a library

  1. Add Naromat to your cargo.toml
  2. Use like this:

```rust use naromat::entities::chapter::Chapter;

let chapter = Chapter::new(" 我が輩は猫である。名前はまだない。 どこで[生まれた:.]のかとんと[見当:けんとう]がつかぬ。 ");

let formattedstring = chapter.get(); asserteq!(formatted_string, "  我が輩は猫である。名前はまだない。  どこで|生まれた《・・・・》のかとんと|見当《けんとう》がつかぬ。");

use naromat::entities::file::TextFile;

let text = TextFile::new("./path/to/source/file").unwrap(); text.formatandsave("./path/to/save.txt");

```

Contributing