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 10-12-2012, 08:15 AM   #1
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Editing toc

I've used h1 for chapter titles, h2 for sections within a chapter. The page appearance is good. But the customer has sent it back - she's looking at the Contents panel in ADE and wants everything top-level. (I've given her a functional inline Contents page, but there's no point in arguing. Enough trouble explaining how she can't have it looking EXACTLY like the printed page in other ways :-)

I changed all the h2 tags to h1, recreated the toc, edited the book to back how it started. Could I have done this more easily by direct editing toc.ncx? I can't see from examining it how the hirearchy is set.
exaltedwombat is offline   Reply With Quote
Old 10-12-2012, 08:22 AM   #2
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,600
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Yes you could have just edited the toc.ncx file. If you look closely (try it with a new "test" page book, containing only an h1 and an h2) you will see there is some fairly simple nesting of the <navpoint> elements. Just a case of "cutting" those nested <navpoint>...</navpoint> elements out to paste them after the parent's closing </navpoint> so that they are all at the same top level.

We hope to have a GUI for doing this in a future release.
kiwidude is offline   Reply With Quote
Advert
Old 10-12-2012, 08:34 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by exaltedwombat View Post
I changed all the h2 tags to h1, recreated the toc, edited the book to back how it started. Could I have done this more easily by direct editing toc.ncx?
You also could've used kiwidudes Modyfy ePub Calibre plugin for this. It has a Flatten TOC hierarchy in NCX file option.
Doitsu is offline   Reply With Quote
Old 10-12-2012, 08:40 AM   #4
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: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by exaltedwombat View Post
Could I have done this more easily by direct editing toc.ncx? I can't see from examining it how the hirearchy is set.
You could have done it by directly editing the toc.ncx. "More easily" is extremely relative.

navPoints are nestable ... as per this example:
Code:
<navMap>
  <navPoint id="np_1" playOrder="1">
    <navLabel>
      <text>Blah</text>
    </navLabel>
    <content src="Text/part0001.xhtml"/>
    <navPoint id="np_2" playOrder="2">
      <navLabel>
        <text>1</text>
      </navLabel>
      <content src="Text/part0002.xhtml"/>
    </navPoint>
  </navPoint>
<navMap>
"Flattening" that same toc.ncx would necessitate un-nesting the navPoints (putting them on the same level):
Code:
<navMap>
  <navPoint id="np_1" playOrder="1">
    <navLabel>
       <text>Blah</text>
    </navLabel>
    <content src="Text/part0001.xhtml"/>
  </navPoint>
  <navPoint id="np_2" playOrder="2">
    <navLabel>
      <text>1</text>
    </navLabel>
    <content src="Text/part0002.xhtml"/>
  </navPoint>
<navMap>
Hope that helps!

Last edited by DiapDealer; 10-12-2012 at 08:50 AM.
DiapDealer is offline   Reply With Quote
Old 10-14-2012, 01:57 PM   #5
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Yes, that helps a lot! I'm ashamed for not seeing that nesting myself.
exaltedwombat is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing mobi file for toc mharring Kindle Formats 9 09-16-2012 10:21 AM
editing toc of a mobi thomass Kindle Formats 1 04-20-2011 08:44 AM
Use Regex to Code an Inline TOC, from an External TOC's .ncx File mostlynovels ePub 2 03-16-2011 12:15 PM
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working Magitek LRF 0 05-06-2009 01:25 PM
Bood Designer - horizontal bars & TOC editing DoctorBri Sony Reader 5 09-17-2007 10:33 AM


All times are GMT -4. The time now is 06:29 AM.


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