Module: EpubForge::Builder

Defined in:
lib/epubforge/builder/epub.rb,
lib/epubforge/builder/html.rb,
lib/epubforge/builder/builder.rb,
lib/epubforge/builder/assets/font.rb,
lib/epubforge/builder/assets/page.rb,
lib/epubforge/builder/assets/asset.rb,
lib/epubforge/builder/assets/image.rb,
lib/epubforge/builder/assets/stylesheet.rb

Defined Under Namespace

Modules: Assets Classes: Builder, Epub, Html

Constant Summary collapse

PAGE_FILE_EXTENSIONS =
%w(html markdown textile xhtml)
IMAGE_FILE_EXTENSIONS =
%w(jpg png gif)
FONT_FILE_EXTENSION =
%w(ttf otf)
MEDIA_TYPES =
{ "gif" => "image/gif", "jpg" => "image/jpeg", "png" => "image/png",
  "css" => "text/css", "js" => "application/javascript", "pdf" => "application/pdf",
  "txt" => "text/plain", "xhtml" => "application/xhtml+xml",
  "ttf" => "application/x-font-ttf", "otf" => "application/x-font-opentype"
}