View Single Post
Old 10-20-2020, 02:10 PM   #3
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: 79,922
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by EuroScribe View Post
I am dealing with an epub which is full of junk images (eg. Chapter titles, section breaks etc). Looking at the code using calibre code editor, I can see alt texts have been defined for every image.

For the love of God, how can I get rid of images in an epub and just use the alt texts instead. I prefer to have absolutely plain text in my epub, unless the images are essential or at least high quality (maps, illustration etc). I can not stand superfluous decorative images.

So how do I go about doing it? Any method will do as long as the end result is achieved (epub to epub conversion, epub to docx conversion, modifying epub etc).

Any help please.
Are the images just showing text? If that's the case, you can do something like this...

HTML code
Code:
<h2 class="chapter">Chapter One</h2>
CSS code
Code:
h2 {
  font-size; large;
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center;
  font-weight: bold;
  text-indent: 0;
}
That defines a chapter header of Chapter One that's bold, center,font size is large, and has a 1em space between the top and bottom of the chapter title.

You replace the <img> code (as well as the <p> or <div>) with the code above and just change the text.
JSWolf is online now   Reply With Quote