Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2017, 03:07 AM   #16
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,171
Karma: 12609652
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Hi all. I didn't mean to raise SUCH a kerfuffle!

—Kevin, DiapDealer -- I am not/was not asking for Sigil to change its default behavior. (Who got the impression that I would even think such a thing???) I was only looking for a workaround to use sometimes, to force it to use the IDs that occur at the top of the files. I think Doitsu's suggestion, combined with TheDucks tip, will work well for what I need.

Just to clarify what I am doing here ---
I have an omnibus collection of 25 books, with almost 600 short stories. These are located in about 45 to 50 xhtml files (using "page-break-after: always" to force page-breaks inside those files).

I am making an alphabetical Index of Titles, with each index entry linking to its story.
I used the automatic TOC generation & Create Html ToC to create a complete list of links to all 600 stories. (This huge ToC will not be used for the final product, but instead a ToC that lists only the 25 Book Titles that comprise the collection.)

But the auto-ToC does not include the ID from the first title on each of the 50 individual files. If I were to use these particular links as they stand, they would fail if the stories are re-arranged -- I would need to manually edit to add the ID. (Not only talking about split & merge here, but re-arranging the sequence.) Granted, it is only 50 entries, but if avoidable, so much the better. Besides, this situation will be happening again, I am sure.

So I use Doitsu's suggestion to add a dummy heading at the top of each file, using S&R, then generate the huge Toc, and "create html Toc" from that. Use the html ToC data to create my Index. Then delete the dummy headings. Then generate my "Real ToC.ncx" using only the 25 book titles from the higher-level headings. Delete the html ToC with the 600 entries, and All Is Good.

[@DiapDealer ---I think I may have been the one that yipped about the broken links upon merge / split --- I still thank you for the fix, and the saving of my sanity!]

JSWolf said:
Quote:
So why not have links that go to the top of the flow not use an ID and all the rest use an ID? Some Readers/apps do slow down when the ToC uses IDs. So the less IDs you can use, the better
As I said before, These IDs are NOT needed for the NCX. They are needed for an Index, a html file, a list of links, if you will.

=============
My workflow might be unusual, but it works.

Last edited by GrannyGrump; 04-03-2017 at 03:15 AM.
GrannyGrump is offline   Reply With Quote
Advert
Old 04-04-2017, 04:33 PM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 50,064
Karma: 43179559
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
It would be a lot easier (IMHO) to have each story on it's own. Then you won't need the IDs and this hassle won't be a hassle.
JSWolf is offline   Reply With Quote
Old 04-05-2017, 12:33 AM   #18
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 1,171
Karma: 12609652
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Jon, I am not going to build an epub with 600 separate files!
50 is bad enough.


PS== This isn't a hassle. Doitsu gave me the solution, TheDucks gave me a tweak, and ALL IS GOOD!
The links were NEVER needed for the toc.ncx. What hassle???

Last edited by GrannyGrump; 04-05-2017 at 02:57 AM.
GrannyGrump is offline   Reply With Quote
Old 04-05-2017, 05:54 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 50,064
Karma: 43179559
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
The problem with a page break instead of separate files is that you can have incorrect spacing following the page break.
JSWolf is offline   Reply With Quote
Old 04-05-2017, 07:56 AM   #20
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 17,285
Karma: 90379824
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Stop it, Jon. The OP's question has been asked and answered. You trying to push your personal epub construction preferences onto someone else is neither relevant nor helpful.
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic TOC generation Neurone Conversion 1 06-03-2015 07:36 AM
CSS visiblility setting throws off TOC generation in MOBI Guido Henkel Calibre 1 11-02-2010 06:16 AM
CSS visiblility setting throws of TOC generation in MOBI Guido Henkel Calibre 0 11-01-2010 07:13 PM
ToC generation issue tecgeo Calibre 6 09-21-2010 09:44 PM
How to force TOC generation out of scanned PDF magphil Calibre 5 10-01-2009 05:53 PM


All times are GMT -4. The time now is 03:54 AM.


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