![]() |
#1 |
Zealot
![]() Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Create recipe: override min line-height and keep TMP files
Hello,
I have set up development environment on win10 by following https://manual.calibre-ebook.com/news_recipe.html. Now, I'm writing a recipe, but have no idea how to handle this: 1. how to override minimum line height. I tried to change it via Preferences -> Common options -> Look & feel -> Minimum line height. But did not work. 2. How to keep TMP files even after ebook has been created? e.g. C:\Users\Fei\AppData\Local\Temp\calibre_mdfsnm\z2r dou_plumber Could anyone help on this? Thanks, Fei. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Set conversion_options in the recipe.
Code:
conversion_options = {'minimum_line_height': whatver} |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Quote:
It works. Thanks a lot. In addition, I know how to run my recipe via command ebook-convert. I run my recipe via GUI of Calibre before. ![]() BTW, what is your favorite Python IDE? I use Pycharm. However, it consumes too much memory(more than 600M) with Win10. Thanks, Fei. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use another directory than /tmp for temporary files ? | rolgiati | Calibre | 7 | 01-15-2022 10:36 AM |
CSS line height vs Kobo line spacing slider? | bongoman | Kobo Reader | 2 | 07-12-2020 01:25 PM |
Files in /tmp/calibre_2.79.0_tmp_uvwxyz | rolgiati | Calibre | 2 | 02-14-2017 09:21 PM |
Multiple files, *-tmp.epub, are left in /tmp/Sigil/scratchpad after closing Sigil | Ahmad Samir | Sigil | 8 | 11-28-2012 04:27 AM |
does kindle 3 delete tmp-files after crash? | comet | Amazon Kindle | 0 | 03-25-2012 02:59 PM |