Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2011, 04:30 PM   #1
hollowayhouse
Member
hollowayhouse began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2011
Device: Kindle
Rebuild ePub after tweaking

A while back someone shared how to "EXPLODE" your epub file to tweak text.
I tried to do that and, though I opened the HTML file with Text Edit (mac), saved the file, closed the finder window, and selected "Rebuild"... nothing changed.

Am I missing something?
Thanks for any insights.
hollowayhouse is offline   Reply With Quote
Old 08-04-2011, 05:12 PM   #2
theducks
Well trained by Cats
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: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by hollowayhouse View Post
A while back someone shared how to "EXPLODE" your epub file to tweak text.
I tried to do that and, though I opened the HTML file with Text Edit (mac), saved the file, closed the finder window, and selected "Rebuild"... nothing changed.

Am I missing something?
Thanks for any insights.
That sound like you did it correctly.
If it did not show correctly (work):
1) Your edit was not saved (not saved as a new name that would require additional edits elsewhere)

2)You made an error in your coding of a stylesheet entry that gets ignored by the browser.

3)You are trying to do something that Calibre/Sigils (or brand X) browser does render (most browsers have quirks. All different )

4)A cascaded style is overriding your change.

5)you are viewing a different format than EPUB without converting from EPUB to that format.

6)Something else
theducks is offline   Reply With Quote
Advert
Old 08-05-2011, 08:46 AM   #3
hollowayhouse
Member
hollowayhouse began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2011
Device: Kindle
Calibre "created" my ePub file

Thanks, Ducks.

I thought I'd done it correctly.
As to your suggested possibilities, I didn't do anything special when creating the ePub. I let Calibre do it with no special CSS or anything.

This was mainly an experiment to see if I could make it work.
I opened one html file, changed one word of text, not changing any code, saved it, closed it, rebuilt. Nada.

Odd, yes?
hollowayhouse is offline   Reply With Quote
Old 08-05-2011, 11:28 AM   #4
theducks
Well trained by Cats
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: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by hollowayhouse View Post
Thanks, Ducks.

I thought I'd done it correctly.
As to your suggested possibilities, I didn't do anything special when creating the ePub. I let Calibre do it with no special CSS or anything.

This was mainly an experiment to see if I could make it work.
I opened one html file, changed one word of text, not changing any code, saved it, closed it, rebuilt. Nada.

Odd, yes?
Yes

What did you use to 'View' the changed book?
How did you select the book to view?
(Me is thinking you got a 'cached copy' somehow)

I frequently use tweak to substitute covers, but I have replaced a severely mangled (by me) chapter with easy success.
theducks is offline   Reply With Quote
Old 08-05-2011, 01:23 PM   #5
hollowayhouse
Member
hollowayhouse began at the beginning.
 
Posts: 22
Karma: 10
Join Date: May 2011
Device: Kindle
A cached copy



That sounds like a possibility, I guess, but how do I "clear my cache" in Calibre? Is there such a thing?

I've quit out and re-launched. That didn't do it.

Hmmm.
hollowayhouse is offline   Reply With Quote
Advert
Old 08-05-2011, 02:11 PM   #6
theducks
Well trained by Cats
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: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by hollowayhouse View Post


That sounds like a possibility, I guess, but how do I "clear my cache" in Calibre? Is there such a thing?

I've quit out and re-launched. That didn't do it.

Hmmm.
Calibre does not have a cache like Firefox, IE....
Next time you try:
First open the metadata editor.
Hover over the format. Note the timestamp of the format that shows in the balloon. Cancel the metadata edit
Now do your tweak-rebuild.

check the timestamp

BTW I strongly suggest that the file NOT be open elsewhere.
theducks is offline   Reply With Quote
Old 08-05-2011, 02:18 PM   #7
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: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Here is what I do to tweak ePub. I uncompress the ePub using WinRAR but I do not extract META-INF or mimetype. I leave those be.

Then I use Notepad++ to make the edits to the ePub files as needs. I also use Firefox to view the XML files. Notepad++ supports tabs, regex, and search/replace across tabs.

Then when I am done or done enough that I want to check the ePub with ADE, I ZIP the extracted files back to the ePub. But if I've deleted any files, I have to make sure the sames files are deleted in the ePub.

So it works pretty well overall. It's not perfect as Firefox and ADE are not 100% compatible. But compatible enough to do what needs doing.

I know when I put back the files into the ePub, my changes are now there.
JSWolf is offline   Reply With Quote
Old 08-05-2011, 02:18 PM   #8
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
I have used tweak epub to change the stylesheet css.
I also use it to get rid of an ugly cover or other odss and ends which aren't removed/modified on conversion.

I use the preview epub function to see if it has worked. Usually it does.

If you are experimenting perhaps modify the stylesheet.css (sometimes stylesheet1.css) and change all of the font-style: settings to bold or italic and look at the preview.

While I am sure it can be done, it may not be the best way to edit the text in a file

Helen
speakingtohe is offline   Reply With Quote
Old 08-05-2011, 08:09 PM   #9
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by hollowayhouse View Post
A while back someone shared how to "EXPLODE" your epub file to tweak text.
I tried to do that and, though I opened the HTML file with Text Edit (mac), saved the file, closed the finder window, and selected "Rebuild"... nothing changed.
As long as you saved it without changing the path or name of the file it should have changed. Does your editor save to some other directory by default?
DoctorOhh is offline   Reply With Quote
Reply

Tags
epub, rebuild, tweak

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tweaking Samsung E65 Sidd Which one should I buy? 1 07-14-2011 06:48 AM
Epub explode/rebuild api drMerry Development 1 05-28-2011 05:27 PM
Would a kind soul please help with tweaking a few things? Yolina Library Management 6 03-10-2011 01:21 PM
Table of contents - tweaking webfolk Calibre 26 11-05-2010 05:21 PM
Questions about tweaking The Lost Symbol ficbot Workshop 3 09-24-2009 09:08 PM


All times are GMT -4. The time now is 08:37 PM.


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