Sha256: f76b5dfb71e495041a73c25fbfc54c0cfc893053b3dbd1f0f844bd3d54fe9909

Contents?: true

Size: 2 KB

Versions: 3

Compression:

Stored size: 2 KB

Contents

# -*- coding: utf-8 -*-
module ReVIEW
  class Configure < Hash
    def self.values
      Configure[
        # These parameters can be overridden by YAML file.
        "bookname"=> "example", # it defines epub file name also
        "booktitle" => "Re:VIEW Sample Book",
        "title" => nil,
        "aut" => nil, # author
        "prt" => nil, # printer(publisher)
        "asn" => nil, # associated name
        "ant" => nil, # bibliographic antecedent
        "clb" => nil, # Collaborator
        "edt" => nil, # Editor
        "dsr" => nil, # Designer
        "ill" => nil, # Illustrator
        "pht" => nil, # Photographer
        "trl" => nil, # Translator
        "date" => nil, # publishing date
        "rights" => nil, # Copyright messages
        "description" => nil, # Description
        "urnid" => nil, # Identifier (nil makes random uuid)
        "stylesheet" => "stylesheet.css", # stylesheet file
        "coverfile" => nil, # content file of body of cover page
        "mytoc" => nil, # whether make own table of contents or not
        "params" => "", # specify review2html parameters
        "toclevel" => 3, # level of toc
        "secnolevel" => 2, # level of section #
        "epubversion" => 2,
        "titlepage" => true, # Use title page
        "toc" => nil, # Use table of contents in body
        "colophon" => nil, # Use colophon
        "debug" => nil, # debug flag
        "catalogfile" => 'catalog.yml',
        "language" => 'ja', # XXX default language should be JA??

        "chapter_file" => 'CHAPS',
        "part_file"    => 'PART',
        "reject_file"  => 'REJECT',
        "predef_file"  => 'PREDEF',
        "postdef_file" => 'POSTDEF',
        "page_metric"  => ReVIEW::Book::PageMetric.a5,
        "ext"          => '.re',
        "image_dir"    => 'images',
        "image_types"  => %w( .ai .psd .eps .pdf .tif .tiff .png .bmp .jpg .jpeg .gif .svg ),
        "bib_file"     => "bib.re",
        "colophon_order" => %w(aut csl trl dsr ill cov edt pbl contact prt),
      ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
review-1.6.0 lib/review/configure.rb
review-2.0.0.beta1 lib/review/configure.rb
review-1.5.0 lib/review/configure.rb