05-01-2024, 06:59 PM | #1 |
JCL Punch-Card Collector
Posts: 58
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
Flattening ePubs
Is there a way, inside the editor, to flatten the structure of an ePub? I know one can do an epub-to-epub conversion and check the box to flatten in the conversion parameters, but that introduces some problems of its own in omnibus editions.
I've tried checking all of the menus, all the right-clicks that make any sense to me, and all of the select-by-icon options. Am I missing something, or is this something that is held away from the editor (or, for that matter, the Polish function in the main, non-editor window) for Reasons? |
05-01-2024, 07:06 PM | #2 |
Bibliophagist
Posts: 40,599
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Of of curiosity, what is your reason for wanting to flatten the structure of an ePub? I can't see any advantages to doing so.
|
05-02-2024, 04:47 AM | #3 |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Have you tried tools > Arrange into folders?
|
05-02-2024, 06:43 AM | #4 |
Resident Curmudgeon
Posts: 76,489
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-02-2024, 02:02 PM | #5 | |
JCL Punch-Card Collector
Posts: 58
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
Quote:
I freely admit this is an uncommon preference. But I want it. I want the pony, too, even though I'm not one of the kewl kidz eager to throw away cross-medium structural integrity and labelling consistency because that would be kewl. (And no, you kidz don't get to object that this is meaningless until you've been the series editor for multivolume works released across a decade or more and had to resolve this for reprints/reissues yourself. Get off my lawn!) So my question stands. I want the option/ability, not a default... * Admittedly, this is most often the publisher's fault. Very few publishers manage to design, let alone follow, a stylesheet established for "volume 1" several years later in "volume 6," even leaving aside "we've converted from stand-alone InDesign to the cloud version, changed our default house typeface, and brought in a new advertising director who wants all of the back-of-the-book ads to follow her preferences" problems. It's especially annoying when there are tables that need to be compared across volumes, footnotes/endnotes, and other nonlinear-narrative elements. (That is, the stuff that HTML was supposed to make possible for scientists to exchange in the first place.) |
|
05-02-2024, 02:33 PM | #6 | |
Resident Curmudgeon
Posts: 76,489
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The solution for what you are doing is to make a new directory for each book. Then you don't have to worry about duplicate file names and which files go with which books. I would leave together the CSS as I would only have one file, the graphics I would put together unless these are books with enough graphics to make separate directories for the graphics, and any fonts I would put in one directory if there are fonts you want to keep, chances are there could be the same fonts in multiple books so you'd only need the copy of each font. Just make sure you rename the graphics as needed. But the HTML can be in different directories for each book This way you don't need to flatten and you have an ePub that's easy to find the bits you want. |
|
05-03-2024, 01:53 AM | #7 |
JCL Punch-Card Collector
Posts: 58
Karma: 10
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
|
The problem with that is that if one has — after substantial hand-editing — all of the nicely arranged files with nonduplicative filenames in Omnibus{1-6} created by group-merging volumes 1-6, and then volume 7 comes out, merging 7 into Omnibus{1-6} is, umm, nightmarish; and if there's ever volume 8... The editor doesn't show the subfolders, and one ends up with duplicate filenames that differ only by the invisible subfolders. And it's even worse when losing all meaningful filenames (as in a conversion from an azw source file). Conversely, if the filenames were made unique and not dependent upon subfolder references, flattening the epub makes the rest at least manageable (well, except when footnotes/endnotes are involved, but that's a huge gaping hole in epubs and the Kindle formats no matter what).
I suspect that the only way I'm getting that pony is in a bottle of glue. |
05-03-2024, 02:17 AM | #8 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Flattening is not a sufficiently common/useful transform for me to spend time/UI space on it. It's only present in epub output because there used to be some reading software that could not handle sub folders in EPUB
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Flattening folder structure in Calibre Library and on Kobo device? | Vanguard3000 | Library Management | 5 | 12-08-2022 07:04 PM |
Flattening unicode with unidecode() in a plugin | Phssthpok | Development | 3 | 08-15-2018 05:54 AM |
The flattening of e-book sales | Ken.Hagdal | General Discussions | 50 | 08-26-2013 05:09 PM |
Flattening the TOC hierarchy | ElMiko | Calibre | 3 | 10-18-2012 06:53 AM |
Flattening the battery to recalibrate | nimble | Sony Reader | 6 | 03-06-2010 10:28 PM |