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 06-23-2024, 04:57 PM   #9691
jessbbaby34
Junior Member
jessbbaby34 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2021
Device: Android Tablet
Thanks. Last checked sounds exactly like what I am wanting out of it. Just a way to remember what I re-found.

My only concern is would any of that mess with tags, publisher, etc or would the updates be isolated to just last checked if I told it to update on failure?
jessbbaby34 is offline   Reply With Quote
Old 06-23-2024, 09:26 PM   #9692
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,203
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by jessbbaby34 View Post
My only concern is would any of that mess with tags, publisher, etc or would the updates be isolated to just last checked if I told it to update on failure?
Only Last Checked and Error Column, if configured, will be updated on a failure.

Or, at least, that's what happens when I try it.
JimmXinu is offline   Reply With Quote
Advert
Old 06-23-2024, 09:35 PM   #9693
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,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
Only Last Checked and Error Column, if configured, will be updated on a failure.

Or, at least, that's what happens when I try it.
Yes, this - I've lost count of how many times I've accidentally run 'update if new' instead of always and wondered why my metadata didn't update, lol.
ownedbycats is offline   Reply With Quote
Old 06-24-2024, 11:01 PM   #9694
fishing_forever
Junior Member
fishing_forever began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
Hello! I've recently started using FanFicFare and Calibre to send AO3 ePubs to my Kobo Libra 2. However, on the title page, the words get cut off on the right. I've tried editing the CSS by adding this to the personal.ini:

Code:
add_to_output_css:
 body.fff_titlepage {font-size: 2vmax;
                     margin: 5vw;}
The above does change the font-size and the margin on the top and left, but it doesn't change the margin on the right. I've also tried margin-right: 5vw and 5vmax but that didn't seem to do anything. It looks like it thinks the viewport is a bit bigger than it actually is because it does cut off at a certain point.

For example, instead of:
Quote:
Warnings: No Archive
Warnings Apply
It becomes
Quote:
Warnings: No Archive Warnin
Apply
I tried this:
Code:
add_to_output_css:
 body.fff_titlepage { width: 80%%;
                      margin: auto;
                      padding: 0;}
which makes it so that the words don't get cut off, but it goes the full length of the viewport with no margins on either side, even if I change the width. Adjusting the margin to be 5vw or 5vmax only changes the left and top margin, like in the first snippet.

This problem isn't present within the actual story, just the title page. Any help is appreciated!
fishing_forever is offline   Reply With Quote
Old 06-25-2024, 12:28 AM   #9695
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,203
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by fishing_forever View Post
Hello! I've recently started using FanFicFare and Calibre to send AO3 ePubs to my Kobo Libra 2. However, on the title page, the words get cut off on the right. I've tried editing the CSS by...
By default, FanFicFare's downloaded epubs don't have any special CSS for title page. The same 2% margin used for title page and chapters pages. I don't know of any reason why title page margin would be different--unless you change it, of course.

I had to look up what vw and vmax units even mean. It doesn't look like they are new, but what I'm finding suggests they aren't common. I'd use %, which needs to be escaped as %% in personal.ini.

Depending on your settings, your epub may have a cover image made from rendering the title page, any chance that's what you may be seeing?

I would troubleshoot this by editing the epub using Calibre's Edit book feature to isolate whether it's something weird with the Kobo reader or with FFF's output.

IE, if a page renders correctly everywhere except on your Kobo, is the Kobo the problem?

I don't know anything about Kobo ebook readers, but I know there's a bunch of plugins and additional discussion about them there.
JimmXinu is offline   Reply With Quote
Advert
Old 06-25-2024, 03:23 AM   #9696
fishing_forever
Junior Member
fishing_forever began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
Depending on your settings, your epub may have a cover image made from rendering the title page, any chance that's what you may be seeing?
I'm not too sure how to check if it's a cover image. In the Edit Book feature, the title page is an .xhtml file.

Also, in the Edit Book feature, the margins are changing accordingly, but that doesn't show up if I use the Calibre ebook reader. In the Calibre ebook reader, the margins don't change at all, but none of the words get cut off there.

https://www.mobileread.com/forums/sh...postcount=3788
https://www.mobileread.com/forums/sh...postcount=3789
I was mainly following these posts, but since this is from an older Calibre version, it might not be working anymore.
fishing_forever is offline   Reply With Quote
Old 06-25-2024, 10:13 AM   #9697
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,203
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Hmmm. I forgot I ever posted that.

Once upon a time, automatically generating a cover in Calibre from an FFF epub with title page gave a vaguely readable image of the title page as cover image. Then Calibre changed to render the title page as if it were on a larger display and "title page as cover image" wasn't legible anymore. Those settings were my attempt to make the title page readable again. I eventually quit trying.

