View Single Post
Old 02-15-2025, 06:22 PM   #10355
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,018
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ThreeLizards View Post
Hi!

So I'm trying to edit the title page, cuz I just really like how it looks when you download an AZW3 file from AO3. (Which I included an image of. And it has the summary on a separate page.)

Could I possible have some help recreating that? I attached the code below. I found some of Culterya's stuff again and used that as a basis. I've been at it for a few hours so any help would be appreciated.
  • Have you already found the Custom Output wiki page?
  • You won't be able to get all the tag links AO3 output has--FFF just doesn't record those.
  • You have have </body></html> in titlepage_entry, they should be in titlepage_end.
  • <dt> and <dd> tags should be in a <dl> tag. You can add <dl> to titlepage_start and </dl> to titlepage_end.
  • titlepage_start, titlepage_entry and titlepage_end should be under [epub], or [archiveofourown.org:epub]. (Depending on your settings, it may or may not actually matter.)
  • FFF doesn't have any way to split description into its own HTML file, but you can use HTML or CSS to tell the reader to page break there. And FFF will include items in titlepage_entries as-is when they don't match a metadata entry.

This works for me and is at least similar:

Spoiler:
Code:
[archiveofourown.org:epub]

add_to_output_css:
 dl.titlepagelist dd { margin: 0 0 1em 1em; }
 div.title {
  font-weight: bold;
  text-align: center;
 }


# Add HTML to format the title page

titlepage_entries: rating,warnings,ao3categories,fandoms,ships,characters,freeformtags,language,<div style="page-break-after: always"></div>,description

titlepage_start:
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="calibre-html-render-data"/>
 </head>
 <body>
 <div class="title">
 <a href="${storyUrl}">${title}</a> by ${authorHTML}
 </div>
 <dl class="titlepagelist">

titlepage_entry:
 <dt><b>${label}:</b></dt> <dd>${value}</dd>

titlepage_end:
 </dl>
 </body>
 </html>
JimmXinu is offline   Reply With Quote