MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Conversion (https://www.mobileread.com/forums/forumdisplay.php?f=235)
-   -   In epub converting calibre auto split file in header. Why not create toc from header. (https://www.mobileread.com/forums/showthread.php?t=333895)

The_book 10-10-2020 10:52 AM

In epub converting calibre auto split file in header. Why not create toc from header.
 
I am converting .md file to epub. Then I have some advice.

1. can convertion use filename as title in default if there is no title found in md meta?

2. calibre split file in header h*, so why not create e-book toc from headers in default?

theducks 10-10-2020 12:06 PM

Auto generate might have unwanted effects. :angry: :eek:
(I find it amazing how many self Pub's still use H tags for big and bolder. Chap #, Chap Title, Time-Place. That can make for a pretty busy TOC just for the Start of a chapter :rolleyes:)

Calibre already has a stand alone TOC tool (you can add it to your Toolbar) that allow a choice. (I think this is the exact same one as built into the book editor)

The_book 11-06-2020 02:38 AM

Quote:

Originally Posted by theducks (Post 4045470)
Auto generate might have unwanted effects. :angry: :eek:
(I find it amazing how many self Pub's still use H tags for big and bolder. Chap #, Chap Title, Time-Place. That can make for a pretty busy TOC just for the Start of a chapter :rolleyes:)

Calibre already has a stand alone TOC tool (you can add it to your Toolbar) that allow a choice. (I think this is the exact same one as built into the book editor)

So how to use this TOC tool in ebook-convert.exe cli? Is the --toc-title opinion? I mean to form a toc with h1-h6 in epub

theducks 11-06-2020 02:55 AM

By Standalone, I meant part of the main Calibre GUI as opposed to the e-book editor.

I don't use the CLI convert option. The main GUI has
Preferences:Common options: Structure Detections
where you set an xpath template

The_book 11-06-2020 02:59 AM

Quote:

Originally Posted by theducks (Post 4055187)
By Standalone, I meant part of the main Calibre GUI as opposed to the e-book editor.

I don't use the CLI convert option. The main GUI has
Preferences:Common options: Structure Detections
where you set an xpath template

And I hardly use calibre gui. I use calibre as ebook-viewer (gui) and ebook-converter (cli).

It's because if I do not use converter in cli, I need to open gui, add book, convert, copy/export converted file, remove file from calibre.

theducks 11-06-2020 03:11 AM

You can call the Editor from the CLI, and use the tools there without adding to calibre.

Convert is separate. But my original suggestion was more of a 'look for similar' in the CLI documentation

kovidgoyal 11-06-2020 08:52 AM

--level1-toc --level2-toc and --level3-toc

https://manual.calibre-ebook.com/gen...k-convert.html

The_book 11-06-2020 10:09 AM

Quote:

Originally Posted by kovidgoyal (Post 4055282)
--level1-toc --level2-toc and --level3-toc

https://manual.calibre-ebook.com/gen...k-convert.html

Thanks. By the way, what is the difference between //h:h1 and //h1 in xpath?


All times are GMT -4. The time now is 05:50 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.