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 05-23-2012, 04:09 PM   #1
tmyke70
Junior Member
tmyke70 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: iPad
Help with Semantics in Sigil

Hello,

I am having some issues with the semantics feature in Sigil version 0.2.0.

Sigil is automatically assigning the semantics of "Cover" to the first chapter of my ebook.

I uncheck it and then save it, and its reassigned again. This is an issue because those chapters aren't showing up in the Apple TOC in our iPads

Any help?

Thanks,
Myke
tmyke70 is offline   Reply With Quote
Old 05-23-2012, 04:22 PM   #2
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
0.2.0? Really? 0.5.3 is the current version and probably doesn't have this issue. I've never even seen 0.2.0

You could always add a cover.xhtml file as the first file and let it get marked as cover. It should actually contain an image of the cover, but iPads may not care about that.
meme is offline   Reply With Quote
Old 05-25-2012, 01:24 PM   #3
tmyke70
Junior Member
tmyke70 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: iPad
Well, its happening with my coworker who is running 0.5.3 and they only thing we've found fixes it is too, convert the .epub to a .zip and then open it and open the contents.opf file and deleting a specific line of code.

Then we have to zip it back up using an apple script. It works but we cant open the file and then save it. If we do, it adds the semantics again.
tmyke70 is offline   Reply With Quote
Old 05-25-2012, 01:33 PM   #4
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Ah, that's because if you don't have a Cover specified, then Sigil will mark the first file in your book as the Cover if it has 1 and only 1 image in it.

Does your first file have exactly 1 image in it? If so, you could remove the image, or add a second, or add a file with a cover and mark it as the cover, and it will stop marking the first file as a cover.

Is there any reason why the first file in your book is not the cover? Perhaps with Apple you don't need a cover file with an image and just need an image? If so, I don't think it causes any issue if you create a page for the cover and include the same image - but someone who uses the iPad would know.

Last edited by meme; 05-28-2012 at 02:59 AM.
meme is offline   Reply With Quote
Old 05-25-2012, 01:35 PM   #5
tmyke70
Junior Member
tmyke70 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: iPad
I meant also happening with my coworker. I can't run the newest version because I'm stuck on a Power PC and my company doesn't have the budget to upgrade me to an intel Mac.

Last edited by tmyke70; 05-25-2012 at 01:46 PM.
tmyke70 is offline   Reply With Quote
Old 05-25-2012, 01:49 PM   #6
tmyke70
Junior Member
tmyke70 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: iPad
The books we are converting are sheet music books so they are scans of books and each page is a 150 DPI PNG file. We have a separate cover image and the first thing I do is give the cover scan the semantics of "Cover Image." even after doing that, sigil is adding the semantics of "Cover" to my first chapter.

The frustrating this is that it doesn't happen all the time, some files are perfectly fine. Or I'll start with a file that doesn't have the semantics and then somewhere through the process of adding files, coding them into the book, editing the TOC and meta data and creating our own TOC it adds the semantics.

Also I submitted an issue on sigils "Issue" page and didn't get any help, but rather was snubbed by a rather rude gentleman.
tmyke70 is offline   Reply With Quote
Old 05-25-2012, 02:22 PM   #7
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
The issue log is for bugs in Sigil, not questions. Supporting or investigating issues on very old and even recently old versions of software just isn't possible.

But since your colleague has the same issue on 0.5.3 my reply should help resolve the problem.

Note that the Cover semantic can be applied to both Images and to HTML Files. You may have applied the Cover semantic to your image - but you must also create an HTML File and insert the image into that file and mark the HTML file (preferable making it the first file in the book) as a cover to stop other HTML files being marked as the Cover.
meme is offline   Reply With Quote
Old 05-25-2012, 08:49 PM   #8
tmyke70
Junior Member
tmyke70 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2012
Device: iPad
Well that would have been helpful to know. I thought it would have been considered an issue. My bad.

The only thing is that the cover would then show up inside the book. Which is what we don't want.
tmyke70 is offline   Reply With Quote
Old 05-25-2012, 09:35 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,563
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Just make the book how you want it. Then the very last thing to do before publication is to edit the OPF file outside of Sigil and remove the incorrect "cover" reference item from the guide section. 7-Zip will allow you to edit the file without even unzipping the archive. You just need to remember that if you ever open it with Sigil in the future, you'll have to edit the OPF file again. It's fairly painless to make it part of your workflow. I do it all the time (removing various guide items like "cover") when I'm preparing an epub for conversion to mobi with Kindlegen.

