Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-05-2022, 12:41 PM   #1
PenguinClaw
new at making plugins
PenguinClaw began at the beginning.
 
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
PenguinClaw is offline   Reply With Quote
Old 01-05-2022, 01:07 PM   #2
Leseratte_10
Groupie
Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.Leseratte_10 ought to be getting tired of karma fortunes by now.
 
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.
Leseratte_10 is offline   Reply With Quote
Advert
Old 01-05-2022, 02:04 PM   #3
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: 29,892
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)
theducks is offline   Reply With Quote
Old 01-05-2022, 02:11 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,523
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
If you are writing a calibre plugin you can use the standard Python zipfile module.
jhowell is offline   Reply With Quote
Old 01-05-2022, 08:31 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jhowell View Post
If you are writing a calibre plugin you can use the standard Python zipfile module.
Or you can use the calibre libraries and handle the epub as an epub. Depending on what they are actually trying to do, that could be the best thing.

@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.
davidfor is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:15 AM.


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