{
  "@context": [
    "http://www.w3.org/ns/csvw",
    {
      "@language": "en-GB"
    }
  ],
  "dc:title": "Paper dimensions and portrait fit scales",
  "dc:description": "Typed metadata for the existing nine-format dimensions and 81-pair fit-scale CSVs. Numerical results are derived from nominal dimensions; no printer allowances are included.",
  "tables": [
    {
      "url": "https://paper-and-scale.com/data/paper-dimensions.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "name",
            "titles": [
              "name",
              "Format"
            ],
            "datatype": "string",
            "required": true,
            "dc:description": "Published nominal paper format name."
          },
          {
            "name": "width_mm",
            "titles": [
              "width_mm",
              "Width (mm)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Nominal portrait width in millimetres."
          },
          {
            "name": "height_mm",
            "titles": [
              "height_mm",
              "Height (mm)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Nominal portrait height in millimetres."
          },
          {
            "name": "width_in",
            "titles": [
              "width_in",
              "Width (in)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Width divided by exactly 25.4, rounded to six decimal places."
          },
          {
            "name": "height_in",
            "titles": [
              "height_in",
              "Height (in)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Height divided by exactly 25.4, rounded to six decimal places."
          },
          {
            "name": "area_m2",
            "titles": [
              "area_m2",
              "Area (m²)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Nominal rectangular area in square metres, rounded to eight decimal places."
          },
          {
            "name": "mass_80gsm_g",
            "titles": [
              "mass_80gsm_g",
              "Mass at 80 gsm (g)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "Calculated nominal sheet mass at 80 grams per square metre; excludes ink, packaging and stock variation."
          },
          {
            "name": "width_300ppi_px",
            "titles": [
              "width_300ppi_px",
              "Width at 300 PPI (px)"
            ],
            "datatype": "integer",
            "required": true,
            "dc:description": "Physical width in inches multiplied by 300 and rounded to a whole pixel."
          },
          {
            "name": "height_300ppi_px",
            "titles": [
              "height_300ppi_px",
              "Height at 300 PPI (px)"
            ],
            "datatype": "integer",
            "required": true,
            "dc:description": "Physical height in inches multiplied by 300 and rounded to a whole pixel."
          }
        ],
        "primaryKey": "name",
        "rowTitles": "name"
      }
    },
    {
      "url": "https://paper-and-scale.com/data/print-scale-matrix.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "from",
            "titles": [
              "from",
              "Source format"
            ],
            "datatype": "string",
            "required": true,
            "dc:description": "Source portrait paper format; references the dimensions table name."
          },
          {
            "name": "to",
            "titles": [
              "to",
              "Destination format"
            ],
            "datatype": "string",
            "required": true,
            "dc:description": "Destination portrait paper format; references the dimensions table name."
          },
          {
            "name": "fit_percent",
            "titles": [
              "fit_percent",
              "Fit (%)"
            ],
            "datatype": "decimal",
            "required": true,
            "dc:description": "100 × min(destination width/source width, destination height/source height), rounded to six decimal places."
          },
          {
            "name": "orientation",
            "titles": [
              "orientation",
              "Orientation"
            ],
            "datatype": "string",
            "required": true,
            "dc:description": "Portrait source and destination; no artwork rotation is tested."
          },
          {
            "name": "printer_margins_included",
            "titles": [
              "printer_margins_included",
              "Printer margins included"
            ],
            "datatype": "boolean",
            "required": true,
            "dc:description": "False: this is a fit within nominal sheet dimensions, without printer margins or production allowances."
          }
        ],
        "primaryKey": [
          "from",
          "to"
        ],
        "rowTitles": [
          "from",
          "to"
        ],
        "foreignKeys": [
          {
            "columnReference": "from",
            "reference": {
              "resource": "https://paper-and-scale.com/data/paper-dimensions.csv",
              "columnReference": "name"
            }
          },
          {
            "columnReference": "to",
            "reference": {
              "resource": "https://paper-and-scale.com/data/paper-dimensions.csv",
              "columnReference": "name"
            }
          }
        ]
      }
    }
  ]
}
