View Single Post
Old 12-12-2015, 11:37 AM   #809
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by edeniz View Post
It made right-aligned text left-aligned, and somehow put <big> tags in there that made random words huge. (Looks like the problem is that the source text has the font tag "big".) It's unreadable.
Right aligned vs left is due to FFF removing 'align' attributes on all tags. The 'align' attr is deprecated in HTML5. However, I will add a keep_align_attr setting in the next test version you can turn on.

The 'big' issue is due to replace_br_with_p doing weird things with the weird way the author used <big> tags. (I think. I didn't see the exact problem you did, but I didn't download more than the first couple chapters.)

The author is using <big> as a block tag with <br> tags inside it. It's meant to be like <span>, an inline markup tag.

I could in theory update replace_br_with_p to treat <big> as a block tag, but would that cause problems for other works that use <big> differently? I didn't write that feature and don't use it, so I'm not 100% sure of the finer points. Plus, there's a reason it's in a module named 'htmlheuristics'--it's not going to be perfect.

The <big> tag, BTW, is unsupported (not just deprecated) in HTML5.

For now, I think the answer is to turn off replace_br_with_p before downloading those stories.

BTW, do you actually download epub and html formats separately? Because if it were me, I'd download epub (for the update capability) and convert to html.
JimmXinu is offline   Reply With Quote