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 04-03-2026, 12:40 PM   #11806
A_Reader
Junior Member
A_Reader began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2026
Device: none
Quote:
Originally Posted by JimmXinu View Post
Unfortunately, there's not one simple answer.

It depends on the story as written by the author, the site's conventions, and your ebook reader.

If you provide a story URL that might be enough to see the issue. But it might also depend on the settings of your reader.
First, thank you for the quick reply!

Second, the site used is AO3 and I'm using the ReaderEra Premium App which let's me toggle the spacing a bit but always changes it for the entire work, including the title page. If nothing else works that's fine.

This is one of the (many) stories I'm working with:
https://archiveofourown.org/works/17...pters/40005456

Is this was you meant by story URL?
A_Reader is offline   Reply With Quote
Old 04-03-2026, 01:15 PM   #11807
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 51,069
Karma: 179232776
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by A_Reader View Post
This is one of the (many) stories I'm working with:
https://archiveofourown.org/works/17...pters/40005456
You might want to try adding some styling under Preferences => Conversion => Common Options => Styling => Extra CSS. I used the code in the block below and it seemed to work for me on the ePub from the URL you posted. Also note that if you have previously converted the ePub, you will likely need to use the Edit Metadata in Bulk option to remove stored conversion options. See the attached images.

Code:
p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-04-03 101147.png
Views:	12
Size:	131.3 KB
ID:	222274   Click image for larger version

Name:	Screenshot 2026-04-03 100915.png
Views:	10
Size:	158.6 KB
ID:	222275  
DNSB is offline   Reply With Quote
Old 04-03-2026, 01:32 PM   #11808
A_Reader
Junior Member
A_Reader began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2026
Device: none
Thank You!

Bulk conversion another option, if it's not possible to add the extra css to the personal.ini directly. Thanks for the detailed explanation.
A_Reader is offline   Reply With Quote
Old 04-03-2026, 02:48 PM   #11809
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,353
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by A_Reader View Post
Second, the site used is AO3 and I'm using the ReaderEra Premium App which let's me toggle the spacing a bit but always changes it for the entire work, including the title page. If nothing else works that's fine.

This is one of the (many) stories I'm working with:
https://archiveofourown.org/works/17...pters/40005456

Is this was you meant by story URL?
Yes. That story uses normal <p> tags for paragraphs. Some use <br> tags instead and are generally handled differently.

FFF's title page specifically uses <br> tags to keep the title page lines together.

If your reader is treating both <p> and <br> the same, then you may need CSS.

Or you may want to look for additional settings in your reader first to save having to change all your epubs. I know in KOReader I had to set 'Style Tweaks' > 'Paragraphs' > 'Generic web browser paragraph style'.

Quote:
Originally Posted by DNSB View Post
Code:
p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
DNSB's advice for Conversion is fine, but it is advice for Calibre's Convert as opposed to getting it in FFF to begin with. The CSS maybe what you want, though.

Quote:
Originally Posted by A_Reader View Post
Bulk conversion another option, if it's not possible to add the extra css to the personal.ini directly. Thanks for the detailed explanation.
You can absolutely change CSS from personal.ini. Here's an example that will add DNSB's CSS:
Code:
[epub]
add_to_output_css:
 p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
 }
Note that each line after a setting that starts with a space will be included as part of the setting.

FFF can be extensively customized. Here's CustomOutput CSS and another about why I suggest 'add_to_output_css' instead of just output_css.

Note also that FFF only updates epubs on download or update. Once you change a personal.ini setting, it will only affect downloads/updates after you've changed it, not existing epubs.

FYI, A_Reader, as a new user, your first 10 posts or so need to be approved by a moderator before they appear. Just post once and wait rather than reposting. Thanks.
JimmXinu is offline   Reply With Quote
Old 04-03-2026, 04:59 PM   #11810
A_Reader
Junior Member
A_Reader began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2026
Device: none
Oh, I'm sorry for spamming the comments, I wasn't aware of that.

And thank you so, so much for the explanation and additional information. Very exited to give it a go.

