Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2020, 12:04 AM   #1
njpig
Zealot
njpig began at the beginning.
 
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.
njpig is offline   Reply With Quote
Old 09-30-2020, 04:40 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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}
As for temporary files, use --debug-pipeline when calling ebook-convert with your recipe.
kovidgoyal is online now   Reply With Quote
Advert
Old 09-30-2020, 09:54 PM   #3
njpig
Zealot
njpig began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Quote:
Originally Posted by kovidgoyal View Post
Set conversion_options in the recipe.

Code:
conversion_options = {'minimum_line_height': whatver}
As for temporary files, use --debug-pipeline when calling ebook-convert with your recipe.
Hi Kovidgoyal,

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.
njpig is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:58 PM.


MobileRead.com is a privately owned, operated and funded community.