Sha256: 20f71e0ea586e6988cbe1890bad9978f33d34702f36caaedc861cba33df99c65

Contents?: true

Size: 1.08 KB

Versions: 13

Compression:

Stored size: 1.08 KB

Contents

module EPUB
  NAMESPACES = {
    'dc'    => 'http://purl.org/dc/elements/1.1/',
    'ocf'   => 'urn:oasis:names:tc:opendocument:xmlns:container',
    'opf'   => 'http://www.idpf.org/2007/opf',
    'xhtml' => 'http://www.w3.org/1999/xhtml',
    'epub'  => 'http://www.idpf.org/2007/ops',
    'm'     => 'http://www.w3.org/1998/Math/MathML',
    'svg'   => 'http://www.w3.org/2000/svg',
    'smil'  => 'http://www.w3.org/ns/SMIL',
    'metadata' => 'http://www.idpf.org/2013/metadata'
  }

  module MediaType
    class UnsupportedMediaType < StandardError; end

    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
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
epub-parser-0.3.8 lib/epub/constants.rb
epub-parser-0.3.7 lib/epub/constants.rb
epub-parser-0.3.6 lib/epub/constants.rb
epub-parser-0.3.5 lib/epub/constants.rb
epub-parser-0.3.4 lib/epub/constants.rb
epub-parser-0.3.3 lib/epub/constants.rb
epub-parser-0.3.2 lib/epub/constants.rb
epub-parser-0.3.1 lib/epub/constants.rb
epub-parser-0.3.0 lib/epub/constants.rb
epub-parser-0.2.9 lib/epub/constants.rb
epub-parser-0.2.8 lib/epub/constants.rb
epub-parser-0.2.7 lib/epub/constants.rb
epub-parser-0.2.6 lib/epub/constants.rb