|
|
#1 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 508
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
Opening ePub in Sigil breaks TOC and loses italics
The epub file is one converted by Calibre from an original epub. Does anyone have any idea what can be going on? |
|
|
|
|
|
#2 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 73978
Join Date: Jun 2010
Device: Kobo
|
Two (X)HTML excerpts from the original epub file (not imported into Sigil) would be useful.
1) two heading lines that should be nested in the TOC e.g. <some-tag>This heading should be the parent</some-tag> <some-other-tag>This one should be the child</some-other-tag> 2) an excerpt of some words that should be italicized with some unitalicized ones each side. e.g. this is in Roman and <some-font-changing>this is Italics</some-font-changing>; of course we're back to Roman. |
|
|
|
|
Enthusiast
|
|
|
|
#3 | ||
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 508
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
Quote:
Quote:
Code:
Don’t tell me it’s<span class="italic">my</span>fault. |
||
|
|
|
|
|
#4 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,737
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Italics is not a "pre-defined" Style" Code:
.italics{
font-style: italic
}
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#5 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 73978
Join Date: Jun 2010
Device: Kobo
|
Me like specifying italics with the italics tag <i> (who'd a thunk it?) or at the very least the emphasis <em> tag.
Don’t tell me it’s <i>my</i> fault. Phooey on SPAN! Double PHOOEY on SPAN plus a class! |
|
|
|
|
|
#6 | ||
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 144
Karma: 73978
Join Date: Jun 2010
Device: Kobo
|
epub TOC concern
Quote:
Quote:
|
||
|
|
|
|
|
#7 | |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 508
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
theducks, I looked at the css and there is no class ".italics" defined there. But Calibre has no problems reading or converting the epub while maintaining italics so why should Sigil?
I also need to correct something I said earlier. The italics are still there when I open the epub in Sigil. It's when saving an epub in Sigil that they are lost. The metadata TOC, however, is changed immediately upon opening in Sigil. Quote:
heading top level: Code:
<div class="partHead" id="ph01"> <h2 class="partNumber" style="text-indent: 0%;"> <span class="bold"> Part 1 </span> </h2> <h2 class="partTitle" style="text-indent: 0%;"> <span class="bold"> Memories Are Like Raindrops </span> </h2> </div> heading next level: Code:
<div class="chapterHead"> <h2 class="chapterNumber" style="text-indent: 0%;"> <span class="bold"> 1 </span> </h2> <h2 class="chapterTitle" style="text-indent: 0%;"> <span class="bold"> Ebb & Flow </span> </h2> </div> Part 1: Memories Are Like Raindrops 1. Ebb & Flow But in Sigil, immediately upon opening up the file, it looks like: Part 1 Memories Are Like Raindrops 1 Ebb & Flow All I wanted to do was to put some extra space between the chapter headings and the body text in this epub file. I discovered pdfhtml inspector last night and it will let me do it without messing up the TOC and italics, but it's not as user-friendly as Sigil. I much prefer Sigil for its wysiwyg interface. So is there an easy fix that will let me use Sigil? |
|
|
|
|
|
|
#8 | ||
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Quote:
Quote:
To get this in Sigil: Part 1: Memories Are Like Raindrops 1. Ebb & Flow you would use something like this: Code:
<h2>Part 1: Memories Are Like Raindrops</h2> <h3>1. Ebb & Flow</h3> |
||
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
|
Sigil refactors the ToC based on the semantics of the html.
This means that your heading elements must use h tags to indicate the level. Since all the headings in your example are h2 tags, they will all end up on the same ToC level as you found. Furthermore, each individual h tag will generate a new ToC entry. Your code needs to look like this: Code:
<div class="partHead" id="ph01"> <h1 class="partNumber" style="text-indent: 0%;"> <span class="bold"> Part 1<br /> Memories Are Like Raindrops </span> </h1> </div> <div class="chapterHead"> <h2 class="chapterNumber" style="text-indent: 0%;"> <span class="bold"> 1<br /> Ebb & Flow </span> </h2> </div> If you're using span class="italic" in the code then you definitely need a corresponding selector in your css. |
|
|
|
|
|
#10 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 508
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
The epub is under copyright. Do I need to add a "private" label as mentioned in the wiki? If so, where? I don't see a "label box" on the issue form that was mentioned in the wiki.
|
|
|
|
|
|
#11 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
At the bottom of the form where it says "Labels:".
|
|
|
|
|
|
#12 |
|
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 508
Karma: 44758120
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350
|
At the bottom of the form window it just says:
Please provide any additional information below. If your source file (SGF/EPUB/HTML/etc) is required to fully understand the problem, please attach it to this issue. Read the ReportingIssues wiki page before submitting! Am I at the wrong place? This is where I am trying to submit the report: http://code.google.com/p/sigil/issues/entry Or is it a Firefox issue? I see no label box. |
|
|
|
|
|
#13 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Me being the project owner, this screenshot probably has several fields you don't have when you open the form, but you should certainly be able to see the label boxes (in red). Other users have used them successfully.
|
|
|
|
|
|
#14 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
Actually Valoric for us it appears at the top (see attached image). Click on the highlighted drop-down and you will find the privacy option.
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections |
|
|
|
|
|
#15 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,975
Karma: 348069
Join Date: Feb 2008
Device: Sony Reader PRS 505
|
Oh frigging hell, now I remember I changed things a couple of months ago. Thanks for the heads up, and apologies to PatNY. The wiki needs updating.
__________________
Try Sigil, the free and open source ebook editor Try FlightCrew, the superior open source epub validator Last edited by Valloric; 08-25-2010 at 03:57 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Epub to Epub loses TOC | edbro | Calibre | 6 | 10-12-2010 04:24 PM |
| Calibre ePub TOC and Sigil | salasnet | Calibre | 3 | 09-26-2010 05:34 PM |
| Sigil loses all text after an html error | grumbles | Sigil | 3 | 05-13-2010 10:28 AM |
| PDF conversion breaks links, TOC | ToddA | Calibre | 3 | 02-06-2010 04:43 AM |
| sigil and toc | bobcdy | Sigil | 5 | 10-17-2009 04:29 PM |