Thanks!
A_Reader is offline   Reply With Quote
Old 04-03-2026, 05:19 PM   #11811
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,678
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
What's the best way to remove a blockquote in the summary? (fic link)
ownedbycats is offline   Reply With Quote
Old 04-03-2026, 07:54 PM   #11812
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,353
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
What's the best way to remove a blockquote in the summary? (fic link)
Code:
[https://archiveofourown.org/works/81493146]
replace_metadata:
## Change to div
 description=>blockquote>=>div>
## Or remove completely
 description=></?blockquote>=>
## pick one, don't need both
Which you want and whether you would want it for all stories are both left as an exercise for the reader.
JimmXinu is offline   Reply With Quote
Old 04-03-2026, 08:32 PM   #11813
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,678
Karma: 81419259
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks
ownedbycats is offline   Reply With Quote
Old 04-03-2026, 08:34 PM   #11814
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 170
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
Two replace metadata questions:

1. is it possible to force capitalization in a result?

I have this code:
Code:
 genre=>(.*) (?:and|&amp;) (.*) (?:and|&amp;) (.*) are (.*)s=>\4 \1,\4 \2,\4 \3
 genre=>(.*) (?:and|&amp;) (.*) are (.*)s=>\3 \1,\3 \2
 genre=>(.*) is an? (.*)=>\2 \1
So "Sun is a ghost", gives me "ghost Sun". I would like to capitalize it like a title, but am not sure if it is even possible.

2. I have this code to categorize AUs:
Code:
 genre=>(.*) [Aa][Uu](.)?=>Alternate Universe,AU: \1
 genre=>(Alternate Universe)( - )?(.*)?=>\1,AU: \3
 genre=>Medival type setting=>Alternate Universe,AU: Medival
 genre=>Mer(.*)=>Alternate Universe,AU: Mermaid
However, I also get "AU:" as a result which I don't want. I can't figure out how to stop it.

I tried both:
Code:
 genre=>AU:$=>
 genre=>^AU:$=>
But neither worked.

Any help would be appreciated.

I'll have a question later on how to sort multiple series when one series is in multiple columns.

Last edited by Jade Aislin; 04-03-2026 at 09:44 PM.
Jade Aislin is offline   Reply With Quote
Old 04-03-2026, 11:28 PM   #11815
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,353
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Jade Aislin View Post
Two replace metadata questions:

1. is it possible to force capitalization in a result?
...
So "Sun is a ghost", gives me "ghost Sun". I would like to capitalize it like a title, but am not sure if it is even possible.
To the best of my knowledge, the only way to capitalize letters in python regex is by individually matching a, b, c, etc and changing them to A, B, C, etc.

FFF has code specifically for [base_xenforoforum], but I suspect you're talking about AO3. No other site has tags so complex.
Code:
[base_xenforoforum]
...
## XenForo tags are all lowercase everywhere that I've seen.  This
## makes the first letter of each word uppercase.  Applied before
## replace_metadata.  Also applies to category, genre, characters,
## contenttags and formattags collected from site tags.
capitalize_forumtags:true
My instinct is that trying to implement that more generally would be complicated.


Quote:
Originally Posted by Jade Aislin View Post
2. I have this code to categorize AUs:
Code:
 genre=>(.*) [Aa][Uu](.)?=>Alternate Universe,AU: \1
 genre=>(Alternate Universe)( - )?(.*)?=>\1,AU: \3
 genre=>Medival type setting=>Alternate Universe,AU: Medival
 genre=>Mer(.*)=>Alternate Universe,AU: Mermaid
However, I also get "AU:" as a result which I don't want. I can't figure out how to stop it.

I tried both:
Code:
 genre=>AU:$=>
 genre=>^AU:$=>
Without a story URL to try, I'm speculating, but I would guess you want '\,' not just ',' to split one entry value into two. Eg:
Code:
 genre=>(.*) [Aa][Uu](.)?=>Alternate Universe\,AU: \1

Quote:
Originally Posted by Jade Aislin View Post
I'll have a question later on how to sort multiple series when one series is in multiple columns.
I doubt very much there will be any good solutions. Multiple series support is an ugly kludge and which series is 'first' and therefore canonical can vary by story in the same series.
JimmXinu is offline   Reply With Quote
Old 04-04-2026, 02:27 AM   #11816
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 170
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
Quote:
Originally Posted by JimmXinu View Post
To the best of my knowledge, the only way to capitalize letters in python regex is by individually matching a, b, c, etc and changing them to A, B, C, etc.

FFF has code specifically for [base_xenforoforum], but I suspect you're talking about AO3. No other site has tags so complex.
...
My instinct is that trying to implement that more generally would be complicated.

It is AO3. I guess I'll have to decide if I want a 26 line code to get the first word capitalized or not.

Quote:
Without a story URL to try, I'm speculating, but I would guess you want '\,' not just ',' to split one entry value into two. Eg:
Code:
 genre=>(.*) [Aa][Uu](.)?=>Alternate Universe\,AU: \1

I tried that, but it didn't seem to work. Here's one of the many urls I'm trying to get: https://archiveofourown.org/works/48659611


However, I get the same error in the test.com, but adding the genre Faerie AU!


Quote:
I doubt very much there will be any good solutions. Multiple series support is an ugly kludge and which series is 'first' and therefore canonical can vary by story in the same series.
I have a base idea how to do it. I was able to get all my series names into a "column made from other columns"(entire series). I'm not sure if calibre template language could help me. But if I can get the selected (searched for) series and compare it to the value in each series column for that story. I can use the series index that matches.


Code:
1. get the value being selected from entire series column
2. check each series column of book for the selected value
3. if selected value is present use the series index to sort
4. repeat 2-3 for all series columns

I'm just not sure if that is even possible.


It also came with the added issue that series names that contained commas are separated into different series which I want to stop as well, just have no idea how.
Jade Aislin is offline   Reply With Quote
Old 04-04-2026, 10:37 AM   #11817
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,353
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Jade Aislin View Post
I tried that, but it didn't seem to work. Here's one of the many urls I'm trying to get: https://archiveofourown.org/works/48659611
I don't see any of the AU tags on that story.
JimmXinu is offline   Reply With Quote
Old 04-04-2026, 10:54 AM   #11818
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 140
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by Jade Aislin View Post
However, I get the same error in the test.com, but adding the genre Faerie AU!
Try freeformtags instead of genre for AO3.
culytera is offline   Reply With Quote
Old 04-04-2026, 03:30 PM   #11819
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,353
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Congrats to AO3 for finally leaving Beta after 17 years.
JimmXinu is offline   Reply With Quote
Old 04-04-2026, 03:58 PM   #11820
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 7956099
Join Date: Sep 2020
Device: none
that is generational! lol.
Comfy.n 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 532 03-19-2026 12:30 PM
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 07:54 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 05:16 AM.


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