FlightDeck ePub check errors

Learn / Forums / EPUB and eBook / FlightDeck ePub check errors

Viewing 2 reply threads
  • Author
    Posts
    • #89344

      I’ve used FlightDeck to check an ePub I exported from InDesign. It detected a number of errors I need assistance with. The first is this…

      These files include inline styles.
      * OEBPS/cover.xhtml
      Content and presentation should be separate in EPUB files. Inline styles are difficult to edit easily and are not the best approach. We recommend that you move all of your styles to an external stylesheet.

      Here’s the code from my OEBPS/cover/xhtml file:
      [CODE]<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>
      <!DOCTYPE html>
      <html xmlns=”https://www.w3.org/1999/xhtml&#8221; xmlns:epub=”https://www.idpf.org/2007/ops”&gt;
      <head>
      <title>cover</title>
      </head>
      <body>
      <div style=”text-align:center;” epub:type=”cover”>
      Cover_File.gif
      </div>
      </body>
      </html>[CODE]

      How do I change this code to fix the error listed above. The page should only have an image so I’m not clear why it even has a heading?

      Second error message is also puzzling to me.
      [Beginning of Error message] Text color should not be set to black using CSS, because the text will be unreadable in Night Reading Mode on some devices. This EPUB has the following CSS rules which set text to black. [End of error message]
      The reason this one is confusing is because all the paragraph styles it mentions are not set to black. In fact they are set to registration in the paragraph styles. Therefore it seems indesign is overwriting the styles when it exports to ePub or at least that’s the best I can figure. How can this be corrected?

    • #89585
      Aaron Troia
      Participant

      Hey Gregory,

      First error: I haven’t had any issues with this erring out in ePubCheck nor have I received any complaints about my ePubs throwing errors in iTunes, it might just be an overly cautious part of the FlightDeck script that is catching this, I think you should be fine. I would email FlightDeck directly and bring this up.

      Second error: just remove the “color:#000000” line throughout your CSS. InDesign is probably setting the text to black even though you have the text set to registration.

      Aaron

    • #14337523
      Diane Serpa
      Member

      Can you at least speak to why it sometimes happens and sometimes does not?
      And how to fix it in code?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>