Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2013, 05:19 AM   #1
LarsEighner
Junior Member
LarsEighner began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2013
Location: Austin TX
Device: none
Sigil TOC breaks internal links

I could be wrong, but appears to me that when Sigil generates a TOC it 1) changes all existing ids to classes and 2) substitutes its own id, without adjusting existing internal links.

This breaks all internal links. I find it hard to call this anything other than a bug.


In addition there is a remote the risk that the class will coincide with a class that is already being used for something else in the stylesheet, so the element will appear with a style that is not intended.
LarsEighner is offline   Reply With Quote
Old 09-03-2013, 10:23 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by LarsEighner View Post
I could be wrong, but appears to me that when Sigil generates a TOC it 1) changes all existing ids to classes and 2) substitutes its own id, without adjusting existing internal links.

This breaks all internal links. I find it hard to call this anything other than a bug.


In addition there is a remote the risk that the class will coincide with a class that is already being used for something else in the stylesheet, so the element will appear with a style that is not intended.
Not true on many levels unless you go out of your way to cause the clash in selectors.


Sigil selectors have:
1) SGC in their name
2) Toc Selectors (sigil 6+) have a separate SGC_TOC stylesheet that only links to the HTML TOC. The selectors are sigil_toc_id_N


Generating a TOC (NCX) leaves id='s as they were and only assigns new (Sigil) ones if they were missing. The before and after of generating both TOC

Code:
 <h2 class="calibre5"><span class="ts"><a href="../Text/inline_toc40.xhtml#13">Chapter 3</a></span></h2>

There is 1 case I have found that does cause (always has) if you split off a file with one:
<h2 class="calibre5"><span class="ts"><a href="../Text/#13">Chapter 3</a></span></h2>

Relative references after a split will leave orphans in all other locations.

This could be avoided by 'precleaning' the files to change all relative references to absolute references (insert the full file name)

This is not an issue if that form is not ever used
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil Adding Page Breaks in TOC! jackibar Sigil 16 10-24-2012 01:20 PM
TOC and Index links in Sigil Bamber ePub 10 11-11-2010 02:12 PM
PRS-650 Internal TOC Links in Sony readers AlexBell Sony Reader 3 09-24-2010 06:03 AM
Opening ePub in Sigil breaks TOC and loses italics PatNY Sigil 15 08-25-2010 07:05 PM
PDF conversion breaks links, TOC ToddA Calibre 3 02-06-2010 04:43 AM


All times are GMT -4. The time now is 12:45 PM.


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