Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 03:07 PM   #10366
ThreeLizards
Junior Member
ThreeLizards began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2025
Device: Kindle Paperwhite 2024
I did it!

I got the title page looking all nice and fancy!
Spoiler:
Code:
# Add HTML to format the title page

titlepage_entries: rating,warnings,ao3categories,fandoms,ships,characters,freeformtags,language,collections,numWords,chapterslashtotal,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>

## When using tables, make these span both columns.
wide_titlepage_entries: 

## ${id}, ${label}, ${value}
## Used with entries listed in wide_titlepage_entries, typically description, storyUrl, authorUrl
titlepage_wide_entry:
 <span><b>${label}:</b> ${value}</span>&nbsp;&nbsp;

## metadata
titlepage_end:
## <dl class="stats">
## </dl>
 </dl>
 <hr style="border: .75px solid #999; width: 90%%; margin: 10px auto;" />
 <br />
 <div class="tag-summary-content" style="margin-top: 10px;">
 <div style="text-align: left; font-weight: bold; margin-bottom: 5px;">Stats:</div>
   <div class="inline" style="display: flex; justify-content: space-between; margin-bottom: 8px;">
     <span>Published: ${datePublished}</span>
     <span>Updated: ${dateUpdated}</span>
     <span>Status: ${status}</span>
   </div>
   <div class="inline" style="display: flex; justify-content: space-between; margin-bottom: 8px;">
     <span>Kudos: ${kudos}</span>
     <span>Hits: ${hits}</span>
     <span>Bookmarks: ${bookmarks}</span>
   </div>
 </body>
 </html>

[archiveofourown.org]
freeformtags_label:Additional Tags
freefromtags_label:Additional Tags
ao3categories_label:Category
chapterslashtotal_label:Chapters
description_label: Summary


And I added the code tag! (Didn't know about it, sorry)

(Just so flipping happy that I got that pretty looking title page.)

okay, so could I have your help again please? I noticed that sometimes the author's notes in a story can like bleed through, like there's not a clear delineation of when the note ends and the chapter begins. Is there a way I could add a horizontal line break between them?

Here is an example story that has an author's note, I chose something with a general rating https://archiveofourown.org/works/63...ters/161700646

I checked through the default.ini for it and all I found was this
Spoiler:

## AO3 chapters can include several different types of notes. We've
## traditionally included them all in the chapter text, but this allows
## you to customize which you include. Copy this parameter to your
## personal.ini and list the ones you don't want.
#exclude_notes:authorheadnotes,chaptersummary,chap terheadnotes,chapterfootnotes,authorfootnotes,insp iredlinks


and I noticed that in custom output there was a thing for epub chapter, so like it looked like there was a place that a line break could be inserted
Spoiler:
Code:
[epub]
## ${number}, ${index04}("%04d"%${number}), ${chapter}
chapter_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>${chapter}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="chapterurl" content="${url}"></meta>
 <meta name="chapterorigtitle" content="${origchapter}"></meta>
 <meta name="chaptertoctitle" content="${tocchapter}"></meta>
 <meta name="chaptertitle" content="${chapter}"></meta>
 </head>
 <body class="fff_chapter">
 <h3 class="fff_chapter_title">${chapter}</h3>

## ${number}, ${index04}("%04d"%${number}), ${chapter}
chapter_end:
 </body>
 </html>
Attached Thumbnails
Click image for larger version

Name:	i did it.png
Views:	14
Size:	73.0 KB
ID:	213727  
ThreeLizards is online now   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 506 02-14-2025 10:52 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 06:21 PM.


MobileRead.com is a privately owned, operated and funded community.