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-28-2009, 05:53 PM   #1
alecE
Addict
alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.
 
alecE's Avatar
 
Posts: 399
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650 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>&nbsp;</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>&nbsp;</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.
alecE is offline   Reply With Quote
Old 10-28-2009, 06:16 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
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.

Last edited by Valloric; 10-28-2009 at 06:24 PM.
Valloric is offline   Reply With Quote
Old 10-29-2009, 01:30 AM   #3
alecE
Addict
alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.
 
alecE's Avatar
 
Posts: 399
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.
alecE 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
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


All times are GMT -4. The time now is 10:14 PM.


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