01-05-2022, 12:41 PM | #1 |
new at making plugins
Posts: 1
Karma: 10
Join Date: Jan 2022
Device: none
|
how does calibre uncompress files?
to my understanding, compressed files (lets say epub for now) aren't readable until they are uncompressed. However I would like to be able to access the text files that are zipped within the epub to locate where certain bookmarks or other bits are. please assume im at a beginner level at programming
|
01-05-2022, 01:07 PM | #2 |
Groupie
Posts: 182
Karma: 2010542
Join Date: Sep 2021
Device: PB Era, PB InkPad 3 Pro
|
What do you mean with "how does calibre uncompress files"?
EPUB files are plain simple ZIP files. You can rename them to .zip and open them in Windows Explorer. Or with any other program or library that can open ZIP files. |
Advert | |
|
01-05-2022, 02:04 PM | #3 |
Well trained by Cats
Posts: 29,898
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre also includes the U(npack) module. Simply select a book and tap 'U"
(cancel when done to avoid changes being stored) |
01-05-2022, 08:31 PM | #5 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
@PenguinClaw: Without a better idea of what you are doing, we can't give a better answer than this. If you are just curious about how an epub is constructed, use the unpack function or just unpack it with your favourite tool. Or, look at it in the editor. If you are planning to do something where you navigate to a point in the book and make a change or extract something, then you should look at the calibre libraries. And there are examples of doing this in different plugins. |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre renamed my files, kept both, and shows none; then the files disappear | aritza | Library Management | 3 | 04-02-2018 07:46 AM |
Compressed jpg's uncompress on next "edit ebook" | icaros | Calibre | 0 | 02-15-2017 01:31 PM |
Calibre removes files when I add new files | coffee792 | Library Management | 2 | 03-18-2015 07:18 PM |
Uncompress binary (abducted from debian) | icantbebothered | Kindle Developer's Corner | 0 | 10-26-2013 07:06 AM |
will calibre delete my other files if i used it to store the other files? | stanmarsh | Library Management | 4 | 07-31-2012 07:00 AM |