From 85819545122cc6d876c571cad896d54b9cbbcac3 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Sun, 10 Nov 2019 14:06:44 +0000 Subject: [PATCH 01/10] output_format --- README.md | 6 +- assets/OEBPS/package.opf | 9 +-- assets/simsapa_md_to_epub.bat | 2 +- assets/simsapa_md_to_epub.sh | 2 +- assets/simsapa_md_to_mobi.bat | 2 +- assets/simsapa_md_to_mobi.sh | 2 +- scripts/build_dicts_for_release.sh | 8 +-- scripts/combined_to_mobi.sh | 2 +- scripts/ncped_to_epub.sh | 2 +- scripts/ncped_to_mobi.sh | 2 +- src/app.rs | 59 ++++++----------- src/cli.yml | 8 +-- src/ebook.rs | 60 +++++++++--------- src/helpers.rs | 8 +-- src/main.rs | 10 +-- .../data with space/ncped custom cover.md | 2 - .../data/data with space/ncped with space.md | 2 - .../data with space/ncped with space.xlsx | Bin 7069 -> 7026 bytes tests/run_tests.sh | 6 +- 19 files changed, 81 insertions(+), 111 deletions(-) diff --git a/README.md b/README.md index f0c103d..37d4ea2 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,6 @@ ndped-example.md book_id = "NcpedDictionarySimsapa" created_date_human = "" created_date_opf = "" - is_epub = true - is_mobi = false ``` --- DICTIONARY WORD ENTRIES --- @@ -162,7 +160,7 @@ SUBCOMMANDS: Process a Markdown file and generate an EPUB or MOBI dictionary. USAGE: - simsapa_dictionary markdown_to_ebook [FLAGS] [OPTIONS] --ebook_format + simsapa_dictionary markdown_to_ebook [FLAGS] [OPTIONS] --output_format FLAGS: --dont_remove_generated_files Turns off the removal of the generated OPF, HTML, etc. files used to create the @@ -176,7 +174,7 @@ FLAGS: OPTIONS: --dict_label