However, those instructions are for epubcheck up to version 3 and were written when the repository was using Subversion on Google Projects (from which it has moved to GitHub). A few years ago he wrote about the procedure on his blog, with a post entitled, Creating a WAR file for epubcheck. Whilst EpubCheck doesn’t include these, fortunately, Jason Darwin has addressed this very problem. My experience of Java is limited to coding very elementary programs and deploying a few web application archive (.war) files, so realistically I need a web application archive (or sources ready to build). However, a tantalising hint is found in the distribution README file in the source code ( epubcheck/src/main/assembly/README-dist.txt), which mentions "EpubCheck can be run as a standalone command-line tool, installed as a web application or used as a library." (The emphasis is my own.) The project home page indicates, "EpubCheck can be run as a standalone command-line tool or used as a Java library." with the wiki providing some guidance on usage in a variety of contexts, including some GUIs, but no explicit mention of web usage. Previously, I had run this separately at the command line using epubcheck.jar, as made available by the EpubCheck project, but now I needed to set this up as a web application providing a basic web service, which is the main focus of this post.Įpubcheck is a Java application the GitHub repository shows the current release at 4.0.2. As part of the process, the assembled EPUB needs to be validated. Ideally, it will be good enough to publish straightaway. An initial aim is to reach the stage where I can upload a book authored in MS Word (saved as filtered HTML) and use the service to generate a valid EPUB file that I can then manually tweak. I have recently continued work on the automated support with a view to creating a general-purpose web-based system. Whilst manually creating an EPUB file for Thursday’s Lotus, I wrote some PHP code that I wrote for the ‘heavy lifting’, particularly for assembling the final package. war build file) and made his project up-to-date, ready to use with the latest version of epubcheck.jar. I'm very pleased to report that Jason Darwin has merged some small changes I submitted (to the Ant. (10 Sept '17): Epubcheck-web updated on Github
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |