Quote:
Originally Posted by MondSemmel
I really like the epub output for Royal Road (some tools struggled to preserve e.g. italicized text formatting), but I'd like to preserve an author's center-aligned text, and none of my attempts so far have worked.
Example from this chapter): text with a dynamically generated class and a style="text-align: center" CSS attribute.
|
That story is using an inline style attribute to set the text-align--and a bunch of other stuff. Certain programs, typically word processors, use very brute force methods to apply appearance on HTML export.
Code:
<p class="cnM1MmYxOGU4ZjBiNjQzNTBiMTEwYjJkNjA2MzYzMDMz" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: center; text-indent: 0; text-transform: none; word-spacing: 0; text-decoration: none; margin: 0 0 12px; font-stretch: normal; font-family: Charter"><span style="font-family: "Open Sans", sans-serif">Lexi</span></p>
Instead of align, you need to keep the style attr:
Code:
[www.royalroad.com]
add_to_keep_html_attrs:,style
## or by story:
[https://www.royalroad.com/fiction/63759]
add_to_keep_html_attrs:,style
And I don't have any good way to keep
part of an in-line style.
Quote:
Originally Posted by MondSemmel
PS: Any time I want to test a change to personal.ini, I currently delete and then redownload the entire fic. Is there a way to test settings, e.g. by downloading a single chapter, rather than an entire fic?
|
You can put a chapter number range after the URL when downloading by URL, or a single chapter. The example above would be:
https://www.royalroad.com/fiction/63759[197]
(Note that FFF's chapter number doesn't always line up if the author had a prologue or something.)
But you have to do download by URL every time. There are undocumented settings
first_chapter and
last_chapter you can put in personal.ini for a specific story that will act as if you'd used the chapter range.