View Single Post
Old 02-17-2017, 11:13 AM   #1816
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,029
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by readerboy7 View Post
Short version: is there a way to use something similar to `add_to_keep_html_attrs:,style' to download underlines without downloading other formatting such as size/font changes?
...
old fics, such as https://www.fanfiction.net/s/4246/1/ and https://www.fanfiction.net/s/10700/1/ do. Is there a way to download the underlines without all the other additional formatting that comes with `style' ?
There isn't any processing on style attribute other than to keep it or remove it. You'd have to use some other tool to edit the ebook. I don't know of any tool (aside from editing by hand in Calibre's Edit book tool) that will keep underline while removing other styles.

Plus, in the 4246 story, a lot of what you see there is from font tags, not style attributes. You can try removing the font tags by adding this to personal.ini:

Code:
[www.fanfiction.net]
add_to_replace_tags_with_spans:,font
JimmXinu is offline   Reply With Quote