|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#61 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 245
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
epubsana 0.30.0 is out today. It also brings 0.29.0, from earlier today, which I did not post about separately.
https://github.com/veripublica/epubs...es/tag/v0.30.0 As before: your original file is never modified, and the repaired copy is written beside it. Every fix is shown to you before it is made, and the run ends with a report of exactly what changed. The browser version needs no install and uploads nothing: https://veripublica.github.io/epubsana/ Most of what is new came from books that epublift had upgraded from EPUB 2 to EPUB 3. Each one is also a defect a book can carry without any upgrade. Named characters that stopped a file from opening A file that uses a named character such as emsp, thinsp, rarr or a Greek letter, without a DTD that declares it, cannot be read by a reading system that reads the file as XML. epubsana replaced these names with the characters they stand for, but it only knew 117 of them. It now knows every name the XHTML 1.x DTDs declare, so the em space and its relatives are repaired too. A name outside that set is still left alone. Files declared as HTML Some books declare a chapter as text/html in the manifest when the file is really XHTML. In EPUB 2 that is a warning. In EPUB 3 it is an error, and the chapter is in the reading order with nothing to fall back on. epubsana now declares such a file application/xhtml+xml, but only after checking that the file reads as XML with an XHTML html root. A file that is real HTML is left alone, because it needs converting, not relabelling. The file itself is not changed. One thing to expect: the report can end with more errors than it started with. epubveri never fully checks a file declared text/html. In EPUB 3 it does not open the file at all, and in EPUB 2 it does not check the file's ids. Once the declaration is right, the file is checked for the first time, and whatever was wrong in it all along shows up. epubsana says so at the end of the run. Run it again on the repaired copy to repair what it can; for example, an empty title it found in a chapter it could not read before. A script that points at nothing Some books carry a script element whose file is not in the book. In my library it is always Kobo's kobo.js. epubsana now offers to delete the element, and to remove the scripted declaration from the manifest if nothing else in the file needs it. It asks first, and here is why: I do not know whether a Kobo device supplies its own kobo.js to a book that names it. If you know, I would like to hear it. A script element with code inside, or one whose file is in the book under another path, is left alone. Smaller repairs
For plugin authors New fix_ids: fix.content_url_spaces (AutoSafe, so --auto-safe applies it), fix.html_media_type and fix.missing_script (both ConfirmNeeded, so they are always asked). The EPUB 3 anchor and Dublin Core repairs keep their old fix_ids, fix.nested_anchor and fix.empty_metadata_element. For anyone using the Rust crate directly: entities::TABLE is gone, and entities::lookup now returns a char. The ask Same as always. epubsana checks its own repairs with epubveri, so it cannot see damage epubveri cannot see. If a repair leaves one of your books worse, please tell me here. The same goes for a book that is still reported valid when epubcheck disagrees. Command-line binaries for Windows, macOS and Linux are on the releases page. https://crates.io/crates/epubsana https://www.npmjs.com/package/@verip.../epubsana-wasm |
|
|
|
|
|
#62 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,361
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.cross-plus-a.com/btext.htm TTS Reader by Librera (Android) EPUBReader + Read Aloud (for Chrome/Edge/Firefox) Thorium Reader (Windows) |
|
|
|
|
![]() |
| Tags |
| epub, epub2, epub3, epubsana, epubveri |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Editor Plugin] EpubCheck | Doitsu | Plugins | 236 | Today 07:04 PM |
| squashed images in Editor/Tools/Reports after search | rjwse@aol.com | Calibre | 1 | 12-18-2019 12:00 PM |
| Possible bug in editor (reports) | ratanplan | Editor | 2 | 02-18-2015 06:22 AM |
| Reports of 3.1 being pushed out for automatic upgrade | Tiersten | Amazon Kindle | 33 | 02-20-2011 10:37 AM |
| Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |