02-05-2009, 06:21 PM | #331 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not yet supported for EPUB
|
02-10-2009, 08:43 PM | #332 |
Enthusiast
Posts: 47
Karma: 90
Join Date: Nov 2008
Device: Sony PRS-700
|
--levelN-toc doesn't work?
Hi,
I've been trying to use --level1-toc and friends to no avail. I've tried all kinds of different things but in the end, the only thing that lets me get everything into the TOC is to use the --chapter flag: Code:
--chapter='//*[@class="docPartTitle" or @class="docChapterTitle" or @class="docAppendixTitle" or @class="docPrefaceTitle" or @class="docSection1Title"]' Code:
--leve1-toc='//*[@class="docPartTitle" or @class="docAppendixTitle" or @class="docPrefaceTitle"]' --level2-toc='//*[@class="docChapterTitle" or @class="docSection1Title"]' Is this feature not working or am I doing something stupid? Thanks, EP |
Advert | |
|
02-10-2009, 09:22 PM | #333 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As far as I know, they are working. Open a bug report and attach your file alogwith the command line you used.
|
02-11-2009, 06:21 AM | #334 | |
Enthusiast
Posts: 47
Karma: 90
Join Date: Nov 2008
Device: Sony PRS-700
|
Quote:
So, I'm just posting it here. I think the tar file should be adequate to reproduce the problem. Just extract and run the create.sh. When I do it, there are no level2 items. |
|
02-11-2009, 08:10 AM | #335 | |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
We'll see what Kovid says, but I don't see an obvious way to fix this in the current release series. Fortunately work on the next release series is in progress , although I can't begin to guess on a release date. |
|
Advert | |
|
02-11-2009, 10:32 AM | #336 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
To elaborate a bit, you don't actually need a single file, just one file per level1 part. So part01.html needs to contain the part01 title as well as the markup for all the chapters in Part1 and so on...
|
02-11-2009, 11:23 AM | #337 | |
Enthusiast
Posts: 47
Karma: 90
Join Date: Nov 2008
Device: Sony PRS-700
|
Quote:
As it stands now, I did try to put everything in one file with the "real" document I'm working on and it failed in a different way. Normally to build the epub with the individual 294 files, it takes about 2 mins. With all 294 concatenated into 1 file, after 105 minutes it was still "Rationalizing fonts..." and sucking up 100% cpu. I wasn't willing to wait anymore and just killed it off. When I get a chance later, I'll try breaking things up a bit more to see if that gets around this problem. Cheers |
|
02-11-2009, 11:25 AM | #338 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Font rationalization happens for each file, the larger the file, the longer it takes.
|
02-14-2009, 05:16 PM | #339 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
02-14-2009, 06:34 PM | #340 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Yes but I want to avoid all that hassle and since reader already has suitable font why not just use it? And I can tell you it works great.
|
02-14-2009, 08:05 PM | #341 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
But doesn't your workaround make the epub file Reader specific? How would it display on something like the desktop version of Digital Editions? Or some future device?
|
02-14-2009, 11:46 PM | #342 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Yes it does make it reader specific but since calibre does not support font embedding from the recipe - embedding them manually is something that does not make much sense to me.
The point of the recipe IS to automate complete process not make it into something you manually need to do every day. Imagine downloading 5 or more newspapers every day and every day having to embed same font 5 times. That is something I just do not want to do, and I do not care that it would not work on some other device since I do not distribute epub files I generate nor do I have any other device. If somebody else want to do some change into recipe - be my guest. After all this is open-source and anybody can adapt code to their specific needs. Last edited by kiklop74; 02-14-2009 at 11:54 PM. |
02-15-2009, 12:14 AM | #343 |
creator of calibre
Posts: 44,323
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those EPUB files will display fine on other devices/software provided that the device has as default font capable of displaying the needed character set. In any case calibre will soon get suport for embedding fonts in EPUB files.
|
02-15-2009, 06:42 AM | #344 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
That is really great news Kovid!
|
02-15-2009, 07:55 PM | #345 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Epub Output: Line Height | greenapple | Conversion | 20 | 01-27-2013 09:27 AM |
EPUB output justification | toki08 | Calibre | 10 | 01-08-2011 04:14 PM |
Calibre epub output details and Nook | squidward | Calibre | 6 | 11-24-2010 03:21 PM |
epub output metadata | troymc | Calibre | 5 | 05-22-2010 12:23 AM |
Problem with epub output in Cybook Gen3 | fjf | Calibre | 3 | 02-03-2010 02:23 AM |