|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 393
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650 liseuses
|
Problem with TOC editor
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. |
|
|
|
|
|
#2 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
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.
__________________
Try Sigil, the free and open source ebook editor Try FlightCrew, the superior open source epub validator Last edited by Valloric; 10-28-2009 at 06:24 PM. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 393
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650 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. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sigil Toc editor | Enesco | Sigil | 16 | 09-23-2010 06:41 AM |
| PRS-500 Software: LRF TOC Editor v1.02 | hal9000 | Sony Reader Dev Corner | 29 | 07-04-2010 07:17 PM |
| How does the TOC editor work? | Kivgaen | Sigil | 31 | 06-25-2010 10:28 AM |
| TOC Problem | Zipr | Calibre | 0 | 03-19-2010 05:01 PM |
| Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |