Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-14-2014, 06:52 PM   #1
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Request: extension for Polish Book, CSS part

Polish Book can remove unused CSS rules. I would like to request the addition of the following capabilities:

1. Add a tick box: "Remove all font-family occurences that reference fonts that are not embedded in the book."

There are some e-readers that drop back to their default font if a font is referenced that is not on the reader, and also not in the book. Sometimes, they don't even allow you to select a different font. I have had this happen with the Kindle Paperwhite, until I removed the font-family properties.

2. Add a text box where CSS can be pasted that needs to be removed.

Often I download free books, and it happens that they all have some part of CSS in common, that I wish to remove.

for example:

Code:
.Stuff {
  indent: 1em;
}

.MoreStuff
.ToBeRemoved
h2
This would remove "indent: 1em" fro the .Stuff class, and would completely remove the .MoreStuff and .ToBeRemoved classes. In addition, "class="MoreStuff"" and so on in the html-files could also be removed. The h2 part would be removed from the CSS (but obviously not from the files).

3. On the other hand: add a text box where CSS can be pasted that one wants to add.

Code:
.Stuff {
  text-align: left;
}

h1 {
  text-align: right;
}
This would add "text-align: left" to the class .Stuff, and it would add "text-align: right" to h1. Should h1 not exist, already, then it would be created.

A combination of the add-remove functionality could be used to re-align text for example: remove the "indent: 1em" and "text-align: justify" properties, and then add "text-align: left" back in.

This way, text can be adjusted and changed without converting the book. Maybe it would even be possibe to remove the Extra CSS option from the Convert Book dialog.

IMHO, this would be a much nicer way of doing things than converting from EPUB to EPUB if one wants to do a large CSS change on more than one book at once

Last edited by Katsunami; 02-14-2014 at 06:54 PM.
Katsunami is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request : using a custom css file Bertrand Writer2ePub 8 12-28-2019 11:46 AM
Request regarding CSS generation sherman Conversion 2 12-23-2012 10:12 PM
Feature Request - custom CSS style gentoosiast EPUBReader 1 12-14-2012 03:26 AM
one more css help request arslonga Conversion 1 07-13-2012 09:48 AM
What part of the CSS can cause this? (smallcaps related in Sigil) mtrahan ePub 15 06-01-2011 09:24 AM


All times are GMT -4. The time now is 10:26 PM.


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