Continuing my studying of Papyrix's Epub-loading class there's a variant of the loader which parses only the OPF subfile if uncached.
There's a routine to, given sufficient RAM's available, looks up & decompresses a given chapter back to the SD card so it can convert to XHTML & extract the sections. So its less burdensome to layout.
There's a routine to count the number of section files. There's methods to compute various filepaths to compute various filepaths in the cache.
1/?
There's a method to delete the cache dir, & another to create it. There's various getters.
There's a method to generate a cover-preview file if it didn't already exist, sourcing from an external or ePub-internal image file reformatted to a BMP.
There's a wrapper around the GfxRenderer's to find a cover image file, adding logic to find the basename. And there's a routine which locates or generates a cover-thumbnail file caching results, including partial results & failures.
2/?