Sha256: 0d89dafcb37804fc61f3c5bf9e0b8fcbfd6f081b99c67ba8321676c6204b7a26

Contents?: true

Size: 1.9 KB

Versions: 3

Compression:

Stored size: 1.9 KB

Contents

module Mork
  # this is the default grid!
  DGRID = {
    # default units are millimiters
    page_size: {
      # this is A4
      width:       210,
      height:      297
    }, # page end
    regmarks: {
      margin:  10,
      radius:  2.5,
      search:  10,
      offset:   2
    }, # regmarks end
    header: {
      name: {
        top:        5,
        left:        7.5,
        width:     170,
        size:       14,
      },
      title: {
        top:        15,
        left:       7.5,
        width:    180,
        size:      12
      },
      code: {
        top:         5,
        left:      165,
        width:      20,
        size:       14
      },
      signature: {
        top:        30,
        left:      7.5,
        width:     120,
        height:     15,
        size:        7,
        box:      true,
      }
    }, # header end
    items: {
      columns:       4, 
      column_width: 49,
      rows:         30,
      # from the top-left registration mark
      # to the center of the first choice cell
      first_x:      10.5,
      first_y:      55.5,
      # between choices
      x_spacing:     7.0,
      # between rows
      y_spacing:     7.0,
      # darkened area
      cell_width:    6.0,
      cell_height:   5.0,
      # the maximum number of choices per question
      max_cells:      5,
      # font size for the question number
      number_size:   10,
      # distance between right side of q num and left side of first choice cell
      number_width:   8,
      # width of question number text box
      number_margin:  2,
      # font size for the choice letter
      letter_size:    8
    }, # items end
    code: {
      bits:    40,
      left:     15,
      width:    3.0,
      height:   2.5,
      spacing:  4
    }, # code end
    control: {
      top:       40,
      left:     123,
      width:     50,
      size:       9,
      margin:     2.5
    } # control end
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mork-0.0.9 lib/mork/grid_const.rb
mork-0.0.8 lib/mork/grid_const.rb
mork-0.0.7 lib/mork/grid_const.rb