10-28-2009, 06:53 PM | #1 |
Evangelist
Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
|
Problem with TOC editor
I've converted a pdf to a fairly good epub using Sigil. I stole the chapter heading format from Feedbooks.
Initially I have: <div class="bodychapter"> <h2><span class="chapterHeader"><span class="translation">Chapter</span><span class="count">1</span></span></h2> <p> </p> If the file is saved and an epub created the formatting works OK. However, if I use the TOC editor to make the entries of the form "Chapter 1" (instead of the default "Chapter1" without spaces) then the chapter formatting is changed to: <div class="bodychapter"> <h2>Chapter 1</h2> <p> </p> Thereby losing the formatting. Am not sure if the problem resides with the TOC editor or (more probably) with my limited knowledge/understanding of html & css. Any help much appreciated. |
10-28-2009, 07:16 PM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Sounds like a bug. Please create an issue on the tracker with this information.
Whoa there for a minute. I just read your report more carefully. So you are trying to change the text in the heading, but also trying to keep the existing HTML inside the heading tag? I'm sorry, that's just not possible. How would an algorithm know which parts of the new text should go into which of the old <span> tags? Can't be done, I'm sorry. Changing the heading text in the TOC editor will rewrite the contents of that heading tag. You should just add a space in the Code View if you want to preserve the child elements. Last edited by Valloric; 10-28-2009 at 07:24 PM. |
Advert | |
|
10-29-2009, 02:30 AM | #3 |
Evangelist
Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
|
Thanks Valloric, I understand;
As always, the solution was head-smackingly obvious - use the title="desired text" in the <hx> tag (or of course stop fiddling with fancy formatting in headings). Thank you again for Sigil, it's superb. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Toc editor | Enesco | Sigil | 16 | 09-23-2010 07:41 AM |
PRS-500 Software: LRF TOC Editor v1.02 | hal9000 | Sony Reader Dev Corner | 29 | 07-04-2010 08:17 PM |
How does the TOC editor work? | Kivgaen | Sigil | 31 | 06-25-2010 11:28 AM |
TOC Problem | Zipr | Calibre | 0 | 03-19-2010 06:01 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 02:25 PM |