I do wish it (Sigil) wouldn't automatically tag that first xhtml file as the guide section cover reference (regardless of what it may contain). I'd much prefer that marking an image as "cover" would simply create the meta-tag entry and leave it completely up to the user to decide whether or not that first xhtml page is to be marked as the cover reference in the guide section. The handling of a cover image is vague enough in the ePub specs to make it reasonable that the user might need to be the final arbiter of exactly how it's dealt with. But I'm not sweating it too much, since I've learned how to work around it.

Last edited by DiapDealer; 05-25-2012 at 09:53 PM.
DiapDealer is offline   Reply With Quote
Old 05-26-2012, 01:17 PM   #10
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Quote:
Originally Posted by tmyke70 View Post
The books we are converting are sheet music books so they are scans of books and each page is a 150 DPI PNG file. We have a separate cover image and the first thing I do is give the cover scan the semantics of "Cover Image." even after doing that, sigil is adding the semantics of "Cover" to my first chapter.

The frustrating this is that it doesn't happen all the time, some files are perfectly fine. Or I'll start with a file that doesn't have the semantics and then somewhere through the process of adding files, coding them into the book, editing the TOC and meta data and creating our own TOC it adds the semantics.

Also I submitted an issue on sigils "Issue" page and didn't get any help, but rather was snubbed by a rather rude gentleman.
Just checking, but you are saying that you've marked the cover image as "Cover Image". Is this in the Images folder?

Also do you have a separate page, i.e. the first page in the book, that contains this cover image? If not, Then try creating one and then using the semantics to set that file as the cover.
ghostyjack is offline   Reply With Quote
Old 05-26-2012, 02:03 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,563
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Also do you have a separate page, i.e. the first page in the book, that contains this cover image? If not, Then try creating one and then using the semantics to set that file as the cover.
I think that's part of the problem. The OP doesn't want the cover image to be an inline page of the book. And since the first page of his/her book contains a single image... Sigil won't allow it to NOT be marked as the cover page. I tend to agree with the OP on that issue in general, but have learned to work around it when it becomes a problem.
DiapDealer is offline   Reply With Quote
Old 05-26-2012, 02:16 PM   #12
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Ahh, I'm understanding what he wants now.

I imagine it would help if I wasn't suffering badly from hayfever in 27 deg. C temperatures and ridiculously high humidity. This is Bristol, in May, not the Mediterranean. I can't think straight in these conditions, or (apparently) read and understand a thread in a forum.
ghostyjack is offline   Reply With Quote
Old 05-26-2012, 02:55 PM   #13
theducks
Grand Sorcerer
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: 15,299
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by DiapDealer View Post
I think that's part of the problem. The OP doesn't want the cover image to be an inline page of the book. And since the first page of his/her book contains a single image... Sigil won't allow it to NOT be marked as the cover page. I tend to agree with the OP on that issue in general, but have learned to work around it when it becomes a problem.
Time for the infamous 1 px image to be used? A couple of those and the page no longer has a single image.
theducks is online now   Reply With Quote
Old 05-27-2012, 04:02 AM   #14
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,716
Karma: 15513561
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by theducks View Post
Time for the infamous 1 px image to be used? A couple of those and the page no longer has a single image.
Hmm, that might work. I've never had an ePUB for which I didn't want an embedded cover, now that I think about it, but if it's that big a deal, what about just making an empty html file the first file in the "book?" No headings, so no ncx entry, an empty para, let's say, with a space in it (we don't care if it renders, remember)...split if from the ensuing page WITH the image, so that the second file has the non-cover image...would that do the trick? Easier than a bunch of 1px images, which, if the OP is using this for a subsequent Previewer/KG conversion, could show up, (maybe not if he uses display:none now that 2.4 has fixed that).

Just some stream-of-consciousness rambling, here.

Hitch
Hitch is online now   Reply With Quote
Old 05-27-2012, 05:53 AM   #15
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
It wouldn't work since the cover tag is automatically applied only when there is exactly 1 image in the file.

But this won't be a problem anymore in the next release.
meme is offline   Reply With Quote
Reply

Tags
old version, semantics, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Semantics? lkasdorf Sigil 2 04-25-2012 08:33 AM
Add semantics context menu Artha Sigil 1 11-22-2011 03:11 PM
Semantics Issues in Apple Protagitron Apple Devices 1 02-25-2011 03:59 PM
Semantics crutledge Sigil 30 01-03-2011 03:51 AM
Epub and Semantics crutledge Sigil 15 11-15-2010 08:05 AM


All times are GMT -4. The time now is 01:57 PM.


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