Module: EPUB::MediaType

Defined in:
lib/epub/constants.rb

Defined Under Namespace

Classes: UnsupportedMediaType

Constant Summary collapse

EPUB =
'application/epub+zip'
ROOTFILE =
'application/oebps-package+xml'
IMAGE =
%w[
  image/gif
  image/jpeg
  image/png
  image/svg+xml
]
APPLICATION =
%w[
  application/xhtml+xml
  application/x-dtbncx+xml
  application/vnd.ms-opentype
  application/font-woff
  application/smil+xml
  application/pls+xml
]
AUDIO =
%w[
  audio/mpeg
  audio/mp4
]
TEXT =
%w[
  text/css
  text/javascript
]
CORE =
IMAGE + APPLICATION + AUDIO + TEXT