Menu

Invalid mimetype file according to epubcheck

2013-03-25
2013-03-25
  • Michael Wiedmann

    Hi,

    during testing daps-1.1.5 by creating an example file (daps-init -d
    PATH_TO_DOC_DIR) I tried to validate the resulting EPUB file against
    epub check 3.0 (Online: http://validator.idpf.org/ )

    Besides a bunch of warnings (which I still have to investigate) I get an
    error stating

    "Mimetype file should contain only the string "application/epub+zip"

    IMHO this is due to the fact that the 'mimetype' file inside the EPUB
    contains a trailing linefeed (0x0A). This probably can be omitted by
    changing make/common.mk from

    $(EPUB_TMPDIR)/mimetype: | $(EPUB_TMPDIR)
    @echo "application/epub+zip" > $@

    to

    $(EPUB_TMPDIR)/mimetype: | $(EPUB_TMPDIR)
    @echo -n "application/epub+zip" > $@

    Michael

     
    • Thomas Schraitle

      IMHO this is due to the fact that the 'mimetype' file inside the EPUB contains a trailing linefeed (0x0A). This probably can be omitted by changing make/common.mk

      That's correct. I've fixed that in revision 2826. Many thanks! :-)

       
  • Frank Sundermeyer

    I have also uploaded a new 1.1.5 tarball containing that fix (did not raise the version number since 1.1.5 was not officially announced).

     

Anonymous
Anonymous

Add attachments
Cancel