View Single Post
Old 12-29-2016, 03:01 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by stevenam View Post
As mentioned in the title, is there a way to do it?
That depends on your technical skills. Epubs are zip files and it's relatively easy to add/remove CSS files with a batch file or shell script. You could also add a custom CSS file with Calibre during an epub to epub conversion.

However, as davidfor and jhowell have already pointed out, there's no perfect one-size-fits all CSS solution. If the structure of the epubs is relatively simple, you could also replace the default stylesheet with a simple general-purpose CSS file. For example, CSS Boilerplate for eBooks.

Quote:
Originally Posted by stevenam View Post
The deselection of "internal style" may help, but the parts where words in bold or italic, or arrange center are completely gone.
Most likely bold and italic text is formatted via span tags. E.g., you might see something like:

Code:
<p>This is <span class="calibre999">bold</span> and this <span class="calibre666">italic</span>.</p>
If the books are all from the same publisher/book designer and the classes were consistently used, you could use the Saved Searches feature in Calibre Editor or Sigil to replace them with the usual tags. E.g.,

Code:
<p>This is <b>bold</b> and this <i>italic</i>.</p>
This would allow you to disable the default stylesheet.
Doitsu is offline   Reply With Quote