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 07-12-2011, 05:49 AM   #1
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
Removing files, cleaning up references

I recently discovered a cute bookmarklet which can provide an epub of a webpage. Now, they stick a first page file with their logo and an end page file with their disclaimer. Now, I open in Sigil the result and remove the first page, last page, logo graphic and CSS. When I check the resulting epub I am told that those files are refferenced, yet nowhere to be found (which was expected). How can I make Sigil clean up those refferences too?
Artha is offline   Reply With Quote
Old 07-12-2011, 12:52 PM   #2
st_albert
Fanatic
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 549
Karma: 94420
Join Date: Feb 2010
Device: none
what version of Sigil are you using?

Sigil should remove references in the content.opf and toc.ncx files automatically.
st_albert is offline   Reply With Quote
 
Advertisement
Old 07-12-2011, 01:30 PM   #3
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,045
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
there may be a inline TOC or back link in one of your pages.
Sigil doe not always clear all references outside of the <body>...</body>
( not sure why a 'Page' is referenced outside the body though.)
theducks is offline   Reply With Quote
Old 07-12-2011, 10:22 PM   #4
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,586
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by theducks View Post
there may be a inline TOC or back link in one of your pages.
Sigil doe not always clear all references outside of the <body>...</body>
( not sure why a 'Page' is referenced outside the body though.)
It's having an out-of-body experience?

Hitch
Hitch is offline   Reply With Quote
Old 07-12-2011, 10:27 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,772
Karma: 18492088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Check the OPF file and see if the files are still referenced there.
JSWolf is offline   Reply With Quote
Old 07-13-2011, 02:38 AM   #6
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,586
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by JSWolf View Post
Check the OPF file and see if the files are still referenced there.
Okay, well, if nobody's gonna play....I'd suggest you pop open CV (Code View), and do a search on all html files for the file names that you removed. Sometimes, bookdesigners or software firms will embed images invisibly, to protect their material from being pilfered. In epub, for example, you can set a class to "hidden" and hide a "watermark image," for lack of a better phrase, so you can prove (if needed) that the product was yours in the first place.

In any event, search for it in the Book itself; search for it in the OPF, as referenced by JS Wolf.

HTH,
Hitch
Hitch is offline   Reply With Quote
Old 07-13-2011, 07:36 AM   #7
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
I guess it's the OPF that does not get updated. I run the latest version available 0.3.4. Nothing is hidden in my case and I have no intention of removing the tags for their work. It's a matter of wasted space for my reader. Is there a way to tweak that OPF from within Sigil?
Artha is offline   Reply With Quote
Old 07-13-2011, 08:13 AM   #8
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,586
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Artha View Post
I guess it's the OPF that does not get updated. I run the latest version available 0.3.4. Nothing is hidden in my case and I have no intention of removing the tags for their work. It's a matter of wasted space for my reader. Is there a way to tweak that OPF from within Sigil?
I obviously misunderstood. You already said you removed their logo, disclaimer page, etc.; so it seemed as though you were removing all traces. I frankly don't understand why it would be different to remove the (possibly) "invisible" traces of their work, when you removed the visible traces, but maybe that's just me being dense. When you edit the OPF to not refer to their (now-removed graphics), you'll be removing essentially the same type of references.

You can edit the OPF file directly by using Sigil's latest beta, which is 0.4-something, or you can explode the epub and do it by hand in an html editor.

HTH,
Hitch
Hitch is offline   Reply With Quote
Old 07-13-2011, 11:57 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,772
Karma: 18492088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Artha View Post
I guess it's the OPF that does not get updated. I run the latest version available 0.3.4. Nothing is hidden in my case and I have no intention of removing the tags for their work. It's a matter of wasted space for my reader. Is there a way to tweak that OPF from within Sigil?
Give the .4 beta a go. It may do more of what you want.
JSWolf is offline   Reply With Quote
Old 07-14-2011, 07:46 AM   #10
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
Quote:
Originally Posted by JSWolf View Post
Give the .4 beta a go. It may do more of what you want.
I used to go for the stable version, but these days beta usually means "as good as it getts" and the stable version is the branch where the developer doesn't want to go anymore. Old habits are hard to lose. I'm going for the new version.
Artha is offline   Reply With Quote
Old 07-14-2011, 10:17 AM   #11
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,045
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Artha View Post
I used to go for the stable version, but these days beta usually means "as good as it getts" and the stable version is the branch where the developer doesn't want to go anymore. Old habits are hard to lose. I'm going for the new version.
You have been warned .
It mis-behaves... Randomly at times (not repeatable)..

Go read the bug reports. Some are carry-overs from 3.4. Some have been there since 2.x
Playing with Betas, can be fun...
But seeing hours of your work hit the
theducks is offline   Reply With Quote
Old 07-19-2011, 12:05 PM   #12
saskir
Member
saskir began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2010
Device: Sony PRS 650
If you check the epub doesn't it tell you where the references are made? If it is in the HTML files you can easily click on them to get there. If it is about the .opf then the anser was already given.
saskir 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
Removing page numbers and spaces from Mobi files rabbischle Conversion 4 06-10-2011 04:03 AM
Tool for locating references to constant strings in ARM ELF executable/.so files Xaphiosis Sony Reader Dev Corner 3 04-22-2010 06:45 AM
Unutterably Silly Why all the Lovecraft references? Mobile Mason Lounge 3 12-03-2009 01:53 PM
removing files from reader/problems syncing annac Sony Reader 5 11-15-2009 08:46 AM
Removing Deleted Files / Refresh the Library pragmortal Calibre 4 09-23-2009 05:51 AM


All times are GMT -4. The time now is 11:06 PM.


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