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 01-20-2025, 01:30 PM   #10216
Leedie
Junior Member
Leedie began at the beginning.
 
Leedie's Avatar
 
Posts: 4
Karma: 10
Join Date: Jan 2025
Device: none
Hi!

Can you tell if it's possible to use FanFicFare to search&replace text in the body of fic? When it's downloaded, for example?

Such as replacing "labour" with "labor". Or, as another example, I read a lot of fics from Chinese fandoms and there are multiple technically correct translations of the same characters' names, and I would like to make all fics spell them the same way.

I already replaced all I need in metadata (using add_to_replace_metadata, FanFicFare was amazing at normalizing ship names across all fics!) but I'm having trouble doing it in the fics' text itself.

I can do that with Calibre's native Search&Replace, but it works one fic at a time and I might need tens or hundreds of fics edited at once, so doing it that way would be pretty time-consuming.
Leedie is offline   Reply With Quote
Old 01-20-2025, 08:58 PM   #10217
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,650
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by Leedie View Post
Can you tell if it's possible to use FanFicFare to search&replace text in the body of fic? When it's downloaded, for example?

...

I can do that with Calibre's native Search&Replace, but it works one fic at a time and I might need tens or hundreds of fics edited at once, so doing it that way would be pretty time-consuming.
It's been asked for before, but I've always been very hesitant to provide such a feature because it's so easy to shoot yourself in the foot, especially when you can't see the changes immediately and you don't have an Undo feature.

I've used the Action Chains plugin to call the Editor Chains Editor plugin to do saved find & replace on multiple books at once.

I honestly think that's a better option than re-running FFF on 10-100s of books.
JimmXinu is offline   Reply With Quote
Old 01-20-2025, 10:30 PM   #10218
Leedie
Junior Member
Leedie began at the beginning.
 
Leedie's Avatar
 
Posts: 4
Karma: 10
Join Date: Jan 2025
Device: none
Quote:
Originally Posted by JimmXinu View Post
It's been asked for before, but I've always been very hesitant to provide such a feature because it's so easy to shoot yourself in the foot, especially when you can't see the changes immediately and you don't have an Undo feature.

I've used the Action Chains plugin to call the Editor Chains Editor plugin to do saved find & replace on multiple books at once.

I honestly think that's a better option than re-running FFF on 10-100s of books.
Thank you for the response!

That does seem to be the most efficient efficient way of doing so. If anyone else is not that tech-savvy and need additional help setting a mass word replacer up, here's capink explaining what needs to be done step-by-step with an example replacer (labour->labor) file attached, it was really helpful in understanding how to set everything up.

While I'm here, please accept my most sincere thanks for making and supporting this plugin. I love archiving things for personal use, and this has been literally priceless for me. Let you always have never-ending flow of fics that are right to your interests and all the time in the world to indulge in them!
Leedie is offline   Reply With Quote
Old 01-21-2025, 10:05 AM   #10219
MidwestJen
Member
MidwestJen began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD, Kindle Paperwhite, K1 (ret), K2 (ret)
Quote:
Originally Posted by JimmXinu View Post
Default setting for AO3 is slow_down_sleep_time:2

Does it help if that's doubled?
Sorry, I needed to wait until I had a few days worth stacked up in order to test it. I had one 429 error after adding this to my personal ini at 4. So it may help a bit. I may try 6 in a few more days to see if that helps if AO3 hasn't fixed the issue on their end.
MidwestJen is offline   Reply With Quote
Old Yesterday, 02:50 PM   #10220
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Oct 2018
Device: none
Error when FFF tries to read browser cache of Chomium after updaing the browser

Today I updated the browser I use for the browser cache to download. Since then when trying to updating or download a new story from ff.net I get this error:

Quote:
Browser Cache Failed to Load with error ''utf-8' codec can't decode bytes in position 0-1: invalid continuation byte'
This happens with every url I tried. This is one of them:
Did something changed between version in Chromium in how the cache is stored or work?

My setup is the following:
OS: Linux Mint 22.0 x86_64
Calibre version: 7.24 (Official install from Calibre website, not the distro repository)
FanFicFare version: v4.41.0

Chromium versions:
Before update: 131.0.6778.264~linuxmint1+xia
After update: 132.0.6834.83~linuxmint1+xia

Somebody has an idea of what is happening?

Like always thanks in advance.
John Maverick is online now   Reply With Quote
Old Yesterday, 03:45 PM   #10221
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,650
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
I'm not seeing that problem with Chrome 132 on Win10. But that uses the Blockfile cache, mac/linux tend to use the Simplefile cache. I need to borrow a computer to test that.

Can you produce a debug log to share? Calibre Preferences dropdown -> Restart in Debug mode.
JimmXinu is offline   Reply With Quote
Old Yesterday, 04:04 PM   #10222
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JimmXinu View Post
I'm not seeing that problem with Chrome 132 on Win10. But that uses the Blockfile cache, mac/linux tend to use the Simplefile cache. I need to borrow a computer to test that.

Can you produce a debug log to share? Calibre Preferences dropdown -> Restart in Debug mode.
Here is the debug log.
John Maverick is online now   Reply With Quote
Old Yesterday, 06:24 PM   #10223
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,650
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
On a borrowed mac using SimpleCache, I do see this issue, too.

It looks like the cache file header may have changed again. We saw this happen back in Aug 2024.

Still investigating.
JimmXinu is offline   Reply With Quote
Old Yesterday, 07:29 PM   #10224
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,650
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Posted

2025-01-22
- Browser Simple Cache adding orig resp time field & removing browser_cache_simple_header_old option.

To my astonishment, I actually found the Chrome code change this time:

https://www.gitclear.com/open_repos/...e/132.0.6825.0
Search for "[v8 code cache] Fix timestamp mismatch issue"
https://www.gitclear.com/open_repos/..._file_12568188

This version:
  • Looks at the extra_flags field to determine if there's an original_response_time to read or not, and;
  • Removes the browser_cache_simple_header_old back compat setting from August 2024.
So this should be back compatible to Chrome 131 etc, but not to versions before last August.

If someone on mac or linux using Chrome who hasn't updated to Chrome v132 yet could test this and confirm it works, I would appreciate it.
JimmXinu is offline   Reply With Quote
Old Yesterday, 09:42 PM   #10225
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2025-01-22
- Browser Simple Cache adding orig resp time field & removing browser_cache_simple_header_old option.
Browser cache is working for me with Chromium v132.

I hadn't tested downgrading Chromium to v131 to see if the previous version works with this test version of FFF, but at least I wanted to give you the confirmation that is solved for the actual version. I'm sorry I can't help you with that. Supposedly, downgrading a package shouldn't give you problems. But it can happen and is something I want to avoid if possible.


Quote:
Originally Posted by JimmXinu View Post
If someone on mac or linux using Chrome who hasn't updated to Chrome v132 yet could test this and confirm it works, I would appreciate it.
But I'm willing to give a try if nobody test this in a few days.

Again thank you for your fast response and help. You're awesome JimmXinu!!!
John Maverick 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 495 10-19-2024 07:06 AM
[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 10:18 AM.


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