01-21-2024, 03:57 AM | #16 |
the rook, bossing Never.
Posts: 11,770
Karma: 87663463
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
In general many programs on Windows that are associated woth multiple file-endings may decide what to do based on file contents. So with some versions of MS Word a .dot file renamed as .doc would still be a .dot file. But the point is that based on the file-ending the Windows OS or Explorer purely decides whether to invoke MS Word or 7zip or Excel or Calibre etc based on the current file endings associations stored in the Registry. Linux and Mac are more complex.
|
01-21-2024, 02:42 PM | #17 |
Grand Sorcerer
Posts: 6,562
Karma: 26960637
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Going through the 80 or so comics/graphic novels in my Kindle library, it is a mixed bag. Most are just containers for page images and be converted to another format in more or less a straightforward way. At least one has images for 2 page spreads, and I had to figure out how to split them in half first.
So for these, it is a question about how much work I want to with adding navigation features (table of contents or hyperlinks), which is usually lacking in the original format. Another handful are evidently FXL ePub that were converted to Kindle format, and text is selectable and so forth. The most straightforward target should be back to FXL ePub, but I'm not sure calibre handles it correctly (Kovid does not claim that it does). I tried it, but Kindle Previewer 3 complains about unresolved hyperlinks, calibre edit finds another set of errors, but epubcheck only complains about encrypted fonts. It's probably 'okay' unless I want to add it as a personal document for Kindle (say after adding navigation features). Then I'd need to at least fix the hyperlinks. I should also see how Sigil likes these. At least one is in Print Replica format, which is not currently amenable to DRM removal. It's looking more like FXL ePub may be my preferred format, as opposed to PDF or CBZ. But I would like to find some alternative to InDesign for creating them from scratch. Last edited by tomsem; 01-21-2024 at 03:24 PM. |
Advert | |
|
01-21-2024, 05:50 PM | #18 | ||
the rook, bossing Never.
Posts: 11,770
Karma: 87663463
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Easiest of all. Screen shots or camera or scanner. Trivial. Quote:
Also Indesign looks expensive to me when you aren't selling 1000s of copies of what it produces. It's really a Paper DTP program fudged for epub, which is why it actually does fixed layout / print replica epub better than real reflowable epubs. Last edited by Quoth; 01-21-2024 at 05:56 PM. |
||
01-21-2024, 06:57 PM | #19 | |
Grand Sorcerer
Posts: 6,562
Karma: 26960637
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
I would need to see how well calibre can convert these FXL things to PDF. I agree, there are many tool choices for PDF, probably better in the long run, and (for example) Python libraries for working with them. The one I have been looking at lately, PyMuPDF, also works with ePub, something I have not explored at all yet. Apparently FXL derives from Apple's proprietary iBooks ePub extension. There was a pretty nice tool for creating those. It's just weird there are no open source tools for generating FXL (say, from a PDF). I see there are companies you can pay to convert your PDF (with their proprietary tools). |
|
01-21-2024, 09:04 PM | #20 | |||
Bibliophagist
Posts: 37,165
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Quote:
A FLO ePub positions everything on the page pretty much down to the pixel within the viewport. Even trying to convert to a reflowable ePub is a painful task. |
|||
Advert | |
|
01-21-2024, 11:51 PM | #21 |
Grand Sorcerer
Posts: 6,562
Karma: 26960637
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Thanks for the observations.
Actually calibre did a pretty good job converting to PDF with one I did awhile back. A couple of the headings needed to be repositioned. There's not really any reason not to try it and see how it does. Last edited by tomsem; 01-21-2024 at 11:55 PM. |
01-22-2024, 04:36 AM | #22 |
the rook, bossing Never.
Posts: 11,770
Karma: 87663463
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
01-23-2024, 08:44 AM | #23 |
temp. out of service
Posts: 2,794
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
|
01-23-2024, 02:19 PM | #24 |
Bibliophagist
Posts: 37,165
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
On a computer with 4+GB of RAM, there wouldn't be any issues. Ereaders tend to have smaller memory sizes and in my testing, some of the generated CBZ files would not open on the Kobo Glo I was using for testing. The sheer slowness of zopfli which took 80 times longer to compress the files for a ~5% size savings was also noticed but not a real issue since the compression is basically a one time occurrence.
|
01-23-2024, 10:02 PM | #25 |
temp. out of service
Posts: 2,794
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
I had working epub on even so small and old reader as an bebook mini so memsize isn't your problem; either is decomp speed ;the problem is that zopfli based tools as I tested them, don't allow to add unshrinked files to the archive (meta.inf in epubs) thus you can't CREATE epubs with zopfli tools. you have to take a traditionally created zip or other file containing deflate stringsand reshrink it with: advzip -z -4 -i 1000 $name.epub.
this operates only with the deflated sections WITHIN a file leaving the rest of a file (ANY file) untouched, and then all works fine. Last edited by Freeshadow; 01-23-2024 at 10:04 PM. |
01-23-2024, 10:30 PM | #26 | |
Bibliophagist
Posts: 37,165
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for your command line, what is it intended to do? Advzip last time I looked used 7-Zip's implementation of deflate while using zopfli by changing the executable name to zopfli and removing the space between the -i and the 1000 generates a .gz archive containing the epub by default while for my test epub which is 44,060,303 bytes, the epub.gz file came out as 44,005,894 for a massive 53KB size savings. |
|
01-23-2024, 11:56 PM | #27 |
Evangelist
Posts: 485
Karma: 2267928
Join Date: Nov 2015
Device: none
|
The Deflate algorithm uses almost no memory. It is impossible not to decode a valid deflate stream due to lack of memory.
|
01-24-2024, 12:45 AM | #28 |
Bibliophagist
Posts: 37,165
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I didn't dig that far into the memory use though I did notice that 7-Zip for one, does say that deflate would only need 2MB of memory. The error message I saw when using telnet was supposedly a lack of free memory error (telnet to the Glo and trigger a manual unzip operation) and since using the standard compression levels worked, I never dug further.
|
01-24-2024, 07:24 AM | #29 | |
temp. out of service
Posts: 2,794
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
-4, --shrink-insane
Set the compression level to "insane" using the zopfli compressor. You can define the compressor iterations with the -i, --iter option. -i, --iter N(umber of) and NOT -N the 7-Zip LZMA algorithm is available with the -N option don't use the -N option then you get no lzma and DON'T use it for creating with advzip -a OR --add because this will lead to said problems with meta.inf being shrinked too. use ONLY advzip -z OR --recompress +the options I gave you with an already zipped! epub. Quote:
Again: don't use advzip for creating epub for said need having meta.inf remain unshrinked, don't use the -N option. Rezip only. Reading as in RTFM https://www.advancemame.it/doc-advzip |
|
01-24-2024, 03:32 PM | #30 | |
Bibliophagist
Posts: 37,165
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.cbz and PW1 | Roker2 | Kindle Developer's Corner | 2 | 02-28-2018 03:24 PM |
CBZ to Mobi Question | inkyichi | Conversion | 0 | 12-22-2011 02:51 AM |
Question Regarding Resizing of CBR/CBZ Files? | ThomasMcKean | Other formats | 3 | 09-03-2010 07:15 AM |
CBZ help | starbreeze89 | Calibre | 1 | 08-13-2010 11:41 AM |
CBZ to EPUB | starbreeze89 | Calibre | 2 | 08-08-2010 08:44 AM |