1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-23 17:26:14 +02:00

Update docs

This commit is contained in:
Elisabeth Henry 2016-10-21 22:10:47 +02:00
parent 0182537d19
commit 91b7959d69
28 changed files with 4973 additions and 524 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-291">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-292">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -332,7 +334,7 @@ This is a very tiny book!
</p>
</div>
</div>
<footer id = "footer"><p id = "para-290">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-291">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-293">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-294">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -360,7 +362,7 @@ $ crowbook --print-template epub.template --set epub.version 3
</p>
</div>
</div>
<footer id = "footer"><p id = "para-292">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-293">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-295">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-296">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -927,7 +929,7 @@ resources.path: data
</p>
</div>
</div>
<footer id = "footer"><p id = "para-294">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-295">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-297">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-298">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -451,7 +453,7 @@ ul li {
</p>
</div>
</div>
<footer id = "footer"><p id = "para-296">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-297">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-299">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-300">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -224,32 +226,32 @@ function toggle() {
<li>grammar check;</li>
<li>highlighting non-breaking spaces.</li>
</ul>
<blockquote><p id = "para-193">Note that, by default, <code>cargo build</code> <em>wont</em> compile Crowbook with proofreading features. In order to enable them (at the cost of a bigger binary and a longer compilation time), youll have to run:</p>
</blockquote>
<h2 id = "link-91">5.1. Building Crowbook with proofreading features</h2>
<p id = "para-193">Since it is a relative “niche” feature and it requires more dependencies, the default builds of Crowbook dont include proofreading features. The first step to enable proofreading is thus to build Crowbook with those features:</p>
<pre><code>$ cargo install --features "proofread" crowbook
</code></pre>
<blockquote><p id = "para-194">or:</p>
</blockquote>
<p id = "para-194">or:</p>
<pre><code class = "language-bash">$ cargo build --release --features "proofread"
</code></pre>
<blockquote><p id = "para-195">in the source directory.</p>
<p id = "para-195">in the source directory.</p>
<blockquote><p id = "para-196">This is assuming you have a working installation of <code>rust</code> and <code>cargo</code>. If you dont, first <a href = "https://www.rust-lang.org/en-US/downloads.html">get them here</a>.</p>
</blockquote>
<h2 id = "link-91">5.1. Enabling proofreading</h2>
<p id = "para-196">Since proofreading can take quite a lot of time, particularly for a long book, it is disabled by default. Youll have to run</p>
<h2 id = "link-92">5.2. Enabling proofreading</h2>
<p id = "para-197">Since proofreading can take quite a lot of time, particularly for a long book, it is disabled by default. Youll have to run</p>
<pre><code class = "language-bash">$ crowbook --proofread my.book
</code></pre>
<p id = "para-197">or</p>
<p id = "para-198">or</p>
<pre><code class = "language-bash">$ crowbook -p my.book
</code></pre>
<p id = "para-198">to generate proofreading copies. Alternatively, if you want it to be activated each time you run <code>crowbook</code> on this book (which is <em>not</em> recommanded for long books, particularly if you want to perform a grammar check), you can set</p>
<p id = "para-199">to generate proofreading copies. Alternatively, if you want it to be activated each time you run <code>crowbook</code> on this book (which is <em>not</em> recommanded for long books, particularly if you want to perform a grammar check), you can set</p>
<pre><code class = "language-yaml">proofread: true
</code></pre>
<p id = "para-199">in the book configuration file.</p>
<h2 id = "link-92">5.2. Repetition detection</h2>
<p id = "para-200">Repetition detection is enabled with:</p>
<p id = "para-200">in the book configuration file.</p>
<h2 id = "link-93">5.3. Repetition detection</h2>
<p id = "para-201">Repetition detection is enabled with:</p>
<pre><code class = "language-yaml">proofread.repetitions: true
</code></pre>
<p id = "para-201">It uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> library to detect the repetition in your text. Since the notion of a repetition is relatively arbitrary, it is possible to adapt the settings. Default are:</p>
<p id = "para-202">It uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> library to detect the repetition in your text. Since the notion of a repetition is relatively arbitrary, it is possible to adapt the settings. Default are:</p>
<pre><code class = "language-yaml"># The maximum distance between two identical words to
# consider them a repetition
proofread.repetitions.max_distance: 25
@ -267,26 +269,26 @@ proofread.repetitions.fuzzy: true
# considered as the same word, but they will be with 0.5)
proofread.repetitions.fuzzy.threshold: 0.2
</code></pre>
<p id = "para-202">For more information, see <a href = "https://github.com/lise-henry/caribon">Caribon</a>s documentation.</p>
<blockquote><p id = "para-203">Currently, repetitions are not displayed in PDF proofreading output.</p>
<p id = "para-203">For more information, see <a href = "https://github.com/lise-henry/caribon">Caribon</a>s documentation.</p>
<blockquote><p id = "para-204">Currently, repetitions are not displayed in PDF proofreading output.</p>
</blockquote>
<h2 id = "link-93">5.3. Grammar checking</h2>
<p id = "para-204">Crowbook can also use <a href = "https://languagetool.org/">LanguageTool</a> to detect grammar errors in your text. It is, however, a bit more complex to activate.</p>
<p id = "para-205">First, youll have to activate this feature in your book configuration file:</p>
<h2 id = "link-94">5.4. Grammar checking</h2>
<p id = "para-205">Crowbook can also use <a href = "https://languagetool.org/">LanguageTool</a> to detect grammar errors in your text. It is, however, a bit more complex to activate.</p>
<p id = "para-206">First, youll have to activate this feature in your book configuration file:</p>
<pre><code class = "language-yaml"># Activate language tool support
proofread.languagetool: true
# (Optional) Sets the port number to connect to (default below)
proofread.languagetool.port: 8081
</code></pre>
<p id = "para-206">Youll then have to download the stand-alone version of <a href = "https://languagetool.org/">LanguageTool</a>. It includes a server mode, which youll have to launch:</p>
<p id = "para-207">Youll then have to download the stand-alone version of <a href = "https://languagetool.org/">LanguageTool</a>. It includes a server mode, which youll have to launch:</p>
<pre><code class = "language-bash">$ java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081
</code></pre>
<p id = "para-207">You can also use the LanguageTool GUI (<code>languagetool.jar</code>) and start the server from the menu “Text Checking -&gt; Options”. This also allows you to configure LanguageTool more precisely by activating or deactivating rules.</p>
<p id = "para-208">You can then run Crowbook, and it will highlight grammar errors in HTML or PDF proofreading output files.</p>
<blockquote><p id = "para-209">Note: running a grammar check on a long book (like a novel) can take up to a few minutes.</p>
<p id = "para-208">You can also use the LanguageTool GUI (<code>languagetool.jar</code>) and start the server from the menu “Text Checking -&gt; Options”. This also allows you to configure LanguageTool more precisely by activating or deactivating rules.</p>
<p id = "para-209">You can then run Crowbook, and it will highlight grammar errors in HTML or PDF proofreading output files.</p>
<blockquote><p id = "para-210">Note: running a grammar check on a long book (like a novel) can take up to a few minutes.</p>
</blockquote>
<h2 id = "link-94">5.4. Highlighting non-breaking spaces</h2>
<p id = "para-210">The last proofreading feature is a bit less important, but it can be useful in some cases. It is is dis/activated by setting <code>proofread.nb_spaces</code> to “true” or “false”, and it will highlight different sort of non-breaking spaces in HTML proofreading output files. This can be useful in some cases, but it is mostly a debugging feature to check that the french cleaner of Crowbook correctly replaces spaces with correct non-breaking spaces in the relevant places.</p>
<h2 id = "link-95">5.5. Highlighting non-breaking spaces</h2>
<p id = "para-211">The last proofreading feature is a bit less important, but it can be useful in some cases. It is is dis/activated by setting <code>proofread.nb_spaces</code> to “true” or “false”, and it will highlight different sort of non-breaking spaces in HTML proofreading output files. This can be useful in some cases, but it is mostly a debugging feature to check that the french cleaner of Crowbook correctly replaces spaces with correct non-breaking spaces in the relevant places.</p>
<p class = "next_chapter">
<a href = "chapter_005.html">
@ -295,7 +297,7 @@ proofread.languagetool.port: 8081
</p>
</div>
</div>
<footer id = "footer"><p id = "para-298">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-299">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-301">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-302">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -210,42 +212,42 @@ function toggle() {
« 5. Proofreading with Crowbook
</a>
</p>
<h1 id = "link-95">6. Tips and tricks</h1>
<h2 id = "link-96">6.1. Using Crowbook with Emacs markdown mode</h2>
<p id = "para-211">If you use <a href = "https://www.gnu.org/software/emacs/">Emacs</a> as a text editor, there is a nice <a href = "http://jblevins.org/projects/markdown-mode/">Markdown mode</a> to edit Markdown files.</p>
<p id = "para-212">It is possible to use Crowbook for HTML previewing in this mode, which <a href = "http://xkcd.com/1742/">requires only minimal configuration and tweaking</a>:</p>
<h1 id = "link-96">6. Tips and tricks</h1>
<h2 id = "link-97">6.1. Using Crowbook with Emacs markdown mode</h2>
<p id = "para-212">If you use <a href = "https://www.gnu.org/software/emacs/">Emacs</a> as a text editor, there is a nice <a href = "http://jblevins.org/projects/markdown-mode/">Markdown mode</a> to edit Markdown files.</p>
<p id = "para-213">It is possible to use Crowbook for HTML previewing in this mode, which <a href = "http://xkcd.com/1742/">requires only minimal configuration and tweaking</a>:</p>
<pre><code class = "language-lisp">(custom-set-variables
'(markdown-command "crowbook -qs --to html --output /dev/stdout")
'(markdown-command-needs-filename t))
</code></pre>
<p id = "para-213">You can then use <code>markdown-preview</code> (or <code>C-c C-c p</code>) to run Crowbook on this file and preview it in your browser, or run <code>markdown-live-preview-mode</code> to see a live preview (updated each time you save you file) in Emacs integrated browser.</p>
<h3 id = "link-97">Some explanations if it looks a bit cryptic to you</h3>
<p id = "para-214">We set <code>markdown-command</code> to <code>crowbook</code>, the reason for this is a bit obvious. The arguments we give to crowbook might be a bit less obvious:</p>
<p id = "para-214">You can then use <code>markdown-preview</code> (or <code>C-c C-c p</code>) to run Crowbook on this file and preview it in your browser, or run <code>markdown-live-preview-mode</code> to see a live preview (updated each time you save you file) in Emacs integrated browser.</p>
<h3 id = "link-98">Some explanations if it looks a bit cryptic to you</h3>
<p id = "para-215">We set <code>markdown-command</code> to <code>crowbook</code>, the reason for this is a bit obvious. The arguments we give to crowbook might be a bit less obvious:</p>
<ul>
<li><code>-qs</code> or <code>--quiet --single</code> tells Crowbook that is a a standalone markdown file, and not a book configuration file, and to be a bit quiet on error/info messages;</li>
<li><code>--to html</code> specifies that HTML must be generated;</li>
<li><code>--output /dev/stdout</code> forces Crowbook to display the result on the stdout, even if you set <code>output.html</code> to <code>some_file.html</code>.</li>
</ul>
<p id = "para-215">Also, <code>(markdown-command-needs-filename t)</code> is because at this point Crowbook cant read from the stdin and must be specified a file.</p>
<h3 id = "link-98">Limitations</h3>
<p id = "para-216">While it renders correctly, this only works really nicely on standalone Markdown files where you have specified, e.g.:</p>
<p id = "para-216">Also, <code>(markdown-command-needs-filename t)</code> is because at this point Crowbook cant read from the stdin and must be specified a file.</p>
<h3 id = "link-99">Limitations</h3>
<p id = "para-217">While it renders correctly, this only works really nicely on standalone Markdown files where you have specified, e.g.:</p>
<pre><code class = "language-markdown">---
author: Your name
title: Some title
---
</code></pre>
<p id = "para-217">Else, it will sets <code>author</code> and <code>title</code> to the default values.</p>
<h2 id = "link-99">6.2. Embedding fonts in an EPUB file</h2>
<p id = "para-218">In order to embed fonts in an EPUB file, youll first have to edit the stylesheet, which you can first obtain with:</p>
<p id = "para-218">Else, it will sets <code>author</code> and <code>title</code> to the default values.</p>
<h2 id = "link-100">6.2. Embedding fonts in an EPUB file</h2>
<p id = "para-219">In order to embed fonts in an EPUB file, youll first have to edit the stylesheet, which you can first obtain with:</p>
<pre><code class = "language-bash">$ crowbook --print-template epub.css &gt; my_epub_stylesheet.css
</code></pre>
<p id = "para-219">Youll need to use the <a href = "https://developer.mozilla.org/fr/docs/Web/CSS/@font-face"><code>@font-face</code> attribute</a>:</p>
<p id = "para-220">Youll need to use the <a href = "https://developer.mozilla.org/fr/docs/Web/CSS/@font-face"><code>@font-face</code> attribute</a>:</p>
<pre><code class = "language-css">@font-face {
font-family: MyFont;
src: url(data/my_font.ttf);
}
</code></pre>
<p id = "para-220">Then you can add <code>my_font.ttf</code> to the files that need to be added to the EPUB zip file:</p>
<p id = "para-221">Then you can add <code>my_font.ttf</code> to the files that need to be added to the EPUB zip file:</p>
<pre><code class = "language-yaml">title: My Book
author: Me
@ -254,7 +256,7 @@ output.epub: book.epub
resources.files: my_font.ttf
</code></pre>
<p id = "para-221">(Note that youll have to repeat the process the different <code>font-weight</code> and <code>font-style</code> variants of your font if you want it to display correctly when there is some text in <b>bold</b>, <em>italics</em>, or <b><em>both</em></b>.)</p>
<p id = "para-222">(Note that youll have to repeat the process the different <code>font-weight</code> and <code>font-style</code> variants of your font if you want it to display correctly when there is some text in <b>bold</b>, <em>italics</em>, or <b><em>both</em></b>.)</p>
<p class = "next_chapter">
<a href = "chapter_006.html">
@ -263,7 +265,7 @@ resources.files: my_font.ttf
</p>
</div>
</div>
<footer id = "footer"><p id = "para-300">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-301">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-303">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-304">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -210,8 +212,8 @@ function toggle() {
« 6. Tips and tricks
</a>
</p>
<h1 id = "link-100">ChangeLog</h1>
<h2 id = "link-101">unreleased</h2>
<h1 id = "link-101">ChangeLog</h1>
<h2 id = "link-102">unreleased</h2>
<ul>
<li>Options:</li>
<li><code>author</code> and <code>title</code>s default values are both set to the empty string, instead of <code>Anonymous</code> and <code>Untitled</code>.</li>
@ -219,11 +221,13 @@ function toggle() {
<li><code>input.smart_quotes</code> has been renamed <code>input.clean.smart_quotes</code>.</li>
<li>new option: <code>input.clean.ligature.dashes</code> will (if set to true) replace <code>--</code> to en dash (<code></code>) and <code>---</code> to em dash (<code></code>).</li>
<li>new option: <code>input.clean.ligature.guillemets</code> will (if set to true) replace <code>&lt;&lt;</code> and <code>&gt;&gt;</code> to french guillemets (<code>«</code> and <code>»</code>).</li>
<li>Rendering:</li>
<li>HTML: if <code>html_single.one_chapter</code> and <code>rendering.inline_toc</code> are both set to true, only render the TOC if currently displayed chapter is the first.</li>
</ul>
<h2 id = "link-102">0.10.1 (2016-10-18)</h2>
<p id = "para-222">Fixed a bug in <code>fr.po</code> translation that prevented building from fresh install.</p>
<h2 id = "link-103">0.10.0 (2016-10-18)</h2>
<p id = "para-223">This release contains some breaking changes (mostly for the API, which has been split in separate libraries). It alse features some internationalization support, and the program should now be tranlated if your <code>LANG</code> environment variable is set to french.</p>
<h2 id = "link-103">0.10.1 (2016-10-18)</h2>
<p id = "para-223">Fixed a bug in <code>fr.po</code> translation that prevented building from fresh install.</p>
<h2 id = "link-104">0.10.0 (2016-10-18)</h2>
<p id = "para-224">This release contains some breaking changes (mostly for the API, which has been split in separate libraries). It alse features some internationalization support, and the program should now be tranlated if your <code>LANG</code> environment variable is set to french.</p>
<ul>
<li><b>Breaking changes</b>:<ul>
<li>Templates:<ul>
@ -259,8 +263,8 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-104">0.9.1 (2016-09-29)</h2>
<p id = "para-224">This release mainly introduces generation of proofreading copies, allowing, if they are set (and <code>crowbook</code> was compiled with the <code>proofread</code> feature) to generate proofreading copies, using tools to check grammar and detect repetitions. These features are currently experimental.</p>
<h2 id = "link-105">0.9.1 (2016-09-29)</h2>
<p id = "para-225">This release mainly introduces generation of proofreading copies, allowing, if they are set (and <code>crowbook</code> was compiled with the <code>proofread</code> feature) to generate proofreading copies, using tools to check grammar and detect repetitions. These features are currently experimental.</p>
<ul>
<li>New options:<ul>
<li><code>html.escape_nb_spaces</code>, if set to true (by default), will replace unicode non breaking spaces with HTML entites and CSS so it can display correctly even if readers dont have a browser/font supporting these unicode symbols.</li>
@ -290,8 +294,8 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-105">0.9.0 (2016-09-23)</h2>
<p id = "para-225">The main objective of this release is to clean public interfaces, in order to limit breaking changes in the future. <em>Ideally</em>, all pre-1.0 releases should thus be 0.9.x. Concretely, this meant three things:</p>
<h2 id = "link-106">0.9.0 (2016-09-23)</h2>
<p id = "para-226">The main objective of this release is to clean public interfaces, in order to limit breaking changes in the future. <em>Ideally</em>, all pre-1.0 releases should thus be 0.9.x. Concretely, this meant three things:</p>
<ul>
<li>reducing the surface of Crowbooks library API;</li>
<li>cleaning options names</li>
@ -355,8 +359,8 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-106">0.8.0 (2016-09-19)</h2>
<p id = "para-226">This release adds support for syntax higlighting in code blocks, customized top and footer blocks for HTML rendering, and the special <code>import_config</code> option that allows to import options from another book file. It also provides (hopefully) better error messages.</p>
<h2 id = "link-107">0.8.0 (2016-09-19)</h2>
<p id = "para-227">This release adds support for syntax higlighting in code blocks, customized top and footer blocks for HTML rendering, and the special <code>import_config</code> option that allows to import options from another book file. It also provides (hopefully) better error messages.</p>
<ul>
<li>New options:<ul>
<li><code>import_config</code>is not really an option, but allows to import another configuration file, useful if you share a same set of options between multiple books.</li>
@ -395,8 +399,8 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-107">0.7.0 (2016-09-11)</h2>
<p id = "para-227">This releases renders images differently when they are on a standalone paragraph or inside a paragraph.</p>
<h2 id = "link-108">0.7.0 (2016-09-11)</h2>
<p id = "para-228">This releases renders images differently when they are on a standalone paragraph or inside a paragraph.</p>
<ul>
<li>Internal/API:<ul>
<li><code>Token</code> has a new variant, <code>StandaloneImage</code>. This is used to distinguish an image that is alone in a paragraph of an image that is inlined alongside text.</li>
@ -409,7 +413,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-108">0.6.0 (2016-09-09)</h2>
<h2 id = "link-109">0.6.0 (2016-09-09)</h2>
<ul>
<li>Deprecated options:<ul>
<li><code>nb_char</code>: since it was only used for french cleaner and for typography reasons its better to use different non breaking spaces according to context, this option was not really useful anymore.</li>
@ -436,8 +440,8 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-109">0.5.1 (2016-04-14)</h2>
<p id = "para-228">Mostly rendering fixes:</p>
<h2 id = "link-110">0.5.1 (2016-04-14)</h2>
<p id = "para-229">Mostly rendering fixes:</p>
<ul>
<li>Epub:<ul>
<li>Fix a validation problem when book contained hidden chapters.</li>
@ -462,7 +466,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-110">0.5.0 (2016-04-02)</h2>
<h2 id = "link-111">0.5.0 (2016-04-02)</h2>
<ul>
<li>Crowbook now requires Rustc 1.7.0.</li>
<li>It is now possible to render HTML in multiple files:<ul>
@ -501,7 +505,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-111">0.4.0 (2016-03-01)</h2>
<h2 id = "link-112">0.4.0 (2016-03-01)</h2>
<ul>
<li>Crowbook now internally uses a true YAML parser, <code>yaml_rust</code>, for its options. Since the “old” Crowbookss config format was similar, but had some subtle differences, this is somewhat of a breaking change:<ul>
<li>strings should now be escaped with “” in some cases (e.g. if it contains special characters). On the other hand, it <em>allows</em> to optionally escape a string with these quotes, which wasnt possible until then and might be useful in some cases.</li>
@ -521,7 +525,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-112">0.3.0 (2016-02-27)</h2>
<h2 id = "link-113">0.3.0 (2016-02-27)</h2>
<ul>
<li>Crowbook now tries to convert local links. That is, if you link to a Markdown file that is used in the book. (e.g. <a href = "chapter_000.html">README.md</a>), it <em>should</em> link to an appropriate inner reference inside the book.</li>
<li>Latex renderer now supports (local) images.</li>
@ -539,14 +543,14 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-113">0.2.2 (2016-02-25)</h2>
<h2 id = "link-114">0.2.2 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>French cleaner now correctly replaces space after — (in e.g. dialogs) with “em space”.</li>
</ul>
</li>
</ul>
<h2 id = "link-114">0.2.1 (2016-02-25)</h2>
<h2 id = "link-115">0.2.1 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>HTML/Epub rendering no longer incorrectly increment chapter count for unnumbered chapters.</li>
@ -558,7 +562,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-115">0.2.0 (2016-02-25)</h2>
<h2 id = "link-116">0.2.0 (2016-02-25)</h2>
<ul>
<li>Command line arguments:<ul>
<li>New argument <code>--print-template</code> now allows to print a built-in template to stdout.</li>
@ -583,7 +587,7 @@ function toggle() {
</ul>
</li>
</ul>
<h2 id = "link-116">0.1.0 (2016-02-21)</h2>
<h2 id = "link-117">0.1.0 (2016-02-21)</h2>
<ul>
<li>initial release</li>
</ul>
@ -595,7 +599,7 @@ function toggle() {
</p>
</div>
</div>
<footer id = "footer"><p id = "para-302">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-303">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-305">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-306">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -210,41 +212,41 @@ function toggle() {
« ChangeLog
</a>
</p>
<h1 id = "link-117">GNU LESSER GENERAL PUBLIC LICENSE</h1>
<h1 id = "link-118">GNU LESSER GENERAL PUBLIC LICENSE</h1>
<pre><code> Version 2.1, February 1999
</code></pre>
<p id = "para-229">Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
<p id = "para-230">[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]</p>
<p id = "para-230">Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
<p id = "para-231">[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]</p>
<pre><code> Preamble
</code></pre>
<p id = "para-231">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.</p>
<p id = "para-232">This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.</p>
<p id = "para-233">When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.</p>
<p id = "para-234">To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.</p>
<p id = "para-235">For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.</p>
<p id = "para-236">We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.</p>
<p id = "para-237">To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original authors reputation will not be affected by problems that might be introduced by others.</p>
<p id = "para-238"> Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.</p>
<p id = "para-239">Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.</p>
<p id = "para-240">When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.</p>
<p id = "para-241">We call this license the “Lesser” General Public License because it does Less to protect the users freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.</p>
<p id = "para-242">For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.</p>
<p id = "para-243">In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.</p>
<p id = "para-244">Although the Lesser General Public License is Less protective of the users freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.</p>
<p id = "para-245">The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a “work based on the library” and a “work that uses the library”. The former contains code derived from the library, whereas the latter must be combined with the library in order to run.</p>
<p id = "para-246"> GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</p>
<p id = "para-232">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.</p>
<p id = "para-233">This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.</p>
<p id = "para-234">When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.</p>
<p id = "para-235">To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.</p>
<p id = "para-236">For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.</p>
<p id = "para-237">We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.</p>
<p id = "para-238">To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original authors reputation will not be affected by problems that might be introduced by others.</p>
<p id = "para-239"> Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.</p>
<p id = "para-240">Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.</p>
<p id = "para-241">When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.</p>
<p id = "para-242">We call this license the “Lesser” General Public License because it does Less to protect the users freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.</p>
<p id = "para-243">For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.</p>
<p id = "para-244">In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.</p>
<p id = "para-245">Although the Lesser General Public License is Less protective of the users freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.</p>
<p id = "para-246">The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a “work based on the library” and a “work that uses the library”. The former contains code derived from the library, whereas the latter must be combined with the library in order to run.</p>
<p id = "para-247"> GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</p>
<ol start = "0">
<li>This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called “this License”). Each licensee is addressed as “you”.</li>
</ol>
<p id = "para-247">A “library” means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.</p>
<p id = "para-248">The “Library”, below, refers to any such software library or work which has been distributed under these terms. A “work based on the Library” means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term “modification”.)</p>
<p id = "para-249">“Source code” for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.</p>
<p id = "para-250">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.</p>
<p id = "para-248">A “library” means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.</p>
<p id = "para-249">The “Library”, below, refers to any such software library or work which has been distributed under these terms. A “work based on the Library” means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term “modification”.)</p>
<p id = "para-250">“Source code” for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.</p>
<p id = "para-251">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.</p>
<ol>
<li>You may copy and distribute verbatim copies of the Librarys complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.</li>
</ol>
<p id = "para-251">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</p>
<p id = "para-252"></p>
<p id = "para-252">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</p>
<p id = "para-253"></p>
<ol start = "2">
<li>You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</li>
</ol>
@ -271,30 +273,30 @@ application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
</code></pre>
<p id = "para-253">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</p>
<p id = "para-254">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.</p>
<p id = "para-255">In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</p>
<p id = "para-254">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</p>
<p id = "para-255">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.</p>
<p id = "para-256">In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</p>
<ol start = "3">
<li>You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.</li>
</ol>
<p id = "para-256"> Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.</p>
<p id = "para-257">This option is useful when you wish to copy part of the code of the Library into a program that is not a library.</p>
<p id = "para-257"> Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.</p>
<p id = "para-258">This option is useful when you wish to copy part of the code of the Library into a program that is not a library.</p>
<ol start = "4">
<li>You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.</li>
</ol>
<p id = "para-258">If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.</p>
<p id = "para-259">If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.</p>
<ol start = "5">
<li>A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a “work that uses the Library”. Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.</li>
</ol>
<p id = "para-259">However, linking a “work that uses the Library” with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a “work that uses the library”. The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.</p>
<p id = "para-260">When a “work that uses the Library” uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.</p>
<p id = "para-261">If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)</p>
<p id = "para-262">Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.</p>
<p id = "para-263"></p>
<p id = "para-260">However, linking a “work that uses the Library” with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a “work that uses the library”. The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.</p>
<p id = "para-261">When a “work that uses the Library” uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.</p>
<p id = "para-262">If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)</p>
<p id = "para-263">Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.</p>
<p id = "para-264"></p>
<ol start = "6">
<li>As an exception to the Sections above, you may also combine or link a “work that uses the Library” with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customers own use and reverse engineering for debugging such modifications.</li>
</ol>
<p id = "para-264">You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:</p>
<p id = "para-265">You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:</p>
<pre><code>a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
@ -327,9 +329,9 @@ specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
</code></pre>
<p id = "para-265">For an executable, the required form of the “work that uses the Library” must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</p>
<p id = "para-266">It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.</p>
<p id = "para-267"></p>
<p id = "para-266">For an executable, the required form of the “work that uses the Library” must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</p>
<p id = "para-267">It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.</p>
<p id = "para-268"></p>
<ol start = "7">
<li>You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:</li>
</ol>
@ -343,43 +345,43 @@ that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
</code></pre>
<ol start = "8">
<li><p id = "para-268">You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</p>
<li><p id = "para-269">You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</p>
</li>
<li><p id = "para-269">You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.</p>
<li><p id = "para-270">You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.</p>
</li>
<li><p id = "para-270">Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.</p>
<li><p id = "para-271">Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.</p>
</li>
</ol>
<p id = "para-271"></p>
<p id = "para-272"></p>
<ol start = "11">
<li>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.</li>
</ol>
<p id = "para-272">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.</p>
<p id = "para-273">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</p>
<p id = "para-274">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</p>
<p id = "para-273">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.</p>
<p id = "para-274">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</p>
<p id = "para-275">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</p>
<ol start = "12">
<li><p id = "para-275">If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</p>
<li><p id = "para-276">If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</p>
</li>
<li><p id = "para-276">The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
<li><p id = "para-277">The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
</li>
</ol>
<p id = "para-277">Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.</p>
<p id = "para-278"></p>
<p id = "para-278">Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.</p>
<p id = "para-279"></p>
<ol start = "14">
<li><p id = "para-279">If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</p>
<li><p id = "para-280">If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</p>
<pre><code> NO WARRANTY
</code></pre>
</li>
<li><p id = "para-280">BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
<li><p id = "para-281">BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
</li>
<li><p id = "para-281">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<li><p id = "para-282">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<pre><code> END OF TERMS AND CONDITIONS
</code></pre>
</li>
</ol>
<p id = "para-282"> How to Apply These Terms to Your New Libraries</p>
<p id = "para-283">If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).</p>
<p id = "para-284">To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.</p>
<p id = "para-283"> How to Apply These Terms to Your New Libraries</p>
<p id = "para-284">If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).</p>
<p id = "para-285">To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.</p>
<pre><code>&lt;one line to give the library's name and a brief idea of what it does.&gt;
Copyright (C) &lt;year&gt; &lt;name of author&gt;
@ -397,16 +399,16 @@ You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
</code></pre>
<p id = "para-285">Also add information on how to contact you by electronic and paper mail.</p>
<p id = "para-286">You should also get your employer (if you work as a programmer) or your school, if any, to sign a “copyright disclaimer” for the library, if necessary. Here is a sample; alter the names:</p>
<p id = "para-287">Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob (a library for tweaking knobs) written by James Random Hacker.</p>
<p id = "para-288">&lt;signature of Ty Coon&gt;, 1 April 1990 Ty Coon, President of Vice</p>
<p id = "para-289">Thats all there is to it!</p>
<p id = "para-286">Also add information on how to contact you by electronic and paper mail.</p>
<p id = "para-287">You should also get your employer (if you work as a programmer) or your school, if any, to sign a “copyright disclaimer” for the library, if necessary. Here is a sample; alter the names:</p>
<p id = "para-288">Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob (a library for tweaking knobs) written by James Random Hacker.</p>
<p id = "para-289">&lt;signature of Ty Coon&gt;, 1 April 1990 Ty Coon, President of Vice</p>
<p id = "para-290">Thats all there is to it!</p>
</div>
</div>
<footer id = "footer"><p id = "para-304">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-305">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -136,61 +136,63 @@ function toggle() {
</li>
<li><a href = "chapter_004.html#link-90">5. Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-91">5.1. Enabling proofreading</a>
<li><a href = "chapter_004.html#link-91">5.1. Building Crowbook with proofreading features</a>
</li>
<li><a href = "chapter_004.html#link-92">5.2. Repetition detection</a>
<li><a href = "chapter_004.html#link-92">5.2. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-93">5.3. Grammar checking</a>
<li><a href = "chapter_004.html#link-93">5.3. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-94">5.4. Highlighting non-breaking spaces</a>
<li><a href = "chapter_004.html#link-94">5.4. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-95">5.5. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-95">6. Tips and tricks</a>
<li><a href = "chapter_005.html#link-96">6. Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-96">6.1. Using Crowbook with Emacs markdown mode</a>
<li><a href = "chapter_005.html#link-97">6.1. Using Crowbook with Emacs markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-99">6.2. Embedding fonts in an EPUB file</a>
<li><a href = "chapter_005.html#link-100">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-100">ChangeLog</a>
<li><a href = "chapter_006.html#link-101">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-101">unreleased</a>
<li><a href = "chapter_006.html#link-102">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-102">0.10.1 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-103">0.10.1 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.10.0 (2016-10-18)</a>
<li><a href = "chapter_006.html#link-104">0.10.0 (2016-10-18)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.9.1 (2016-09-29)</a>
<li><a href = "chapter_006.html#link-105">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.9.0 (2016-09-23)</a>
<li><a href = "chapter_006.html#link-106">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.8.0 (2016-09-19)</a>
<li><a href = "chapter_006.html#link-107">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.7.0 (2016-09-11)</a>
<li><a href = "chapter_006.html#link-108">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.6.0 (2016-09-09)</a>
<li><a href = "chapter_006.html#link-109">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.5.1 (2016-04-14)</a>
<li><a href = "chapter_006.html#link-110">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.5.0 (2016-04-02)</a>
<li><a href = "chapter_006.html#link-111">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.4.0 (2016-03-01)</a>
<li><a href = "chapter_006.html#link-112">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.3.0 (2016-02-27)</a>
<li><a href = "chapter_006.html#link-113">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.2.2 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-114">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-114">0.2.1 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-115">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-115">0.2.0 (2016-02-25)</a>
<li><a href = "chapter_006.html#link-116">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-116">0.1.0 (2016-02-21)</a>
<li><a href = "chapter_006.html#link-117">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-117">GNU LESSER GENERAL PUBLIC LICENSE</a>
<li><a href = "chapter_007.html#link-118">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
@ -198,7 +200,7 @@ function toggle() {
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-306">Crowbook User Guide 0.10.2</p>
<div id = "top"><p id = "para-307">Crowbook User Guide 0.10.2</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
@ -217,7 +219,7 @@ function toggle() {
</p>
</div>
</div>
<footer id = "footer"><p id = "para-307">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
<footer id = "footer"><p id = "para-308">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.2-pre</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,351 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>1.</b> Crowbook</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-286">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<h1 id = "link-1"><b>1.</b> Crowbook</h1>
<p id = "para-1"><a href = "https://travis-ci.org/lise-henry/crowbook"><img src = "https://travis-ci.org/lise-henry/crowbook.svg?branch=master" title = "" alt = "Build Status" /></a></p>
<p id = "para-2">Render a book written in markdown to HTML, Epub or PDF.</p>
<p id = "para-4">Crowbook's purpose is to allow you to automatically generate multiple outputs formats from a book written in Markdown. Its focus is novels, and the default settings should (hopefully) generate readable books with correct typography (particularly for the french language<a href = "#note-dest-1"><sup id = "note-source-1">[1]</sup></a>).</p>
<h2 id = "link-2">1.1. Example</h2>
<p id = "para-5">To see what Crowbook's output looks like, you can read the Crowbook guide rendered in <a href = "http://lise-henry.github.io/crowbook/book/book.html">HTML</a>, <a href = "http://lise-henry.github.io/crowbook/book/book.pdf">PDF</a> or <a href = "http://lise-henry.github.io/crowbook/book/book.epub">EPUB</a>.</p>
<h2 id = "link-3">1.2. Installing</h2>
<p id = "para-6">There are three ways to install Crowbook:</p>
<h3 id = "link-4">Packages</h3>
<p id = "para-7">If you are on Debian GNU/Linux or Ubuntu (on a PC architecture), you can download <code>.deb</code> packages on <a href = "https://github.com/lise-henry/crowbook/releases">the releases page</a>.</p>
<h3 id = "link-5">Binaries</h3>
<p id = "para-8">See <a href = "https://github.com/lise-henry/crowbook/releases">the releases page</a> to download a precompiled binary for your architecture (currently: Linux, Windows and MacOSX). Just extract the archive and run <code>crowbook</code> (or <code>crowbook.exe</code> on Windows). You might also want to copy the binary somewhere in your <code>PATH</code> for later usage.</p>
<blockquote><p id = "para-9">Note: only the Linux binaries are really tested, please contact me if there you have any trouble executing the Windows or Mac binaries.</p>
</blockquote>
<h3 id = "link-6">Using Cargo</h3>
<p id = "para-10"><a href = "https://crates.io/">Cargo</a> is the <a href = "https://www.rust-lang.org/">Rust</a>'s package manager. You can <a href = "https://www.rust-lang.org/downloads.html">install it here</a>. Once it is down:</p>
<pre><code class = "language-bash">$ cargo install crowbook
</code></pre>
<p id = "para-11">will automatically download the latest <code>crowbook</code> release on <a href = "https://crates.io/crates/crowbook">crates.io</a>, compile it, and install it on your system.</p>
<blockquote><p id = "para-12">By default, compiling Crowbook in this way doesn't activate the proofreading features. If you want to use them, you'll have to run <code>cargo install --features "proofread" crowbook</code>.</p>
</blockquote>
<h2 id = "link-7">1.3. Dependencies</h2>
<p id = "para-13">While there are, strictly speaking, no real dependencies to be able to run Crowbook (it is published a a statically compiled binary), some features require additional commands to work correctly:</p>
<ul>
<li>EPUB rendering requires that the <code>zip</code> command be present on your system;</li>
<li>PDF rendering requires a working installation of LaTeX (preferably <code>xelatex</code>);</li>
<li>Grammar checking (for proofreading copies) requires <a href = "https://languagetool.org/">LanguageTool</a>.</li>
</ul>
<h2 id = "link-8">1.4. Quick tour</h2>
<p id = "para-14">The simplest command is:</p>
<pre><code class = "language-bash">$ crowbook &lt;BOOK&gt;
</code></pre>
<p id = "para-15">where <code>BOOK</code> is a configuration file. Crowbook will parse this file and generate a book in HTML, Epub, LaTeX, and/or PDF, according to the settings in the configuration file.</p>
<p id = "para-16">To create a new book, assuming you have a list of Markdown files, you can generate a template configuration file with the <code>--create</code> argument:</p>
<pre><code class = "language-bash">$ crowbook --create my.book chapter_*.md
</code></pre>
<p id = "para-17">This will generate a default <code>my.book</code> file, which you'll need to complete. This configuration file contains some metadata, options, and lists the Markdown files.</p>
<p id = "para-18">For more information see <a href = "chapter_002.html">the configuration file</a>.</p>
<p id = "para-19">It is also possible to give additional parameters to <code>crowbook</code>; we have already seen <code>--create</code>, but if you want the full list, see <a href = "chapter_001.html">the arguments</a>.</p>
<h2 id = "link-9">1.5. Current features</h2>
<h3 id = "link-10">Output formats</h3>
<p id = "para-20">Crowbook supports HTML, PDF and EPUB (either version 2 or 3) as output formats. See the Crowbook User Guide rendered in <a href = "http://lise-henry.github.io/crowbook/book/book.html">HTML</a>, <a href = "http://lise-henry.github.io/crowbook/book/book.epub">EPUB</a> and <a href = "http://lise-henry.github.io/crowbook/book.pdf">PDF</a>.</p>
<blockquote><p id = "para-21">Note: in order to be able to render your books as PDF, you'll need to have a working installation of LaTeX (preferably <code>xelatex</code>) on your system.</p>
</blockquote>
<p id = "para-22">Crowbook also provides some experimental support for rendering to ODT (Libre/Open/Office), but it needs more work.</p>
<h3 id = "link-11">Input format</h3>
<p id = "para-23">Crowbook uses <a href = "https://crates.io/crates/pulldown-cmark">pulldown-cmark</a> 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).</p>
<h3 id = "link-12">Input cleaning</h3>
<p id = "para-24">Maybe the most specific "feature" of Crowbook is that (by default, it can be deactivated) it tries to "clean" the input files. By default, this doesn't do much (except removing superfluous spaces), but if the book's language is set to frenc it tries its best to respect french typography by replacing spaces with non-breaking ones when it is appropriate (e.g. before '?', '!', ';' or ':').</p>
<blockquote><p id = "para-25">This feature is currently limited to french language, but please <a href = "https://github.com/lise-henry/crowbook/issues/new">open an issue</a> describing typographic rules if you want it to be implemented for another language.</p>
</blockquote>
<h3 id = "link-13">Links handling</h3>
<p id = "para-26">Crowbook 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.</p>
<h3 id = "link-14">Inline YAML blocks</h3>
<p id = "para-27">Crowbook supports inline YAML blocks:</p>
<pre><code class = "language-yaml">---
author: Me
title: My title
---
</code></pre>
<p id = "para-28">This is mostly useful when Crowbook is runned with the <code>--single</code> argument (receiving a single Markdown file instead of a book configuration file). E.g., the following Markdown file:</p>
<pre><code class = "language-yaml">---
author: John Doe
title: A book
output.html: book.html
---
This is a very tiny book!
</code></pre>
<p id = "para-29">can be processed with <code>crowbook --single foo.md</code> or <code>crowbook -s foo.md</code> to produce the <code>book.html</code> file. This is useful for short texts that only contain one "chapter".</p>
<h3 id = "link-15">Proofreading</h3>
<p id = "para-30">Crowbook can also generate "proofreading" copies in HTML or PDF, highlighting grammar errors and repetitions.</p>
<blockquote><p id = "para-31">This feature has been introduced in version <code>0.9.1</code> and is still experimental. For more information, see <a href = "chapter_004.html">the proofreading chapter of the guide</a>.</p>
</blockquote>
<h3 id = "link-16">Bugs</h3>
<p id = "para-32">See the <a href = "https://github.com/lise-henry/crowbook/issues">github's issue tracker</a>.</p>
<h2 id = "link-17">1.6. Contributors</h2>
<ul>
<li><a href = "http://stephanemourey.fr/">Stéphane Mourey</a> <code>&lt;s+crowbook AT stephanemourey DOT fr&gt;</code></li>
</ul>
<h2 id = "link-18">1.7. Acknowledgements</h2>
<p id = "para-33">Besides the <a href = "https://www.rust-lang.org/">Rust</a> compiler and standard library, Crowbook uses the following libraries:</p>
<ul>
<li><a href = "https://crates.io/crates/pulldown-cmark">pulldown-cmark</a></li>
<li><a href = "https://crates.io/crates/yaml-rust">yaml-rust</a></li>
<li><a href = "https://crates.io/crates/mustache">mustache</a></li>
<li><a href = "https://github.com/kbknapp/clap-rs">clap</a></li>
<li><a href = "https://crates.io/crates/chrono">chrono</a></li>
<li><a href = "https://crates.io/crates/uuid">uuid</a></li>
<li><a href = "https://crates.io/crates/mime_guess">mime_guess</a></li>
<li><a href = "https://crates.io/crates/crossbeam">crossbeam</a></li>
<li><a href = "https://crates.io/crates/walkdir">walkdir</a></li>
<li><a href = "https://crates.io/crates/rustc-serialize">rustc-serialize</a></li>
<li><a href = "https://crates.io/crates/caribon">caribon</a></li>
<li><a href = "https://crates.io/crates/hyper">hyper</a></li>
<li><a href = "https://crates.io/crates/url">url</a></li>
</ul>
<p id = "para-34">It also embeds <a href = "https://highlightjs.org/">Highlight.js</a> in HTML output to enable syntax highlighting for code blocks.</p>
<p id = "para-35">It also uses configuration files from <a href = "https://github.com/japaric/rust-everywhere">rust-everywhere</a> to use <a href = "https://travis-ci.org/">Travis</a> and <a href = "http://www.appveyor.com/">Appveyor</a> to generate binaries for various platforms on each release.</p>
<p id = "para-36">While Crowbook directly doesn't use them, there was also inspiration from <a href = "http://pandoc.org/">Pandoc</a> and <a href = "https://github.com/azerupi/mdBook">mdBook</a>.</p>
<p id = "para-37">Also, the <a href = "https://validator.w3.org/">W3C HTML validator</a> and the <a href = "http://validator.idpf.org/">IDPF EPUB validator</a> proved very useful during development.</p>
<h2 id = "link-19">1.8. ChangeLog</h2>
<p id = "para-38">See <a href = "chapter_006.html">ChangeLog</a>.</p>
<h2 id = "link-20">1.9. Library</h2>
<p id = "para-39">While the main purpose of Crowbook is to be runned as a command line, 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 <a href = "https://docs.rs/releases/search?query=crowbook">docs.rs</a>.</p>
<h2 id = "link-21">1.10. License</h2>
<p id = "para-40">Crowbook 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 ulterior version. See <a href = "chapter_007.html">LICENSE</a> for more information.</p>
<p id = "para-41">Crowbook's logo is licensed under the <a href = "https://creativecommons.org/licenses/by/4.0/deed.en">Creative Commons Attribution 4.0 International license</a>, based on the <a href = "https://commons.wikimedia.org/wiki/File:Rust_programming_language_black_logo.svg">Rust logo</a> by Mozilla Corporation.</p>
<p id = "para-42">Crowbook includes binary (minified) CSS and Javascript files from <a href = "https://highlightjs.org/">Highlight.js</a>, written by Ivan Sagalaev, licensed under the following terms:</p>
<blockquote><p id = "para-43">Copyright (c) 2006, Ivan Sagalaev</p>
<p id = "para-44">All rights reserved.</p>
<p id = "para-45">Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of highlight.js nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p id = "para-46">THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</blockquote>
<div class = "notes">
<h2 class = "notes">Notes</h2>
<table class = "notes">
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-1">[1]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-1"><p id = "para-3">I don't know the rules for other languages well enough; If you want more support for the correct typographic rules in your language, don't hesitate to open an issue on <a href = "https://github.com/lise-henry/crowbook/issues">Github</a>, or to submit a pull request.</p>
</aside>
</td>
</tr>
</table>
</div>
<p class = "next_chapter">
<a href = "chapter_001.html">
<b>2.</b> Arguments »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-285">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,377 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>2.</b> Arguments</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-288">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_000.html">
« <b>1.</b> Crowbook
</a>
</p>
<h1 id = "link-22"><b>2.</b> Arguments</h1>
<p id = "para-47">Crowbook can takes a list of arguments:</p>
<pre><code class = "language-text">Render a markdown book in Epub, PDF or HTML.
USAGE:
crowbook [FLAGS] [OPTIONS] [--] [BOOK]
FLAGS:
-h, --help Prints help information
-l, --list-options Lists all possible option
-p, --proofread Enable roofreading
-s, --single Use a single Markdown file instead of a book configuration file
-V, --version Prints version information
-v, --verbose Print warnings in parsing/rendering
OPTIONS:
-c, --create &lt;FILES&gt;... Creates a new book with existing markdown files
-o, --output &lt;FILE&gt; Specifies output file
--print-template &lt;TEMPLATE&gt; Displays the default value of a template
--set &lt;KEY_VALUES&gt; Sets a list of book options
-t, --to &lt;FORMAT&gt;
Generate specific format [values: epub, pdf, html, tex, odt, proofread.html, proofread.html_dir, proofread.pdf, proofread.tex]
ARGS:
&lt;BOOK&gt; File containing the book configuration, or a Markdown file when called with --single
</code></pre>
<p id = "para-49">Note that Crowbook generates output files relatively to the directory where &lt;BOOK&gt; is<a href = "#note-dest-2"><sup id = "note-source-2">[2]</sup></a>:</p>
<pre><code class = "language-bash">$ crowbook foo/bar.book --to pdf --output baz.pdf
</code></pre>
<p id = "para-50">will thus generate baz.pdf in directory foo and not in current directory.</p>
<p id = "para-51">The most important option is obviously &lt;BOOK&gt;, i.e. the file configuration book. It is mandatory for most options: if you don't pass it, <code>crowbook</code> will simply display this help message. In a normal use case this is the only argument you'll need to pass, and <code>crowbook</code> will generate the book in all formats specified in the configuration file.</p>
<p id = "para-52">It is, however, possible to pass more arguments to <code>crowbook</code>.</p>
<h2 id = "link-23">2.1. <code>--create</code></h2>
<p id = "para-53"><b>Usage</b>: <code>crowbook [BOOK] --create file_1.md file_2.md ...</code></p>
<p id = "para-54">Creates a new book from a list of Markdown files. It will generate a book configuration file with all file names specified as chapters. It either prints the result to stdout (if <code>BOOK</code> is not specified) or generate the file <code>BOOK</code> (or abort if it already exists).</p>
<h3 id = "link-24">Examples</h3>
<pre><code class = "language-bash">crowbook foo.book --create README.md ChangeLog.md LICENSE.md
</code></pre>
<p id = "para-55">will generate a file <code>foo.book</code> containing:</p>
<pre><code class = "language-yaml">author: Your name
title: Your title
lang: en
# Uncomment and fill to generate files
# output.html: some_file.html
# output.epub: some_file.epub
# output.pdf: some_file.pdf
# Uncomment and fill to set cover image (for Epub)
# cover: some_cover.png
# List of chapters
+ README.md
+ ChangeLog.md
+ LICENSE.md
</code></pre>
<p id = "para-56">while</p>
<pre><code class = "language-bash">crowbook --create README.md ChangeLog.md LICENSE.md
</code></pre>
<p id = "para-57">will print the same result, but to stdout (without creating a file).</p>
<p id = "para-58">When <code>crowbook</code> is runned with <code>--create</code>, it can also use the keys/values set by <code>--set</code> (see below):</p>
<pre><code class = "language-bash">$ crowbook foo.book --create file1.md file2.md --set author "Pierre Dupont" title "Mon œuvre" lang fr
</code></pre>
<p id = "para-59">will generate a <code>foo.book</code> file containing</p>
<pre><code class = "language-yaml">author: Pierre Dupont
title: Mon œuvre
lang: fr
# List of chapters
+ file1.md
+ file2.md
</code></pre>
<h2 id = "link-25">2.2. <code>--single</code></h2>
<p id = "para-60"><b>usage</b>: <code>crowbook --single &lt;FILE&gt;</code></p>
<p id = "para-61">(or <code>crowbook -s &lt;FILE&gt;</code>)</p>
<p id = "para-62">This argument allows to give <code>crowbook</code> a single Markdown file. This file can contain an inline YAML block to set some book options. Inline YAML blocks must start and end with a line with <code>---</code> (three dashes). E.g:</p>
<pre><code class = "language-yaml">---
author: Joan Doe
title: A short story
output.html: short.html
---
</code></pre>
<p id = "para-63">If this YAML block is not at the beginning of a file, it must also be preceded by a blank line.</p>
<p id = "para-64">This allows to not have to write a <code>.book</code> configuration file for a short story or an article. <code>crowbook --single foo.md</code> is rougly equivalent to having a book configuration file containing:</p>
<pre><code class = "language-yaml">! foo.md
</code></pre>
<p id = "para-65">That is, the chapter heading (if any) won't be displayed in the output documents (though they still appear in the TOC).</p>
<blockquote><p id = "para-66">Note that by default, using <code>--single</code> sets the default LaTeX class of the book to <code>article</code> instead of <code>book</code>.</p>
</blockquote>
<h2 id = "link-26">2.3. <code>--set</code></h2>
<p id = "para-67"><b>usage</b>: <code>crowbook &lt;BOOK&gt; --set [KEY] [VALUE]...</code></p>
<p id = "para-68">This argument takes a list <code>KEY</code> <code>VALUE</code> pairs and allows setting or overriding a book configuration option. All valid options in the configuration files are valid as keys. For more information, see <a href = "chapter_002.html">the configuration file</a>.</p>
<h3 id = "link-27">Examples</h3>
<pre><code class = "language-bash">$ crowbook foo.book --set html.css style.css
</code></pre>
<p id = "para-69">will override the CSS for HTML generation (the <code>html.css</code> key) to the file <code>style.css</code>.</p>
<pre><code class = "language-bash">$ crowbook foo.book --set author Foo --title Bar
</code></pre>
<p id = "para-70">will override the book title to <code>Bar</code> and its author to <code>Foo</code>.</p>
<h2 id = "link-28">2.4. <code>--proofread</code></h2>
<p id = "para-71">Equivalent to <code>--set proofread true</code>. Enable proofreading. See <a href = "chapter_004.html">Proofreading</a>.</p>
<h2 id = "link-29">2.5. <code>--list-options</code></h2>
<p id = "para-72"><b>usage</b>: <code>crowbook --list-options</code></p>
<p id = "para-73">(or <code>crowbook -l</code>)</p>
<p id = "para-74">Displays all the valid options to use, whether in a book configuration file, with <code>--set</code>, or in an inline YAML block.</p>
<h2 id = "link-30">2.6. <code>--print-template</code></h2>
<p id = "para-75"><b>usage</b>: <code>crowbook --print-template template</code></p>
<p id = "para-76">Prints to stdout the built-in template. Useful if you want to customize the appearance of your document. E.g., if you want to modify the CSS used for HTML rendering:</p>
<pre><code class = "language-bash">$ crowbook --print-template html.css &gt; my_style.css
# edit my_style.css in your favourite editor
$ crowbook my.book --set html.css my_style.css
# or add "html.css: my_style.css" in my.book
</code></pre>
<p id = "para-77">Note that it is possible to use this option in conjonction with <code>--set</code>, though it is currently only useful for EPUB template:</p>
<pre><code class = "language-bash">$ crowbook --print-template epub.template --set epub.version 2
# Returns the template for Epub 2 (currently it is the default one)
$ crowbook --print-template epub.template --set epub.version 3
# Returns the template for Epub 3
</code></pre>
<h2 id = "link-31">2.7. <code>--verbose</code></h2>
<p id = "para-78"><b>usage</b>: <code>crowbook &lt;BOOK&gt; --verbose</code></p>
<p id = "para-79">If this flag is set, Crowbook will print the warnings it detects while parsing and rendering. These warnings are typically related to the inclusion of non-local images, linking to Markdown files that are not part of the book, and so on.</p>
<h2 id = "link-32">2.8. <code>--to</code></h2>
<p id = "para-80"><b>usage</b>: <code>crowbook &lt;BOOK&gt;--to [FORMAT]</code></p>
<p id = "para-81">(or <code>crowbook &lt;BOOK&gt; -t [FORMAT]</code>)</p>
<p id = "para-82">Generate only the specified format. <code>FORMAT</code> must be either <code>epub</code>, <code>pdf</code>, <code>html</code>, <code>odt</code> or <code>tex</code>.</p>
<p id = "para-83">If an output file for the format is not specified in the book configuration file, <code>crowbook</code> will fail to render PDF, ODT and EPUB, whereas it will print HTML and Tex files on stdout. It is, however, possible to specify a file with the <code>--output</code> option.</p>
<h3 id = "link-33">Examples</h3>
<pre><code class = "language-bash">crowbook --to html foo.book
</code></pre>
<p id = "para-84">will generate some HTML, and prints it either to the file specified by <code>output.html</code> in <code>foo.book</code>, or to stdout if it is not specified.</p>
<pre><code class = "language-bash">crowbook --to pdf --output foo.pdf foo.book
</code></pre>
<p id = "para-85">will generate a <code>foo.pdf</code> file,.</p>
<h2 id = "link-34">2.9. <code>--output</code></h2>
<p id = "para-86"><b>usage</b>: <code>crowbook &lt;BOOK&gt; --to &lt;FORMAT&gt; --output &lt;FILE&gt;</code></p>
<p id = "para-87">(or <code>crowbook -t &lt;FORMAT&gt; -o &lt;FILE&gt; &lt;BOOK&gt;</code>)</p>
<p id = "para-88">Specifies an output file. Only valid when <code>--to</code> is used.</p>
<p id = "para-89">Note that Crowbook generates output files relatively to the directory where <code>BOOK</code> is (unless the option <code>output.base_path</code> is set):</p>
<pre><code class = "language-bash">$ crowbook foo/bar.book --to pdf --output baz.pdf
</code></pre>
<p id = "para-90">will thus generate <code>baz.pdf</code> in directory <code>foo</code> and not in current directory.</p>
<div class = "notes">
<h2 class = "notes">Notes</h2>
<table class = "notes">
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-2">[2]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-2"><p id = "para-48">Unless the option <code>output.base_path</code> is set, see <a href = "chapter_002.html">the configuration file</a>.</p>
</aside>
</td>
</tr>
</table>
</div>
<p class = "next_chapter">
<a href = "chapter_002.html">
<b>3.</b> The configuration file »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-287">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,872 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>3.</b> The configuration file</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-290">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_001.html">
« <b>2.</b> Arguments
</a>
</p>
<h1 id = "link-35"><b>3.</b> The configuration file</h1>
<p id = "para-91">If you want to use Crowbook for your book, this configuration file is all you'll have to add (assuming you already have the book in Markdown files; if you don't, you'll also have to write a book first, but that's besides the scope of this document).</p>
<p id = "para-92">The format is not very complicated. This is an example of it:</p>
<pre><code class = "language-yaml"># metadata
author: Joan Doe
title: Some book
lang: en
output.html: some_book.html
# list of chapters
- preface.md
+ chapter_1.md
+ chapter_2.md
+ chapter_3.md
+ chapter_4.md
- epilogue.md
</code></pre>
<p id = "para-93">Basically, it is divided in two parts:</p>
<ul>
<li>a list of options, under the form <code>key: value</code>, following YAML syntax.</li>
<li>a list of Markdown files.</li>
</ul>
<p id = "para-94">Lines starting with the <code>#</code> characters are comments and are discarded.</p>
<h2 id = "link-36">3.1. The list of files</h2>
<p id = "para-95">There are various options to include a markdown file.</p>
<ul>
<li><code>+ file_name.md</code> includes a numbered chapter.</li>
<li><code>- file_name.md</code> includes an unnumbered chapter.</li>
<li><code>! file_name.md</code> includes a chapter whose title won't be displayed (except in the table of contents); this is useful for e.g. including a copyright at the beginning or the book, or for short stories where there is only one chapter.</li>
<li><code>42. file_name.md</code> specifies the number for a chapter.</li>
</ul>
<p id = "para-96">So a typical usage might look like this:</p>
<pre><code class = "language-yaml">! copyright.md
- preface.md
# We want first chapter to be Chapter 0 because we are programmers!
0. chapter_0.md
# Next chapters can be numbered automatically
+ chapter_1.md
+ chapter_2.md
...
</code></pre>
<p id = "para-97">There are two important things to note:</p>
<ol>
<li>you must <em>not</em> use quotes around the file names.</li>
<li>the path of these files are relative to the directory where your configuration file is. This means you can run <code>crowbook books/my_trilogy/first_book/config.book</code> without being in the book's directory.</li>
</ol>
<p id = "para-98">Also note that you don't have to specify a title. This is because the title of the chapter is inferred from the Markdown document. To go back to our previous example:</p>
<pre><code>+ chapter_1.md
</code></pre>
<p id = "para-99">does not specify a chapter title, because it will read it directly in <code>chapter_1.md</code>, e.g.:</p>
<pre><code class = "language-markdown">The day I was born
==================
...
</code></pre>
<p id = "para-100">You should have one and only one level-one header (i.e. chapter title) in each markdown file.</p>
<p id = "para-101">If you have more than one, Crowbook will print a warning and treat it as another chapter (numbered according to the scheme specified for including the file). It might however mess the table of contents in some cases (e.g. for Epub).</p>
<p id = "para-102">If you do <em>not</em> have a level-1 header in a markdown file:</p>
<ul>
<li>if it is a numbered chapter, Crowbook will infer a chapter name from the numbering scheme;</li>
<li>if it is not numbered, chapter's title will default to the empty string and won't be displayed in the TOC.</li>
</ul>
<h2 id = "link-37">3.2. Crowbook options</h2>
<p id = "para-103">The first part of the configuration file is dedicated to pass options to Crowbook. This is <a href = "https://en.wikipedia.org/wiki/YAML">YAML syntax</a>, so each line should be of the form <code>key: value</code>. Note that in most cases you don't have to put string in quotes, e.g.:</p>
<pre><code class = "language-yaml">title: My title
</code></pre>
<p id = "para-104">It is however possible (and sometimes necessary) to escape some characters to use quotes around strings:</p>
<pre><code class = "language-yaml">title: "My: title!"
</code></pre>
<p id = "para-105">It is possible to use multiline strings with <code>&gt;-</code> and then indenting the lines that are part of the string:</p>
<pre><code class = "language-yaml">title: &gt;-
A
long
title
author: Joan Doe
</code></pre>
<p id = "para-106">will set <code>title</code> to <code>"A long title"</code>. See <a href = "https://en.wikipedia.org/wiki/YAML#Block_literals">block literals in YAML</a> for more information on the various way to insert multiline strings (which mostly change the way newlines will or won't be inserted).</p>
<p id = "para-107">A final note on the syntax: all options must be set <em>before</em> the first chapter inclusion (that is, a line beginning with '+', '-', 'x.' (where <code>x</code> is a number) or '!').</p>
<p id = "para-108">Here is the complete list of options, with a short description. The usage of some of them is detailed later on.</p>
<h3 id = "link-38">Metadata</h3>
<ul>
<li><b><code>author</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>Anonymous</code></li>
<li>Author of the book</li>
</ul>
</li>
<li><b><code>title</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>Untitled</code></li>
<li>Title of the book</li>
</ul>
</li>
<li><b><code>lang</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>en</code></li>
<li>Language of the book</li>
</ul>
</li>
<li><b><code>subject</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Subject of the book (used for EPUB metadata)</li>
</ul>
</li>
<li><b><code>description</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Description of the book (used for EPUB metadata)</li>
</ul>
</li>
<li><b><code>cover</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path to the cover of the book</li>
</ul>
</li>
</ul>
<h3 id = "link-39">Additional metadata</h3>
<ul>
<li><b><code>license</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>License of the book</li>
</ul>
</li>
<li><b><code>version</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Version of the book</li>
</ul>
</li>
<li><b><code>date</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Date the book was revised</li>
</ul>
</li>
</ul>
<h3 id = "link-40">Output options</h3>
<ul>
<li><b><code>output.epub</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for EPUB rendering</li>
</ul>
</li>
<li><b><code>output.html</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for HTML rendering</li>
</ul>
</li>
<li><b><code>output.html_dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output directory name for HTML rendering</li>
</ul>
</li>
<li><b><code>output.tex</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for LaTeX rendering</li>
</ul>
</li>
<li><b><code>output.pdf</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for PDF rendering</li>
</ul>
</li>
<li><b><code>output.odt</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for ODT rendering</li>
</ul>
</li>
<li><b><code>output.base_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>""</code></li>
<li>Directory where those output files will we written</li>
</ul>
</li>
</ul>
<h3 id = "link-41">Rendering options</h3>
<ul>
<li><b><code>rendering.initials</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Use initials ('lettrines') for first letter of a chapter (experimental)</li>
</ul>
</li>
<li><b><code>rendering.inline_toc</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display a table of content in the document</li>
</ul>
</li>
<li><b><code>rendering.inline_toc.name</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>"{{{loc_toc}}}"</code></li>
<li>Name of the table of contents if it is displayed in document</li>
</ul>
</li>
<li><b><code>rendering.num_depth</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>1</code></li>
<li>The maximum heading levels that should be numbered (0: no numbering, 1: only chapters, ..., 6: all)</li>
</ul>
</li>
<li><b><code>rendering.chapter_template</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>"{{{number}}}\\. {{{chapter_title}}}"</code></li>
<li>Naming scheme of chapters</li>
</ul>
</li>
</ul>
<h3 id = "link-42">Special option</h3>
<ul>
<li><b><code>import_config</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Import another book configuration file</li>
</ul>
</li>
</ul>
<h3 id = "link-43">HTML options</h3>
<ul>
<li><b><code>html.header</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Custom header to display at the beginning of html file(s)</li>
</ul>
</li>
<li><b><code>html.footer</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Custom footer to display at the end of HTML file(s)</li>
</ul>
</li>
<li><b><code>html.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a stylesheet for HTML rendering</li>
</ul>
</li>
<li><b><code>html.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a javascript file</li>
</ul>
</li>
<li><b><code>html.css.print</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a media print stylesheet for HTML rendering</li>
</ul>
</li>
<li><b><code>html.highlight_code</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Provides syntax highlighting for code blocks (using highlight.js)</li>
</ul>
</li>
<li><b><code>html.highlight.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set another highlight.js version than the bundled one</li>
</ul>
</li>
<li><b><code>html.highlight.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set another highlight.js CSS theme than the default one</li>
</ul>
</li>
<li><b><code>html.side_notes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display footnotes as side notes in HTML/Epub (experimental)</li>
</ul>
</li>
<li><b><code>html.escape_nb_spaces</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Replace unicode non breaking spaces with HTML entities and CSS</li>
</ul>
</li>
</ul>
<h3 id = "link-44">Standalone HTML options</h3>
<ul>
<li><b><code>html_single.one_chapter</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Display only one chapter at a time (with a button to display all)</li>
</ul>
</li>
<li><b><code>html_single.html</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of an HTML template</li>
</ul>
</li>
<li><b><code>html_single.js</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a javascript file</li>
</ul>
</li>
</ul>
<h3 id = "link-45">Multifile HTML options</h3>
<ul>
<li><b><code>html_dir.index.html</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of index.html template</li>
</ul>
</li>
<li><b><code>html_dir.chapter.html</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a chapter.html template</li>
</ul>
</li>
</ul>
<h3 id = "link-46">EPUB options</h3>
<ul>
<li><b><code>epub.version</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>2</code></li>
<li>EPUB version to generate (2 or 3)</li>
</ul>
</li>
<li><b><code>epub.css</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a stylesheet for EPUB</li>
</ul>
</li>
<li><b><code>epub.chapter.xhtml</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of an xhtml template for each chapter</li>
</ul>
</li>
</ul>
<h3 id = "link-47">LaTeX options</h3>
<ul>
<li><b><code>tex.links_as_footnotes</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Add foontotes to URL of links so they are readable when printed</li>
</ul>
</li>
<li><b><code>tex.command</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>xelatex</code></li>
<li>LaTeX command to use for generating PDF</li>
</ul>
</li>
<li><b><code>tex.template</code></b><ul>
<li><b>type</b>: template path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path of a LaTeX template file</li>
</ul>
</li>
<li><b><code>tex.class</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>book</code></li>
<li>LaTeX class to use</li>
</ul>
</li>
</ul>
<h3 id = "link-48">Resources option</h3>
<ul>
<li><b><code>resources.files</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Whitespace-separated list of files to embed in e.g. EPUB file; useful for including e.g. fonts</li>
</ul>
</li>
<li><b><code>resources.base_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Path where to find resources (in the source tree). By default, links and images are relative to the Markdown file. If this is set, it will be to this path.</li>
</ul>
</li>
<li><b><code>resources.base_path.links</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Set base path but only for links. Useless if resources.base_path is set.</li>
</ul>
</li>
<li><b><code>resources.base_path.images</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for images. Useless if resources.base_path is set.</li>
</ul>
</li>
<li><b><code>resources.base_path.files</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for additional files. Useless if resources.base_path is set.</li>
</ul>
</li>
<li><b><code>resources.base_path.templates</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>.</code></li>
<li>Set base path but only for templates files. Useless if resources.base_path is set.</li>
</ul>
</li>
<li><b><code>resources.out_path</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>data</code></li>
<li>Paths where additional resources should be copied in the EPUB file or HTML directory</li>
</ul>
</li>
</ul>
<h3 id = "link-49">Input options</h3>
<ul>
<li><b><code>input.autoclean</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Toggle cleaning of input markdown according to lang</li>
</ul>
</li>
<li><b><code>input.yaml_blocks</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Enable inline YAML blocks to override options set in config file</li>
</ul>
</li>
</ul>
<h3 id = "link-50">Crowbook options</h3>
<ul>
<li><b><code>crowbook.temp_dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: ``</li>
<li>Path where to create a temporary directory (default: uses result from Rust's std::env::temp_dir())</li>
</ul>
</li>
<li><b><code>crowbook.zip.command</code></b><ul>
<li><b>type</b>: string</li>
<li><b>default value</b>: <code>zip</code></li>
<li>Command to use to zip files (for EPUB/ODT)</li>
</ul>
</li>
<li><b><code>crowbook.verbose</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Make Crowbook display more messages</li>
</ul>
</li>
</ul>
<h3 id = "link-51">Output options (for proofreading)</h3>
<ul>
<li><b><code>output.proofread.html</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for HTML rendering with proofread features</li>
</ul>
</li>
<li><b><code>output.proofread.html_dir</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output directory name for HTML rendering with proofread features</li>
</ul>
</li>
<li><b><code>output.proofread.pdf</code></b><ul>
<li><b>type</b>: path</li>
<li><b>default value</b>: <code>not set</code></li>
<li>Output file name for PDF rendering with proofread features</li>
</ul>
</li>
</ul>
<h3 id = "link-52">Proofreading options (only for output.proofread.* targets)</h3>
<ul>
<li><b><code>proofread</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>Activate generation of proofreading copies</li>
</ul>
</li>
<li><b><code>proofread.nb_spaces</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Highlight non breaking spaces so it is easier to see if typography is correct</li>
</ul>
</li>
<li><b><code>proofread.languagetool</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If true, try to use language tool server to grammar check the book</li>
</ul>
</li>
<li><b><code>proofread.languagetool.port</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>8081</code></li>
<li>Port to connect to languagetool-server</li>
</ul>
</li>
<li><b><code>proofread.repetitions</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>false</code></li>
<li>If set to true, use Caribon to detect repetitions</li>
</ul>
</li>
<li><b><code>proofread.repetitions.max_distance</code></b><ul>
<li><b>type</b>: integer</li>
<li><b>default value</b>: <code>25</code></li>
<li>Max distance between two occurences so it is considered a repetition</li>
</ul>
</li>
<li><b><code>proofread.repetitions.fuzzy</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Enable fuzzy string matching</li>
</ul>
</li>
<li><b><code>proofread.repetitions.fuzzy.threshold</code></b><ul>
<li><b>type</b>: float</li>
<li><b>default value</b>: <code>0.2</code></li>
<li>Max threshold of differences to consider two strings a repetition</li>
</ul>
</li>
<li><b><code>proofread.repetitions.ignore_proper</code></b><ul>
<li><b>type</b>: boolean</li>
<li><b>default value</b>: <code>true</code></li>
<li>Ignore proper nouns for repetitions</li>
</ul>
</li>
<li><b><code>proofread.repetitions.threshold</code></b><ul>
<li><b>type</b>: float</li>
<li><b>default value</b>: <code>2.0</code></li>
<li>Threshold to detect a repetition</li>
</ul>
</li>
</ul>
<p id = "para-109">Note that these options have a type, which in most case should be pretty straightforward (a boolean can be <code>true</code> or <code>false</code>, an integer must be composed by a number, a string is, well, any string). The <code>path</code> type might puzzle you a bit, but it's equivalent to a string, except Crowbook will consider it relatively to the book file. The <code>template path</code> type is just the <code>path</code> of a template.</p>
<h3 id = "link-53">Metadata</h3>
<p id = "para-110">Metadata are data about the book. Except for <code>cover</code>, which points to an image file, all its fields are strings. The main metadata are:</p>
<ul>
<li><code>author</code>: the author(s) of the book.</li>
<li><code>title</code>: the title of the book.</li>
<li><code>lang</code>: the language of the book. The unicode language code should be used, e.g. <code>en_GB</code> or <code>en</code>, <code>fr_FR</code>, ...</li>
<li><code>cover</code>: path to an image file for the cover of the book (notdisplayed in all output formats).</li>
</ul>
<p id = "para-111">There are also additional metadata:</p>
<ul>
<li><code>subject</code></li>
<li><code>description</code></li>
<li><code>license</code></li>
<li><code>version</code></li>
<li><code>date</code></li>
</ul>
<p id = "para-112">You can define your own metadata by starting an option name with <code>metadata.foo</code>.</p>
<p id = "para-113">All metadata are accessible from templates, see <a href = "chapter_003.html">Templates</a>.</p>
<h3 id = "link-54">The <code>import_config</code> special option</h3>
<p id = "para-114">The special <code>import_config</code> option allows you to include the options of another book configuration file in this file. E.g., assuming that you some common options that you want to be applied to both <code>foo.book</code> and <code>bar.book</code>, you can create a <code>common.book</code> file:</p>
<pre><code class = "language-yaml">author: Joan Doe
lang: en
license: "Copyright (C) Joan Doe. All rights reserved."
html.header: "[Joan Doe's website](http://joan-doe.com)"
tex.template: my_template.tex
</code></pre>
<p id = "para-115">You can then include this file in <code>foo.book</code>:</p>
<pre><code class = "language-yaml">import_config: common.book
title: Foo
+ foo_01.md
+ foo_02.md
</code></pre>
<p id = "para-116">Or include it in <code>bar.book</code>, but overriding some of its features:</p>
<pre><code class = "language-yaml">import_config: common.book
title: Bar
license: CC-BY-SA # Override the license from common.book
+ bar_01.md
</code></pre>
<h3 id = "link-55">Output options</h3>
<p id = "para-117">These options specify which files to generate. You must at least set one of this option, or Crowbook won't do anything.</p>
<p id = "para-118">Recall that all file paths are relative to the directory where the config file is, not to the one where you run <code>crowbook</code>. So if you set</p>
<pre><code class = "language-yaml">output.epub = foo.epub
</code></pre>
<p id = "para-119">and runs</p>
<pre><code class = "language-bash">$ crowbook some/dir/config.book
</code></pre>
<p id = "para-120"><code>foo.epub</code> will be generated in <code>some/dir</code>, not in your current directory.</p>
<p id = "para-121">Crowbook will try to generate each of the <code>output.xxx</code> files that are specified. That means that you'll have to set at least one of those if you want a call to</p>
<pre><code class = "language-bash">$ crowbook my.book
</code></pre>
<p id = "para-122">to generate anything. (It's still possible to generate a specific format, and only this one, by using the <code>--to</code> argument on the command line).</p>
<p id = "para-123">Note that some formats depend on some commands being installed on your system. Most notably, Crowbook depends on LaTeX (<code>xelatex</code> by default, though you can specify the command to use with <code>tex.command</code>) to generate a PDF file, so PDF rendering won't work if it is not installed on your system. Crowbook also uses the <code>zip</code> command to generate the EPUB and ODT, files.</p>
<p id = "para-124">Current output options are:</p>
<ul>
<li><code>output.html</code>: renders a standalone HTML file;</li>
<li><code>output.html_dir</code>: render a HTML directory with one page by chapter;</li>
<li><code>output.epub</code>: renders an EPUB file;</li>
<li><code>output.tex</code>: renders a LaTeX file;</li>
<li><code>output.pdf</code>: renders a PDF file (using <code>tex.command</code>).</li>
</ul>
<p id = "para-125">(There are other output options for generating proofreading files, see <a href = "chapter_004.html">Proofreading</a>.)</p>
<h4 id = "link-56"><code>output.base_path</code></h4>
<p id = "para-126">Additionally, the <code>output.base_path</code> option allows you to set where the output files will be written (relatively to the book configuration file). E.g.,</p>
<pre><code class = "language-yaml">output.base_path: docs/book
output.epub: book.epub
</code></pre>
<p id = "para-127">will render the EPUB file in <code>docs/book/book.epub</code>.</p>
<h3 id = "link-57">Generic options for rendering</h3>
<p id = "para-128">These options allow to configure the rendering for all formats.</p>
<h4 id = "link-58">rendering.num_depth</h4>
<p id = "para-129">An integer that represents the maximum level of numbering for your book. E.g., <code>1</code> will only number chapters, while <code>2</code> will number chapters, sections, but not anything below that. <code>6</code> is the maximum level and turns numbering on for all headers.</p>
<p id = "para-130"><b>default</b>: <code>1</code></p>
<h4 id = "link-59">rendering.chapter_template</h4>
<p id = "para-131">A string that will be used for chapter titles. You can use <code>{{{number}}}</code> and <code>{{{title}}}</code> in this string, e.g.:</p>
<pre><code class = "language-yaml">numbering_template: "Chapter {{{number}} {{title}}}"
</code></pre>
<p id = "para-132">Note that:</p>
<ul>
<li>in this case, quoting is necessary because <code>{</code> and <code>}</code> have special meaning in YAML;</li>
<li>this string won't be used for unnumbered chapters;</li>
<li>this string isn't currently used by LaTeX, either.</li>
</ul>
<h4 id = "link-60">rendering.inline_toc</h4>
<p id = "para-133">If set to true, Crowbook will include a table of contents at the beginning of the document.</p>
<h4 id = "link-61">rendering.initials</h4>
<p id = "para-134">If set to true, Crowbook will use initials, or "lettrines", displaying the first letter of each chapter bigger than the others.</p>
<h3 id = "link-62">Resources options</h3>
<p id = "para-135">These options allow to embed additional files for some formats (currently, only EPUB). This can be useful for embedding fonts.</p>
<h4 id = "link-63">resources.files</h4>
<p id = "para-136">A list of files or directories that should be added. It's a whitespace-separated list, so it can be, e.g.:</p>
<pre><code class = "language-yaml">resources.files: font1.otf font2.otf
</code></pre>
<p id = "para-137">It is also possible to specify a directory (or multiple directories). So if you have a <code>fonts</code> directories containing <code>font1.otf</code> and <code>font2.otf</code>,</p>
<pre><code class = "language-yaml">resources.files: fonts
</code></pre>
<p id = "para-138">will be equivalent to:</p>
<pre><code class = "language-yaml">resources.files: fonts/font1.otf fonts/font2.otf
</code></pre>
<p id = "para-139"><b>default</b>: not set</p>
<h4 id = "link-64">resources.out_path</h4>
<p id = "para-140">This option determine where (in which directory), <em>in the resulting document</em>, will those files be copied. The default is <code>data</code>, so by default the <code>resources.files</code> in the first example above will search <code>font1.otf</code> and <code>font2.otf</code> *in the same directory than the <code>.book</code> file, and will copy them to <code>data/font1.otf</code> and <code>data/font2.otf</code> <em>in the EPUB file</em>. This is therefore this last path that you should use if you want to access those files e.g. in a custom CSS stylesheet.</p>
<p id = "para-141">Note that if you pass directories to <code>resources.files</code>, the whole directory would be copied. So assuming <code>fonts/</code> contains <code>font1.otf</code> and <code>font2.otf</code></p>
<pre><code class = "language-yaml">resources.files: fonts
resources.path: data
</code></pre>
<p id = "para-142">will copy these two files to <code>data/fonts/font1.otf</code> and <code>data/fonts/font2.otf</code> (and not <code>data/font1.otf</code> and <code>data/font2.otf</code>).</p>
<p id = "para-143">Similarly, the whole path of <code>resources.files</code> is copied, so</p>
<pre><code class = "language-yaml">resources.files: fonts/font1.otf fonts/font2.otf
</code></pre>
<p id = "para-144">will yield the same result.</p>
<p id = "para-145"><b>default</b>: <code>data</code></p>
<p class = "next_chapter">
<a href = "chapter_003.html">
<b>4.</b> Templates »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-289">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,442 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>4.</b> Templates</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-292">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_002.html">
« <b>3.</b> The configuration file
</a>
</p>
<h1 id = "link-65"><b>4.</b> Templates</h1>
<h2 id = "link-66">4.1. List of templates</h2>
<p id = "para-147">Crowbook allows the user to specify a number of templates.<a href = "#note-dest-3"><sup id = "note-source-3">[3]</sup></a></p>
<h3 id = "link-67">html.js</h3>
<p id = "para-148">The javascript file used by both the standalone HTML renderer and the multiple files HTML renderer.</p>
<p id = "para-149">This is not currently an actual template, just a plain javascript file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-68">html.css</h3>
<p id = "para-150">The main CSS file used by both the standalone HTML renderer and the multiple files HTML renderer.</p>
<h3 id = "link-69">html.css.colours</h3>
<p id = "para-151">A CSS file containing only colour settings. Used by <code>html.css</code>.</p>
<p id = "para-152">This is not currently an actual template, just a plain CSS file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-70">html.css.print</h3>
<p id = "para-153">An additional CSS file used by both the standalone HTML renderer and the multiple files HTML renderer. Its purpose is to provide CSS instructions for printing (i.e., when the user clicks the <code>print</code> button in her browser).</p>
<p id = "para-154">This is not currently an actual template, just a plain CSS file which cannot contain <code>mustache</code> tags.</p>
<h3 id = "link-71">html.highlight.js</h3>
<p id = "para-155">A javascript file used by both HTML renderers to highlight codes in code blocks. It should be a variant of <a href = "https://highlightjs.org/">highlight.js</a>.</p>
<p id = "para-156">This is not an actual template, just a plain javascript file.</p>
<h3 id = "link-72">html.highlight.css</h3>
<p id = "para-157">A CSS file used by both HTML renderers to set the theme of <a href = "https://highlightjs.org/">highlight.js</a>. It should, though, be an highlight.js theme.</p>
<p id = "para-158">This is not an actual template, just a plain CSS file.</p>
<h3 id = "link-73">html_single.js</h3>
<p id = "para-159">A javascript file used only by the standalone HTML renderer. Its main purpose is to handle the displaying of a single chapter at a time when <code>one_chapter</code> is set to true.</p>
<h3 id = "link-74">html_single.html</h3>
<p id = "para-160">The main template for standalone HTML renderer.</p>
<h3 id = "link-75">html_dir.chapter.html</h3>
<p id = "para-161">The main template for multiple files HTML renderer. It is the template for rendering each chapter.</p>
<h3 id = "link-76">html_dir.index.html</h3>
<p id = "para-162">The template used by multiple files HTML renderer to render the <code>index.html</code> file.</p>
<h3 id = "link-77">tex.template</h3>
<p id = "para-163">The main (and currently only) template used by the LaTeX renderer.</p>
<h3 id = "link-78">epub.chapter.xhtml</h3>
<p id = "para-164">This template is the main template used by the Epub renderer. It contains the XHTML template that will be used for each chapter.</p>
<h3 id = "link-79">epub.css</h3>
<p id = "para-165">This template is used by the Epub renderer and contains the style sheet.</p>
<h3 id = "link-80">Inline templates</h3>
<p id = "para-166">Crowbook also has some inline templates, that are set in the book configuration file:</p>
<ul>
<li><code>rendering.inline_toc.name</code> sets the name of the inline table of content, if it is displayed. By default, is is set to <code>{{{loc_toc}}}</code>, that is, a localised version of "Table of Contents".</li>
<li><code>rendering.chapter_template</code> sets the naming scheme for chapters.</li>
</ul>
<h2 id = "link-81">4.2. Create and edit template</h2>
<p id = "para-167">Except for inline templates, which are set directly in the book configuration file:</p>
<pre><code class = "language-yaml">rendering.chapter_template: "{{{loc_chapter}}} {{{number}}}: {{{chapter_title}}}"
</code></pre>
<p id = "para-168">most templates must be in a separate file:</p>
<pre><code class = "language-yaml">tex.template: my_template.tex
</code></pre>
<h3 id = "link-82"><code>--print-template</code> argument</h3>
<p id = "para-169">The easiest way to create a new template is to start with the default one used by Crowbook. In order to do so, you can use the <code>--print-template</code> argument:</p>
<pre><code class = "language-bash">$ crowbook --print-template tex.template &gt; my_template.tex
</code></pre>
<p id = "para-170">In order to get the <code>chapter.xhtml</code> template for EPUB3, you'll also have to use <code>--set epub.version 3</code>:</p>
<pre><code class = "language-bash">$ crowbook --print-template epub.chapter.xhtml --set epub.version 3 &gt; my_epub3_template.xhtml
</code></pre>
<h3 id = "link-83">Mustache syntax</h3>
<p id = "para-171">Crowbook uses <a href = "https://crates.io/crates/mustache">rust-mustache</a> as its templating engine, which allows to use <a href = "http://mustache.github.io/">Mustache</a> syntax in the templates.</p>
<p id = "para-173">It mainly boils down to using <code>{{{foo}}}</code><a href = "#note-dest-4"><sup id = "note-source-4">[4]</sup></a> to insert the value of variable <code>foo</code> in the document:</p>
<pre><code class = "language-html">&lt;h1 class = "title" &gt;{{{title}}}&lt;h1&gt;
&lt;h2 class = "author"&gt;{{{author}}}&lt;/h2&gt;
</code></pre>
<p id = "para-174">Mustache also provides the possibility of checking whether a variable is set:</p>
<pre><code>{{#foo}}
Foo exists
{{/foo}}
{{^foo}}
Foo does not exist
{{^foo}}
</code></pre>
<p id = "para-175">Crowbook uses this and sets some variables to <code>true</code> to allow templates to conditionally include some portions. E.g., in <code>html.css</code>:</p>
<pre><code class = "language-css">{{#fr}}
/* Make list displays '' instead of bullets */
ul li {
list-style-type: '';
padding-left: .5em;
}
{{/fr}}
</code></pre>
<p id = "para-176">In this case, Crowbook sets a variable whose name is equal to the <code>lang</code> value to <code>true</code>, allowing to have different styles for some elements according to the language.</p>
<p id = "para-177">For more information about Mustache syntax, see <a href = "http://mustache.github.io/mustache.5.html">Mustache manual</a>.</p>
<h4 id = "link-84">Syntax in LaTeX</h4>
<p id = "para-179">Since LaTeX already uses a lot of curly brackets, the default template sets an altenative syntax to access variables, with <code>&lt;&lt;&amp;foo&gt;&gt;</code><a href = "#note-dest-5"><sup id = "note-source-5">[5]</sup></a>:</p>
<pre><code class = "language-latex">\title{&lt;&lt;&amp;title&gt;&gt;}
\author{&lt;&lt;&amp;author&gt;&gt;}
&lt;&lt;#has_date&gt;&gt;\date{&lt;&lt;&amp;date&gt;&gt;}&lt;&lt;/has_date&gt;
</code></pre>
<h2 id = "link-85">4.3. List of accessible variables</h2>
<h3 id = "link-86">Metadata</h3>
<p id = "para-180">For every template, Crowbook exports all of the metadata:</p>
<ul>
<li><code>author</code>;</li>
<li><code>title</code>;</li>
<li><code>lang</code>;</li>
<li><code>subject</code>;</li>
<li><code>description</code>;</li>
<li><code>license</code>;</li>
<li><code>version</code>;</li>
<li><code>date</code>;</li>
<li>any option <code>metadata.foo</code> defined in the book configuration file will also be exported as <code>metadata_foo</code>.</li>
</ul>
<p id = "para-181">These metadata can contain Markdown, which will be rendered. E.g., setting <code>date: "20th of **september**"</code> will render <code>september</code> in bold, using <code>&lt;b&gt;</code> tag for HTML or <code>\textbf</code> for LaTeX. (It might be a bad idea to insert Markdown into <code>author</code> or <code>title</code> fields, and it certainly is for <code>lang</code>, but it can be useful for custom metadata or for fields like <code>description</code>).</p>
<p id = "para-182">For each metadata <code>foo</code> that is set, Crowbook also inserts a <code>has_foo</code> bool set to true. This allows to use Mustache's section for some logic, e.g.:</p>
<pre><code>{{{title}}}
{{#has_version}}, version {{{version}}}{{/has_version}}
</code></pre>
<p id = "para-183">will avoid rendering ", version" when <code>version</code> is not set.</p>
<h3 id = "link-87">Localisation strings</h3>
<p id = "para-184">For all templates, Crowbook also exports some localisation strings <code>loc_foo</code>. They currently include:</p>
<div class = "table">
<table>
<tr>
<th> Localisation key </th><th> Value in english </th></tr>
<tr>
<td> <code>loc_toc</code> </td><td> Table of contents </td></tr>
<tr>
<td> <code>loc_chapter</code> </td><td> Chapter </td></tr>
<tr>
<td> <code>loc_display_all</code> </td><td> Display all chapters </td></tr>
<tr>
<td> <code>loc_display_one</code> </td><td> Display one chapter </td></tr>
</table>
</div>
<h3 id = "link-88">Template-dependent values</h3>
<p id = "para-185">Crowbook also exports some additional fields for some templates, see below.</p>
<div class = "table">
<table>
<tr>
<th> Mustache tag </th><th> Value </th><th> Available in... </th></tr>
<tr>
<td> <code>content</code> </td><td> A rendered version of the book or chapter's content </td><td> <code>html_single.html</code>, <code>html_dir.index.html</code>, <code>html_dir.chapter.html</code>, <code>tex.temlplate</code>, <code>epub.chapter.xhtml</code> </td></tr>
<tr>
<td> <code>toc</code> </td><td> A rendered version of the table of contents </td><td> <code>html_single.html</code>, <code>html_dir.chapter.html</code>, <code>html_dir.index.html</code> </td></tr>
<tr>
<td> <code>has_toc</code></td><td> Set to <code>true</code> if the table of contents is not empty </td><td> <code>html_single.html</code> </td></tr>
<tr>
<td> <code>colours</code></td><td> The content of <code>html.css.colours</code> </td><td> <code>html.css</code> </td></tr>
<tr>
<td> <code>footer</code> </td><td> The content of <code>html.footer</code> </td><td> <code>html_single.html</code>, <code>html_dir.index.html</code>, <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>header</code> </td><td> The content of <code>html.header</code> </td><td> <code>html_single.html</code>, <code>html_dir.index.html</code>, <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>script</code> </td><td> The javascript file for this HTML document </td><td> <code>html_single.html</code>, <code>html_dir.index.html</code>, <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>style</code> </td><td> The CSS file for this HTML<span class = "nbsp">&#160;</span>document, that is, a rendered version of <code>html.css</code> </td><td> <code>html_single.html</code> </td></tr>
<tr>
<td> A variable whose name corresponds to <code>lang</code> in book options (e.g. <code>lang_en</code> if lang is set to "en", <code>lang_fr</code> if it is set to "fr", ... </td><td> <code>true</code> </td><td> <code>html.css</code>, <code>epub.css</code> </td></tr>
<tr>
<td> <code>chapter_title</code> </td><td> The title of current chapter </td><td> <code>html_dir.chapter.html</code>, <code>epub.chapter.xhtml</code>, <code>rendering.chapter_template</code> </td></tr>
<tr>
<td> <code>highlight_code</code> </td><td> True if <code>html.highlight_code</code> is true </td><td> <code>html_single.html</code>, <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>highlight_css</code> </td><td> The content of <code>html.highlight.css</code> </td><td> <code>html_single.html</code> </td></tr>
<tr>
<td> <code>highlight_js</code> </td><td> The base64-encoded content of <code>html.highlight.js</code> </td><td> <code>html_single.html</code> </td></tr>
<tr>
<td> <code>common_script</code> </td><td> The content of <code>html.js</code> </td><td> <code>html_single.js</code> </td></tr>
<tr>
<td> <code>one_chapter</code> </td><td> True if <code>html_single.one_chapter</code> is true, else not present </td><td> <code>html_single.html</code>, <code>html_single.js</code> </td></tr>
<tr>
<td> <code>book.svg</code> </td><td> The base64-encoded image of the button to display all chapters </td><td> <code>html_single.js</code>, <code>html_single.html</code> </td></tr>
<tr>
<td> <code>pages.svg</code> </td><td> The base64-encoded image of the button to display one chapter at a time </td><td> <code>html_single.js</code>, <code>html_single.html</code> </td></tr>
<tr>
<td> <code>menu_svg</code> </td><td> The base64-encoded image of the hamburger menu image </td><td> <code>hml_single.html</code> </td></tr>
<tr>
<td> <code>prev_chapter</code> </td><td> Title and a link of previous chapter </td><td> <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>next_chapter</code> </td><td> Title and a link of nexts chapter </td><td> <code>html_dir.chapter.html</code> </td></tr>
<tr>
<td> <code>class</code> </td><td> The content of <code>tex.class</code> </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>book</code> </td><td> True if <code>tex.class</code> is <code>book</code>, not set else </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>tex_lang</code> </td><td> The babel equivalent of <code>lang</code> </td><td> <code>tex.template</code> </td></tr>
<tr>
<td> <code>initials</code> </td><td> True if <code>rendering.initials</code> is true, not set else </td><td> <code>tex.template</code> </td></tr>
</table>
</div>
<div class = "notes">
<h2 class = "notes">Notes</h2>
<table class = "notes">
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-3">[3]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-3"><p id = "para-146">Some of them, though, are not "real" templates, they are just files that are inserted, but can't contain mustache tags. This will probably evolve in future versions.</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-4">[4]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-4"><p id = "para-172">Mustache also provides the <code>{{foo}}</code> variant, which HTML-escapes the content of the variable. You should not use this, as Crowbook already renders and correctly escapes the variables it sets for use in templates.</p>
</aside>
</td>
</tr>
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-5">[5]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-5"><p id = "para-178"><code>&lt;&lt;foo&gt;&gt;</code> might also work, but the ampersand is required to prevent mustache HTML-escaping the value. This is not good because:</p>
<ol>
<li>escaping is already done by Crowbook before setting variable content;</li>
<li>escaping HTML in a LaTeX document won't probably look good.</li>
</ol>
</aside>
</td>
</tr>
</table>
</div>
<p class = "next_chapter">
<a href = "chapter_004.html">
<b>5.</b> Proofreading with Crowbook »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-291">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,295 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>5.</b> Proofreading with Crowbook</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-294">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_003.html">
« <b>4.</b> Templates
</a>
</p>
<h1 id = "link-89"><b>5.</b> Proofreading with Crowbook</h1>
<p id = "para-186">Since version 0.9.1, Crowbook includes some proofreading features, that can be enabled if you set one of the</p>
<ul>
<li><code>output.proofread.html</code></li>
<li><code>output.proofread.html_dir</code></li>
<li><code>output.proofread.pdf</code></li>
</ul>
<p id = "para-187">output files. This allows you to generate different files for publishing and proofreading (you probably don't want to publish a version that highlights your grammar errors or your repetitions).</p>
<p id = "para-188">Current proofreading features are:</p>
<ul>
<li>repetition detection;</li>
<li>grammar check;</li>
<li>highlighting non-breaking spaces.</li>
</ul>
<blockquote><p id = "para-189">Note that, by default, <code>cargo build</code> <em>won't</em> compile Crowbook with proofreading features. In order to enable them (at the cost of a bigger binary and a longer compilation time), you'll have to run:</p>
</blockquote>
<pre><code>$ cargo install --features "proofread" crowbook
</code></pre>
<blockquote><p id = "para-190">or:</p>
</blockquote>
<pre><code class = "language-bash">$ cargo build --release --features "proofread"
</code></pre>
<blockquote><p id = "para-191">in the source directory.</p>
</blockquote>
<h2 id = "link-90">5.1. Enabling proofreading</h2>
<p id = "para-192">Since proofreading can take quite a lot of time, particularly for long book, it is disabled by default. You'll have to run</p>
<pre><code class = "language-bash">$ crowbook --proofread my.book
</code></pre>
<p id = "para-193">or</p>
<pre><code class = "language-bash">$ crowbook -p my.book
</code></pre>
<p id = "para-194">to generate proofreading copies. Alternatively, if you want it to be activated each time you run <code>crowbook</code> on this book (which is <em>not</em> recommanded for long books, particularly if you want to perform a grammar check), you can set</p>
<pre><code class = "language-yaml">proofread: true
</code></pre>
<p id = "para-195">in the book configuration file.</p>
<h2 id = "link-91">5.2. Repetition detection</h2>
<p id = "para-196">Repetition detection is enabled with:</p>
<pre><code class = "language-yaml">proofread.repetitions: true
</code></pre>
<p id = "para-197">It uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> library to detect the repetition in your text. Since the notion of a repetition is relatively arbitrary, it is possible to adapt the settings. Default are:</p>
<pre><code class = "language-yaml"># The maximum distance between two identical words to
# consider them a repetition
proofread.repetitions.max_distance: 25
# The minimal number of occurences to consider it a repetition
proofread.repetitions.threshold: 2.0
# Ignore proper nouns (words starting by a capital,
# not at a beginning of a sentence)
proofread.repetitions.ignore_proper: true
# Activate fuzzy string matching
proofread.repetitions.fuzzy: true
# The maximal ratio of difference to consider
# that two words are identical
# (E.g., with 0.2, "Rust" and "Lust" won't be
# considered as the same word, but they will be with 0.5)
proofread.repetitions.fuzzy.threshold: 0.2
</code></pre>
<p id = "para-198">For more information, see <a href = "https://github.com/lise-henry/caribon">Caribon</a>'s documentation.</p>
<blockquote><p id = "para-199">Currently, repetitions are not displayed in PDF proofreading output.</p>
</blockquote>
<h2 id = "link-92">5.3. Grammar checking</h2>
<p id = "para-200">Crowbook can also use <a href = "https://languagetool.org/">LanguageTool</a> to detect grammar errors in your text. It is, however, a bit more difficult to activate.</p>
<p id = "para-201">First, you'll have to activate this feature in your book configuration file:</p>
<pre><code class = "language-yaml"># Activate language tool support
proofread.languagetool: true
# (Optional) Sets the port number to connect to (default below)
proofread.languagetool.port: 8081
</code></pre>
<p id = "para-202">You'll then have to download the stand-alone version of <a href = "https://languagetool.org/">LanguageTool</a>. It includes a server mode, which you'll have to launch:</p>
<pre><code class = "language-bash">$ java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081
</code></pre>
<p id = "para-203">You can also use the LanguageTool GUI (<code>languagetool.jar</code>) and start the server from the menu "Text Checking -&gt; Options". This also allows you to configure LanguageTool more precisely by activating or deactivating rules.</p>
<p id = "para-204">You can then run Crowbook, and it will highlight grammar errors in HTML or PDF proofreading output files.</p>
<blockquote><p id = "para-205">Note: running a grammar check on a long book (like a novel) can take up to a few minutes.</p>
</blockquote>
<h2 id = "link-93">5.4. Highlighting non-breaking spaces</h2>
<p id = "para-206">The last proofreading feature is a bit less important, but it can be useful in some cases. It is is dis/activated by setting <code>proofread.nb_spaces</code> to "true" or false, and it will highlight different sort of non-breaking spaces in HTML proofreading output files. This can be useful in some cases, but it is mostly a debugging feature to check that the french cleaner of Crowbook correctly replaces spaces with correct non-breaking spaces in the relevant places.</p>
<p class = "next_chapter">
<a href = "chapter_005.html">
<b>6.</b> Tips and tricks »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-293">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,280 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide <b>6.</b> Tips and tricks</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-296">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_004.html">
« <b>5.</b> Proofreading with Crowbook
</a>
</p>
<h1 id = "link-94"><b>6.</b> Tips and tricks</h1>
<h2 id = "link-95">6.1. Using Crowbook with Emacs' markdown mode</h2>
<p id = "para-207">If you use <a href = "https://www.gnu.org/software/emacs/">Emacs</a> as a text editor, there is a nice <a href = "http://jblevins.org/projects/markdown-mode/">Markdown mode</a> to edit Markdown files.</p>
<p id = "para-208">It is possible to use Crowbook for HTML previewing in his mode, which <a href = "http://xkcd.com/1742/">requires only minimal configuration and tweaking</a>:</p>
<pre><code class = "language-lisp">(custom-set-variables
'(markdown-command "crowbook -qs --to html --output /dev/stdout")
'(markdown-command-needs-filename t))
</code></pre>
<p id = "para-210">You can then use <code>markdown-preview</code> (or <code>C-c C-c p</code><a href = "#note-dest-6"><sup id = "note-source-6">[6]</sup></a>) to run crowbook on this file and preview it in your browser, or run <code>markdown-live-preview-mode</code> to see a live preview (updated each time you save you file) in Emacs' integrated browser.</p>
<h3 id = "link-96">Some explanations if it looks a bit cryptic to you</h3>
<p id = "para-211">We set <code>markdown-command</code> to <code>crowbook</code>, the reason for this is a bit obvious. The arguments we give to crowbook might not be a bit less obvious:</p>
<ul>
<li><code>-qs</code> or <code>--quiet --single</code> tells crowbook that is a a standalone markdown file, and not a book configuration file, and to be a bit quiet on error/info messages;</li>
<li><code>--to html</code> specifies that HTML must be generated;</li>
<li><code>--output /dev/stdout</code> forces crowbook to displays the result on the stdout, even if you set <code>output.html</code> to <code>some_file.html</code> (yes, this is a bit ugly).</li>
</ul>
<p id = "para-212">Also, <code>(markdown-command-needs-filename t)</code> is because at this point Crowbook can't read from the stdin and must be specified a file.</p>
<h3 id = "link-97">Limitations</h3>
<p id = "para-213">While it renders correctly, this only works really nicely on standalone markdown files where you have specified, e.g.:</p>
<pre><code class = "language-markdown">---
author: Your name
title: Some title
---
</code></pre>
<p id = "para-214">Else, it will sets <code>author</code> and <code>title</code> to the default values (<code>anonymous</code> and <code>untitled</code>, respectively).</p>
<h2 id = "link-98">6.2. Embedding fonts in an EPUB file</h2>
<p id = "para-215">In order to embed fonts in an EPUB file, you'll first have to edit the stylesheet, which you can first obtain with:</p>
<pre><code class = "language-bash">$ crowbook --print-template epub.css &gt; my_epub_stylesheet.css
</code></pre>
<p id = "para-216">You'll need to use the <a href = "https://developer.mozilla.org/fr/docs/Web/CSS/@font-face"><code>@font-face</code> attribute</a>:</p>
<pre><code class = "language-css">@font-face {
font-family: MyFont;
src: url(data/my_font.ttf);
}
</code></pre>
<p id = "para-217">Then you can add <code>my_font.ttf</code> to the files that need to be added to the EPUB zip file:</p>
<pre><code class = "language-yaml">title: My Book
author: Me
cover: cover.png
output.epub: book.epub
resources.files: my_font.ttf
</code></pre>
<p id = "para-218">(Note that you'll have to repeat the process the different <code>font-weight</code> and <code>font-style</code> variants of your font if you want it to display correctly when there is some text in <b>bold</b>, <em>italics</em>, or <b><em>both</em></b>.)</p>
<div class = "notes">
<h2 class = "notes">Notes</h2>
<table class = "notes">
<tr class = "notes">
<td class = "note-number">
<p class = "note-number">
<a href = "#note-source-6">[6]</a>
</p>
</td>
<td class = "note">
<aside id = "note-dest-6"><p id = "para-209">Yes, this looks like a crypto-communist statement.</p>
</aside>
</td>
</tr>
</table>
</div>
<p class = "next_chapter">
<a href = "chapter_006.html">
ChangeLog »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-295">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,581 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide ChangeLog</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-298">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_005.html">
« <b>6.</b> Tips and tricks
</a>
</p>
<h1 id = "link-99">ChangeLog</h1>
<h2 id = "link-100">unreleased</h2>
<ul>
<li><b>Breaking changes</b>:<ul>
<li>Templates:<ul>
<li>Conditional inclusion depending on <code>lang</code> must now be done using <code>lang_LANG</code> (e.g. <code>lang_fr</code>, <code>lang_en</code>, and so on). This might impact custom <code>epub.css</code> and <code>html.css</code> templates.</li>
</ul>
</li>
<li>API:<ul>
<li>The <code>escape</code> module has been moved to a separate crate, <code>crowbook_text_processing</code>. The <code>cleaner</code> module is no longer public, but the features it provided are also available in <code>crowbook_text_processing</code>.</li>
</ul>
</li>
</ul>
</li>
<li>New options:<ul>
<li><code>html.css.colours</code> allows to provide a CSS file that only redefine the colour scheme. Such a file can be built from <code>crowbook --print-template html.css.colours</code>.</li>
</ul>
</li>
<li>Command line interface:<ul>
<li>Added the <code>--quiet</code> (or <code>-q</code>) argument, that makes crowbook run without displaying any messages (except some error messages at this point).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>HTML:<ul>
<li>The table of contents menu is no longer displayed in the HTML single renderer if it doesn't contain at least two elements.</li>
<li>The default colour theme has been modified a little.</li>
</ul>
</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fix the escaping of non-breaking spaces in EPUB, as <code>&amp;nbsp;</code> and its friends aren't valid entities in XHTML, apparently.</li>
</ul>
</li>
</ul>
<h2 id = "link-101">0.9.1 (2016-09-29)</h2>
<p id = "para-219">This release mainly introduces generation of proofreading copies, allowing, if they are set (and <code>crowbook</code> was compiled with the <code>proofread</code> feature) to generate proofreading copies, using tools to check grammar and detect repetitions. These features are currently experimental.</p>
<ul>
<li>New options:<ul>
<li><code>html.escape_nb_spaces</code>, if set to true (by default), will replace unicode non breaking spaces with HTML entites and CSS so it can display correctly even if reader's don't have a browser/font supporting these unicode symbols.</li>
<li>Output files for proofread documents: <code>output.proofread.html</code>, <code>output.proofread.html_dir</code> and <code>output.proofread.pdf</code>.</li>
<li>Proofread options <code>proofread.repetitions</code> and <code>proofread.nb_spaces</code> have been added.<ul>
<li><code>proofread.nb_spaces</code>, if set to true, highlights non-breaking spaces so it is easier to check the correct typography of a book. Note that it requires that <code>html.escape_nb_spaces</code> be set to true (default) to work.</li>
<li><code>proofread.reppetitions</code>, if set to true, uses <a href = "https://github.com/lise-henry/caribon">Caribon</a> to highlight repetitions in a document. It also uses the settings <code>proofread.repetitions.fuzzy</code>, <code>proofread.repetitions.max_distance</code>, <code>proofread.repetitions.threshold</code>, <code>proofread.repetitions.fuzzy.threshold</code>, <code>proofread.repetitions.ignore_proper</code>. Note that this feature is not built by default, you'll have to build crowbook with <code>cargo build --release --features "repetitions"</code>.</li>
</ul>
</li>
</ul>
</li>
<li>New default settings for options:<ul>
<li><code>tex.command</code> is now <code>xelatex</code> by default.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>LaTeX:<ul>
<li>Add support for xelatex in the default template.</li>
</ul>
</li>
<li>Improved french cleaner (see <a href = "https://crowdagger.github.io/textes/articles/heuristique.html">an article (in french)</a> that talks about what it does).</li>
</ul>
</li>
<li>Crowbook user guide: documentation has been updated to correctly reflect 0.9.x options.</li>
<li>API:<ul>
<li><code>clap</code> dependency is now optional, people who want to use Crowbook as a library should include it with <code>crowbook = { version = "0.9", default-features = false }</code>. (<code>clap</code> is still required to build a working binary).</li>
</ul>
</li>
</ul>
<h2 id = "link-102">0.9.0 (2016-09-23)</h2>
<p id = "para-220">The main objective of this release is to clean public interfaces, in order to limit breaking changes in the future. <em>Ideally</em>, all pre-1.0 releases should thus be 0.9.x. Concretely, this meant three things:</p>
<ul>
<li>reducing the surface of Crowbook's library API;</li>
<li>cleaning options names</li>
<li>cleaning the names exported in templates and document them, in order not to break user-defined templates in future (non-breaking) releases. More detailed changes for this release:</li>
<li><b>Breaking change for users</b>: removed <code>tex.short</code> option, replaced by a more generic <code>tex.class</code> (default being <code>book</code>). <code>html.crowbook_link</code> has also been removed.</li>
<li>Renamed options. Using the old name will print a deprecation warning but will still work for a while.<ul>
<li><code>temp_dir</code> -&gt; <code>crowbook.temp_dir</code></li>
<li><code>zip.command</code> -&gt; <code>crowbook.zip.command</code></li>
<li><code>verbose</code> -&gt; <code>crowbook.verbose</code></li>
<li><code>html.print_css</code> -&gt; <code>html.css.print</code></li>
<li><code>html.display_chapter</code> -&gt; <code>html_single.one_chapter</code></li>
<li><code>html.script</code> -&gt; <code>html_single.js</code></li>
<li><code>numbering</code> -&gt; <code>rendering.num_depth</code></li>
<li><code>numbering_template</code> -&gt; <code>rendering.chapter_template</code></li>
<li><code>display_toc</code> -&gt; <code>rendering.inline_toc</code></li>
<li><code>toc_name</code> -&gt; <code>rendering.inline_toc.name</code></li>
<li><code>enable_yaml_blocks</code> -&gt; <code>input.yaml_blocks</code></li>
<li><code>use_initials</code> -&gt; <code>rendering.initials</code></li>
<li><code>autoclean</code> -&gt; <code>input.autoclean</code></li>
<li><code>html_dir.css</code> -&gt; <code>html.css</code> (not really renamed, <code>html_dir.css</code> isactually removed as there is no point in having different CSS for standalone and multifile HTML rendering, is it?)</li>
</ul>
</li>
<li>New options:<ul>
<li>More metadata: <code>license</code>, <code>version</code> and <code>date</code>. These metadata are not treated by the renderers, but they are exported to the templates: <code>{{{metadata}}}</code> allows to access the content. If they are present, a <code>has_metadata</code> is also set to true, allowing to do something like <code>{{{title}}} {{#has_version}}version {{{version}}} {{/has_version}}</code>.</li>
<li>Yet more metadata: it is possible to add custom metadata by prefixing it with <code>metadata.</code>. They will then be accessible in the templates, with dots ('.') replaced by underscores ('_'). E.g., with <code>metadata.foo: bar</code> you can access it in your templates with <code>{{{metadata_foo}}}</code>.</li>
<li><code>output.base_path</code> specifies a directory where the output files (set by <code>output.FORMAT</code> will be written.</li>
<li><code>resources.base_path.templates</code> specifies where templates can be found.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Metadata can now contain Markdown and will be rendered by the renderers. This might not be a good idea for common fields (e.g. "title"), though. Use with caution.</li>
<li><code>rendering.inline_toc.name</code> can use <code>{{{loc_toc}}}</code> to specify a localized name.</li>
<li>HTML:<ul>
<li><code>html.top</code> and <code>hstml.footer</code> are now considered as templates, so you can use some <code>{{{metadata}}}</code> in it.</li>
<li>Improved the way footnotes are displayed.</li>
<li>In standalone HTML, footnotes are rendered at the end of the document instead of at the end of the chapter, unless <code>html_single.one_chapter</code> is true.</li>
</ul>
</li>
<li>LaTeX:<ul>
<li>If <code>tex.class</code> is set to <code>article</code>, chapters will be displayed as <code>\sections</code> since <code>article</code> class doesn't handle chapters.</li>
<li>Except if <code>tex.class</code> is set to <code>book</code>, margins are now symmetrical.</li>
<li>LaTex template now uses <code>version</code> and <code>date</code>.</li>
</ul>
</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li><code>import_config</code> only import options from another book file that are not equal to the default ones and that haven't already been set by the caller. E.g., <code>author: foo</code> then <code>import_config: bar.book</code> won't erase the author previously set.</li>
<li><code>import_config</code> now correctly translates the imported book's paths.</li>
</ul>
</li>
<li>Crowbook program:<ul>
<li>Still working to improve error messages.</li>
<li><code>crowbook --list-options</code> uses colours. This might hurt your eyes.</li>
<li>Display an error message when mustache can't compile a template, instead of panicking.</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>Added static methods to <code>Logger</code> to allows displaying messages more easily/prettily.</li>
<li>Reduce pubic API's surface so less changes will need to be considered breaking in the future.</li>
</ul>
</li>
</ul>
<h2 id = "link-103">0.8.0 (2016-09-19)</h2>
<p id = "para-221">This release adds support for syntax higlighting in code blocks, customized top and footer blocks for HTML rendering, and the special <code>import_config</code> option that allows to import options from another book file. It also provides (hopefully) better error messages.</p>
<ul>
<li>New options:<ul>
<li><code>import_config</code>is not really an option, but allows to import another configuration file, useful if you share a same set of options between multiple books.</li>
<li><code>use_initials</code> (set to false by default) makes Crowbook use initials ("lettrines") at start of each chapter. Support is still experimental.</li>
<li><code>html.highlight_code</code> (set to true by default) allows syntax highlighting for code blocks, using highlight.js.</li>
<li><code>html.higlight.css</code> and <code>html.highlight.js</code> can be used to provide other themes (default is default.css) and an highlight.js build that support other languages.</li>
<li><code>html.footer</code> allows to specify custom footer. If not set, <code>html.crowbook_link</code> allows to disable "Generated by Crowbook" message.</li>
<li><code>html.top</code> allows to specify a custom header that will be displayed at the top of HTML file(s).</li>
</ul>
</li>
<li>Deprecated options:<ul>
<li><code>side_notes</code> has been renamed <code>html.side_notes</code>.</li>
</ul>
</li>
<li>Crowbook program:<ul>
<li>All output formats are now rendered concurrently.</li>
<li>Better error messages. Crowbook now tries to give more information when displaying an error, with the file name where a problem was found, and, in some cases, the line. It also tries to detect errors (such as files not found) sooner.</li>
<li>Some "warning" messages have also been "moved" to error messages, to make sure they are displayed even when crowbook isn't runned with <code>--verbose</code>.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Hidden chapter now produce empty <code>\chapter*{}</code> and <code>&lt;h1&gt;</code> in LaTeX and HTML. This allow to delimit a chapter break even if nothing is displayed.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Navigation menu of standalone HTML didn't include a call to javascript when <code>html.display_chapter</code> was set to true, meaning it didn't display the chapter correctly.</li>
<li>Implementations of <code>Image</code> and <code>StandaloneImage</code> were reversed in LaTeX.</li>
<li><code>StandaloneImage</code> urls were not adjusted (meanning that running <code>crowbook</code> from another directory failed).</li>
<li>Image paths are now found correctly in HtmlDir rendering even if <code>crowbook</code> is called from another directory (same fix as 0.6's for Epub and LaTeX, which was forgotten for HtmlDir).</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>In order to have better error messages, there was a need to refactor the <code>Error</code> type, and make more methods return <code>Result&lt;X&gt;</code> instead of <code>X</code>. The API is, therefore, quite modified.</li>
<li>Added a <code>Renderer</code> trait used by the various renderers.</li>
<li>Removed some methods from public API.</li>
</ul>
</li>
</ul>
<h2 id = "link-104">0.7.0 (2016-09-11)</h2>
<p id = "para-222">This releases renders images differently when they are on a standalone paragraph or inside a paragraph.</p>
<ul>
<li>Internal/API:<ul>
<li><code>Token</code> has a new variant, <code>StandaloneImage</code>. This is used to distinguish an image that is alone in a paragraph of an image that is inlined alongside text.</li>
<li><code>Parser.parse</code> method now distingues between <code>Image</code> and <code>StandaloneImage</code>. Currently, an image is considered "standalone" if it is the sole element of a paragraph, even if it is among a link.</li>
<li><code>Token</code> has a new <code>is_image</code> method.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Standalone images are now rendered differently than inline images (80% of width VS original size) in HTML/EPUB and LaTeX.</li>
</ul>
</li>
</ul>
<h2 id = "link-105">0.6.0 (2016-09-09)</h2>
<ul>
<li>Deprecated options:<ul>
<li><code>nb_char</code>: since it was only used for french cleaner and for typography reasons it's better to use different non breaking spaces according to context, this option was not really useful anymore.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Images are now displayed at 80% width of the page.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Image paths are now found correctly in LaTeX and EPUB rendering even if <code>crowbook</code> is called from another directory.</li>
<li>Fixed a bug in <code>French</code> cleaner when a string to clean ended by a non-breaking space (space was doubled with a breaking one).</li>
<li>LaTeX/PDF:<ul>
<li>"Autocleaning" is now also activated (for french at least) for LaTeX rendering, since it doesn't correctly insert non-breaking spaces for e.g. '«' or '»'.</li>
<li>Fixed escaping of <code>--</code> to <code>-{}-</code> to avoid tex ligatures.</li>
</ul>
</li>
<li>HTML/EPUB:<ul>
<li><code>html.display_chapter</code> now defaults to <code>false</code> (e.g., by default the HTML displays the entirety of a book).</li>
<li>Fixed rendering of lists when <code>lang</code> is set to <code>fr</code>.</li>
<li>Links are now HTML-escaped, fixing errors in XHTML (for EPUB rendering) when links contained '&amp;' character.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id = "link-106">0.5.1 (2016-04-14)</h2>
<p id = "para-223">Mostly rendering fixes:</p>
<ul>
<li>Epub:<ul>
<li>Fix a validation problem when book contained hidden chapters.</li>
</ul>
</li>
<li>French cleaner:<ul>
<li>Use semi-cadratine space instead of cadratine space for dialogs.</li>
<li>Use non-narrow non-breaking spapce instead of narrow one for ':', '«' and '»' (following https://fr.wikipedia.org/wiki/Espace_ins%C3%A9cable#En_France).</li>
</ul>
</li>
<li>HTML:<ul>
<li>Add viewport meta tags.</li>
<li>Standalone HTML:<ul>
<li>Don't display the button to display chapter and the previous/next chapter link if <code>html.display_chapter</code> is set to <code>false</code>.</li>
<li>Fix chapter displaying when some chapters are not numbered.</li>
</ul>
</li>
<li>Multi-files HTML:<ul>
<li>Fix previous/next chapter display to make it consistent with standalone HTML.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id = "link-107">0.5.0 (2016-04-02)</h2>
<ul>
<li>Crowbook now requires Rustc 1.7.0.</li>
<li>It is now possible to render HTML in multiple files:<ul>
<li><code>output.html_dir</code> will activate this renderer, and specify in which directory to render these files;</li>
<li><code>html_dir.css</code> allows to override the CSS for this rendering;</li>
<li><code>html_dir.index.html</code> allows to specify a template for the <code>index.html</code> page;</li>
<li><code>html_dir.chapter.html</code> allows to specify a template for the chapters pages.</li>
</ul>
</li>
<li>New book options:<ul>
<li><code>tex.short</code>: if set to true, the LaTeX renderer will use <code>article</code> instead of <code>book</code> as document class, and will use the default <code>\maketitle</code> command for article. This option is by default set to false, except when Crowbook is called with <code>--single</code>.</li>
<li><code>enable_yaml_blocks</code>: parsing YAML blocks is no longer activated by default, except when using <code>--single</code>. This is because you might want to have e.g. multiple short stories using YAML blocks to set their titles and so on, <em>and</em> a separate <code>.book</code> file to render a book as a collection of short stories. In this case, you wouldn't want the displayed title or the output.pdf/html/epub files be redefined by the short stories .md files.</li>
<li><code>html.print_css</code>: allows to specify a stylesheet for media print</li>
<li><code>html.display_chapter</code>: displays one chapter at a time in standalone HTML</li>
<li><code>html.script</code>: allows to specify a custom javascript file for standalone HTML</li>
<li><code>html_dir.script</code>: same thing for multipage HTML</li>
<li><code>resources.base_path</code>: by default, Crowbook resolves local links in markdown files relatively to the markdown file. This option allows to resolve them relatively to a base path. This option comes with two variants, <code>resources.base_path.images</code> and <code>resources.base_path.links</code>, which only activate it for respectively images tags and links tags. These two options are ignored when <code>base_path</code> is set. There is also <code>resources.base_path.files</code> which specify where additional files (see below) should be read, but this is one is set to <code>.</code> (i.e., the directory where the <code>.book</code> file is) by default.</li>
<li><code>resources.files</code>: indicate a (whitespace-separated) list of files that should be embedded. Currently only used with the EPUB renderer.</li>
<li><code>resources.out_path</code>: indicate where <code>resources.files</code> should be copied in the final document. Default to <code>data</code>, meaning that files will be placed in a <code>data</code> directory in the EPUB.</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Templates can now use localized strings according to the <code>lang</code> option</li>
<li>Standalone HTML now includes locale files using base64.</li>
<li>Standalone HTML displays one chapter at a time, thouht it can be changed via a button in the menu.</li>
<li>HTML/EPUB: default CSS now uses the <code>lang</code> value do determine how to display lists (currently the only difference is it uses "" when <code>lang</code> is set to "fr" and standard bullets for other languages).</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Fixed a bug of filename "resolution" when Crowbook was called with <code>--single</code> (e.g., <code>crowbook -s tests/test.md</code> would previously try to load `tests/tests/test.md).</li>
<li>Epub renderer now uses the <code>mime_guess</code> library to guess the mime type based on extension, which should fix the mime type guessed for a wide range of extensions (e.g., svg).</li>
</ul>
</li>
<li>Internal/API:<ul>
<li>The <code>Book::new</code>, <code>new_from_file</code>, and <code>new_from_markdown_file</code> take an additional <code>options</code> parameter. To create a book with default options, set it to <code>&amp;[]</code>.</li>
</ul>
</li>
</ul>
<h2 id = "link-108">0.4.0 (2016-03-01)</h2>
<ul>
<li>Crowbook now internally uses a true YAML parser, <code>yaml_rust</code>, for its options. Since the "old" Crowbooks's config format was similar, but had some subtle differences, this is somewhat of a breaking change:<ul>
<li>strings should now be escaped with "" in some cases (e.g. if it contains special characters). On the other hand, it <em>allows</em> to optionally escape a string with these quotes, which wasn't possible until then and might be useful in some cases.</li>
<li>multiline strings now follow the YAML format, instead of the previous "YAML-ish" format. This can impact the way newlines are added at the end of a multiline string. See e.g. <a href = "http://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines">this link</a> for the various ways to include mulitiline strings in Yaml.</li>
</ul>
</li>
<li>Crowbook now parses YAML blocks (delimited by two lines with "---") in Markdown files, ignoring keys that it doesn't recognize. This allows crowbook to be compatible(-ish) with Markdown that contains YAML blocks for Jekyll or Pandoc.</li>
<li>New option <code>--single</code> allows to give Crowbook a single Markdown file (which can contain options within an inline YAML block) instead of a book configuration file. This is useful for e.g. short stories.</li>
<li>Enhanced the way debugging/warning/info messages are handled and displayed:<ul>
<li>Added a <code>--debug</code> option to the binary.</li>
<li>Internal: added a <code>Logger</code> struct.</li>
<li>Different levels of information (debug/warning/info/error) get different colours.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Crowbook no longer crashes when called with the <code>--to</code> argument if it can't create a file.</li>
</ul>
</li>
</ul>
<h2 id = "link-109">0.3.0 (2016-02-27)</h2>
<ul>
<li>Crowbook now tries to convert local links. That is, if you link to a Markdown file that is used in the book. (e.g. <a href = "chapter_000.html">README.md</a>), it <em>should</em> link to an appropriate inner reference inside the book.</li>
<li>Latex renderer now supports (local) images.</li>
<li>Epub renderer now embed (local) images in the EPUB file.</li>
<li>Some changes to the HTML/Epub stylesheets.</li>
<li>Internal (or usage as a library):<ul>
<li>Crowbook no longer changes current directory, which worked in the binary but could cause problem if library was used in multithreaded environment (e.g. in <code>cargo test</code>).</li>
<li>More modules and methods are now private.</li>
<li>Improved documentation.</li>
<li>Added more unit tests.</li>
</ul>
</li>
<li>Bugfixes:<ul>
<li>Epub renderer now correctly renders unnumbered chapter without a number in its toc.ncx file</li>
</ul>
</li>
</ul>
<h2 id = "link-110">0.2.2 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>French cleaner now correctly replaces space after — (in e.g. dialogs) with "em space".</li>
</ul>
</li>
</ul>
<h2 id = "link-111">0.2.1 (2016-02-25)</h2>
<ul>
<li>Bugfixes:<ul>
<li>HTML/Epub rendering no longer incorrectly increment chapter count for unnumbered chapters.</li>
<li>Latex: makes what is possible to avoid orverflowing the page.</li>
</ul>
</li>
<li>Minor changes:<ul>
<li>Latex: improvement of the default way URLs are displayed.</li>
</ul>
</li>
</ul>
<h2 id = "link-112">0.2.0 (2016-02-25)</h2>
<ul>
<li>Command line arguments:<ul>
<li>New argument <code>--print-template</code> now allows to print a built-in template to stdout.</li>
<li>New argument <code>--list-options</code> prints out all valid options in a config file (or in <code>set</code>), their type and default value.</li>
<li>New argument <code>--set</code> allows to define or override whatever option set in a book configuration.</li>
<li><code>--create</code> can now be used without specifying a <code>BOOK</code>, printing its result on <code>stdout</code>.</li>
</ul>
</li>
<li>Configuration file:<ul>
<li>Added support for multiline strings in <code>.book</code> files, with either '|' (preserving line returns) or '&gt;' (transforming line returns in spaces)</li>
<li>New option <code>display_toc</code> allows to display the table of contents (whose name, at least for HTML, is specified by <code>toc_name</code>) in HTML and PDF documents.</li>
<li>Option <code>numbering</code> now takes an int instead of a boolean, allowing to specify the maximum level to number (e.g. <code>1</code>: chapters only, <code>2</code>: chapters and sectino, ..., <code>6</code>: everything).</li>
</ul>
</li>
<li>Rendering:<ul>
<li>Added support for numbering all headers, not just level-1 (e.g., having a subsection numbered <code>2.3.1</code>).</li>
<li>Tables and Footnotes are now implemented for HTML/Epub and LaTeX output.</li>
</ul>
</li>
<li>Internal:<ul>
<li>Refactored <code>Book</code> to use an HashMap of <code>BookOption</code>s instead of having like 42 fields.</li>
</ul>
</li>
</ul>
<h2 id = "link-113">0.1.0 (2016-02-21)</h2>
<ul>
<li>initial release</li>
</ul>
<p class = "next_chapter">
<a href = "chapter_007.html">
GNU LESSER GENERAL PUBLIC LICENSE »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-297">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,406 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide GNU LESSER GENERAL PUBLIC LICENSE</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-300">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
</header>
<p class = "prev_chapter">
<a href = "chapter_006.html">
« ChangeLog
</a>
</p>
<h1 id = "link-114">GNU LESSER GENERAL PUBLIC LICENSE</h1>
<pre><code> Version 2.1, February 1999
</code></pre>
<p id = "para-224">Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
<p id = "para-225">[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]</p>
<pre><code> Preamble
</code></pre>
<p id = "para-226">The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.</p>
<p id = "para-227">This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.</p>
<p id = "para-228">When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.</p>
<p id = "para-229">To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.</p>
<p id = "para-230">For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.</p>
<p id = "para-231">We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.</p>
<p id = "para-232">To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.</p>
<p id = "para-233"> Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.</p>
<p id = "para-234">Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.</p>
<p id = "para-235">When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.</p>
<p id = "para-236">We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.</p>
<p id = "para-237">For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.</p>
<p id = "para-238">In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.</p>
<p id = "para-239">Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.</p>
<p id = "para-240">The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.</p>
<p id = "para-241"> GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</p>
<ol start = "0">
<li>This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".</li>
</ol>
<p id = "para-242">A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.</p>
<p id = "para-243">The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)</p>
<p id = "para-244">"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.</p>
<p id = "para-245">Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.</p>
<ol>
<li>You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.</li>
</ol>
<p id = "para-246">You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</p>
<p id = "para-247"></p>
<ol start = "2">
<li>You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</li>
</ol>
<pre><code>a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
</code></pre>
<p id = "para-248">These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</p>
<p id = "para-249">Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.</p>
<p id = "para-250">In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</p>
<ol start = "3">
<li>You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.</li>
</ol>
<p id = "para-251"> Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.</p>
<p id = "para-252">This option is useful when you wish to copy part of the code of the Library into a program that is not a library.</p>
<ol start = "4">
<li>You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.</li>
</ol>
<p id = "para-253">If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.</p>
<ol start = "5">
<li>A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.</li>
</ol>
<p id = "para-254">However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.</p>
<p id = "para-255">When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.</p>
<p id = "para-256">If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)</p>
<p id = "para-257">Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.</p>
<p id = "para-258"></p>
<ol start = "6">
<li>As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.</li>
</ol>
<p id = "para-259">You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:</p>
<pre><code>a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
</code></pre>
<p id = "para-260">For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</p>
<p id = "para-261">It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.</p>
<p id = "para-262"></p>
<ol start = "7">
<li>You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:</li>
</ol>
<pre><code>a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
</code></pre>
<ol start = "8">
<li><p id = "para-263">You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</p>
</li>
<li><p id = "para-264">You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.</p>
</li>
<li><p id = "para-265">Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.</p>
</li>
</ol>
<p id = "para-266"></p>
<ol start = "11">
<li>If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.</li>
</ol>
<p id = "para-267">If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.</p>
<p id = "para-268">It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</p>
<p id = "para-269">This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</p>
<ol start = "12">
<li><p id = "para-270">If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</p>
</li>
<li><p id = "para-271">The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
</li>
</ol>
<p id = "para-272">Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.</p>
<p id = "para-273"></p>
<ol start = "14">
<li><p id = "para-274">If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</p>
<pre><code> NO WARRANTY
</code></pre>
</li>
<li><p id = "para-275">BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
</li>
<li><p id = "para-276">IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<pre><code> END OF TERMS AND CONDITIONS
</code></pre>
</li>
</ol>
<p id = "para-277"> How to Apply These Terms to Your New Libraries</p>
<p id = "para-278">If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).</p>
<p id = "para-279">To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.</p>
<pre><code>&lt;one line to give the library's name and a brief idea of what it does.&gt;
Copyright (C) &lt;year&gt; &lt;name of author&gt;
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
</code></pre>
<p id = "para-280">Also add information on how to contact you by electronic and paper mail.</p>
<p id = "para-281">You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:</p>
<p id = "para-282">Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker.</p>
<p id = "para-283">&lt;signature of Ty Coon&gt;, 1 April 1990 Ty Coon, President of Vice</p>
<p id = "para-284">That's all there is to it!</p>
</div>
</div>
<footer id = "footer"><p id = "para-299">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,45 @@
/* Tomorrow Night Theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
.tomorrow-comment, pre .comment, pre .title {
color: #969896;
}
.tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo {
color: #cc6666;
}
.tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant {
color: #de935f;
}
.tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute {
color: #f0c674;
}
.tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata {
color: #b5bd68;
}
.tomorrow-aqua, pre .css .hexcolor {
color: #8abeb7;
}
.tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title {
color: #81a2be;
}
.tomorrow-purple, pre .keyword, pre .javascript .function {
color: #b294bb;
}
pre code {
display: block;
background: #1d1f21;
color: #c5c8c6;
font-family: Menlo, Monaco, Consolas, monospace;
line-height: 1.5;
border: 1px solid #ccc;
padding: 10px;
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -0,0 +1,217 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="crowbook">
<meta name="author" content="Élisabeth Henry">
<meta name="viewport" content="width=device-width">
<title>Crowbook User Guide</title>
<link rel = "stylesheet" href = "stylesheet.css" type = "text/css"
/>
<link rel = "stylesheet" href = "highlight.css" type = "text/css"
/>
<script src = "highlight.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<link rel = "stylesheet" href = "print.css" type = "text/css"
media = "print" />
<script>
function on(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "pink";
}
}
function off(name) {
var elements = document.getElementsByClassName(name);
for (var i = 0; i < elements.length; i++) {
var elem = elements[i];
elem.style.backgroundColor = "white";
}
}
var display_menu = false;
function toggle() {
if (display_menu == true) {
display_menu = false;
document.getElementById("nav").style.left = "-20%";
document.getElementById("content").style.marginLeft = "10%";
document.getElementById("menu").style.left = "1em";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "0";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "0%";
}
} else {
display_menu = true;
document.getElementById("nav").style.left = "0";
document.getElementById("content").style.marginLeft = "30%";
document.getElementById("menu").style.left = "20%";
if(document.getElementById("top")) {
document.getElementById("top").style.left = "20%";
}
if(document.getElementById("footer")) {
document.getElementById("footer").style.marginLeft = "20%";
}
}
}
</script>
</head>
<body>
<nav id = "nav">
<h2><a href = "index.html">Crowbook User Guide</a></h2>
<ul>
<li><a href = "chapter_000.html#link-1"><b>1.</b> Crowbook</a>
<ul>
<li><a href = "chapter_000.html#link-2">1.1. Example</a>
</li>
<li><a href = "chapter_000.html#link-3">1.2. Installing</a>
</li>
<li><a href = "chapter_000.html#link-7">1.3. Dependencies</a>
</li>
<li><a href = "chapter_000.html#link-8">1.4. Quick tour</a>
</li>
<li><a href = "chapter_000.html#link-9">1.5. Current features</a>
</li>
<li><a href = "chapter_000.html#link-17">1.6. Contributors</a>
</li>
<li><a href = "chapter_000.html#link-18">1.7. Acknowledgements</a>
</li>
<li><a href = "chapter_000.html#link-19">1.8. ChangeLog</a>
</li>
<li><a href = "chapter_000.html#link-20">1.9. Library</a>
</li>
<li><a href = "chapter_000.html#link-21">1.10. License</a>
</li>
</ul>
</li>
<li><a href = "chapter_001.html#link-22"><b>2.</b> Arguments</a>
<ul>
<li><a href = "chapter_001.html#link-23">2.1. <code>--create</code></a>
</li>
<li><a href = "chapter_001.html#link-25">2.2. <code>--single</code></a>
</li>
<li><a href = "chapter_001.html#link-26">2.3. <code>--set</code></a>
</li>
<li><a href = "chapter_001.html#link-28">2.4. <code>--proofread</code></a>
</li>
<li><a href = "chapter_001.html#link-29">2.5. <code>--list-options</code></a>
</li>
<li><a href = "chapter_001.html#link-30">2.6. <code>--print-template</code></a>
</li>
<li><a href = "chapter_001.html#link-31">2.7. <code>--verbose</code></a>
</li>
<li><a href = "chapter_001.html#link-32">2.8. <code>--to</code></a>
</li>
<li><a href = "chapter_001.html#link-34">2.9. <code>--output</code></a>
</li>
</ul>
</li>
<li><a href = "chapter_002.html#link-35"><b>3.</b> The configuration file</a>
<ul>
<li><a href = "chapter_002.html#link-36">3.1. The list of files</a>
</li>
<li><a href = "chapter_002.html#link-37">3.2. Crowbook options</a>
</li>
</ul>
</li>
<li><a href = "chapter_003.html#link-65"><b>4.</b> Templates</a>
<ul>
<li><a href = "chapter_003.html#link-66">4.1. List of templates</a>
</li>
<li><a href = "chapter_003.html#link-81">4.2. Create and edit template</a>
</li>
<li><a href = "chapter_003.html#link-85">4.3. List of accessible variables</a>
</li>
</ul>
</li>
<li><a href = "chapter_004.html#link-89"><b>5.</b> Proofreading with Crowbook</a>
<ul>
<li><a href = "chapter_004.html#link-90">5.1. Enabling proofreading</a>
</li>
<li><a href = "chapter_004.html#link-91">5.2. Repetition detection</a>
</li>
<li><a href = "chapter_004.html#link-92">5.3. Grammar checking</a>
</li>
<li><a href = "chapter_004.html#link-93">5.4. Highlighting non-breaking spaces</a>
</li>
</ul>
</li>
<li><a href = "chapter_005.html#link-94"><b>6.</b> Tips and tricks</a>
<ul>
<li><a href = "chapter_005.html#link-95">6.1. Using Crowbook with Emacs' markdown mode</a>
</li>
<li><a href = "chapter_005.html#link-98">6.2. Embedding fonts in an EPUB file</a>
</li>
</ul>
</li>
<li><a href = "chapter_006.html#link-99">ChangeLog</a>
<ul>
<li><a href = "chapter_006.html#link-100">unreleased</a>
</li>
<li><a href = "chapter_006.html#link-101">0.9.1 (2016-09-29)</a>
</li>
<li><a href = "chapter_006.html#link-102">0.9.0 (2016-09-23)</a>
</li>
<li><a href = "chapter_006.html#link-103">0.8.0 (2016-09-19)</a>
</li>
<li><a href = "chapter_006.html#link-104">0.7.0 (2016-09-11)</a>
</li>
<li><a href = "chapter_006.html#link-105">0.6.0 (2016-09-09)</a>
</li>
<li><a href = "chapter_006.html#link-106">0.5.1 (2016-04-14)</a>
</li>
<li><a href = "chapter_006.html#link-107">0.5.0 (2016-04-02)</a>
</li>
<li><a href = "chapter_006.html#link-108">0.4.0 (2016-03-01)</a>
</li>
<li><a href = "chapter_006.html#link-109">0.3.0 (2016-02-27)</a>
</li>
<li><a href = "chapter_006.html#link-110">0.2.2 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-111">0.2.1 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-112">0.2.0 (2016-02-25)</a>
</li>
<li><a href = "chapter_006.html#link-113">0.1.0 (2016-02-21)</a>
</li>
</ul>
</li>
<li><a href = "chapter_007.html#link-114">GNU LESSER GENERAL PUBLIC LICENSE</a>
</li>
</ul>
</nav>
<div id = "content">
<div id = "page">
<header>
<div id = "top"><p id = "para-301">Crowbook User Guide 0.10.0</p>
</div>
<div id = "menu">
<img id = "menu-button" onclick="toggle();"
src="menu.svg" alt = "Table of contents" title = "Table of contents" />
</div>
<h1 class = "title">Crowbook User Guide</h1>
<h2 class = "author">Élisabeth Henry</h2>
</header>
<div id = "cover">
<img class = "cover" alt = "Crowbook User Guide" src = "images/image_0.png" />
</div><p class = "next_chapter">
<a href = "chapter_000.html">
<b>1.</b> Crowbook »
</a>
</p>
</div>
</div>
<footer id = "footer"><p id = "para-302">Generated by <a href = "https://github.com/lise-henry/crowbook">Crowbook</a> 0.10.0-unreleased</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="200mm"
height="200mm"
viewBox="0 0 708.66142 708.66141"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="menu.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="105.61275"
inkscape:cy="407.06391"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1366"
inkscape:window-height="704"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-343.70079)">
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 104.33071,469.5051 500,0"
id="path4136"
inkscape:connector-curvature="0" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 104.33071,704.5051 500,0"
id="path4136-5"
inkscape:connector-curvature="0"
inkscape:transform-center-x="71.428572"
inkscape:transform-center-y="-242.85716" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 104.33071,939.50506 500,0"
id="path4136-5-3"
inkscape:connector-curvature="0"
inkscape:transform-center-x="71.428572"
inkscape:transform-center-y="-242.85716" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -0,0 +1,15 @@
#page {
display: block;
}
.chapter {
page-break-before: always;
}
#menu {
display: none;
}
#nav {
display: none;
}

View File

@ -0,0 +1,454 @@
body {
font-family: "Linux Libertine", "Georgia", serif;
text-align: justify;
font-size: 100%;
}
p {
text-indent: 1.25em;
margin:0;
hyphens: auto;
}
blockquote {
margin: 1em;
font-style: italic;
}
code {
font-size: 80%;
font-family: "Linux Libertine Mono", monospace;
background-color: #F0F0F0;
}
pre {
font-family: "Linux Libertine Mono", monospace;
margin: 1em;
padding-top: 0;
background-color: #F0F0F0;
white-space: pre-wrap;
word-wrap: break-word;
}
/* Try to disable hyphenation in titles */
h1, h2, h3, h4, h5, h5 {
adobe-hyphenate: none;
-ms-hyphens: none; /* Trident (Windows) */
-moz-hyphens: none; /* Gecko (Firefox) */
-webkit-hyphens: none; /* Webkit */
-epub-hyphens: none; /* EPUB 3 */
hyphens: none; /* Futur standard */
}
h1, h2, h3, h4, h5, h6 {
text-align: left;
font-family: Linux Biolinum, sans-serif;
font-variant: small-caps;
}
/* Title of the book */
h1.title {
text-align: center;
font-size: 300%;
}
/* Author */
h2.author {
text-align: right;
font-size: 200%;
}
/* When toc is displayed inlined */
#toc ol, #toc ul {
padding: 0;
margin-left: 1em;
}
#toc li {
list-style-type: none;
margin: 0; padding: 0;
}
#toc li:before {
content: none;
}
#cover img {
width: 100%;
}
.image img {
width: 80%;
}
.rule {
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
font-weight: bold;
}
/* The number of the note in an expanded footnote (e.g. [3]) */
.note-number {
font-weight: bold;
margin-right: 1em;
}
td.note-number {
vertical-align: top;
}
/* When footnotes (try to) be diplayed as margin notes */
.sidenote {
display: block;
float: right;
width: 30%;
border: 1px solid black;
margin: 1em;
padding: .5em;
margin-right: -1.5em;
}
.sidenote .note-number {
float: left;
}
/* The div class displaying notes at the end of a chapter */
div.notes {
text-align: justify;
border-top: thin dashed black;
margin-top: 1em;
}
table.notes {
bordel-collapse: collapse;
border-style: hidden;
}
table.notes tr td {
margin-left: 1em;
margin-right: 1em;
}
table.notes tr td p {
text-indent: 0;
}
/* Every markdown table is included in a <div class = "table"> */
.table {
margin: 1em;
}
.table table {
width: 80%;
margin: 0 auto;
border-style: solid;
border-width: thin;
border-color: black;
border-collapse: collapse;
}
.table table th, .table table td {
border-style: solid;
border-width: 1px;
text-align: center;
}
.table table th {
font-weight: bold;
font-variant: small-caps;
}
span.initial {
float: left;
font-size: 2em;
font-weight: bold;
margin-right: 0.05em;
line-height: 1em;
}
p.first-para {
text-indent: 0;
}
/* Use this for escape narrow space so it is non-breaking */
.nnbsp {
white-space: nowrap;
}
.nnbsp {
background-color: #9999ff;
}
.ensp {
background-color: #ff9999;
}
.nbsp {
background-color: #ffff66;
}
/* Default HTML CSS file includes default EPUB CSS file */
/* Colours for the navigation menu (toc) */
nav {
background: #181818;
color: #cdd4da;
}
nav {
border-right: solid thin #cdd4da;
}
#nav a:link {
color: #cdd4da;
}
#nav a:visited {
color: #cdd4da;
}
a:link {
color: #3399ff;
}
a:visited {
color: #0066cc;
}
a:hover {
color: #66b3ff;
}
body {
background-color: #181818;
color: #cdd4da;
}
pre, code {
background-color: #1d1f21;
}
/* Colours for top and footer */
#top {
background-color: #cdd4da;
color: #181818;
}
footer {
background-color: #cdd4da;
color: #181818;
}
footer a, #top a {
color: #040C62;
}
footer a:hover, #top a:hover {
color: #00A8F6;
}
/* Additional elements */
/* Grammar error */
.grammar-error {
background: #d966ff;
}
span.initial {
all: initial;
}
p.first-para:first-letter {
font-size: 300%;
float: left;
font-weight: bold;
margin-right: 0.05em;
line-height: 1em;
}
/* The nav element corresponding to the navigation menu */
nav {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 20%;
overflow-y: auto;
font-size: 80%;
margin-left: 0;
}
#nav code {
background-color: transparent;
}
#nav a:link {
text-decoration: none;
}
#nav a:visited {
text-decoration: none;
}
#nav {
text-align: left;
}
#nav h2 {
text-align: center;
}
#nav li {
list-style-type: none;
text-indent: -1em;
}
#nav li:before {
content: none;
}
#nav ul {
padding-right: 1em;
padding-left: 1.5em;
}
/* The menu containing the button to display the navigation bar */
#menu {
position: fixed;
z-index: 2;
top: 0em;
left: 1em;
transition: left 1s;
}
#menu img {
opacity: 0.5;
}
#menu img:hover {
opacity: 1.0;
cursor: pointer;
}
#menu-button {
height: 1.5em;
padding: 0.5em;
}
#book-button {
height: 1.5em;
padding: 0.5em;
float: left;
}
/* Hide navigation bar */
#nav {
left: -20%;
transition: left 1s;
}
/* The main content of the book */
#content {
/* position: absolute;*/
overflow-y: auto;
margin-left: 10%;
margin-right: 10%;
transition: margin-left 1s;
}
/* Used for multifiles HTML */
.prev_chapter {
text-align: left;
text-indent: 0;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
.next_chapter {
text-align: right;
margin-top: 1em;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
/* Improving readability for the HTML format only */
p, blockquote, li, .image {
margin-right: auto;
max-width: 33em;
}
blockquote {
padding: 1em;
}
#content {
text-align: center;
}
#page {
display: inline-block;
text-align: justify;
max-width: 33em;
}
#nav-container {
top: 0;
width: 100%;
}
#nav-title {
top: 0;
}
#toolbar {
top: 0;
float: left;
}
#toolbar img {
cursor: pointer;
}
#top {
position: absolute;
z-index: 1;
top: 0;
left: 0;
right: 0;
height: 2em;
width: auto;
text-align: center;
transition: left 1s;
}
#top p {
margin-top: 0.5em;
margin-left: auto;
margin-right: auto;
width: 70%;
text-align: center;
font-family: "Linux Biolinum";
font-weight: bold;
font-variant: small-caps;
}
footer {
margin-top: 2em;
margin-left: 0;
text-align: center;
transition: margin-left 1s;
}
footer a, #top a {
text-decoration: none;
}
footer p {
text-indent: 0;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.5em;
margin-top: 0.5em;
width: 70%;
}