09-03-2024, 01:04 AM | #1 |
Enthusiast
Posts: 41
Karma: 26
Join Date: Jan 2022
Device: none
|
Standalone or bulk "Restructure to Sigl Norm"?
I have a bunch of epubs from all over the place that I want to standardize. Is Sigil's "restructure" script able to be run by itself? I assume it's in the Github, but I dunno where. Alternatively, suggesting another way to restructure many books would be appreciated. Thanks.
|
09-03-2024, 06:24 AM | #2 |
Grand Sorcerer
Posts: 27,862
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The restructure code is not a "script". It's not something that could be simply copied out of Sigil's codebase and used elsewhere. It's C++ code that's intertwined with the rest of Sigil's C++ code.
Sigil's simply not geared toward the editing of bulk epubs. Calibre should be able to do this sort of thing. |
09-03-2024, 05:49 PM | #3 |
Enthusiast
Posts: 41
Karma: 26
Join Date: Jan 2022
Device: none
|
Dang. Guess I'll see if Calibre can do it, though I don't like how there doesn't seem to be a way to turn off its renaming of CSS classes.
|
09-03-2024, 07:17 PM | #4 |
Grand Sorcerer
Posts: 27,862
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm pretty sure you can restructure using calibre without actually converting (which would trigger all kinds of other changes). But it's been a while since I've used Calibre. I think it (the restructure feature) was a part of Calibre's editor.
|
Today, 02:35 AM | #5 | |
Guru
Posts: 674
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
It converts between formats, but doing epub to epub cleans up a lot of things, and doesn't rename classes, though it may create some new ones (e.g. if there are spans with styling). Just do: "ebook-convert oldbook.epub newbook.epub" and see how it goes. See https://manual.calibre-ebook.com/gen...k-convert.html for options, though default makes it manageable and I continue in Sigil. Note that it may resize and compress images if they're "large", you can just reimport the originals or try using the option " --output-profile tablet" which will (usually) make it leave images as-is. |
|
Today, 10:16 AM | #6 |
Grand Sorcerer
Posts: 27,862
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
But I don't think calibre will restructure an epub using an epub to epub conversion. The OP is talking about homogenizing the physical archive structure (everything in OEBPS, Text, CSS, Images, Fonts, Misc folders) of a lot of epubs. I could be wrong, but I don't think a simple conversion will do that.
|
Today, 07:13 PM | #7 | |
null operator (he/him)
Posts: 20,874
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The calibre ebook-editor has an Arrange into folders in its Tools menu, but I don't think it's available from the command line. It might be possible to use the Action Chain and Editor Chain plugins to restructure multiple books in a calibre library. BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to get "Eject this Device" as a standalone toolbar item? | Dal Bhat | Calibre | 4 | 06-05-2024 08:08 PM |
Setting "Title" from "Title Sort" in bulk. | alyshadeshae | Library Management | 2 | 09-16-2022 09:43 AM |
How to bulk "Polish/embed" covers in pdf files | The Holy | Library Management | 15 | 08-16-2021 11:08 AM |
Browser problem "book-manifest"/can't read ePub // standalone content server on Linux | Henning | Server | 1 | 10-21-2018 10:35 AM |
How "Prove Yourself" is the new publishing norm | Steven Lake | Writers' Corner | 8 | 07-25-2011 04:52 PM |