View Single Post
Old 04-13-2025, 11:52 AM   #10586
FlyingSpaceOxen
Junior Member
FlyingSpaceOxen began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2025
Device: Kobo Clara 2E
Quote:
Originally Posted by JimmXinu View Post
Arguably, we could declare those stories flawed.

But there's still more brute force we can try first!

Adapter now looks for a beginning HTML comment and an ending comment (and <hr>) and blindly assumes if both of those markers are found, whatever is between them is the chapter text. Which works in the relatively few number of cases I've tried.
Thanks! So far, so good. Downloaded SWI stories now largely appear as they were intended, awkward original image placement by the authors notwithstanding in some entries.

Somewhat unrelated: I've noticed the download_text_version option and read the original author's comment in the extractor code explaining their use of line breaks to preserve 1:1 the presentation of text stories on FictionMania. However this results in EPUBs with non-reflowable text. Using the default settings, FanFicFare produces EPUBs that ignore multiple new lines that are used, for example, to separate scenes or chapters in a single text file unless the author uses something like a Markdown-compatible horizontal rule.

I imagine this is a HTML limitation, correct? Up till now, I've been taking the plain text files provided by FictionMania, turning them into properly formatted Markdown files, then running them through Pandoc to generate EPUB files that faithfully preserve their original presentation.
FlyingSpaceOxen is offline   Reply With Quote