Calibre
Apparence
Utiliser le thème système
export CALIBRE_USE_SYSTEM_THEME=1 calibre |
Déplacer une bibliothèque dans un autre dossier
- Ouvrir la bibliothèque
- Icone Library → Switch/create library → Move current library to new location
html to epub
| index.html |
<html>
<body>
<h1>Table of Contents</h1>
<p style="text-indent:0pt">
<a href="file1.html">First File</a><br/>
<a href="file2.html">Second File</a><br/>
</p>
</body>
</html>
|
ebook-convert index.html eBook.epub |
| Les noms de fichiers html contenant un # posent probléme. |
| build-index.sh |
#!/usr/bin/bash
set -e
set -o pipefail
set -u
index='index.html'
echo '<html>
<body>
<h1>Table of Contents</h1>
<p style="text-indent:0pt">' > "${index}"
ls *.html | while read htmlFileName
do
echo " <a href=\"${htmlFileName}\">"$(expr match "${htmlFileName}" '[0-9]\+-\(.\+\)\.html')"</a><br/>" >> "${index}"
done
echo ' </p>
</body>
</html>' >> "${index}"
|
Fichiers à modifier
Cover
Remplacer le fichier cover_image.jpg
| titlepage.xhtml |
<!-- preserveAspectRatio: none → xMidYMax --> <svg ... preserveAspectRatio="xMidYMax"> |
Images
Ajouter le dossier images
width: 95%; max-width: 1000px; |
index.html
Supprimer le fichier index.html
| content.opf |
<!-- supprimer la ligne --> <item href="index.html" id="html" media-type="application/xhtml+xml"/> |
Kindle Paperwhite
# pour que le kindle soit reconnu installer mtpfs pacman -S mtpfs |