在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):lise-henry/crowbook开源软件地址(OpenSource Url):https://github.com/lise-henry/crowbook开源编程语言(OpenSource Language):Rust 92.9%开源软件介绍(OpenSource Introduction):CrowbookCrowbook's aim is to allow you to write a book in Markdown without worrying about formatting or typography, and let the program generate HTML, PDF and EPUB output for you. Its focus is novels and fiction, and the default settings should (hopefully) generate readable books with correct typography without requiring you to worry about it. ExampleTo see what Crowbook's output looks like, you can read the Crowbook guide rendered in HTML, PDF or EPUB. You can also play with the online demo version. InstallingThere are two ways to install Crowbook:
either using precompiled binaries, or compiling it using BinariesSee
the releases page
to download a precompiled binary for your architecture
(currently: Linux, Windows and MacOSX).
Just extract the archive and run If you are on Debian GNU/Linux or Ubuntu (on a PC architecture), you can also download Using CargoCargo is the package manager for Rust. You can install it here. Once that is done: $ cargo install crowbook will automatically download the latest
DependenciesWhile there should be, strictly speaking, no real dependencies to be able to run Crowbook (it is published as a statically compiled binary), some features require additional commands to work correctly:
Quick tourThe simplest command is: $ crowbook <BOOK> where To create a new book, assuming you have a list of Markdown files, you can generate a template configuration file with the $ crowbook my.book --create chapter_*.md This will generate a default For short books containing only a single Markdown file, it is possible to embed some metadata at the beginning of the file and use the $ crowbook -s text.md For more information, see the chapters on
the arguments supported by Current featuresOutput formatsCrowbook supports HTML, PDF and EPUB (either version 2 or 3) as output formats. See the Crowbook User Guide rendered in HTML, EPUB and PDF. Input formatCrowbook uses pulldown-cmark and thus should support most of CommonMark Markdown. Inline HTML, however, is not implemented, and probably won't be, as the goal is to have books that can also be generated in PDF (and maybe ODT). Typographic "cleaning"Maybe the most specific "feature" of Crowbook is that it does its best to "clean" the input text before rendering it. By default, it removes superfluous spaces and tries to use curly quotes. If the book's language is set to french, it also tries to respect french typography by replacing spaces with non-breaking ones when it is appropriate (e.g. before '?', '!', ';' or ':').
Links handlingCrowbook tries to correctly translate local links in the input Markdown files: e.g. if you have a link to a Markdown file that is part of your book, it will be transformed into a link inside the document. Inline YAML blocksCrowbook supports inline YAML blocks: ---
author: Me
title: My title
--- This is mostly useful when Crowbook is run with the ProofreadingCrowbook can also generate "proofreading" copies in HTML or PDF, highlighting grammar errors and repetitions. For more information, see the proofreading chapter of the guide. Interactive fictionCrowbook has experimental support for writing interactive fiction (only for HTML). For more information, read the interactive fiction chapter. CustomizationWhile the default settings will hopefully generate something that should look "good enough", it is possible to customize the output, essentially by providing different templates. BugsSee the issue tracker on GitHub. Contributors
AcknowledgementsBesides the Rust compiler and standard library, Crowbook uses the following libraries: pulldown-cmark, yaml-rust, mustache, clap, chrono, uuid, mime_guess, crossbeam, walkdir, rustc-serialize, caribon, hyper, url, lazy_static, regex, term, numerals, syntect. It can also embed Highlight.js in HTML output to enable syntax highlighting for code blocks. It also uses configuration files from rust-everywhere to use Travis and Appveyor to generate binaries for various platforms on each release. While Crowbook directly doesn't use them, there was also inspiration from Pandoc and mdBook. Also, the W3C HTML validator and the IDPF EPUB validator proved to be very useful during development and testing. ChangeLogSee ChangeLog. ContributingSee how you can contribute to Crowbook. If you find this project useful, you can also support its author by making a Paypal donation. LibraryWhile the main purpose of Crowbook is to be run as a standalone program, the code is written as a library, so if you want to build on it you can use it as such. You can look at the generated documentation on docs.rs. Note that, in order to facilitate code reuse, some features have been split to separate libraries:
LicenseCrowbook is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL), version 2.1 or (at your option) any later version. See LICENSE for more information. Crowbook's logo is licensed under the Creative Commons Attribution 4.0 International license, based on the Rust logo by Mozilla Corporation. Crowbook includes binary (minified) CSS and Javascript files from Highlight.js, written by Ivan Sagalaev, see license |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论