View Single Post
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