Seeing the margins change in Edit is good. Not seeing it in Calibre View(reader), suggests either you didn't save it and re-open View, or the cover image thing, or some CSS weirdness. Edit and View don't render exactly the same.

When editing a book, you'll see a OEBPS/cover.xhtml file or some other variant of 'cover.xhtml' if there's a cover image. In View(reader), it's apparent as the title page is still after the cover.

The fact words aren't being cut off suggests that issue is either Kobo, or the overall width somehow being set wider than the Kobo screen.

Can you post an example of your epub (SFW and ideally a small one) either here or somewhere else and link to it?
JimmXinu is offline   Reply With Quote
Old 06-26-2024, 11:32 AM   #9698
fishing_forever
Junior Member
fishing_forever began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
In the book I was looking at, there wasn't a cover image. In Edit Book, it only has the title_page.xhtml, file0001.xhtml. There's a cover.jpg too.

The picture of the epub from my Kobo is here: https://i.imgur.com/ZSSJR7a.png, which is from when I made the font-size: 2vmax. There's a margin on the left, but none on the right.

A workaround I found when testing is actually to add a cover image, which fixes this entirely! It makes the title page have the same margins as the story. The code I posted earlier doesn't seem to affect the cover image or the title page at all.
fishing_forever is offline   Reply With Quote
Old 06-29-2024, 07:51 PM   #9699
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,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
PSA: Archive of Our Own will be having planned downtime at 07:00 - 17:00 (UTC) July 1. Update your fics before then!

I'm expecting the usual influx of "why can't I download any AO3 fics while the site's undergoing maintenance" posts.

Last edited by ownedbycats; 06-29-2024 at 07:54 PM.
ownedbycats is offline   Reply With Quote
Old 06-30-2024, 06:30 PM   #9700
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,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
[defaults]

add_to_custom_columns_settings:
## Add 'Restricted' to #admintags
 restricted=>#admintags,a

[archiveofourown.org]
add_to_replace_metadata:
## Replace 'Restricted' 
 restricted=>Restricted=>fanfic:requireslogin
Does any site other than AO3 use 'Restricted'? I was wondering if I might have had a specific reason for putting it under the AO3 section.
ownedbycats is offline   Reply With Quote
Old 06-30-2024, 09:14 PM   #9701
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,203
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Searching defaults.ini, squidgeworld.org does, it uses the same server software as AO3. Also www.adastrafanfic.com, but restricted isn't configured for it and that's not mentioned in defaults.ini.

But I'll put some updates in the comments.
JimmXinu is offline   Reply With Quote
Old 07-01-2024, 03:01 AM   #9702
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,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Oooh, I didn't know about Ad Astra.
ownedbycats is offline   Reply With Quote
Old 07-01-2024, 04:09 PM   #9703
tkshorty
Member
tkshorty began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Koba Aura
Quote:
Originally Posted by JimmXinu View Post
New Test Version

2024-05-28
- Add download_finished_signal for Action Chains #1073
- New Site: touchfluffytail.org (#1071) thanks dbhmw

The FFF plugin has a signal it will emit after the "proceed with updating your library" dialog.

The code for the Action Chains Module I tested with is:
Code:
from calibre_plugins.action_chains.events import ChainEvent

class SearchChanged(ChainEvent):

    # replace with the name of your event
    name = 'FFF done'

    def get_event_signal(self):
        return self.gui.iactions['FanFicFare'].download_finished_signal
All I've done with it is call a chain that printed 'HERE!'.

Hi JimmXinu,

I was told by the author of ActionChains, that if you add the code above to a file called action_chains.py and save that file to the root directory of your plugin it will automatically add this to the imported events in action chain.

I tried this out while only changing the name in your code and it works fine for me.

would you consider adding such a file in a future version?


also a tip for other users:
if you use this and count pages plugin started from FFF you may run into issues if count pages and some actions of your chain run simultainiously. only your action chain or the count pages may be performed for some books. Guess some actions put a lock on some attributes or the whole book.

To prevent this just disable count pages from the FFF plugin in run it from your action chain and set the checkbox to wait for it to finish
tkshorty is offline   Reply With Quote
Old 07-01-2024, 04:44 PM   #9704
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,203
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
That code & quote are a post I made when I added basic support for Action Chains.

I don't see anything in the Action Chains thread about this recently, so I don't know what capink may have said about it.

There's some discussion from 2021 about action_chains.py, but at the time it was called "Experimental". If there's a post declaring it no longer experimental, I didn't find it.
JimmXinu is offline   Reply With Quote
Old 07-01-2024, 04:53 PM   #9705
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,437
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It's in this thread: https://www.mobileread.com/forums/sh...=341497&page=5
ownedbycats 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 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 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 09:14 AM.


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