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, 11:14 AM   #10351
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 96
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Not a bug or issue, just a question.

Is there a way to make FFF include parts of titles that are in brackets? I won't link it since it's NSFW on QQ, but there's a new story called "(End)Bringing You A New Home!" and when you download it with FFF the story title on Calibre is just "Bringing You A New Home!" I've noticed this with other fics in the past, but generally I only found those fics once they were done or dead, so I didn't worry about it, but this is a new (and I assume) updating fic.

Thanks!
JDesat is offline   Reply With Quote
Old Today, 01:58 PM   #10352
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,690
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by JDesat View Post
Is there a way to make FFF include parts of titles that are in brackets? I won't link it since it's NSFW on QQ, but there's a new story called "(End)Bringing You A New Home!" and when you download it with FFF the story title on Calibre is just "Bringing You A New Home!" I've noticed this with other fics in the past, but generally I only found those fics once they were done or dead, so I didn't worry about it, but this is a new (and I assume) updating fic.
In theory, yes. But the defaults settings to create tags from titles are... complex.

Honestly, I just add a section to explicitly set the title when I run into cases like that:
Code:
[https://forums.spacebattles.com/threads/guided-by-the-light-of-a-red-cameron-star-battletech.1064552/]
add_to_replace_metadata:
 title=>^.*$=>Guided by the Light of a (Red) Cameron Star
 tagsfromtitle=>^ *Red *$=>
JimmXinu is offline   Reply With Quote
Old Today, 02:16 PM   #10353
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 96
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Thanks for getting back to me!
JDesat is offline   Reply With Quote
Old Today, 06:38 PM   #10354
ThreeLizards
Junior Member
ThreeLizards began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2025
Device: Kindle Paperwhite 2024
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.

Spoiler:
# Add HTML to format the title page

titlepage_entries: rating,warnings,ao3categories,fandoms,ships,charac ters,freeformtags,language,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">
<h1><a href="${storyUrl}">${title}</a> by ${authorHTML}</h1>
</div>

titlepage_entry:
<dt><b>${label}:</b></dt> <dd>${value}</dd>
</body>
</html>
Attached Thumbnails
Click image for larger version

Name:	what I want.png
Views:	7
Size:	87.9 KB
ID:	213706  
ThreeLizards is offline   Reply With Quote
Old Today, 07: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: 6,690
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
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
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 506 Yesterday 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 07:49 PM.


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