chdorner / epubinfo Goto Github PK
View Code? Open in Web Editor NEWExtracts metadata information from EPUB files. Supports EPUB2 and EPUB3 formats.
Home Page: http://github.com/chdorner/epubinfo
License: MIT License
Extracts metadata information from EPUB files. Supports EPUB2 and EPUB3 formats.
Home Page: http://github.com/chdorner/epubinfo
License: MIT License
We have a couple of Epubs that have dots in the cover image item ID, e.g.
<item id="cover.image" properties="cover.image" href="orm_front_cover.jpg" media-type="image/jpeg"/>
It fails to load the cover image file, because Nokogiri blows up when you try to get the item:
manifest.css("item [id = cover.image]")
We tried escaping the CSS selector, but that rendered no results instead of blowing up.
Nokogiri 1.6.4 / 2014-11-04 release announcement mentions this fix:
Since this fix, cover parsing fails in /models/cover.rb.
Spaces should be removed in CSS attribute selectors in epub_cover_item method (lines 78 and 82 to 85).
Ex:
manifest.css("item [id = \"#{cover_id}\"]")
should become
manifest.css("item[id = \"#{cover_id}\"]")
I did not see any other impact of this Nokogiri fix in epubinfo.
Thanks.
Some epubs have dc:subject which are subject areas or "tags". I might look into a fork to add this, but it will probably be a while.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.