Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2024, 02:26 PM   #1
Betonhaus
Junior Member
Betonhaus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: Jellyfin Client
mass edit .epub books?

One of the places I got my ebooks from adds a footnote to each chapter, and the footnote is identical every time including the formatting, and is unique and not found anywhere else in the books. Is there a way to set a mass edit where I feed sigil a bunch of files and it goes through them all, finding and removing this specific string of text from all my books?

thanks.
Betonhaus is offline   Reply With Quote
Old 08-10-2024, 02:52 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
Not without using batch files to launch Sigil repeatedly as Sigil ones works on one epub at a time. Then you must use Sigil's Find and Replace to remove that footnote setting the target as All HTML files (or write your own custom plugin).

Calibre might be a better choice as it can run operations on all epubs in your library and their editor has the same find and replace capabilities as Sigil
KevinH is offline   Reply With Quote
Old 08-10-2024, 09:07 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,994
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
. . .

Calibre might be a better choice as it can run operations on all epubs in your library and their editor has the same find and replace capabilities as Sigil
↑ ↑ ↑ ✔

Via the Editor Chains and Actions Chains optional plugins.

BR
BetterRed is offline   Reply With Quote
Old 08-10-2024, 09:38 PM   #4
Betonhaus
Junior Member
Betonhaus began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: Jellyfin Client
Quote:
Originally Posted by KevinH View Post
Not without using batch files to launch Sigil repeatedly as Sigil ones works on one epub at a time. Then you must use Sigil's Find and Replace to remove that footnote setting the target as All HTML files (or write your own custom plugin).

Calibre might be a better choice as it can run operations on all epubs in your library and their editor has the same find and replace capabilities as Sigil
I wanted to avoid using Calibre, as my eBooks are organized in folders so that they can be accessed through Jellyfin. To use Calibre, I'd have to import all the books, edit them, export all the books, then try to get them in the right folder structure again. I have enough books to make that not feasible, so i'm trying to edit them without renaming or moving them.

I'm on Linux so i'd have to use a bash script instead of a batch file, but I might try that. or maybe there's a command line tool I can use
Betonhaus is offline   Reply With Quote
Old 08-10-2024, 11:16 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Calibre editor (and viewer) can be used from the command line. No need to add to the Library.
theducks is offline   Reply With Quote
Old 08-13-2024, 10:30 AM   #6
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 674
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by Betonhaus View Post
I'm on Linux so i'd have to use a bash script instead of a batch file, but I might try that. or maybe there's a command line tool I can use
If it's a unique sequence you can remove them all with a script with sed (+ automatic unzip & re-zip).
patrik is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mass metadata edit markminnich Library Management 1 06-26-2021 07:51 AM
mass update/mass-editing as a list custom fields alkmaar Library Management 7 08-30-2019 02:24 PM
Any way to add to/edit table of contents for epub books? bookw0rm Calibre 2 02-20-2017 12:50 PM
Edit books: Mass warnings. Bulk correction? chaot Editor 6 10-22-2015 08:54 AM


All times are GMT -4. The time now is 12:24 PM.


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