{
  "tabelline": "0.2.0",
  "html": "https://pietroppeter.github.io/tabelline/api/",
  "modules": [
    {
      "module": "tabelline/colors",
      "title": "Colours",
      "path": "src/tabelline/colors.nim",
      "doc": "Colours for `dataColor`: hex parsing, palettes, linear interpolation and the text colour that\nreads best on a fill (WCAG relative luminance).",
      "symbols": [
        {
          "name": "Rgb",
          "kind": "type",
          "section": "",
          "signatures": [
            "Rgb = tuple[r, g, b: float]"
          ],
          "doc": "",
          "line": 6,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-Rgb",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isCssColorName",
          "kind": "func",
          "section": "",
          "signatures": [
            "func isCssColorName(name: string): bool"
          ],
          "doc": "One of the 148 colour names of CSS.",
          "line": 52,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-isCssColorName",
          "counterparts": [],
          "example": null
        },
        {
          "name": "rColor",
          "kind": "func",
          "section": "",
          "signatures": [
            "func rColor(name: string): string"
          ],
          "doc": "The hex value of one of R's colour names beyond CSS's, which gt and Great Tables take\n(`sienna4` is \"#8B4726\", `grey50` \"#7F7F7F\"); \"\" for any other text.",
          "line": 57,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-rColor",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cssColor",
          "kind": "func",
          "section": "",
          "signatures": [
            "func cssColor(c: string): string"
          ],
          "doc": "A colour as CSS reads it: one of R's names becomes its hex value, anything else (a hex\nvalue, a CSS name, `var(--x)`) is left as it is.",
          "line": 66,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-cssColor",
          "counterparts": [],
          "example": null
        },
        {
          "name": "parseColor",
          "kind": "func",
          "section": "",
          "signatures": [
            "func parseColor(c: string): Rgb"
          ],
          "doc": "`#rgb`, `#rrggbb`, any of the 148 CSS colour names (`darkgreen`, `rebeccapurple`) or of R's\n(`sienna4`, `grey50`).",
          "line": 72,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-parseColor",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toHex",
          "kind": "func",
          "section": "",
          "signatures": [
            "func toHex(c: Rgb): string"
          ],
          "doc": "",
          "line": 84,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-toHex",
          "counterparts": [],
          "example": null
        },
        {
          "name": "mix",
          "kind": "func",
          "section": "",
          "signatures": [
            "func mix(a, b: Rgb; t: float): Rgb"
          ],
          "doc": "",
          "line": 87,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-mix",
          "counterparts": [],
          "example": null
        },
        {
          "name": "interpolate",
          "kind": "func",
          "section": "",
          "signatures": [
            "func interpolate(palette: openArray[string]; t: float): string"
          ],
          "doc": "The colour at `t` in 0..1 along a palette of evenly spaced stops.",
          "line": 90,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-interpolate",
          "counterparts": [],
          "example": null
        },
        {
          "name": "luminance",
          "kind": "func",
          "section": "",
          "signatures": [
            "func luminance(c: Rgb): float"
          ],
          "doc": "",
          "line": 98,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-luminance",
          "counterparts": [],
          "example": null
        },
        {
          "name": "contrast",
          "kind": "func",
          "section": "",
          "signatures": [
            "func contrast(a, b: Rgb): float"
          ],
          "doc": "",
          "line": 104,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-contrast",
          "counterparts": [],
          "example": null
        },
        {
          "name": "idealTextColor",
          "kind": "func",
          "section": "",
          "signatures": [
            "func idealTextColor(fill: string; dark = \"#1a1a1a\"; light = \"#FFFFFF\"): string"
          ],
          "doc": "Dark or light text, whichever contrasts more with `fill`.",
          "line": 108,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-idealTextColor",
          "counterparts": [],
          "example": null
        },
        {
          "name": "palettes",
          "kind": "const",
          "section": "",
          "signatures": [
            "palettes = (data: [(0, \"\", []), (0, \"\", []), (0, \"\", []), (0, \"\", []),\n                   (0, \"\", []), (0, \"\", []), (0, \"\", []), (0, \"\", []), (\n    8053033860643646504, \"rdylgn\",\n    [\"#D73027\", \"#FC8D59\", \"#FEE08B\", \"#D9EF8B\", \"#91CF60\", \"#1A9850\"]),\n                   (0, \"\", []), (0, \"\", []), (0, \"\", []), (-8928340921496638260,\n    \"quaderno\", [\"#FFFFFF\", \"#DCEBFA\", \"#A9CCF0\", \"#6FA3DB\", \"#3C6FB6\"]), (\n    1723379612904976973, \"rdbu\",\n    [\"#2166AC\", \"#92C5DE\", \"#F7F7F7\", \"#F4A582\", \"#B2182B\"]), (0, \"\", []),\n                   (0, \"\", []), (134456633375568208, \"greens\", [\"#F7FCF5\",\n    \"#C7E9C0\", \"#74C476\", \"#238B45\", \"#00441B\"]), (-6731458568632991919, \"reds\",\n    [\"#FFF5F0\", \"#FCBBA1\", \"#FB6A4A\", \"#CB181D\", \"#67000D\"]), (0, \"\", []),\n                   (0, \"\", []), (0, \"\", []), (0, \"\", []), (0, \"\", []), (\n    -5639196860620556009, \"great-tables\", [\"#000000\", \"#DF536B\", \"#61D04F\",\n    \"#2297E6\", \"#28E2E5\", \"#CD0BBC\", \"#F5C710\", \"#9E9E9E\"]), (0, \"\", []),\n                   (0, \"\", []), (2460717392810645242, \"blues\", [\"#F7FBFF\",\n    \"#C6DBEF\", \"#6BAED6\", \"#2171B5\", \"#08306B\"]), (5823032332022599610,\n    \"matite\", [\"#E63946\", \"#F4A261\", \"#E9C46A\", \"#2A9D8F\", \"#457B9D\", \"#8E7DBE\"]),\n                   (0, \"\", []), (1203107158067285821, \"viridis\", [\"#440154\",\n    \"#3B528B\", \"#21908C\", \"#5DC963\", \"#FDE725\"]), (0, \"\", []), (\n    2396891131824504447, \"pastelli\", [\"#FFF3B0\", \"#FFD6A5\", \"#FFADAD\",\n                                      \"#E4C1F9\", \"#A0C4FF\", \"#9BF6FF\", \"#CAFFBF\"])],\n            counter: 10)"
          ],
          "doc": "",
          "line": 113,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-palettes",
          "counterparts": [],
          "example": null
        },
        {
          "name": "palette",
          "kind": "func",
          "section": "",
          "signatures": [
            "func palette(name: string): seq[string]"
          ],
          "doc": "A named palette (see `palettes`), or a comma-separated list of colours.",
          "line": 127,
          "url": "https://pietroppeter.github.io/tabelline/api/#colors-palette",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/core",
      "title": "Data, text and selectors",
      "path": "src/tabelline/core.nim",
      "doc": "The data model of tabelline.\n\nTwo layers, like gt and Great Tables:\n\n- the **table data** (`TableData`): named columns of `Value`s, read once and never changed;\n- the **table spec** (`Tabella`): everything said about how to show that data, the parts of the\n  table (header, stub, spanners, column labels, body, footer), the formats, the styles and the\n  options. Every verb (`tabHeader`, `fmtNumber`, ...) takes a `Tabella` and returns a new one,\n  and nothing is computed for display until the table is rendered.\n\nThe data is a `ref`, so copying a `Tabella` (as every verb does, or moves with `sink`) copies only\nthe spec, never the data.",
      "symbols": [
        {
          "name": "ValueKind",
          "kind": "type",
          "section": "values",
          "signatures": [
            "ValueKind = enum\n  vkNull, vkBool, vkInt, vkFloat, vkString, vkList, vkRecord"
          ],
          "doc": "",
          "line": 23,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ValueKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Value",
          "kind": "type",
          "section": "values",
          "signatures": [
            "Value = object\n  case kind*: ValueKind\n  of vkNull:\n    nil\n  of vkBool:\n    b*: bool\n  of vkInt:\n    i*: int\n  of vkFloat:\n    f*: float\n  of vkString:\n    s*: string\n  of vkList:\n    items*: seq[Value]\n  of vkRecord:\n    fields*: seq[(string, Value)]"
          ],
          "doc": "One cell of the table data. `vkNull` is a missing value. A cell can hold more than one\nvalue: a list (`@[1, 4, 2]`) or a record (`(x: 1, y: 2)`), with fields in order.",
          "line": 26,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Value",
          "counterparts": [],
          "example": null
        },
        {
          "name": "null",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func null(): Value"
          ],
          "doc": "",
          "line": 38,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-null",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toValue",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func toValue(v: Value): Value",
            "func toValue(x: bool): Value",
            "func toValue(x: SomeInteger): Value",
            "func toValue(x: SomeFloat): Value",
            "func toValue(x: string): Value",
            "func toValue(x: char): Value",
            "func toValue(x: enum): Value",
            "func toValue[T](x: Option[T]): Value",
            "func toValue(x: typeof(nil)): Value",
            "func toValue[T](x: seq[T]): Value",
            "func toValue[I, T](x: array[I, T]): Value",
            "func toValue[T: object | tuple](x: T): Value"
          ],
          "doc": "A seq is a list: `toValue(@[1, 4, 2])`.",
          "line": 39,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toValue",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsAdd \"moons per Earth mass\", proc (r: Row): Value = toValue(r.moons.toFloat / r.mass.toFloat * 5.97)\n  fmtNumber \"moons per Earth mass\", decimals = 1\necho t",
            "prints": "┌─────────┬──────────────────────┐\n│         │ moons per Earth mass │\n╞═════════╪══════════════════════╡\n│ Mercury │                  0.0 │\n│ Venus   │                  0.0 │\n│ Earth   │                  1.0 │\n│ Mars    │                 18.6 │\n│ Jupiter │                  0.3 │\n│ Saturn  │                  1.5 │\n│ Uranus  │                  1.9 │\n│ Neptune │                  0.9 │\n└─────────┴──────────────────────┘"
          }
        },
        {
          "name": "list",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func list(items: varargs[Value, toValue]): Value"
          ],
          "doc": "A list of values in one cell: `list(1, 4, 2)`.",
          "line": 50,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-list",
          "counterparts": [],
          "example": null
        },
        {
          "name": "record",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func record(fields: openArray[(string, Value)]): Value"
          ],
          "doc": "A record in one cell, its fields in order: `record({\"x\": toValue(1), \"y\": toValue(2)})`.",
          "line": 53,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-record",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isNull",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func isNull(v: Value): bool"
          ],
          "doc": "",
          "line": 69,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isNull",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isNumber",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func isNumber(v: Value): bool"
          ],
          "doc": "",
          "line": 70,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isNumber",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isList",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func isList(v: Value): bool"
          ],
          "doc": "",
          "line": 71,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isList",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isRecord",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func isRecord(v: Value): bool"
          ],
          "doc": "",
          "line": 72,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isRecord",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toFloat",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func toFloat(v: Value): float"
          ],
          "doc": "The value as a float; NaN for anything else that is not a number. Raises `ValueError` for a\nlist or a record: they hold several values.",
          "line": 74,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toFloat",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsAdd \"moons per Earth mass\", proc (r: Row): Value = toValue(r.moons.toFloat / r.mass.toFloat * 5.97)\n  fmtNumber \"moons per Earth mass\", decimals = 1\necho t",
            "prints": "┌─────────┬──────────────────────┐\n│         │ moons per Earth mass │\n╞═════════╪══════════════════════╡\n│ Mercury │                  0.0 │\n│ Venus   │                  0.0 │\n│ Earth   │                  1.0 │\n│ Mars    │                 18.6 │\n│ Jupiter │                  0.3 │\n│ Saturn  │                  1.5 │\n│ Uranus  │                  1.9 │\n│ Neptune │                  0.9 │\n└─────────┴──────────────────────┘"
          }
        },
        {
          "name": "len",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func len(v: Value): int"
          ],
          "doc": "The number of items of a list or fields of a record; 0 for any other value.",
          "line": 84,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-len",
          "counterparts": [],
          "example": null
        },
        {
          "name": "[]",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func `[]`(v: Value; i: int): Value",
            "func `[]`(v: Value; name: string): Value",
            "func `[]`(d: TableData; name: string): lent Column",
            "func `[]`(d: TableData; name: string; row: int): Value",
            "func `[]`(r: Row; name: string): Value"
          ],
          "doc": "An item of a list: `v[0]`. Raises `IndexDefect` beyond its end, `ValueError` for a value\nthat is not a list.",
          "line": 91,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op5B5D",
          "counterparts": [],
          "example": null
        },
        {
          "name": "contains",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func contains(v: Value; name: string): bool"
          ],
          "doc": "Whether a record has a field `name`: `\"x\" in v`.",
          "line": 97,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-contains",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let dir = getTempDir()\nwriteFile(dir / \"dot.svg\", \"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'><circle cx='1' cy='1' r='1'/></svg>\")\nlet d = tableData:\n  pic: [\"dot\"]\nlet t = tabella(d):\n  fmtImage \"pic\", path = dir, filePattern = \"{x}.svg\"\necho t\necho t.toHtml.contains(\"<img src=\\\"data:image/svg+xml;base64,\")",
            "prints": "┌─────┐\n│ pic │\n╞═════╡\n│ dot │\n└─────┘\ntrue"
          }
        },
        {
          "name": ".",
          "kind": "template",
          "section": "values",
          "signatures": [
            "template `.`(v: Value; field: untyped): Value",
            "template `.`(r: Row; field: untyped): Value"
          ],
          "doc": "A field of a record by its name: `v.x` is `v[\"x\"]`. A name that Value already has (`kind`,\n`i`, `f`, `s`, `b`, `items`, `fields`, `len`, ...) is that, not the field: write `v[\"kind\"]`.",
          "line": 112,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op2E",
          "counterparts": [],
          "example": null
        },
        {
          "name": "$",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func `$`(v: Value): string"
          ],
          "doc": "",
          "line": 117,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op24",
          "counterparts": [],
          "example": null
        },
        {
          "name": "==",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func `==`(a, b: Value): bool",
            "func `==`(a: Value; b: SomeNumber): bool",
            "func `==`(a: Value; b: string): bool",
            "func `==`(a: Value; b: bool): bool"
          ],
          "doc": "",
          "line": 137,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op3D3D",
          "counterparts": [],
          "example": null
        },
        {
          "name": "<",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func `<`(a: Value; b: SomeNumber): bool",
            "func `<`(a: SomeNumber; b: Value): bool",
            "func `<`(a: Value; b: string): bool",
            "func `<`(a, b: Value): bool"
          ],
          "doc": "Numbers and texts in order; lists item by item, as words are; anything else is not ordered.",
          "line": 154,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op3C",
          "counterparts": [],
          "example": null
        },
        {
          "name": "<=",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func `<=`(a: Value; b: SomeNumber): bool",
            "func `<=`(a: SomeNumber; b: Value): bool"
          ],
          "doc": "",
          "line": 156,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op3C3D",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cellNames",
          "kind": "func",
          "section": "values",
          "signatures": [
            "func cellNames(v: Value): seq[string]"
          ],
          "doc": "The names in a cell, for verbs that take several (icons, images, flags): the items of a\nlist, or the parts of a text separated by commas.",
          "line": 170,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-cellNames",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Column",
          "kind": "type",
          "section": "data",
          "signatures": [
            "Column = object\n  name*: string\n  values*: seq[Value]"
          ],
          "doc": "",
          "line": 184,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Column",
          "counterparts": [],
          "example": null
        },
        {
          "name": "TableData",
          "kind": "type",
          "section": "data",
          "signatures": [
            "TableData = ref object\n  columns*: seq[Column]"
          ],
          "doc": "Named columns of equal length. Built once (from rows, columns or CSV) and only read.",
          "line": 188,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-TableData",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nrows",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func nrows(d: TableData): int"
          ],
          "doc": "",
          "line": 192,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-nrows",
          "counterparts": [],
          "example": {
            "spec": "table-data",
            "code": "echo tabella(tavolaPitagorica(4), rownameCol = \"×\")\necho isole().nrows, \" islands, \", citta().nrows, \" cities; the largest: \", isole()[\"island\", 0], \", \", citta()[\"city\", 0]",
            "prints": "┌───┬───┬───┬────┬────┐\n│   │ 1 │ 2 │  3 │  4 │\n╞═══╪═══╪═══╪════╪════╡\n│ 1 │ 1 │ 2 │  3 │  4 │\n│ 2 │ 2 │ 4 │  6 │  8 │\n│ 3 │ 3 │ 6 │  9 │ 12 │\n│ 4 │ 4 │ 8 │ 12 │ 16 │\n└───┴───┴───┴────┴────┘\n194 islands, 95 cities; the largest: Sicily, Berlin"
          }
        },
        {
          "name": "ncols",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func ncols(d: TableData): int"
          ],
          "doc": "",
          "line": 193,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ncols",
          "counterparts": [],
          "example": null
        },
        {
          "name": "names",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func names(d: TableData): seq[string]"
          ],
          "doc": "",
          "line": 194,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-names",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  codes: [\"IT\", \"jpn\", \"FR, DE\", \"XX\"]\nlet t = tabella(d):\n  colsAdd \"names\", d[\"codes\"].values\n  fmtCountry \"names\"\necho t",
            "prints": "┌────────┬─────────────────┐\n│ codes  │ names           │\n╞════════╪═════════════════╡\n│ IT     │ Italy           │\n│ jpn    │ Japan           │\n│ FR, DE │ France, Germany │\n│ XX     │ XX              │\n└────────┴─────────────────┘"
          }
        },
        {
          "name": "colIndex",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func colIndex(d: TableData; name: string): int"
          ],
          "doc": "",
          "line": 196,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-colIndex",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasColumn",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func hasColumn(d: TableData; name: string): bool"
          ],
          "doc": "",
          "line": 201,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-hasColumn",
          "counterparts": [],
          "example": null
        },
        {
          "name": "kindOf",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func kindOf(c: Column): ValueKind"
          ],
          "doc": "The kind of a column: the kind of its non-missing values (vkFloat when ints and floats mix).",
          "line": 210,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-kindOf",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isNumeric",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func isNumeric(c: Column): bool"
          ],
          "doc": "",
          "line": 220,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isNumeric",
          "counterparts": [],
          "example": null
        },
        {
          "name": "addColumn",
          "kind": "proc",
          "section": "data",
          "signatures": [
            "proc addColumn(d: TableData; name: string; values: seq[Value])"
          ],
          "doc": "",
          "line": 222,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-addColumn",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toTableData",
          "kind": "proc",
          "section": "data",
          "signatures": [
            "proc toTableData[T: object | tuple](rows: openArray[T]): TableData",
            "proc toTableData(columns: openArray[(string, seq[Value])]): TableData"
          ],
          "doc": "Rows as Nim objects or named tuples, one field per column:\n`toTableData(@[(name: \"Mercury\", moons: 0), (name: \"Earth\", moons: 1)])`.",
          "line": 229,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toTableData",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toValues",
          "kind": "func",
          "section": "data",
          "signatures": [
            "func toValues[T](xs: openArray[T]): seq[Value]"
          ],
          "doc": "",
          "line": 252,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toValues",
          "counterparts": [],
          "example": null
        },
        {
          "name": "parseCsv",
          "kind": "proc",
          "section": "data",
          "signatures": [
            "proc parseCsv(text: string; sep = ','; comment = \"\"): TableData"
          ],
          "doc": "A CSV text with a header line. Each value is read as an int, a float, a bool, a missing value\n(empty, NA) or else a string; a column mixing ints and floats is a float column. A column\nwith a number written with a zero in front (`\"0400\"`, a code) stays text, as written. With a\n`comment` such as `\"#\"`, a line that starts with it (after any spaces) is skipped, so a file\ncan say where its data comes from.",
          "line": 291,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-parseCsv",
          "counterparts": [],
          "example": {
            "spec": "table-data",
            "code": "type Pupil = object\n  name: string\n  stars: int\necho tabella(@[Pupil(name: \"Ada\", stars: 3), Pupil(name: \"Bruno\", stars: 1)])\nlet d = tableData:\n  subject: [\"maths\", \"art\"]\n  mark: [9, nil]\necho tabella(d)\nlet tavola = tableData:\n  `×`: collect(for i in 1 .. 3: i)\n  for j in 1 .. 3:\n    $j: collect(for i in 1 .. 3: i * j)\necho tabella(tavola, rownameCol = \"×\")\necho tabella(parseCsv(\"# from a notebook\\na,b\\n1,2.5\\n2,3\\n\", comment = \"#\"))",
            "prints": "┌───────┬───────┐\n│ name  │ stars │\n╞═══════╪═══════╡\n│ Ada   │     3 │\n│ Bruno │     1 │\n└───────┴───────┘\n┌─────────┬──────┐\n│ subject │ mark │\n╞═════════╪══════╡\n│ maths   │    9 │\n│ art     │      │\n└─────────┴──────┘\n┌───┬───┬───┬───┐\n│   │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\n┌───┬─────┐\n│ a │   b │\n╞═══╪═════╡\n│ 1 │ 2.5 │\n│ 2 │ 3.0 │\n└───┴─────┘"
          }
        },
        {
          "name": "readCsv",
          "kind": "proc",
          "section": "data",
          "signatures": [
            "proc readCsv(path: string; sep = ','; comment = \"\"): TableData"
          ],
          "doc": "`parseCsv` of a file.",
          "line": 324,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-readCsv",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Row",
          "kind": "type",
          "section": "data",
          "signatures": [
            "Row = object\n  data*: TableData\n  index*: int"
          ],
          "doc": "One row of the data, as seen by a row predicate (`where`): `it.mass`, `it.index`.",
          "line": 328,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Row",
          "counterparts": [],
          "example": null
        },
        {
          "name": "TextKind",
          "kind": "type",
          "section": "text",
          "signatures": [
            "TextKind = enum\n  tkPlain, tkMarkdown, tkHtml"
          ],
          "doc": "",
          "line": 343,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-TextKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Text",
          "kind": "type",
          "section": "text",
          "signatures": [
            "Text = object\n  kind*: TextKind\n  s*: string"
          ],
          "doc": "A label or note: plain text (escaped when rendered), Markdown, or raw HTML.",
          "line": 345,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Text",
          "counterparts": [],
          "example": null
        },
        {
          "name": "md",
          "kind": "func",
          "section": "text",
          "signatures": [
            "func md(s: string): Text"
          ],
          "doc": "Markdown text, for labels and notes: `md(\"**Mass** (10^24^ kg)\")`.",
          "line": 350,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-md",
          "counterparts": [
            {
              "in": "gt",
              "name": "md()"
            },
            {
              "in": "Great Tables",
              "name": "md()"
            }
          ],
          "example": null
        },
        {
          "name": "html",
          "kind": "func",
          "section": "text",
          "signatures": [
            "func html(s: string): Text"
          ],
          "doc": "Raw HTML text, used as is.",
          "line": 352,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-html",
          "counterparts": [
            {
              "in": "gt",
              "name": "html()"
            },
            {
              "in": "Great Tables",
              "name": "html()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(2)):\n  tabHeader md(\"The **times** table\"), html(\"of <span style=\\\"color: red\\\">two</span>\")\necho \"<strong>times</strong>\" in t.toHtml, \" \", \"<span style=\\\"color: red\\\">two</span>\" in t.toHtml\necho t",
            "prints": "true true\nThe times table\n   of two\n┌───┬───┬───┐\n│ × │ 1 │ 2 │\n╞═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │\n│ 2 │ 2 │ 4 │\n└───┴───┴───┘"
          }
        },
        {
          "name": "toText",
          "kind": "converter",
          "section": "text",
          "signatures": [
            "converter toText(s: string): Text"
          ],
          "doc": "",
          "line": 354,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toText",
          "kind": "func",
          "section": "text",
          "signatures": [
            "func toText(t: Text): Text"
          ],
          "doc": "A Text is already one (so a `colsLabel` block can mix `\"Mass\"` and `md(\"...\")`).",
          "line": 355,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isEmpty",
          "kind": "func",
          "section": "text",
          "signatures": [
            "func isEmpty(t: Text): bool"
          ],
          "doc": "",
          "line": 357,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-isEmpty",
          "counterparts": [],
          "example": null
        },
        {
          "name": "ColSelKind",
          "kind": "type",
          "section": "selectors",
          "signatures": [
            "ColSelKind = enum\n  csNames, csAll, csStartsWith, csEndsWith, csContains, csNumeric, csTextual,\n  csPositions, csUnion, csMinus, csBoth, csKinds, csMatches"
          ],
          "doc": "",
          "line": 362,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ColSelKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "ColSel",
          "kind": "type",
          "section": "selectors",
          "signatures": [
            "ColSel = object\n  case kind*: ColSelKind\n  of csNames:\n    names*: seq[string]\n  of csStartsWith, csEndsWith, csContains:\n    parts*: seq[string]\n  of csPositions:\n    positions*: seq[int]\n  of csUnion, csMinus, csBoth:\n    sels*: seq[ColSel]\n  of csKinds:\n    kinds*: set[ValueKind]\n  of csMatches:\n    test*: proc (name: string): bool\n  else:\n    nil"
          ],
          "doc": "Which columns a verb applies to. A string or an array of strings converts to one, and\n`everything()`, `startsWith(...)`, `endsWith(...)`, `containing(...)`, `numeric()`,\n`textual()`, `positions(...)`, `ofKind(...)` (by the kind of the values), `matches(...)`\nand `named(...)` (any rule on the name) select by rule; `a + b` is the columns of either\n(in the order of the data), `a - b` those of `a` that are not in `b`, `a & b` those of\nboth. Resolved against the data when the verb is called.",
          "line": 365,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ColSel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toColSel",
          "kind": "converter",
          "section": "selectors",
          "signatures": [
            "converter toColSel(name: string): ColSel",
            "converter toColSel[N: static int](names: array[N, string]): ColSel",
            "converter toColSel(names: seq[string]): ColSel"
          ],
          "doc": "",
          "line": 381,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toColSel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cols",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func cols(names: varargs[string]): ColSel"
          ],
          "doc": "",
          "line": 384,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-cols",
          "counterparts": [],
          "example": {
            "spec": "nim-sugar",
            "code": "let t = tabella(tavolaPitagorica(4), rownameCol = \"×\"):\n  tabHeader \"Squares\"\n  for i in 1 .. 4:\n    tabFootnote \"a square\", loc.body(cols = $i, rows = [i - 1])\necho t",
            "prints": "           Squares\n┌───┬─────┬─────┬─────┬──────┐\n│   │   1 │   2 │   3 │    4 │\n╞═══╪═════╪═════╪═════╪══════╡\n│ 1 │ 1^1 │   2 │   3 │    4 │\n│ 2 │   2 │ 4^1 │   6 │    8 │\n│ 3 │   3 │   6 │ 9^1 │   12 │\n│ 4 │   4 │   8 │  12 │ 16^1 │\n└───┴─────┴─────┴─────┴──────┘\n1 a square"
          }
        },
        {
          "name": "everything",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func everything(): ColSel"
          ],
          "doc": "",
          "line": 385,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-everything",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsAdd \"moons per Earth mass\", proc (r: Row): Value = toValue(r.moons.toFloat / r.mass.toFloat * 5.97)\n  fmtNumber \"moons per Earth mass\", decimals = 1\necho t",
            "prints": "┌─────────┬──────────────────────┐\n│         │ moons per Earth mass │\n╞═════════╪══════════════════════╡\n│ Mercury │                  0.0 │\n│ Venus   │                  0.0 │\n│ Earth   │                  1.0 │\n│ Mars    │                 18.6 │\n│ Jupiter │                  0.3 │\n│ Saturn  │                  1.5 │\n│ Uranus  │                  1.9 │\n│ Neptune │                  0.9 │\n└─────────┴──────────────────────┘"
          }
        },
        {
          "name": "startsWith",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func startsWith(prefixes: varargs[string]): ColSel"
          ],
          "doc": "The columns whose name starts with any of `prefixes`: `startsWith([\"pop_\", \"pct_\"])` (in\nbrackets: `startsWith(a, b)` with two texts is `strutils.startsWith`).",
          "line": 386,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-startsWith",
          "counterparts": [],
          "example": null
        },
        {
          "name": "endsWith",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func endsWith(suffixes: varargs[string]): ColSel"
          ],
          "doc": "",
          "line": 389,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-endsWith",
          "counterparts": [],
          "example": null
        },
        {
          "name": "containing",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func containing(parts: varargs[string]): ColSel"
          ],
          "doc": "",
          "line": 390,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-containing",
          "counterparts": [],
          "example": null
        },
        {
          "name": "numeric",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func numeric(): ColSel"
          ],
          "doc": "",
          "line": 391,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-numeric",
          "counterparts": [],
          "example": null
        },
        {
          "name": "textual",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func textual(): ColSel"
          ],
          "doc": "",
          "line": 392,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-textual",
          "counterparts": [],
          "example": null
        },
        {
          "name": "positions",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func positions(ix: varargs[int]): ColSel",
            "func positions(s: HSlice[int, int]): ColSel"
          ],
          "doc": "Columns by their place in the data, from 0, as rows are: `positions(0, 2)`; a negative\nplace counts from the end (-1 is the last column).",
          "line": 393,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-positions",
          "counterparts": [],
          "example": null
        },
        {
          "name": "+",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func `+`(a, b: ColSel): ColSel"
          ],
          "doc": "The columns of `a` or `b`: `startsWith(\"pop\") + \"year\"`.",
          "line": 398,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op2B",
          "counterparts": [],
          "example": null
        },
        {
          "name": "-",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func `-`(a, b: ColSel): ColSel"
          ],
          "doc": "The columns of `a` that are not in `b`: `numeric() - \"year\"`.",
          "line": 400,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op2D",
          "counterparts": [],
          "example": null
        },
        {
          "name": "&",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func `&`(a, b: ColSel): ColSel",
            "func `&`(a, b: CellStyle): CellStyle"
          ],
          "doc": "The columns of both `a` and `b`: `startsWith(\"pop\") & numeric()`.",
          "line": 402,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-op26",
          "counterparts": [],
          "example": null
        },
        {
          "name": "ofKind",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func ofKind(kinds: varargs[ValueKind]): ColSel"
          ],
          "doc": "The columns whose values are of these kinds (a missing value counts as any kind), as gt's\n`where(is.logical)` and Great Tables' `cs.by_dtype(pl.Boolean)`: `ofKind(vkBool)`.",
          "line": 404,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ofKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "matches",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func matches(test: proc (name: string): bool): ColSel"
          ],
          "doc": "The columns whose name passes `test`, any proc of a string, as gt's `matches()` (which takes\na regular expression): `matches(proc (n: string): bool = n.len == 4)`.",
          "line": 410,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-matches",
          "counterparts": [],
          "example": null
        },
        {
          "name": "named",
          "kind": "template",
          "section": "selectors",
          "signatures": [
            "template named(cond: untyped): ColSel"
          ],
          "doc": "The columns whose name, `it`, makes `cond` true: `named(it.len == 4 and it[0] == 'y')`.",
          "line": 413,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-named",
          "counterparts": [],
          "example": null
        },
        {
          "name": "resolve",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func resolve(sel: ColSel; d: TableData): seq[string]"
          ],
          "doc": "",
          "line": 417,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-resolve",
          "counterparts": [],
          "example": null
        },
        {
          "name": "RowSelKind",
          "kind": "type",
          "section": "selectors",
          "signatures": [
            "RowSelKind = enum\n  rsAll, rsIndices, rsWhere"
          ],
          "doc": "",
          "line": 465,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-RowSelKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "RowSel",
          "kind": "type",
          "section": "selectors",
          "signatures": [
            "RowSel = object\n  case kind*: RowSelKind\n  of rsIndices:\n    indices*: seq[int]\n  of rsWhere:\n    pred*: proc (r: Row): bool\n  of rsAll:\n    nil"
          ],
          "doc": "Which rows a verb applies to: all of them (the default), indices (`[0, 2]`, `0..3`, 0-based; `-1` or `^1` is the last row)\nor a predicate (`where(it.mass > 1)`).",
          "line": 467,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-RowSel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "allRows",
          "kind": "func",
          "section": "selectors",
          "signatures": [
            "func allRows(): RowSel"
          ],
          "doc": "",
          "line": 475,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-allRows",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toRowSel",
          "kind": "converter",
          "section": "selectors",
          "signatures": [
            "converter toRowSel(i: int): RowSel",
            "converter toRowSel(i: BackwardsIndex): RowSel",
            "converter toRowSel[N: static int](ix: array[N, int]): RowSel",
            "converter toRowSel(ix: seq[int]): RowSel",
            "converter toRowSel(s: HSlice[int, int]): RowSel",
            "converter toRowSel[T: Ordinal](s: set[T]): RowSel"
          ],
          "doc": "`^1` is the last row, as `-1` is.",
          "line": 476,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toRowSel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "where",
          "kind": "template",
          "section": "selectors",
          "signatures": [
            "template where(cond: untyped): RowSel"
          ],
          "doc": "Rows where `cond` holds, with `it` the row: `where(it[\"type\"] == \"Gas giant\")`.",
          "line": 486,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-where",
          "counterparts": [],
          "example": {
            "spec": "nim-sugar",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\", \"diameter\"]\n  rowsHide where(it.moons < 10)\necho t",
            "prints": "┌─────────┬────────┬───────┐\n│         │   mass │ moons │\n╞═════════╪════════╪═══════╡\n│ Jupiter │ 1898.0 │    95 │\n│ Saturn  │  568.0 │   146 │\n│ Uranus  │   86.8 │    28 │\n│ Neptune │  102.0 │    16 │\n└─────────┴────────┴───────┘"
          }
        },
        {
          "name": "resolve",
          "kind": "proc",
          "section": "selectors",
          "signatures": [
            "proc resolve(sel: RowSel; d: TableData): seq[int]"
          ],
          "doc": "",
          "line": 490,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-resolve",
          "counterparts": [],
          "example": null
        },
        {
          "name": "CellStyle",
          "kind": "type",
          "section": "styles",
          "signatures": [
            "CellStyle = object\n  css*: seq[(string, string)]"
          ],
          "doc": "CSS declarations for some cells. Build with `style.fill`, `style.text`, `style.borders` and\njoin with `&`: `style.fill(\"#fff3b0\") & style.text(weight = \"bold\")`.",
          "line": 505,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-CellStyle",
          "counterparts": [],
          "example": null
        },
        {
          "name": "StyleNs",
          "kind": "type",
          "section": "styles",
          "signatures": [
            "StyleNs = object"
          ],
          "doc": "A background colour (a hex value, a CSS or R colour name), with `alpha` from 0 (clear) to 1,\nas gt's `cell_fill(color, alpha)`.",
          "line": 510,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-StyleNs",
          "counterparts": [],
          "example": null
        },
        {
          "name": "LocNs",
          "kind": "type",
          "section": "styles",
          "signatures": [
            "LocNs = object"
          ],
          "doc": "A background colour (a hex value, a CSS or R colour name), with `alpha` from 0 (clear) to 1,\nas gt's `cell_fill(color, alpha)`.",
          "line": 511,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-LocNs",
          "counterparts": [],
          "example": null
        },
        {
          "name": "style",
          "kind": "const",
          "section": "styles",
          "signatures": [
            "style = ()"
          ],
          "doc": "",
          "line": 514,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-style",
          "counterparts": [],
          "example": null
        },
        {
          "name": "loc",
          "kind": "const",
          "section": "styles",
          "signatures": [
            "loc = ()"
          ],
          "doc": "",
          "line": 515,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-loc",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fill",
          "kind": "func",
          "section": "styles",
          "signatures": [
            "func fill(_: StyleNs; color: string; alpha = 1.0): CellStyle"
          ],
          "doc": "A background colour (a hex value, a CSS or R colour name), with `alpha` from 0 (clear) to 1,\nas gt's `cell_fill(color, alpha)`.",
          "line": 519,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-fill",
          "counterparts": [
            {
              "in": "gt",
              "name": "cell_fill()"
            },
            {
              "in": "Great Tables",
              "name": "style.fill()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  week: [\"one\", \"two\"]\n  steps: [toValue(@[4, 8, 6]), toValue((x: @[\"2026-11-02\", \"2026-11-03\", \"2026-11-09\"], y: @[5, 7, 9]))]\nlet t = tabella(d, rownameCol = \"week\"):\n  fmtNanoplot \"steps\", options = nanoplotOptions(dataPointFillColor = @[\"#D64545\", \"#2E7D32\"])\necho t\nlet x = nanoplotXValues(d[\"steps\", 1])\necho t.toHtml.count(\"fill=\\\"#2E7D32\\\"\"), \" green points; the last is \", (x[2] - x[0]) / 86400, \" days after the first\"",
            "prints": "┌─────┬─────────┐\n│     │ steps   │\n╞═════╪═════════╡\n│ one │ ▁█▅ 4–8 │\n│ two │ ▁▅█ 5–9 │\n└─────┴─────────┘\n2 green points; the last is 7.0 days after the first"
          }
        },
        {
          "name": "text",
          "kind": "func",
          "section": "styles",
          "signatures": [
            "func text(_: StyleNs; color = \"\"; font = \"\"; size = \"\"; align = \"\"; vAlign = \"\";\n          weight = \"\"; style = \"\"; decorate = \"\"; transform = \"\";\n          whitespace = \"\"; indent = \"\"): CellStyle"
          ],
          "doc": "The text of the cells: `vAlign` is \"top\", \"middle\" or \"bottom\" (gt's `v_align`), `indent`\na CSS length, \"1.5em\" (gt's `indent`).",
          "line": 532,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-text",
          "counterparts": [
            {
              "in": "gt",
              "name": "cell_text()"
            },
            {
              "in": "Great Tables",
              "name": "style.text()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  mfr: [\"Ferrari\", \"Ferrari\", \"Ford\", \"Ford\", \"Fiat\"]\n  model: [\"Roma\", \"Portofino\", \"GT\", \"Mustang\", \"500\"]\n  hp: [612, 600, 647, 450, 69]\nlet t = tabella(d, rownameCol = [\"mfr\", \"model\"]):\n  tabStubhead \"car\"\n  tabStyle style.text(weight = \"bold\"), loc.stub(cols = \"mfr\")\necho t\necho \"stub: \", stubColumns(t).join(\", \"), \"; cells over two rows: \", t.toHtml.count(\"rowspan=\\\"2\\\"\")",
            "prints": "┌─────────┬───────────┬─────┐\n│ car     │           │  hp │\n╞═════════╪═══════════╪═════╡\n│ Ferrari │ Roma      │ 612 │\n│         │ Portofino │ 600 │\n│ Ford    │ GT        │ 647 │\n│         │ Mustang   │ 450 │\n│ Fiat    │ 500       │  69 │\n└─────────┴───────────┴─────┘\nstub: mfr, model; cells over two rows: 2"
          }
        },
        {
          "name": "Side",
          "kind": "type",
          "section": "styles",
          "signatures": [
            "Side = enum\n  sTop = \"top\", sRight = \"right\", sBottom = \"bottom\", sLeft = \"left\""
          ],
          "doc": "",
          "line": 542,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Side",
          "counterparts": [],
          "example": null
        },
        {
          "name": "borders",
          "kind": "func",
          "section": "styles",
          "signatures": [
            "func borders(_: StyleNs; sides: set[Side] = {sTop, sRight, sBottom, sLeft};\n             color = \"#000000\"; style = \"solid\"; weight = \"1px\"): CellStyle"
          ],
          "doc": "",
          "line": 544,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-borders",
          "counterparts": [
            {
              "in": "gt",
              "name": "cell_borders()"
            },
            {
              "in": "Great Tables",
              "name": "style.borders()"
            }
          ],
          "example": null
        },
        {
          "name": "css",
          "kind": "func",
          "section": "styles",
          "signatures": [
            "func css(_: StyleNs; declarations: string): CellStyle"
          ],
          "doc": "Any CSS, as declarations: `style.css(\"letter-spacing: 0.1em; font-variant: small-caps\")`.",
          "line": 549,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-css",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toCss",
          "kind": "func",
          "section": "styles",
          "signatures": [
            "func toCss(s: CellStyle): string"
          ],
          "doc": "",
          "line": 555,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-toCss",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Align",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Align = enum\n  alAuto = \"auto\", alLeft = \"left\", alCenter = \"center\", alRight = \"right\""
          ],
          "doc": "",
          "line": 560,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Align",
          "counterparts": [],
          "example": null
        },
        {
          "name": "ColRole",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "ColRole = enum\n  crData, crStub, crGroup"
          ],
          "doc": "",
          "line": 563,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ColRole",
          "counterparts": [],
          "example": null
        },
        {
          "name": "ColInfo",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "ColInfo = object\n  name*: string\n  label*: Text\n  units*: string             ## units in gt's notation, shown with the label (`colsUnits`)\n  unitsPattern*: string      ## how: `{1}` is the label, `{2}` the units\n  align*: Align\n  width*: string\n  hidden*: bool\n  role*: ColRole"
          ],
          "doc": "The boxhead entry of one column: how its label and cells are shown.",
          "line": 566,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-ColInfo",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Spanner",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Spanner = object\n  label*: Text\n  columns*: seq[string]\n  level*: int"
          ],
          "doc": "A label over a run of columns; `level` 1 sits right above the column labels.",
          "line": 577,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Spanner",
          "counterparts": [],
          "example": null
        },
        {
          "name": "RenderContext",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "RenderContext = enum\n  rcHtml, rcText"
          ],
          "doc": "",
          "line": 583,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-RenderContext",
          "counterparts": [],
          "example": null
        },
        {
          "name": "FormatFn",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "FormatFn = proc (v: Value; ctx: RenderContext): string"
          ],
          "doc": "Turns one value into its shown text. In `rcHtml` the result is HTML (escape what you add).",
          "line": 586,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-FormatFn",
          "counterparts": [],
          "example": null
        },
        {
          "name": "FormatRule",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "FormatRule = object\n  columns*: seq[string]\n  rows*: seq[int]            ## empty: every row\n  fn*: FormatFn\n  nullsToo*: bool            ## also called on missing values (substitutions are)\n  applies*: proc (v: Value): bool ## a substitution: the values it replaces, even with \"\"\n  wholeValue*: bool          ## takes a list or record whole (pictures); else item by item"
          ],
          "doc": "",
          "line": 589,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-FormatRule",
          "counterparts": [],
          "example": null
        },
        {
          "name": "LocKind",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "LocKind = enum\n  lkTitle, lkSubtitle, lkStubhead, lkSpanners, lkColumnLabels, lkStub,\n  lkRowGroups, lkBody, lkFootnotes, lkSourceNotes, lkHeader, lkColumnHeader,\n  lkFooter, lkSummary, lkSummaryStub, lkGrandSummary, lkGrandSummaryStub"
          ],
          "doc": "",
          "line": 597,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-LocKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Target",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Target = object\n  kind*: LocKind\n  cells*: seq[(int, string)]\n  names*: seq[string]\n  labels*: seq[string]\n  columns*: seq[string]"
          ],
          "doc": "A resolved location: `cells` for the body and the stub (row, column), `names` for\ncolumn labels, spanners and row groups. For summary rows, `names` are the groups, `labels`\nthe labels of the summary rows (empty: all of them) and `columns` the columns.",
          "line": 602,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Target",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Loc",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Loc = object\n  kind*: LocKind\n  cols*: ColSel\n  rows*: RowSel\n  names*: seq[string]\n  labels*: seq[string]       ## summary rows, by label; stub rows, by their label\n  mask*: proc (v: Value; col: Column): bool ## `loc.body(mask = ...)`: the cells that pass"
          ],
          "doc": "An unresolved location, from the `loc` namespace: `loc.body(cols = \"mass\", rows = [0])`.",
          "line": 612,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Loc",
          "counterparts": [],
          "example": null
        },
        {
          "name": "StyleRule",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "StyleRule = object\n  target*: Target\n  style*: CellStyle"
          ],
          "doc": "",
          "line": 621,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-StyleRule",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Footnote",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Footnote = object\n  note*: Text\n  target*: Target"
          ],
          "doc": "",
          "line": 625,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Footnote",
          "counterparts": [],
          "example": null
        },
        {
          "name": "TransformRule",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "TransformRule = object\n  target*: Target\n  fn*: proc (s: string): string"
          ],
          "doc": "A proc over the shown text of the cells at a location (`textTransform`).",
          "line": 629,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-TransformRule",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Aggregate",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Aggregate = object\n  name*: string              ## \"sum\", \"count\", ... (\"\" for a proc of your own)\n  fn*: proc (values: seq[Value]): Value"
          ],
          "doc": "How a summary row sums up a column: a proc from the column's non-missing values (of the\ngroup, or of the whole table) to one value. Built in: `agg.sum`, `agg.mean`, `agg.median`,\n`agg.min`, `agg.max`, `agg.count`, `agg.std`; any proc with `aggregate(myProc)`.",
          "line": 634,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Aggregate",
          "counterparts": [],
          "example": null
        },
        {
          "name": "AggNs",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "AggNs = object"
          ],
          "doc": "Summary rows added by `summaryRows` (for some groups) or `grandSummaryRows` (`grand`).",
          "line": 641,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-AggNs",
          "counterparts": [],
          "example": null
        },
        {
          "name": "SummaryRule",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "SummaryRule = object\n  grand*: bool\n  groups*: seq[string]       ## the groups summarised (empty: all of them)\n  columns*: seq[string]      ## the columns summarised; the others show `missingText`\n  fns*: seq[(string, Aggregate)] ## (label, aggregate): one row each\n  shown*: Table[string, string] ## label -> the text shown in the stub, when `textTransform` changed it\n  top*: bool                 ## above the group (or the table) instead of below\n  fmt*: FormatFn             ## nil: the column's format\n  missingText*: string"
          ],
          "doc": "Summary rows added by `summaryRows` (for some groups) or `grandSummaryRows` (`grand`).",
          "line": 643,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-SummaryRule",
          "counterparts": [],
          "example": null
        },
        {
          "name": "MergeKind",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "MergeKind = enum\n  mkPattern, mkUncert, mkRange, mkNPct"
          ],
          "doc": "",
          "line": 654,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-MergeKind",
          "counterparts": [],
          "example": null
        },
        {
          "name": "MergeRule",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "MergeRule = object\n  kind*: MergeKind\n  columns*: seq[string]      ## the first is where the merged text goes\n  rows*: seq[int]            ## empty: every row\n  pattern*: string           ## `{1}`, `{2}`, ... with `<<...>>` for a part dropped when a value is missing"
          ],
          "doc": "Columns shown together in the first one (`colsMerge` and its cousins), at render time.",
          "line": 657,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-MergeRule",
          "counterparts": [],
          "example": null
        },
        {
          "name": "FootnoteMarks",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "FootnoteMarks = enum\n  fmNumbers, fmLetters, fmCapitals, fmStandard, fmExtended"
          ],
          "doc": "",
          "line": 664,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-FootnoteMarks",
          "counterparts": [],
          "example": null
        },
        {
          "name": "TabOptions",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "TabOptions = object\n  tableWidth* = \"auto\"\n  tableMarginLeft* = \"auto\"\n  tableMarginRight* = \"auto\"\n  tableFontNames* = \"system-ui, -apple-system, \\'Segoe UI\\', Roboto, Helvetica, Arial, sans-serif\"\n  tableFontSize* = \"16px\"\n  tableFontColor* = \"#333333\"\n  tableBackgroundColor* = \"#FFFFFF\"\n  tableBorderTopColor* = \"#A8A8A8\"\n  tableBorderTopWidth* = \"2px\"\n  tableBorderBottomColor* = \"#A8A8A8\"\n  tableBorderBottomWidth* = \"2px\"\n  headingAlign* = \"center\"\n  headingBackgroundColor* = \"\"\n  headingTitleFontSize* = \"125%\"\n  headingTitleFontWeight* = \"initial\"\n  headingSubtitleFontSize* = \"85%\"\n  headingSubtitleFontWeight* = \"normal\"\n  headingBorderBottomColor* = \"#D3D3D3\"\n  columnLabelsBackgroundColor* = \"\"\n  columnLabelsFontSize* = \"100%\"\n  columnLabelsFontWeight* = \"normal\"\n  columnLabelsTextTransform* = \"inherit\"\n  columnLabelsBorderBottomColor* = \"#D3D3D3\"\n  columnLabelsBorderBottomWidth* = \"2px\"\n  rowGroupBackgroundColor* = \"\"\n  rowGroupFontWeight* = \"initial\"\n  rowGroupBorderColor* = \"#D3D3D3\"\n  stubBackgroundColor* = \"\"\n  stubFontWeight* = \"initial\"\n  stubSticky* = false        ## the stub stays in view when a wide table scrolls sideways\n  headingPadding* = \"4px\"\n  headingPaddingHorizontal* = \"5px\"\n  columnLabelsPadding* = \"5px\"\n  columnLabelsPaddingHorizontal* = \"5px\"\n  dataRowPadding* = \"8px\"\n  dataRowPaddingHorizontal* = \"5px\"\n  tableBorderTopStyle* = \"solid\"\n  tableBorderBottomStyle* = \"solid\"\n  tableBorderLeftStyle* = \"none\"\n  tableBorderLeftWidth* = \"2px\"\n  tableBorderLeftColor* = \"#D3D3D3\"\n  tableBorderRightStyle* = \"none\"\n  tableBorderRightWidth* = \"2px\"\n  tableBorderRightColor* = \"#D3D3D3\"\n  tableBodyVlinesColor* = \"\" ## \"\" for no vertical lines\n  tableBodyHlinesColor* = \"#D3D3D3\"\n  rowStriping* = false\n  rowStripingBackgroundColor* = \"rgba(128,128,128,0.05)\"\n  summaryRowBackgroundColor* = \"\" ## \"\" for the table's background\n  summaryRowTextTransform* = \"inherit\"\n  summaryRowPadding* = \"8px\"\n  summaryRowPaddingHorizontal* = \"5px\"\n  summaryRowBorderStyle* = \"solid\"\n  summaryRowBorderWidth* = \"2px\"\n  summaryRowBorderColor* = \"#D3D3D3\"\n  grandSummaryRowBackgroundColor* = \"\"\n  grandSummaryRowTextTransform* = \"inherit\"\n  grandSummaryRowPadding* = \"8px\"\n  grandSummaryRowPaddingHorizontal* = \"5px\"\n  grandSummaryRowBorderStyle* = \"double\"\n  grandSummaryRowBorderWidth* = \"6px\"\n  grandSummaryRowBorderColor* = \"#D3D3D3\"\n  footnotesFontSize* = \"90%\"\n  footnotesMarks* = fmNumbers\n  footnotesMarksCustom*: seq[string] ## marks of your own; when set, `footnotesMarks` is ignored\n  footnotesSpecRef* = \"^\"    ## how marks look in the table: ^ raised, i italic, b bold, ( or [ around\n  footnotesSpecFtr* = \"^\"    ## the same, in the footer\n  footnotesOrder* = \"marks_first\" ## or \"marks_last\", \"preserve_order\"\n  sourceNotesFontSize* = \"90%\"\n  containerOverflowX* = \"auto\"\n  containerOverflowY* = \"auto\"\n  containerWidth* = \"auto\"\n  containerHeight* = \"auto\"\n  containerPaddingX* = \"0px\"\n  containerPaddingY* = \"0px\"\n  tableLayout* = \"auto\"      ## or \"fixed\", as CSS's table-layout\n  tableFontWeight* = \"normal\"\n  tableFontStyle* = \"normal\"\n  headingBorderBottomStyle* = \"solid\"\n  headingBorderBottomWidth* = \"2px\"\n  headingBorderLrStyle* = \"none\"\n  headingBorderLrWidth* = \"1px\"\n  headingBorderLrColor* = \"#D3D3D3\"\n  columnLabelsBorderTopStyle* = \"none\"\n  columnLabelsBorderTopWidth* = \"2px\"\n  columnLabelsBorderTopColor* = \"#D3D3D3\"\n  columnLabelsBorderBottomStyle* = \"solid\"\n  columnLabelsBorderLrStyle* = \"none\"\n  columnLabelsBorderLrWidth* = \"1px\"\n  columnLabelsBorderLrColor* = \"#D3D3D3\"\n  columnLabelsVlinesStyle* = \"none\"\n  columnLabelsVlinesWidth* = \"1px\"\n  columnLabelsVlinesColor* = \"#D3D3D3\"\n  rowGroupFontSize* = \"100%\"\n  rowGroupTextTransform* = \"inherit\"\n  rowGroupPadding* = \"8px\"\n  rowGroupPaddingHorizontal* = \"5px\"\n  rowGroupBorderTopStyle* = \"solid\"\n  rowGroupBorderTopWidth* = \"2px\"\n  rowGroupBorderTopColor* = \"\" ## \"\" for `rowGroupBorderColor`\n  rowGroupBorderBottomStyle* = \"solid\"\n  rowGroupBorderBottomWidth* = \"2px\"\n  rowGroupBorderBottomColor* = \"\" ## \"\" for `rowGroupBorderColor`\n  rowGroupBorderLeftStyle* = \"none\"\n  rowGroupBorderLeftWidth* = \"1px\"\n  rowGroupBorderLeftColor* = \"#D3D3D3\"\n  rowGroupBorderRightStyle* = \"none\"\n  rowGroupBorderRightWidth* = \"1px\"\n  rowGroupBorderRightColor* = \"#D3D3D3\"\n  tableBodyHlinesStyle* = \"solid\"\n  tableBodyHlinesWidth* = \"1px\"\n  tableBodyVlinesStyle* = \"solid\"\n  tableBodyVlinesWidth* = \"1px\"\n  tableBodyBorderTopStyle* = \"none\"\n  tableBodyBorderTopWidth* = \"2px\"\n  tableBodyBorderTopColor* = \"#D3D3D3\"\n  tableBodyBorderBottomStyle* = \"none\"\n  tableBodyBorderBottomWidth* = \"2px\"\n  tableBodyBorderBottomColor* = \"#D3D3D3\"\n  stubFontSize* = \"100%\"\n  stubTextTransform* = \"inherit\"\n  stubBorderStyle* = \"solid\"\n  stubBorderWidth* = \"2px\"\n  stubBorderColor* = \"\"      ## \"\" for `tableBodyHlinesColor`\n  footnotesBackgroundColor* = \"\" ## \"\" for the table's background\n  footnotesPadding* = \"4px\"\n  footnotesPaddingHorizontal* = \"5px\"\n  footnotesBorderBottomStyle* = \"none\"\n  footnotesBorderBottomWidth* = \"2px\"\n  footnotesBorderBottomColor* = \"#D3D3D3\"\n  footnotesBorderLrStyle* = \"none\"\n  footnotesBorderLrWidth* = \"2px\"\n  footnotesBorderLrColor* = \"#D3D3D3\"\n  sourceNotesBackgroundColor* = \"\" ## \"\" for the table's background\n  sourceNotesPadding* = \"4px\"\n  sourceNotesPaddingHorizontal* = \"5px\"\n  sourceNotesBorderBottomStyle* = \"none\"\n  sourceNotesBorderBottomWidth* = \"2px\"\n  sourceNotesBorderBottomColor* = \"#D3D3D3\"\n  sourceNotesBorderLrStyle* = \"none\"\n  sourceNotesBorderLrWidth* = \"2px\"\n  sourceNotesBorderLrColor* = \"#D3D3D3\"\n  extraCss* = \"\"             ## more CSS, scoped to the table when it starts with ` ` or `.`\n  tableAlign* = \"center\"     ## or \"left\", \"right\": where the table sits in its container\n  tableNoDataMessage* = \"No data to display\" ## shown in the body of a table with no rows\n  tableAdditionalCss* = \"\"   ## more CSS, as `optCss` (both add)\n  tableFontColorLight* = \"#FFFFFF\" ## text on dark cells (`dataColor`, dark headings)\n  columnLabelsHidden* = false\n  columnLabelsUnitsPattern* = \"{1}, {2}\" ## label and units, when `colsUnits` gives no pattern\n  rowGroupDefaultLabel* = \"\" ## a heading for the rows outside any group (\"\" for none)\n  rowGroupAsColumn* = false  ## group labels as the first column of the stub\n  stubIndentLength* = \"1em\"  ## the indent of one level (`tabStubIndent`)\n  stubSeparate* = true       ## a rule between the stub and the body\n  stubRowGroupFontSize* = \"100%\"\n  stubRowGroupFontWeight* = \"initial\"\n  stubRowGroupTextTransform* = \"inherit\"\n  stubRowGroupBorderStyle* = \"solid\"\n  stubRowGroupBorderWidth* = \"2px\"\n  stubRowGroupBorderColor* = \"#D3D3D3\"\n  footnotesMultiline* = true ## one footnote per line; false: all on one line\n  footnotesSep* = \" \"        ## between footnotes on one line\n  sourceNotesMultiline* = true\n  sourceNotesSep* = \" \"\n  rowStripingIncludeStub* = false\n  rowStripingIncludeTableBody* = true"
          ],
          "doc": "Table-wide looks, like gt's `tab_options()`. Change any subset with\n`tabOptions(rowStriping = true, tableFontSize = \"14px\")`.",
          "line": 667,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-TabOptions",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Tabella",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "Tabella = object\n  data*: TableData\n  boxhead*: seq[ColInfo]\n  title*, subtitle*: Text\n  caption*: Text\n  stubhead*: Text\n  rownameCol*, groupnameCol*: string\n  stubCols*: seq[string]     ## the stub's other columns, left of `rownameCol`\n  groupLabels*: OrderedTable[string, Text] ## group id -> label, in display order\n  rowGroups*: seq[string]    ## group id of each row (\"\" when ungrouped)\n  rowOrder*: seq[int]        ## rows in display order (empty: as in the data)\n  spanners*: seq[Spanner]\n  formats*: seq[FormatRule]\n  substitutions*: seq[FormatRule]\n  styles*: seq[StyleRule]\n  transforms*: seq[TransformRule]\n  footnotes*: seq[Footnote]\n  sourceNotes*: seq[Text]\n  summaries*: seq[SummaryRule]\n  merges*: seq[MergeRule]\n  hiddenRows*: seq[int]      ## rows not shown (`rowsHide`)\n  indents*: Table[int, int]  ## row -> indent level of its stub cell, 1 to 5\n  decimalAligned*: seq[string] ## columns aligned on the decimal mark\n  decimalMarks*: seq[string] ## the mark for each of them\n  options*: TabOptions\n  locale*: string\n  id*: string"
          ],
          "doc": "A display table: the data and everything said about how to show it.",
          "line": 836,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-Tabella",
          "counterparts": [],
          "example": null
        },
        {
          "name": "colInfo",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func colInfo(t: Tabella; name: string): ColInfo"
          ],
          "doc": "",
          "line": 865,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-colInfo",
          "counterparts": [],
          "example": null
        },
        {
          "name": "visibleData",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func visibleData(t: Tabella): seq[ColInfo]"
          ],
          "doc": "The data columns shown in the body, in display order (not the stub, groups or hidden ones).",
          "line": 870,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-visibleData",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasSummaries",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func hasSummaries(t: Tabella): bool"
          ],
          "doc": "",
          "line": 874,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-hasSummaries",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasStub",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func hasStub(t: Tabella): bool"
          ],
          "doc": "A stub is shown for the row names, and for the labels of summary rows (as in gt, a table\nwith summary rows and no row names gets an empty stub).",
          "line": 875,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-hasStub",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasRowNames",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func hasRowNames(t: Tabella): bool"
          ],
          "doc": "",
          "line": 878,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-hasRowNames",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasGroups",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func hasGroups(t: Tabella): bool"
          ],
          "doc": "",
          "line": 879,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-hasGroups",
          "counterparts": [],
          "example": null
        },
        {
          "name": "stubColumns",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func stubColumns(t: Tabella): seq[string]"
          ],
          "doc": "The columns of the stub, the highest level first: `tabella(data, rownameCol = [\"mfr\",\n\"model\"])` gives `@[\"mfr\", \"model\"]`.",
          "line": 880,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-stubColumns",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  mfr: [\"Ferrari\", \"Ferrari\", \"Ford\", \"Ford\", \"Fiat\"]\n  model: [\"Roma\", \"Portofino\", \"GT\", \"Mustang\", \"500\"]\n  hp: [612, 600, 647, 450, 69]\nlet t = tabella(d, rownameCol = [\"mfr\", \"model\"]):\n  tabStubhead \"car\"\n  tabStyle style.text(weight = \"bold\"), loc.stub(cols = \"mfr\")\necho t\necho \"stub: \", stubColumns(t).join(\", \"), \"; cells over two rows: \", t.toHtml.count(\"rowspan=\\\"2\\\"\")",
            "prints": "┌─────────┬───────────┬─────┐\n│ car     │           │  hp │\n╞═════════╪═══════════╪═════╡\n│ Ferrari │ Roma      │ 612 │\n│         │ Portofino │ 600 │\n│ Ford    │ GT        │ 647 │\n│         │ Mustang   │ 450 │\n│ Fiat    │ 500       │  69 │\n└─────────┴───────────┴─────┘\nstub: mfr, model; cells over two rows: 2"
          }
        },
        {
          "name": "groupAsColumn",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func groupAsColumn(t: Tabella): bool"
          ],
          "doc": "The group labels are a column of the stub (`rowGroupAsColumn`), not a row above each group.",
          "line": 884,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-groupAsColumn",
          "counterparts": [],
          "example": null
        },
        {
          "name": "stubWidth",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func stubWidth(t: Tabella): int"
          ],
          "doc": "How many columns the stub takes: the group labels (as a column), the higher levels, the\nrow names (or the summary labels).",
          "line": 886,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-stubWidth",
          "counterparts": [],
          "example": null
        },
        {
          "name": "PatternRef",
          "kind": "type",
          "section": "spec",
          "signatures": [
            "PatternRef = object\n  column*: int               ## from 0\n  field*: string             ## \"\" for the whole value"
          ],
          "doc": "One `{...}` of a merge pattern: `{2}` is column 2, `{2.lo}` the field `lo` of the record in\ncolumn 2, and `{lo}` the field `lo` of column 1.",
          "line": 891,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-PatternRef",
          "counterparts": [],
          "example": null
        },
        {
          "name": "patternRefs",
          "kind": "func",
          "section": "spec",
          "signatures": [
            "func patternRefs(pattern: string): seq[(string, PatternRef)]"
          ],
          "doc": "The `{...}` of `pattern`, with the text inside the braces; a `{` with no `}` is text.",
          "line": 897,
          "url": "https://pietroppeter.github.io/tabelline/api/#core-patternRefs",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/localize",
      "title": "Locales",
      "path": "src/tabelline/localize.nim",
      "doc": "Locales: the conventions of a language and region, from Unicode CLDR (`locales.nim`,\n`currencies.nim`, written by `tools/cldr.nim`). `getLocale(\"de-CH\")` gives the marks of numbers,\nthe patterns of percentages and currencies, and the names and patterns of dates and times.\nDates and times are written with CLDR's patterns (`formatPattern`): `y`, `MMMM`, `d`, `EEEE`,\n`HH`, `mm`, `a`, ...",
      "symbols": [
        {
          "name": "Locale",
          "kind": "type",
          "section": "",
          "signatures": [
            "Locale = object\n  tag*: string               ## the tag found in CLDR (\"de-CH\"; \"en\" for an unknown tag)\n  decimal*, group*, percentSign*: string\n  percentPattern*, currencyPattern*, accountingPattern*: string ## CLDR patterns: \"#,##0 %\"\n  months*, monthsAbbr*: array[12, string] ## names in a date: \"1 gennaio\"\n  monthsAlone*, monthsAloneAbbr*: array[12, string] ## names on their own: \"gennaio 2026\"\n  days*, daysAbbr*: array[7, string] ## Sunday first\n  quarters*, quartersAbbr*: array[4, string]\n  am*, pm*, eraBC*, eraAD*: string\n  dateFormats*, timeFormats*: array[4, string] ## full, long, medium, short\n  dateTime*: string          ## \"{1}, {0}\": the date, then the time\n  skeletons*: seq[(string, string)] ## \"yMMMd\" -> \"d MMM y\""
          ],
          "doc": "",
          "line": 11,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-Locale",
          "counterparts": [],
          "example": null
        },
        {
          "name": "dateSkeletons",
          "kind": "const",
          "section": "",
          "signatures": [
            "dateSkeletons = [\"yMd\", \"yMEd\", \"yMMM\", \"yMMMM\", \"yMMMd\", \"yMMMEd\", \"GyMd\",\n                 \"GyMMMd\", \"GyMMMEd\", \"yM\", \"Md\", \"MEd\", \"MMMd\", \"MMMEd\",\n                 \"MMMMd\", \"GyMMM\", \"yQQQ\", \"yQQQQ\", \"Gy\", \"y\", \"M\", \"MMM\", \"d\",\n                 \"Ed\"]"
          ],
          "doc": "The flexible date styles of gt: each is a CLDR skeleton, written in each locale's own order.",
          "line": 24,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-dateSkeletons",
          "counterparts": [],
          "example": null
        },
        {
          "name": "timeSkeletons",
          "kind": "const",
          "section": "",
          "signatures": [
            "timeSkeletons = [\"Hms\", \"Hm\", \"H\", \"hms\", \"hm\", \"h\", \"ms\"]"
          ],
          "doc": "The flexible time styles of gt that need no time zone.",
          "line": 28,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-timeSkeletons",
          "counterparts": [],
          "example": null
        },
        {
          "name": "normalizeTag",
          "kind": "func",
          "section": "",
          "signatures": [
            "func normalizeTag(tag: string): string"
          ],
          "doc": "\"de_CH\", \"DE-ch\" and \"de-CH\" are the same locale.",
          "line": 31,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-normalizeTag",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasLocale",
          "kind": "func",
          "section": "",
          "signatures": [
            "func hasLocale(tag: string): bool"
          ],
          "doc": "Whether CLDR has data for this tag (after `normalizeTag`).",
          "line": 56,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-hasLocale",
          "counterparts": [],
          "example": null
        },
        {
          "name": "getLocale",
          "kind": "func",
          "section": "",
          "signatures": [
            "func getLocale(tag: string): Locale"
          ],
          "doc": "The conventions of a locale: `getLocale(\"it\").months[0]` is \"gennaio\". An unknown region\nfalls back to its language (\"it-XX\" is \"it\"), an unknown language to \"en\".",
          "line": 95,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-getLocale",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [1234.5, 0.25]\nlet p = tableData:\n  share: [0.123, 0.5]\nlet italian = tabella(d, locale = \"it\"):\n  fmtNumber \"n\", decimals = 2\necho italian\nlet swiss = tabella(d, locale = \"de_CH\"):\n  fmtNumber \"n\", decimals = 2\necho swiss\nlet french = tabella(p, locale = \"fr\"):\n  fmtPercent \"share\"\necho french\necho getLocale(\"pt-XX\").tag, \" \", getLocale(\"it\").months[10], \" \", getLocale(\"ja\").daysAbbr[0]",
            "prints": "┌──────────┐\n│        n │\n╞══════════╡\n│ 1.234,50 │\n│     0,25 │\n└──────────┘\n┌──────────┐\n│        n │\n╞══════════╡\n│ 1'234.50 │\n│     0.25 │\n└──────────┘\n┌────────┐\n│  share │\n╞════════╡\n│ 12,3 % │\n│ 50,0 % │\n└────────┘\npt novembre 日"
          }
        },
        {
          "name": "skeleton",
          "kind": "func",
          "section": "",
          "signatures": [
            "func skeleton(l: Locale; name: string): string"
          ],
          "doc": "The pattern of a flexible style in this locale (\"\" when it is not one).",
          "line": 129,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-skeleton",
          "counterparts": [],
          "example": null
        },
        {
          "name": "currencyInfo",
          "kind": "func",
          "section": "currencies",
          "signatures": [
            "func currencyInfo(code: string): tuple[name, symbol: string, digits: int]"
          ],
          "doc": "The English name, the symbol and the decimals of an ISO 4217 code:\n`currencyInfo(\"JPY\")` is (\"Japanese Yen\", \"¥\", 0). An unknown code is its own symbol.",
          "line": 136,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-currencyInfo",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  amount: [1234.5, -3.25]\nlet accounting = tabella(d):\n  fmtCurrency \"amount\", currency = \"CAD\", accounting = true\necho accounting\nlet euro = tabella(d, locale = \"it\"):\n  fmtCurrency \"amount\", currency = \"EUR\"\necho euro\nlet dinar = tabella(d):\n  fmtCurrency \"amount\", currency = \"BHD\", placement = \"right\"\necho dinar\necho formatCurrency(1500, \"JPY\"), \" \", currencyInfo(\"CHF\")",
            "prints": "┌─────────────┐\n│      amount │\n╞═════════════╡\n│ CA$1,234.50 │\n│   (CA$3.25) │\n└─────────────┘\n┌────────────┐\n│     amount │\n╞════════════╡\n│ 1.234,50 € │\n│    −3,25 € │\n└────────────┘\n┌───────────────┐\n│        amount │\n╞═══════════════╡\n│ 1,234.500 BHD │\n│    −3.250 BHD │\n└───────────────┘\n¥1,500 (name: \"Swiss Franc\", symbol: \"CHF\", digits: 2)"
          }
        },
        {
          "name": "isCurrency",
          "kind": "func",
          "section": "currencies",
          "signatures": [
            "func isCurrency(code: string): bool"
          ],
          "doc": "Whether CLDR knows this ISO 4217 code.",
          "line": 143,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-isCurrency",
          "counterparts": [],
          "example": null
        },
        {
          "name": "splitPattern",
          "kind": "func",
          "section": "the patterns",
          "signatures": [
            "func splitPattern(pattern: string): tuple[prefix, suffix: string]"
          ],
          "doc": "The text before and after the number in a CLDR number pattern (its positive part):\n\"#,##0.00 ¤\" is (\"\", \" ¤\"), \"¤#,##0.00\" is (\"¤\", \"\").",
          "line": 150,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-splitPattern",
          "counterparts": [],
          "example": null
        },
        {
          "name": "negativePattern",
          "kind": "func",
          "section": "the patterns",
          "signatures": [
            "func negativePattern(pattern: string): tuple[prefix, suffix: string]"
          ],
          "doc": "The text around a negative number: the pattern's negative part, or \"\" (a minus sign is added).",
          "line": 160,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-negativePattern",
          "counterparts": [],
          "example": null
        },
        {
          "name": "withCurrency",
          "kind": "func",
          "section": "the patterns",
          "signatures": [
            "func withCurrency(number, symbol, pattern: string): string"
          ],
          "doc": "The number and the symbol, placed and spaced as the pattern says.",
          "line": 171,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-withCurrency",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatPattern",
          "kind": "func",
          "section": "dates and times",
          "signatures": [
            "func formatPattern(l: Locale; pattern: string; year = 0; month = 0; day = 0;\n                   weekday = -1; hour = -1; minute = 0; second = 0): string"
          ],
          "doc": "Writes a date or a time with a CLDR pattern: `formatPattern(getLocale(\"it\"), \"d MMMM y\",\n2026, 11, 7)` is \"7 novembre 2026\". `weekday` is 0 for Sunday. Text between quotes is kept.",
          "line": 200,
          "url": "https://pietroppeter.github.io/tabelline/api/#localize-formatPattern",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/formats",
      "title": "Formats",
      "path": "src/tabelline/formats.nim",
      "doc": "Formatting values: plain functions that turn numbers into text (`formatNumber`, `formatPercent`,\n..., usable on their own, like Great Tables' `vals`), and the `fmt*` verbs that attach them to\ncolumns and rows of a table. A verb resolves its columns and rows when it is called, and the\nformats run when the table is rendered: the last format given for a cell wins.",
      "symbols": [
        {
          "name": "Marks",
          "kind": "type",
          "section": "locales",
          "signatures": [
            "Marks = tuple[sep, dec: string]"
          ],
          "doc": "",
          "line": 13,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-Marks",
          "counterparts": [],
          "example": null
        },
        {
          "name": "localeMarks",
          "kind": "func",
          "section": "locales",
          "signatures": [
            "func localeMarks(locale: string): Marks"
          ],
          "doc": "Digit group and decimal marks for a locale, from CLDR: `localeMarks(\"it\")` is (\".\", \",\"),\n`localeMarks(\"de-CH\")` is (\"'\", \".\"), `localeMarks(\"fr\")` is (\" \", \",\") with a narrow\nno-break space. An unknown locale, or \"\", is \"en\".",
          "line": 15,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-localeMarks",
          "counterparts": [],
          "example": null
        },
        {
          "name": "escapeHtml",
          "kind": "func",
          "section": "locales",
          "signatures": [
            "func escapeHtml(s: string): string"
          ],
          "doc": "",
          "line": 22,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-escapeHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "sigfigDecimals",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func sigfigDecimals(x: float; nSigfig: int): int"
          ],
          "doc": "How many decimals show `nSigfig` significant figures of `x`: 3 for 0.01234 and 3 figures,\n0 for 12345 (which shows as 12,300: the figures after the third are rounded to zeros).",
          "line": 37,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-sigfigDecimals",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatNumber",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatNumber(x: float; decimals = 2; useSeps = true;\n                  dropTrailingZeros = false; sepMark = \",\"; decMark = \".\";\n                  forceSign = false; nSigfig = 0; accounting = false;\n                  pattern = \"{x}\"; locale = \"\"): string"
          ],
          "doc": "`formatNumber(1234.5678)` is \"1,234.57\"; `formatNumber(1234.5, 1, sepMark = \".\", decMark = \",\")`\nis \"1.234,5\". `nSigfig` shows that many significant figures instead of `decimals` (gt's\n`n_sigfig`): `formatNumber(0.012345, nSigfig = 3)` is \"0.0123\". `accounting` writes a\nnegative number in parentheses, \"(12.50)\"; `pattern` puts the number in a text, \"{x} kg\";\n`locale` takes its marks (\"it\": \"1.234,57\"), as `fmtNumber` does.",
          "line": 48,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatNumber",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let middle = aggregate(proc (vs: seq[Value]): Value = vs[vs.len div 2])\nlet t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"mass\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  fmtInteger \"diameter\"\n  grandSummaryRows:\n    planets: agg.count\n    largest: agg.max\n    \"middle one\": middle\n  grandSummaryRows:\n    mean: agg.mean\n    fmt = (x: float) => formatNumber(x, decimals = 1)\necho t",
            "prints": "┌────────────┬──────────┬───────┐\n│            │ diameter │ moons │\n╞════════════╪══════════╪═══════╡\n│ Mercury    │    4,879 │     0 │\n│ Venus      │   12,104 │     0 │\n│ Earth      │   12,756 │     1 │\n│ Mars       │    6,792 │     2 │\n│ Jupiter    │  142,984 │    95 │\n│ Saturn     │  120,536 │   146 │\n│ Uranus     │   51,118 │    28 │\n│ Neptune    │   49,528 │    16 │\n╞════════════╪══════════╪═══════╡\n│ planets    │        8 │     8 │\n│ largest    │  142,984 │   146 │\n│ middle one │  142,984 │    95 │\n│ mean       │ 50,087.1 │  36.0 │\n└────────────┴──────────┴───────┘"
          }
        },
        {
          "name": "formatCompact",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatCompact(x: float; decimals = 1; decMark = \".\"; nSigfig = 0;\n                   pattern = \"{x}\"; locale = \"\"): string"
          ],
          "doc": "Large numbers with a suffix: 1234567 is \"1.2M\"; with `nSigfig = 3`, \"1.23M\".",
          "line": 82,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatCompact",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  population: [\"[0,1e+06)\", \"[1e+06,1e+07)\", \"[1e+07,1e+08)\"]\n  countries: [52, 61, 83]\nlet t = tabella(d):\n  fmtBins \"population\", fmt = proc (x: float): string = formatCompact(x, 0)\necho t",
            "prints": "┌────────────┬───────────┐\n│ population │ countries │\n╞════════════╪═══════════╡\n│ 0–1M       │        52 │\n│ 1M–10M     │        61 │\n│ 10M–100M   │        83 │\n└────────────┴───────────┘"
          }
        },
        {
          "name": "toSuperscript",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func toSuperscript(s: string): string"
          ],
          "doc": "`toSuperscript(\"-2\")` is \"⁻²\" (`^s` when a character has no superscript).",
          "line": 126,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-toSuperscript",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toSubscript",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func toSubscript(s: string): string"
          ],
          "doc": "`toSubscript(\"2\")` is \"₂\" (`_s` when a character has no subscript).",
          "line": 130,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-toSubscript",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatScientific",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatScientific(x: float; decimals = 2; decMark = \".\"; ctx = rcText;\n                      expStyle = \"x10n\"; pattern = \"{x}\"; locale = \"\"): string"
          ],
          "doc": "`formatScientific(5.97e24)` is \"5.97 × 10²⁴\"; `expStyle` \"e\" is \"5.97e24\" and \"E\"\n\"5.97E24\", as gt's `exp_style`; `locale` takes its decimal mark (\"de\": \"5,97 × 10²⁴\").",
          "line": 134,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatScientific",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatPercent",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatPercent(x: float; decimals = 1; scaleValues = true; decMark = \".\";\n                   sepMark = \",\"; pattern = \"#,##0%\"; percentSign = \"%\";\n                   accounting = false; locale = \"\"): string"
          ],
          "doc": "`formatPercent(0.123)` is \"12.3%\"; `pattern` is a locale's (`getLocale(\"fr\").percentPattern`\nis \"#,##0 %\", with a no-break space), which `locale = \"fr\"` takes, with its marks.\n`accounting` writes \"(12.3%)\" for −0.123.",
          "line": 154,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatPercent",
          "counterparts": [],
          "example": null
        },
        {
          "name": "currencySymbol",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func currencySymbol(code: string): string"
          ],
          "doc": "The symbol of an ISO 4217 code, from CLDR (English): \"EUR\" is \"€\", \"CHF\" is \"CHF\", \"CAD\"\nis \"CA$\". An unknown code is its own symbol.",
          "line": 169,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-currencySymbol",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatCurrency",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatCurrency(x: float; currency = \"USD\"; decimals = -1; sepMark = \",\";\n                    decMark = \".\"; placement = \"\"; pattern = \"¤#,##0.00\";\n                    accounting = false; useSubunits = true; locale = \"\"): string"
          ],
          "doc": "`formatCurrency(49.95, \"EUR\")` is \"€49.95\". `decimals = -1` takes the currency's (0 for JPY,\n3 for BHD, 2 for most); `useSubunits = false` drops them. The symbol goes where `pattern`\nputs it (a locale's `currencyPattern`: \"#,##0.00 ¤\" in Italian, which `locale = \"it\"`\ntakes, with its marks), or `placement` \"left\" or \"right\". `accounting` writes a negative\namount in parentheses.",
          "line": 174,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatCurrency",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  amount: [1234.5, -3.25]\nlet accounting = tabella(d):\n  fmtCurrency \"amount\", currency = \"CAD\", accounting = true\necho accounting\nlet euro = tabella(d, locale = \"it\"):\n  fmtCurrency \"amount\", currency = \"EUR\"\necho euro\nlet dinar = tabella(d):\n  fmtCurrency \"amount\", currency = \"BHD\", placement = \"right\"\necho dinar\necho formatCurrency(1500, \"JPY\"), \" \", currencyInfo(\"CHF\")",
            "prints": "┌─────────────┐\n│      amount │\n╞═════════════╡\n│ CA$1,234.50 │\n│   (CA$3.25) │\n└─────────────┘\n┌────────────┐\n│     amount │\n╞════════════╡\n│ 1.234,50 € │\n│    −3,25 € │\n└────────────┘\n┌───────────────┐\n│        amount │\n╞═══════════════╡\n│ 1,234.500 BHD │\n│    −3.250 BHD │\n└───────────────┘\n¥1,500 (name: \"Swiss Franc\", symbol: \"CHF\", digits: 2)"
          }
        },
        {
          "name": "formatRoman",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatRoman(n: int; upper = true): string"
          ],
          "doc": "`formatRoman(2026)` is \"MMXXVI\".",
          "line": 198,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatRoman",
          "counterparts": [],
          "example": null
        },
        {
          "name": "dateStyles",
          "kind": "const",
          "section": "value formatting",
          "signatures": [
            "dateStyles = [(\"iso\", \"y-MM-dd\"), (\"wday_month_day_year\", \"EEEE, MMMM d, y\"),\n              (\"wd_m_day_year\", \"EEE, MMM d, y\"),\n              (\"wday_day_month_year\", \"EEEE d MMMM y\"),\n              (\"month_day_year\", \"MMMM d, y\"), (\"m_day_year\", \"MMM d, y\"),\n              (\"day_m_year\", \"d MMM y\"), (\"day_month_year\", \"d MMMM y\"),\n              (\"day_month\", \"d MMMM\"), (\"day_m\", \"d MMM\"), (\"year\", \"y\"),\n              (\"month\", \"LLLL\"), (\"day\", \"dd\"), (\"year.mn.day\", \"y/MM/dd\"),\n              (\"y.mn.day\", \"yy/MM/dd\"), (\"year_week\", \"Y-\\'W\\'ww\"),\n              (\"year_quarter\", \"y-\\'Q\\'Q\"), (\"year_month\", \"LLLL y\"),\n              (\"dd/mm/yyyy\", \"dd/MM/y\"), (\"mm/dd/yyyy\", \"MM/dd/y\")]"
          ],
          "doc": "gt's fixed date styles, as CLDR patterns, with names in the locale's language. The flexible\nones (`dateSkeletons`: \"yMMMd\", \"yMMMEd\", ...) also follow the locale's order.",
          "line": 208,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-dateStyles",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatDate",
          "kind": "proc",
          "section": "value formatting",
          "signatures": [
            "proc formatDate(s: string; dateStyle = \"iso\"; locale = \"\"): string"
          ],
          "doc": "An ISO date (\"2015-01-15\", or the date part of a datetime) in one of `dateStyles`, a\nflexible style of `dateSkeletons` (\"yMMMd\"), or a std/times pattern (English names), in the\nlanguage of `locale`: `formatDate(\"2015-01-15\", \"day_month_year\", \"it\")` is \"15 gennaio 2015\".\nText that is not a date is returned as is.",
          "line": 228,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatDate",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  day: [\"2026-11-07\", \"2015-01-15\"]\nlet german = tabella(d, locale = \"de\"):\n  fmtDate \"day\", dateStyle = \"yMMMEd\"\necho german\nfor loc in [\"en\", \"it\", \"ja\", \"ru\"]:\n  echo loc, \": \", formatDate(\"2026-11-07\", \"wday_day_month_year\", loc), \" · \",\n    formatDate(\"2026-11-07\", \"yMMMd\", loc), \" · \", formatTime(\"14:35\", \"hm\", loc)",
            "prints": "┌────────────────────┐\n│ day                │\n╞════════════════════╡\n│ Sa., 7. Nov. 2026  │\n│ Do., 15. Jan. 2015 │\n└────────────────────┘\nen: Saturday 7 November 2026 · Nov 7, 2026 · 2:35 PM\nit: sabato 7 novembre 2026 · 7 nov 2026 · 2:35 PM\nja: 土曜日 7 11月 2026 · 2026年11月7日 · 午後2:35\nru: суббота 7 ноября 2026 · 7 нояб. 2026 г. · 2:35 PM"
          }
        },
        {
          "name": "formatInteger",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatInteger(x: float; useSeps = true; sepMark = \",\"; accounting = false;\n                   pattern = \"{x}\"; locale = \"\"): string"
          ],
          "doc": "`formatInteger(1234.6)` is \"1,235\"; `locale = \"it\"`, \"1.235\".",
          "line": 246,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatInteger",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatEngineering",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatEngineering(x: float; decimals = 2; decMark = \".\"; ctx = rcText): string"
          ],
          "doc": "Scientific notation with exponents in steps of three: `formatEngineering(12345)` is\n\"12.35 × 10³\".",
          "line": 252,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatEngineering",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatNumberSi",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatNumberSi(x: float; unit = \"\"; decimals = 2; inclSpace = true;\n                    decMark = \".\"): string"
          ],
          "doc": "A number with an SI prefix: `formatNumberSi(12345, \"g\")` is \"12.35 kg\".",
          "line": 267,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatNumberSi",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatPartsper",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatPartsper(x: float; toUnits = \"per-mille\"; decimals = 2;\n                    scaleValues = true; inclSpace = \"auto\"; decMark = \".\";\n                    sepMark = \",\"): string"
          ],
          "doc": "Fractions as parts per thousand (\"per-mille\", ‰), ten thousand (\"per-myriad\", ‱), hundred\nthousand (\"pcm\"), million (\"ppm\"), billion (\"ppb\"), trillion (\"ppt\") or quadrillion (\"ppq\").\n`inclSpace = \"auto\"` puts a space before the letters and none before ‰ and ‱.",
          "line": 280,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatPartsper",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatBytes",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatBytes(x: float; standard = \"decimal\"; decimals = 1; inclSpace = true;\n                 decMark = \".\"): string"
          ],
          "doc": "Sizes in bytes: `formatBytes(1500)` is \"1.5 kB\", `formatBytes(1536, \"binary\")` is \"1.5 KiB\".",
          "line": 292,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatBytes",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatIndex",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatIndex(n: int; upper = true; indexAlgo = \"repeat\"): string"
          ],
          "doc": "Letters for 1, 2, 3, ...: \"A\", \"B\", ... \"Z\", then \"AA\", \"BB\" (`indexAlgo = \"repeat\"`) or\n\"AA\", \"AB\" (`\"excel\"`).",
          "line": 303,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatIndex",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatSpelledNum",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatSpelledNum(n: int): string"
          ],
          "doc": "Numbers from zero to one hundred in English words: `formatSpelledNum(42)` is \"forty-two\";\nother numbers stay as digits.",
          "line": 317,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatSpelledNum",
          "counterparts": [],
          "example": null
        },
        {
          "name": "timeStyles",
          "kind": "const",
          "section": "value formatting",
          "signatures": [
            "timeStyles = [\"iso\", \"iso-short\", \"h_m_s_p\", \"h_m_p\", \"h_p\", \"h_m\", \"h_m_s\"]"
          ],
          "doc": "Named time styles: 14:35:00, 14:35, 2:35:00 PM, 2:35 PM, 2 PM, 14:35, 14:35:00. The\nflexible ones (`timeSkeletons`: \"Hm\", \"hm\", ...) follow the locale.",
          "line": 330,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-timeStyles",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatTime",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatTime(s: string; timeStyle = \"iso\"; locale = \"\"): string"
          ],
          "doc": "A time (\"14:35\", \"14:35:07\", or the time of an ISO datetime) in one of `timeStyles` or\n`timeSkeletons`, with the locale's AM and PM: `formatTime(\"14:35\", \"hm\", \"it\")` is \"2:35 PM\".\nText that is not a time is returned as is.",
          "line": 354,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatTime",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  launch: [\"1969-07-16T13:32:00\", \"2026-11-07 09:05\", \"soon\"]\nlet t = tabella(d):\n  fmtDatetime \"launch\", dateStyle = \"day_m_year\", timeStyle = \"h_m_p\"\necho t\necho formatTime(\"14:35:07\", \"iso-short\"), \" \", formatTime(\"14:35\", \"h_p\")",
            "prints": "┌─────────────────────┐\n│ launch              │\n╞═════════════════════╡\n│ 16 Jul 1969 1:32 PM │\n│ 7 Nov 2026 9:05 AM  │\n│ soon                │\n└─────────────────────┘\n14:35 2 PM"
          }
        },
        {
          "name": "strftimeToCldr",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func strftimeToCldr(f: string): string"
          ],
          "doc": "A strftime format (`\"%Y-%m-%d %H:%M\"`, as Python's and Great Tables' `format_str`) as a CLDR\npattern: %Y %y %m %d %e %B %b %A %a %H %I %M %S %p and %%; other text is kept as it is.",
          "line": 374,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-strftimeToCldr",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatDatetime",
          "kind": "proc",
          "section": "value formatting",
          "signatures": [
            "proc formatDatetime(s: string; dateStyle = \"iso\"; timeStyle = \"iso\"; sep = \" \";\n                    locale = \"\"; formatStr = \"\"): string"
          ],
          "doc": "An ISO datetime (\"2026-11-07T14:35:00\" or \"2026-11-07 14:35\") as a date and a time, in the\ndate and time styles; a date without a time shows only the date. `formatStr` writes it with\na strftime format instead, as Great Tables' `format_str`: `\"%d %B %Y, %H:%M\"` is\n\"07 November 2026, 14:35\", in the locale's language.",
          "line": 410,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatDatetime",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatDuration",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatDuration(x: float; inputUnits = \"seconds\";\n                    outputUnits: openArray[string] = [];\n                    durationStyle = \"narrow\"; trimZeroUnits = true;\n                    maxOutputUnits = 0): string"
          ],
          "doc": "A length of time in weeks, days, hours, minutes and seconds: `formatDuration(7503)` is\n\"2h 5m 3s\"; `durationStyle` \"wide\" (2 hours 5 minutes 3 seconds), \"colon-sep\" (02:05:03)\nor \"iso\" (PT2H5M3S). The smallest output unit is rounded.",
          "line": 438,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatDuration",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  secs: [7503.0, 90061.0, 45.0]\nlet narrow = tabella(d):\n  fmtDuration \"secs\"\necho narrow\nlet colons = tabella(d):\n  fmtDuration \"secs\", durationStyle = \"colon-sep\"\necho colons\necho formatDuration(1.5, inputUnits = \"days\", durationStyle = \"wide\")",
            "prints": "┌─────────────┐\n│        secs │\n╞═════════════╡\n│    2h 5m 3s │\n│ 1d 1h 1m 1s │\n│         45s │\n└─────────────┘\n┌──────────┐\n│     secs │\n╞══════════╡\n│ 02:05:03 │\n│ 25:01:01 │\n│ 00:00:45 │\n└──────────┘\n1 day 12 hours"
          }
        },
        {
          "name": "tfStyles",
          "kind": "const",
          "section": "value formatting",
          "signatures": [
            "tfStyles = [(\"true-false\", \"true\", \"false\"), (\"yes-no\", \"yes\", \"no\"),\n            (\"up-down\", \"up\", \"down\"), (\"check-mark\", \"✓\", \"✗\"),\n            (\"circles\", \"●\", \"○\"), (\"squares\", \"■\", \"□\"),\n            (\"diamonds\", \"◆\", \"◇\"), (\"arrows\", \"↑\", \"↓\"),\n            (\"triangles\", \"▲\", \"▼\"), (\"triangles-lr\", \"▶\", \"◀\")]"
          ],
          "doc": "Named pairs of texts for booleans, as gt's `tf_style`.",
          "line": 482,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-tfStyles",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatTf",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatTf(b: bool; tfStyle = \"check-mark\"): string"
          ],
          "doc": "A boolean in one of `tfStyles`: `formatTf(true, \"yes-no\")` is \"yes\".",
          "line": 488,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatTf",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatFlag",
          "kind": "func",
          "section": "value formatting",
          "signatures": [
            "func formatFlag(codes: string; sep = \" \"): string"
          ],
          "doc": "Country codes (ISO 3166-1, two or three letters, comma or space separated) as flag emoji:\n`formatFlag(\"IT\")` and `formatFlag(\"ITA\")` are \"🇮🇹\". Anything else is left as it is.",
          "line": 494,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatFlag",
          "counterparts": [],
          "example": null
        },
        {
          "name": "inlineMarkdown",
          "kind": "func",
          "section": "inline markdown",
          "signatures": [
            "func inlineMarkdown(s: string): string"
          ],
          "doc": "Inline Markdown: `**bold**` and `__bold__`, `*italic*` and `_italic_`, `~~struck~~`,\n`` `code` ``, `[text](url)` and `<https://...>`, `~sub~`, `^sup^`, HTML entities (`&mdash;`),\nand `<br>`, two spaces before a newline or a backslash before it for a line break.\nWith no dependency (nimib's Markdown is not needed here); `md()` adds paragraphs and lists.",
          "line": 531,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-inlineMarkdown",
          "counterparts": [],
          "example": null
        },
        {
          "name": "mdToHtml",
          "kind": "func",
          "section": "inline markdown",
          "signatures": [
            "func mdToHtml(s: string): string"
          ],
          "doc": "Markdown with paragraphs (a blank line between them) and lists (`- item`, `1. item`), each\nline inline Markdown. One paragraph is its inline HTML, with no `<p>` around it, so a label\nstays a label.",
          "line": 601,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-mdToHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "textToHtml",
          "kind": "func",
          "section": "inline markdown",
          "signatures": [
            "func textToHtml(t: Text): string"
          ],
          "doc": "",
          "line": 629,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-textToHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "decodeEntities",
          "kind": "func",
          "section": "inline markdown",
          "signatures": [
            "func decodeEntities(s: string): string"
          ],
          "doc": "The text of HTML entities: `&mdash;` is \"—\", `&#8212;` and `&#x2014;` too (for text and\nMarkdown output); an entity it does not know is left as it is.",
          "line": 642,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-decodeEntities",
          "counterparts": [],
          "example": null
        },
        {
          "name": "textToPlain",
          "kind": "func",
          "section": "inline markdown",
          "signatures": [
            "func textToPlain(t: Text): string"
          ],
          "doc": "",
          "line": 680,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-textToPlain",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmt",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmt(t: sink Tabella; columns: ColSel; fn: FormatFn; rows = allRows()): Tabella",
            "proc fmt(t: sink Tabella; columns: ColSel; fn: proc (v: Value): string;\n         rows = allRows()): Tabella"
          ],
          "doc": "The general formatter: `fn(value, ctx)` gives the text of each (non-missing) cell.",
          "line": 695,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmt",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt()"
            }
          ],
          "example": null
        },
        {
          "name": "fmtNumber",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtNumber(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n               decimals = 2; nSigfig = 0; dropTrailingZeros = false;\n               useSeps = true; accounting = false; scaleBy = 1.0;\n               compact = false; pattern = \"{x}\"; forceSign = false; locale = \"\";\n               sepMark = \"\"; decMark = \"\"): Tabella"
          ],
          "doc": "Numbers with a fixed number of decimals and digit grouping: `fmtNumber(\"mass\", decimals = 1)`.\n`nSigfig = 3` shows three significant figures instead (gt's `n_sigfig`, also with\n`compact`); `accounting` writes negative numbers in parentheses.",
          "line": 714,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtNumber",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_number()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_number()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [1.5, 2.25, nil]\nlet t = tabella(d):\n  fmtNumber \"x\", decimals = 1\n  fmtNumber \"x\", decimals = 3, rows = [0]\necho t",
            "prints": "┌───────┐\n│     x │\n╞═══════╡\n│ 1.500 │\n│   2.2 │\n│       │\n└───────┘"
          }
        },
        {
          "name": "fmtInteger",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtInteger(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n                useSeps = true; accounting = false; scaleBy = 1.0;\n                pattern = \"{x}\"; forceSign = false; locale = \"\"; sepMark = \"\"): Tabella"
          ],
          "doc": "",
          "line": 731,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtInteger",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_integer()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_integer()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let budget = tableData:\n  item: [\"Hardware\", \"Laptops\", \"Screens\", \"Travel\"]\n  eur: [5200, 4000, 1200, 900]\nlet t = tabella(budget, rownameCol = \"item\"):\n  tabStubIndent [1, 2], \"increase\"\n  fmtInteger \"eur\"\necho t",
            "prints": "┌───────────┬───────┐\n│           │   eur │\n╞═══════════╪═══════╡\n│ Hardware  │ 5,200 │\n│   Laptops │ 4,000 │\n│   Screens │ 1,200 │\n│ Travel    │   900 │\n└───────────┴───────┘"
          }
        },
        {
          "name": "fmtPercent",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtPercent(t: sink Tabella; columns: ColSel; rows = allRows();\n                decimals = 1; scaleValues = true; accounting = false;\n                locale = \"\"): Tabella"
          ],
          "doc": "Fractions as percentages: 0.123 is \"12.3%\" (`scaleValues = false` for values already in %),\n\"12,3 %\" in French; `accounting` writes \"(12.3%)\" for −0.123.",
          "line": 737,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtPercent",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_percent()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_percent()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [1234.5, 0.25]\nlet p = tableData:\n  share: [0.123, 0.5]\nlet italian = tabella(d, locale = \"it\"):\n  fmtNumber \"n\", decimals = 2\necho italian\nlet swiss = tabella(d, locale = \"de_CH\"):\n  fmtNumber \"n\", decimals = 2\necho swiss\nlet french = tabella(p, locale = \"fr\"):\n  fmtPercent \"share\"\necho french\necho getLocale(\"pt-XX\").tag, \" \", getLocale(\"it\").months[10], \" \", getLocale(\"ja\").daysAbbr[0]",
            "prints": "┌──────────┐\n│        n │\n╞══════════╡\n│ 1.234,50 │\n│     0,25 │\n└──────────┘\n┌──────────┐\n│        n │\n╞══════════╡\n│ 1'234.50 │\n│     0.25 │\n└──────────┘\n┌────────┐\n│  share │\n╞════════╡\n│ 12,3 % │\n│ 50,0 % │\n└────────┘\npt novembre 日"
          }
        },
        {
          "name": "fmtCurrency",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtCurrency(t: sink Tabella; columns: ColSel; rows = allRows();\n                 currency = \"USD\"; decimals = -1; placement = \"\";\n                 accounting = false; useSubunits = true; locale = \"\"): Tabella"
          ],
          "doc": "Numbers as amounts of a currency (any ISO 4217 code), with its symbol and its decimals, in the\nlocale's way: \"€49.95\" in English, \"49,95 €\" in Italian. `placement` \"left\" or \"right\"\nputs the symbol there whatever the locale; `accounting` writes negative amounts in parentheses.",
          "line": 748,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtCurrency",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_currency()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_currency()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  amount: [1234.5, -3.25]\nlet accounting = tabella(d):\n  fmtCurrency \"amount\", currency = \"CAD\", accounting = true\necho accounting\nlet euro = tabella(d, locale = \"it\"):\n  fmtCurrency \"amount\", currency = \"EUR\"\necho euro\nlet dinar = tabella(d):\n  fmtCurrency \"amount\", currency = \"BHD\", placement = \"right\"\necho dinar\necho formatCurrency(1500, \"JPY\"), \" \", currencyInfo(\"CHF\")",
            "prints": "┌─────────────┐\n│      amount │\n╞═════════════╡\n│ CA$1,234.50 │\n│   (CA$3.25) │\n└─────────────┘\n┌────────────┐\n│     amount │\n╞════════════╡\n│ 1.234,50 € │\n│    −3,25 € │\n└────────────┘\n┌───────────────┐\n│        amount │\n╞═══════════════╡\n│ 1,234.500 BHD │\n│    −3.250 BHD │\n└───────────────┘\n¥1,500 (name: \"Swiss Franc\", symbol: \"CHF\", digits: 2)"
          }
        },
        {
          "name": "fmtScientific",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtScientific(t: sink Tabella; columns: ColSel; rows = allRows();\n                   decimals = 2; expStyle = \"x10n\"; locale = \"\"): Tabella"
          ],
          "doc": "Scientific notation: 5.97e24 is \"5.97 × 10²⁴\"; `expStyle` \"e\" or \"E\" writes \"5.97e24\".",
          "line": 762,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtScientific",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_scientific()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_scientific()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [1234567.891, -0.5, 0.0123]\nlet number = tabella(d):\n  fmtNumber \"n\", decimals = 2\necho number\nlet compact = tabella(d):\n  fmtNumber \"n\", compact = true\necho compact\nlet percent = tabella(d):\n  fmtPercent \"n\", decimals = 1\necho percent\nlet currency = tabella(d):\n  fmtCurrency \"n\", currency = \"EUR\"\necho currency\nlet scientific = tabella(d):\n  fmtScientific \"n\", decimals = 1\necho scientific",
            "prints": "┌──────────────┐\n│            n │\n╞══════════════╡\n│ 1,234,567.89 │\n│        −0.50 │\n│         0.01 │\n└──────────────┘\n┌───────┐\n│     n │\n╞═══════╡\n│ 1.23M │\n│  −0.5 │\n│  0.01 │\n└───────┘\n┌────────────────┐\n│              n │\n╞════════════════╡\n│ 123,456,789.1% │\n│         −50.0% │\n│           1.2% │\n└────────────────┘\n┌───────────────┐\n│             n │\n╞═══════════════╡\n│ €1,234,567.89 │\n│        −€0.50 │\n│         €0.01 │\n└───────────────┘\n┌─────────────┐\n│           n │\n╞═════════════╡\n│   1.2 × 10⁶ │\n│ −5.0 × 10⁻¹ │\n│  1.2 × 10⁻² │\n└─────────────┘"
          }
        },
        {
          "name": "fmtRoman",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtRoman(t: sink Tabella; columns: ColSel; rows = allRows(); upper = true): Tabella"
          ],
          "doc": "",
          "line": 770,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtRoman",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_roman()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_roman()"
            }
          ],
          "example": null
        },
        {
          "name": "fmtDate",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtDate(t: sink Tabella; columns: ColSel; rows = allRows();\n             dateStyle = \"iso\"; locale = \"\"): Tabella"
          ],
          "doc": "ISO date strings in a `dateStyles` style (\"month_day_year\", ...), a flexible style\n(\"yMMMd\"), or a std/times pattern, in the locale's language.",
          "line": 775,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtDate",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_date()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_date()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  day: [\"2026-11-07\", \"2015-01-15\"]\n  ok: [true, false]\n  stars: [3, 1]\nlet t = tabella(d):\n  fmtDate \"day\", dateStyle = \"day_month_year\"\n  fmtTf \"ok\", trueText = \"yes\", falseText = \"no\"\n  fmt \"stars\", proc (v: Value): string = \"*\".repeat(v.i)\necho t",
            "prints": "┌─────────────────┬─────┬───────┐\n│ day             │ ok  │ stars │\n╞═════════════════╪═════╪═══════╡\n│ 7 November 2026 │ yes │   *** │\n│ 15 January 2015 │ no  │     * │\n└─────────────────┴─────┴───────┘"
          }
        },
        {
          "name": "fmtMarkdown",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtMarkdown(t: sink Tabella; columns: ColSel; rows = allRows()): Tabella"
          ],
          "doc": "Cell text as Markdown (inline: emphasis, code, links).",
          "line": 782,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtMarkdown",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_markdown()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_markdown()"
            }
          ],
          "example": null
        },
        {
          "name": "subMissing",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc subMissing(t: sink Tabella; columns: ColSel = everything();\n                rows = allRows(); missingText: Text = toText(\"—\")): Tabella"
          ],
          "doc": "Shows missing values as `missingText` (by default they are blank): a text, or Markdown,\n`md(\"**STABLE**\")`, as gt's `missing_text = md(...)`.",
          "line": 787,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-subMissing",
          "counterparts": [
            {
              "in": "gt",
              "name": "sub_missing()"
            },
            {
              "in": "Great Tables",
              "name": "GT.sub_missing()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [0, nil, 3]\nlet t = tabella(d):\n  subMissing()\n  subZero zeroText = \"none\"\necho t",
            "prints": "┌──────┐\n│    n │\n╞══════╡\n│ none │\n│    — │\n│    3 │\n└──────┘"
          }
        },
        {
          "name": "subZero",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc subZero(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n             zeroText = \"nil\"): Tabella"
          ],
          "doc": "Shows zeros as `zeroText`.",
          "line": 797,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-subZero",
          "counterparts": [
            {
              "in": "gt",
              "name": "sub_zero()"
            },
            {
              "in": "Great Tables",
              "name": "GT.sub_zero()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [0, nil, 3]\nlet t = tabella(d):\n  subMissing()\n  subZero zeroText = \"none\"\necho t",
            "prints": "┌──────┐\n│    n │\n╞══════╡\n│ none │\n│    — │\n│    3 │\n└──────┘"
          }
        },
        {
          "name": "fmtEngineering",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtEngineering(t: sink Tabella; columns: ColSel = numeric();\n                    rows = allRows(); decimals = 2; locale = \"\"): Tabella"
          ],
          "doc": "Scientific notation with exponents in steps of three: 12345 is \"12.35 × 10³\".",
          "line": 806,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtEngineering",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_engineering()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_engineering()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [12345.0, 0.000123, 1.5]\nlet engineering = tabella(d):\n  fmtEngineering \"x\"\necho engineering\nlet si = tabella(d):\n  fmtNumberSi \"x\", unit = \"g\"\necho si",
            "prints": "┌───────────────┐\n│             x │\n╞═══════════════╡\n│   12.35 × 10³ │\n│ 123.00 × 10⁻⁶ │\n│          1.50 │\n└───────────────┘\n┌───────────┐\n│         x │\n╞═══════════╡\n│  12.35 kg │\n│ 123.00 µg │\n│    1.50 g │\n└───────────┘"
          }
        },
        {
          "name": "fmtNumberSi",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtNumberSi(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n                 unit = \"\"; decimals = 2; inclSpace = true; locale = \"\"): Tabella"
          ],
          "doc": "Numbers with SI prefixes and a unit: 12345 with `unit = \"g\"` is \"12.35 kg\".",
          "line": 814,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtNumberSi",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_number_si()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [12345.0, 0.000123, 1.5]\nlet engineering = tabella(d):\n  fmtEngineering \"x\"\necho engineering\nlet si = tabella(d):\n  fmtNumberSi \"x\", unit = \"g\"\necho si",
            "prints": "┌───────────────┐\n│             x │\n╞═══════════════╡\n│   12.35 × 10³ │\n│ 123.00 × 10⁻⁶ │\n│          1.50 │\n└───────────────┘\n┌───────────┐\n│         x │\n╞═══════════╡\n│  12.35 kg │\n│ 123.00 µg │\n│    1.50 g │\n└───────────┘"
          }
        },
        {
          "name": "fmtPartsper",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtPartsper(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n                 toUnits = \"per-mille\"; decimals = 2; scaleValues = true;\n                 inclSpace = \"auto\"; locale = \"\"): Tabella"
          ],
          "doc": "Fractions as parts per thousand (‰), ten thousand (‱), million (ppm), ... see `formatPartsper`.",
          "line": 822,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtPartsper",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_partsper()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_partsper()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  co2: [0.000421, 0.000280]\nlet ppm = tabella(d):\n  fmtPartsper \"co2\", toUnits = \"ppm\", decimals = 0\necho ppm\nlet perMille = tabella(d):\n  fmtPartsper \"co2\", decimals = 3\necho perMille",
            "prints": "┌─────────┐\n│     co2 │\n╞═════════╡\n│ 421 ppm │\n│ 280 ppm │\n└─────────┘\n┌────────┐\n│    co2 │\n╞════════╡\n│ 0.421‰ │\n│ 0.280‰ │\n└────────┘"
          }
        },
        {
          "name": "fmtBytes",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtBytes(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n              standard = \"decimal\"; decimals = 1; inclSpace = true; locale = \"\"): Tabella"
          ],
          "doc": "Sizes in bytes: kB, MB, GB (`standard = \"decimal\"`) or KiB, MiB, GiB (`\"binary\"`).",
          "line": 831,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtBytes",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_bytes()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_bytes()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  size: [512, 1500, 1536, 3_200_000_000]\nlet t = tabella(d):\n  fmtBytes \"size\"\n  fmtBytes \"size\", rows = [2], standard = \"binary\"\necho t",
            "prints": "┌─────────┐\n│    size │\n╞═════════╡\n│   512 B │\n│  1.5 kB │\n│ 1.5 KiB │\n│  3.2 GB │\n└─────────┘"
          }
        },
        {
          "name": "fmtIndex",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtIndex(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n              upper = true; indexAlgo = \"repeat\"): Tabella"
          ],
          "doc": "Whole numbers as letters: 1 is \"A\", 27 is \"AA\" (see `formatIndex`).",
          "line": 839,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtIndex",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_index()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [1, 3, 27, 42]\nlet index = tabella(d):\n  fmtIndex \"n\", upper = false\necho index\nlet spelled = tabella(d):\n  fmtSpelledNum \"n\"\necho spelled",
            "prints": "┌────┐\n│  n │\n╞════╡\n│  a │\n│  c │\n│ aa │\n│ pp │\n└────┘\n┌──────────────┐\n│            n │\n╞══════════════╡\n│          one │\n│        three │\n│ twenty-seven │\n│    forty-two │\n└──────────────┘"
          }
        },
        {
          "name": "fmtSpelledNum",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtSpelledNum(t: sink Tabella; columns: ColSel = numeric();\n                   rows = allRows()): Tabella"
          ],
          "doc": "Whole numbers from zero to one hundred in English words.",
          "line": 846,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtSpelledNum",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_spelled_num()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  n: [1, 3, 27, 42]\nlet index = tabella(d):\n  fmtIndex \"n\", upper = false\necho index\nlet spelled = tabella(d):\n  fmtSpelledNum \"n\"\necho spelled",
            "prints": "┌────┐\n│  n │\n╞════╡\n│  a │\n│  c │\n│ aa │\n│ pp │\n└────┘\n┌──────────────┐\n│            n │\n╞══════════════╡\n│          one │\n│        three │\n│ twenty-seven │\n│    forty-two │\n└──────────────┘"
          }
        },
        {
          "name": "fmtTime",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtTime(t: sink Tabella; columns: ColSel; rows = allRows();\n             timeStyle = \"iso\"; locale = \"\"): Tabella"
          ],
          "doc": "Times (\"14:35:00\", or the time of a datetime) in one of `timeStyles` or `timeSkeletons`.",
          "line": 852,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtTime",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_time()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_time()"
            }
          ],
          "example": null
        },
        {
          "name": "fmtDatetime",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtDatetime(t: sink Tabella; columns: ColSel; rows = allRows();\n                 dateStyle = \"iso\"; timeStyle = \"iso\"; sep = \" \";\n                 formatStr = \"\"; locale = \"\"): Tabella"
          ],
          "doc": "ISO datetimes as a date and a time, each in its style, or with a strftime `formatStr`\n(`\"%Y/%m/%d %H:%M\"`), as Great Tables' `format_str`.",
          "line": 859,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtDatetime",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_datetime()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_datetime()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  launch: [\"1969-07-16T13:32:00\", \"2026-11-07 09:05\", \"soon\"]\nlet t = tabella(d):\n  fmtDatetime \"launch\", dateStyle = \"day_m_year\", timeStyle = \"h_m_p\"\necho t\necho formatTime(\"14:35:07\", \"iso-short\"), \" \", formatTime(\"14:35\", \"h_p\")",
            "prints": "┌─────────────────────┐\n│ launch              │\n╞═════════════════════╡\n│ 16 Jul 1969 1:32 PM │\n│ 7 Nov 2026 9:05 AM  │\n│ soon                │\n└─────────────────────┘\n14:35 2 PM"
          }
        },
        {
          "name": "fmtDuration",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtDuration(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n                 inputUnits = \"seconds\"; outputUnits: openArray[string] = [];\n                 durationStyle = \"narrow\"; trimZeroUnits = true;\n                 maxOutputUnits = 0): Tabella"
          ],
          "doc": "Numbers as lengths of time: 7503 seconds is \"2h 5m 3s\" (see `formatDuration`).",
          "line": 868,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtDuration",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_duration()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_duration()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  secs: [7503.0, 90061.0, 45.0]\nlet narrow = tabella(d):\n  fmtDuration \"secs\"\necho narrow\nlet colons = tabella(d):\n  fmtDuration \"secs\", durationStyle = \"colon-sep\"\necho colons\necho formatDuration(1.5, inputUnits = \"days\", durationStyle = \"wide\")",
            "prints": "┌─────────────┐\n│        secs │\n╞═════════════╡\n│    2h 5m 3s │\n│ 1d 1h 1m 1s │\n│         45s │\n└─────────────┘\n┌──────────┐\n│     secs │\n╞══════════╡\n│ 02:05:03 │\n│ 25:01:01 │\n│ 00:00:45 │\n└──────────┘\n1 day 12 hours"
          }
        },
        {
          "name": "fmtUrl",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtUrl(t: sink Tabella; columns: ColSel; rows = allRows(); label = \"\";\n            asButton = false; color = \"\"; target = \"\"; showUnderline = true): Tabella"
          ],
          "doc": "Addresses as links: the address is the text, unless `label` is given or the cell is a\nMarkdown link `[label](address)`; `asButton` draws them as small buttons.",
          "line": 897,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtUrl",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_url()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  site: [\"https://nim-lang.org\", \"[nimib](https://github.com/pietroppeter/nimib)\"]\nlet t = tabella(d):\n  fmtUrl \"site\"\necho t\necho \"<a href=\\\"https://github.com/pietroppeter/nimib\\\">nimib</a>\" in t.toHtml",
            "prints": "┌──────────────────────┐\n│ site                 │\n╞══════════════════════╡\n│ https://nim-lang.org │\n│ nimib                │\n└──────────────────────┘\ntrue"
          }
        },
        {
          "name": "fmtEmail",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtEmail(t: sink Tabella; columns: ColSel; rows = allRows(); label = \"\";\n              asButton = false; color = \"\"; target = \"\"; showUnderline = true): Tabella"
          ],
          "doc": "Email addresses as `mailto:` links, as `fmtUrl` does for web addresses.",
          "line": 903,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtEmail",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_email()"
            }
          ],
          "example": null
        },
        {
          "name": "countryName",
          "kind": "func",
          "section": "verbs",
          "signatures": [
            "func countryName(code: string): string"
          ],
          "doc": "The English name of a country or territory by its two- or three-letter code (ISO 3166-1),\nfrom Unicode CLDR: `countryName(\"IT\")` and `countryName(\"ITA\")` are \"Italy\". Other text\nis returned as it is.",
          "line": 908,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-countryName",
          "counterparts": [],
          "example": null
        },
        {
          "name": "circleFlag",
          "kind": "func",
          "section": "verbs",
          "signatures": [
            "func circleFlag(code: string; height = \"1em\"): string"
          ],
          "doc": "The round flag of a two- or three-letter country code, as inline SVG (HatScripts'\ncircle-flags, MIT, which Great Tables draws too); \"\" when there is none.",
          "line": 922,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-circleFlag",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtFlag",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtFlag(t: sink Tabella; columns: ColSel; rows = allRows(); sep = \" \";\n             useTitle = true; round = false; height = \"1em\"): Tabella"
          ],
          "doc": "Two-letter (or three-letter) country codes as flags, one or several (a list, or separated by\ncommas). The flags are emoji, which load nothing but are drawn by the reader's system (as\ntwo letters on Windows); `round = true` draws Great Tables' round flags instead, as inline\nSVG of `height`. With `useTitle` the country's name is the HTML title, shown on hover.",
          "line": 936,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtFlag",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_flag()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_flag()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  country: [\"IT\", \"JPN\", \"FR,DE\"]\nlet t = tabella(d):\n  fmtFlag \"country\"\necho t",
            "prints": "┌─────────┐\n│ country │\n╞═════════╡\n│ 🇮🇹      │\n│ 🇯🇵      │\n│ 🇫🇷 🇩🇪   │\n└─────────┘"
          }
        },
        {
          "name": "subSmallVals",
          "kind": "proc",
          "section": "substitutions",
          "signatures": [
            "proc subSmallVals(t: sink Tabella; columns: ColSel = numeric();\n                  rows = allRows(); threshold = 0.01; smallPattern = \"<{x}\";\n                  sign = \"+\"): Tabella"
          ],
          "doc": "Shows numbers closer to zero than `threshold` (but not zero) as `smallPattern`, with the\nthreshold for `{x}`: \"<0.01\". `sign = \"-\"` does the same for negative numbers (\"<−0.01\").",
          "line": 961,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-subSmallVals",
          "counterparts": [
            {
              "in": "gt",
              "name": "sub_small_vals()"
            },
            {
              "in": "Great Tables",
              "name": "GT.sub_small_vals()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [0.004, 2.5, 3e13, -99.0]\nlet t = tabella(d):\n  fmtNumber \"x\"\n  subSmallVals()\n  subLargeVals()\n  subValues values = [-99], replacement = \"n/a\"\necho t",
            "prints": "┌───────┐\n│     x │\n╞═══════╡\n│ <0.01 │\n│  2.50 │\n│  >=1T │\n│   n/a │\n└───────┘"
          }
        },
        {
          "name": "subLargeVals",
          "kind": "proc",
          "section": "substitutions",
          "signatures": [
            "proc subLargeVals(t: sink Tabella; columns: ColSel = numeric();\n                  rows = allRows(); threshold = 1000000000000.0;\n                  largePattern = \">={x}\"; sign = \"+\"): Tabella"
          ],
          "doc": "Shows numbers at or beyond `threshold` as `largePattern`: \">=1T\". `sign = \"-\"` does the\nsame for numbers at or below minus the threshold.",
          "line": 973,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-subLargeVals",
          "counterparts": [
            {
              "in": "gt",
              "name": "sub_large_vals()"
            },
            {
              "in": "Great Tables",
              "name": "GT.sub_large_vals()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [0.004, 2.5, 3e13, -99.0]\nlet t = tabella(d):\n  fmtNumber \"x\"\n  subSmallVals()\n  subLargeVals()\n  subValues values = [-99], replacement = \"n/a\"\necho t",
            "prints": "┌───────┐\n│     x │\n╞═══════╡\n│ <0.01 │\n│  2.50 │\n│  >=1T │\n│   n/a │\n└───────┘"
          }
        },
        {
          "name": "subValues",
          "kind": "proc",
          "section": "substitutions",
          "signatures": [
            "proc subValues(t: sink Tabella; columns: ColSel = everything();\n               rows = allRows(); fn: proc (v: Value): bool; replacement: string): Tabella",
            "proc subValues[T](t: sink Tabella; columns: ColSel = everything();\n                  rows = allRows(); values: openArray[T]; replacement: string): Tabella"
          ],
          "doc": "Shows the values for which `fn` holds as `replacement`.",
          "line": 985,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-subValues",
          "counterparts": [
            {
              "in": "gt",
              "name": "sub_values()"
            },
            {
              "in": "Great Tables",
              "name": "GT.sub_values()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [0.004, 2.5, 3e13, -99.0]\nlet t = tabella(d):\n  fmtNumber \"x\"\n  subSmallVals()\n  subLargeVals()\n  subValues values = [-99], replacement = \"n/a\"\necho t",
            "prints": "┌───────┐\n│     x │\n╞═══════╡\n│ <0.01 │\n│  2.50 │\n│  >=1T │\n│   n/a │\n└───────┘"
          }
        },
        {
          "name": "fmtTf",
          "kind": "proc",
          "section": "substitutions",
          "signatures": [
            "proc fmtTf(t: sink Tabella; columns: ColSel; rows = allRows();\n           tfStyle = \"check-mark\"; trueText = \"\"; falseText = \"\"; naText = \"\";\n           colors: openArray[string] = []; html = false): Tabella"
          ],
          "doc": "Booleans as two texts: a named `tfStyle` (\"true-false\", \"yes-no\", \"check-mark\", \"circles\",\n\"arrows\", ... see `tfStyles`) or your own `trueText` and `falseText`; `naText` for missing\nvalues; `colors` (for true, false) colour them in HTML; with `html = true` the texts are\nHTML (an SVG symbol, say) and are not escaped.",
          "line": 1000,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtTf",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_tf()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_tf()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  day: [\"2026-11-07\", \"2015-01-15\"]\n  ok: [true, false]\n  stars: [3, 1]\nlet t = tabella(d):\n  fmtDate \"day\", dateStyle = \"day_month_year\"\n  fmtTf \"ok\", trueText = \"yes\", falseText = \"no\"\n  fmt \"stars\", proc (v: Value): string = \"*\".repeat(v.i)\necho t",
            "prints": "┌─────────────────┬─────┬───────┐\n│ day             │ ok  │ stars │\n╞═════════════════╪═════╪═══════╡\n│ 7 November 2026 │ yes │   *** │\n│ 15 January 2015 │ no  │     * │\n└─────────────────┴─────┴───────┘"
          }
        },
        {
          "name": "formatFraction",
          "kind": "func",
          "section": "fractions, bins, ...",
          "signatures": [
            "func formatFraction(x: float; accuracy = \"low\"; denominator = 0;\n                    simplify = true; layout = \"inline\"; useSeps = true;\n                    sepMark = \",\"; ctx = rcText): string"
          ],
          "doc": "A number as a mixed fraction: `formatFraction(2.25)` is \"2 1/4\", `formatFraction(0.333)`\nis \"1/3\". `accuracy` is \"low\" (denominators up to 9), \"med\" (99) or \"high\" (999); a\n`denominator` fixes it (\"2/16\"), reduced when `simplify`. `layout = \"diagonal\"` shows\n\"2¼\"-style fractions (`<sup>` and `<sub>` in HTML).",
          "line": 1033,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatFraction",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatBins",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc formatBins(s: string; sep = \"--\"; fmt: proc (x: float): string = nil): string"
          ],
          "doc": "A bin written as an interval, `\"[10,20)\"` or `\"(0,5]\"`, as a range: \"10–20\". `sep` goes\nbetween the two ends (`--` is an en dash); `fmt` formats each end.",
          "line": 1063,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatBins",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatCountry",
          "kind": "func",
          "section": "fractions, bins, ...",
          "signatures": [
            "func formatCountry(codes: string; sep = \", \"): string"
          ],
          "doc": "Country codes (comma or space separated) as names: `formatCountry(\"IT, FR\")` is\n\"Italy, France\".",
          "line": 1077,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-formatCountry",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtFraction",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc fmtFraction(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n                 accuracy = \"low\"; denominator = 0; simplify = true;\n                 layout = \"inline\"; useSeps = true; pattern = \"{x}\"; locale = \"\"): Tabella"
          ],
          "doc": "Numbers as mixed fractions: 2.25 is \"2 1/4\" (see `formatFraction`).",
          "line": 1082,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtFraction",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_fraction()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  x: [0.25, 1.5, 2.333, 0.999, -0.125]\nlet t = tabella(d):\n  colsAdd \"diagonal\", d[\"x\"].values\n  colsAdd \"sixteenths\", d[\"x\"].values\n  fmtFraction \"x\"\n  fmtFraction \"diagonal\", layout = \"diagonal\"\n  fmtFraction \"sixteenths\", denominator = 16\necho t",
            "prints": "┌───────┬──────────┬────────────┐\n│     x │ diagonal │ sixteenths │\n╞═══════╪══════════╪════════════╡\n│   1/4 │      ¹⁄₄ │        1/4 │\n│ 1 1/2 │     1¹⁄₂ │      1 1/2 │\n│ 2 1/3 │     2¹⁄₃ │     2 5/16 │\n│     1 │        1 │          1 │\n│  −1/8 │     −¹⁄₈ │       −1/8 │\n└───────┴──────────┴────────────┘"
          }
        },
        {
          "name": "fmtBins",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc fmtBins(t: sink Tabella; columns: ColSel; rows = allRows(); sep = \"--\";\n             fmt: proc (x: float): string = nil): Tabella"
          ],
          "doc": "Intervals such as \"[10,20)\" as ranges, \"10–20\"; `fmt` formats both ends:\n`fmtBins(\"size\", fmt = x => formatNumber(x, 0))`.",
          "line": 1091,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtBins",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_bins()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  population: [\"[0,1e+06)\", \"[1e+06,1e+07)\", \"[1e+07,1e+08)\"]\n  countries: [52, 61, 83]\nlet t = tabella(d):\n  fmtBins \"population\", fmt = proc (x: float): string = formatCompact(x, 0)\necho t",
            "prints": "┌────────────┬───────────┐\n│ population │ countries │\n╞════════════╪═══════════╡\n│ 0–1M       │        52 │\n│ 1M–10M     │        61 │\n│ 10M–100M   │        83 │\n└────────────┴───────────┘"
          }
        },
        {
          "name": "fmtPassthrough",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc fmtPassthrough(t: sink Tabella; columns: ColSel = everything();\n                    rows = allRows(); escape = true; pattern = \"{x}\"): Tabella"
          ],
          "doc": "Values shown as they are, in a `pattern`; with `escape = false` a value is HTML.",
          "line": 1100,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtPassthrough",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_passthrough()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  item: [\"a\", \"b\", \"c\"]\n  count: [3, 2500000, 12]\n  ratio: [0.5, 0.0000123, 1.25]\n  price_eur: [3.5, 10.0, 99.99]\nlet t = tabella(d):\n  fmtAuto()\n  fmtPassthrough \"item\", pattern = \"item {x}\"\necho t",
            "prints": "┌────────┬───────────┬─────────────┬───────────┐\n│ item   │     count │       ratio │ price_eur │\n╞════════╪═══════════╪═════════════╪═══════════╡\n│ item a │         3 │         0.5 │     €3.50 │\n│ item b │ 2.5 × 10⁶ │ 1.23 × 10⁻⁵ │    €10.00 │\n│ item c │        12 │        1.25 │    €99.99 │\n└────────┴───────────┴─────────────┴───────────┘"
          }
        },
        {
          "name": "fmtCountry",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc fmtCountry(t: sink Tabella; columns: ColSel; rows = allRows();\n                pattern = \"{x}\"; sep = \", \"): Tabella"
          ],
          "doc": "Two- or three-letter country codes as English names, from CLDR: \"IT\" is \"Italy\".",
          "line": 1109,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtCountry",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_country()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  codes: [\"IT\", \"jpn\", \"FR, DE\", \"XX\"]\nlet t = tabella(d):\n  colsAdd \"names\", d[\"codes\"].values\n  fmtCountry \"names\"\necho t",
            "prints": "┌────────┬─────────────────┐\n│ codes  │ names           │\n╞════════╪═════════════════╡\n│ IT     │ Italy           │\n│ jpn    │ Japan           │\n│ FR, DE │ France, Germany │\n│ XX     │ XX              │\n└────────┴─────────────────┘"
          }
        },
        {
          "name": "fmtAuto",
          "kind": "proc",
          "section": "fractions, bins, ...",
          "signatures": [
            "proc fmtAuto(t: sink Tabella; columns: ColSel = everything(); rows = allRows();\n             scope: openArray[string] = [\"numbers\", \"currency\"];\n             lgNumPref = \"sci\"; locale = \"\"): Tabella"
          ],
          "doc": "A format for each column, from its values: numbers with as many decimals as they need (up\nto 3), very small or large ones in scientific notation (`lgNumPref = \"suf\"`: large ones\nwith a suffix, \"12.3M\"), and a currency when the column's name ends with an ISO 4217 code\n(\"price_eur\").",
          "line": 1130,
          "url": "https://pietroppeter.github.io/tabelline/api/#formats-fmtAuto",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_auto()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  item: [\"a\", \"b\", \"c\"]\n  count: [3, 2500000, 12]\n  ratio: [0.5, 0.0000123, 1.25]\n  price_eur: [3.5, 10.0, 99.99]\nlet t = tabella(d):\n  fmtAuto()\n  fmtPassthrough \"item\", pattern = \"item {x}\"\necho t",
            "prints": "┌────────┬───────────┬─────────────┬───────────┐\n│ item   │     count │       ratio │ price_eur │\n╞════════╪═══════════╪═════════════╪═══════════╡\n│ item a │         3 │         0.5 │     €3.50 │\n│ item b │ 2.5 × 10⁶ │ 1.23 × 10⁻⁵ │    €10.00 │\n│ item c │        12 │        1.25 │    €99.99 │\n└────────┴───────────┴─────────────┴───────────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline/units",
      "title": "Units",
      "path": "src/tabelline/units.nim",
      "doc": "Units and chemical formulas written as text, in gt's units notation: `\"kg/m^3\"`,\n`\"m s^-2\"`, `\"m /s\"` (a unit after a solidus is a power −1), `\"T_eff\"`, `\":mu:g\"`,\n`\"degC\"`, `\"%H2O%\"`. `formatUnits` and `formatChem` turn them into HTML (`<sup>`, `<sub>`)\nor into plain text with Unicode super- and subscripts (`kg/m³`), so the text and Markdown\noutputs show them too. In a label, units go between `{{` and `}}`: `\"Density, {{kg/m^3}}\"`.",
      "symbols": [
        {
          "name": "formatChem",
          "kind": "func",
          "section": "chemistry",
          "signatures": [
            "func formatChem(s: string; ctx = rcText): string"
          ],
          "doc": "A chemical formula or reaction, in gt's notation: `formatChem(\"CuSO4 * 5H2O\")` is \"CuSO₄⋅5 H₂O\",\n`formatChem(\"2H2 + O2 -> 2H2O\")` is \"2 H₂ + O₂ → 2 H₂O\".",
          "line": 161,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-formatChem",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  name: [\"water\", \"copper sulfate\", \"sulfate\", \"carbon-14\"]\n  formula: [\"H2O\", \"CuSO4 * 5H2O\", \"SO4^2-\", \"^14C\"]\nlet t = tabella(d, rownameCol = \"name\"):\n  fmtChem \"formula\"\necho t\necho formatChem(\"2H2 + O2 -> 2H2O\")",
            "prints": "┌────────────────┬─────────────┐\n│                │ formula     │\n╞════════════════╪═════════════╡\n│ water          │ H₂O         │\n│ copper sulfate │ CuSO₄⋅5 H₂O │\n│ sulfate        │ SO₄²⁻       │\n│ carbon-14      │ ¹⁴C         │\n└────────────────┴─────────────┘\n2 H₂ + O₂ → 2 H₂O"
          }
        },
        {
          "name": "formatUnits",
          "kind": "func",
          "section": "chemistry",
          "signatures": [
            "func formatUnits(s: string; ctx = rcText): string"
          ],
          "doc": "Units in gt's notation: `formatUnits(\"kg/m^3\")` is \"kg/m³\", `formatUnits(\"m /s\")` is\n\"m s⁻¹\", `formatUnits(\"T_eff\")` is \"Tₑff\" in text and `T<sub>eff</sub>` in HTML. A part\nbetween `%` signs is a chemical formula: `\"g %CO2%\"`.",
          "line": 168,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-formatUnits",
          "counterparts": [],
          "example": null
        },
        {
          "name": "withUnits",
          "kind": "func",
          "section": "chemistry",
          "signatures": [
            "func withUnits(s: string; ctx: RenderContext;\n               plain: proc (s: string): string"
          ],
          "doc": "A label with units between `{{` and `}}`: the units are formatted, the rest goes through\n`plain`.",
          "line": 186,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-withUnits",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtUnits",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtUnits(t: sink Tabella; columns: ColSel; rows = allRows()): Tabella"
          ],
          "doc": "Cells written in gt's units notation, shown as units: `\"m s^-2\"` is \"m s⁻²\".",
          "line": 201,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-fmtUnits",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_units()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_units()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  quantity: [\"speed of sound\", \"gravity\", \"air density\"]\n  value: [343.0, 9.81, 1.204]\n  units: [\"m /s\", \"m s^-2\", \"kg m^-3\"]\nlet quantities = tabella(d, rownameCol = \"quantity\"):\n  fmtUnits \"units\"\n  colsLabel:\n    value: \"at {{20 degC}}\"\necho quantities\nlet gravity = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsUnhide [\"density\", \"gravity\"]\n  colsUnits:\n    density: \"kg m^-3\"\n    gravity: \"m s^-2\"\n    unitsPattern = \"{1} ({2})\"\necho gravity",
            "prints": "┌────────────────┬──────────┬────────┐\n│                │ at 20 °C │ units  │\n╞════════════════╪══════════╪════════╡\n│ speed of sound │    343.0 │ m s⁻¹  │\n│ gravity        │     9.81 │ m s⁻²  │\n│ air density    │    1.204 │ kg m⁻³ │\n└────────────────┴──────────┴────────┘\n┌─────────┬──────────────────┬─────────────────┐\n│         │ density (kg m⁻³) │ gravity (m s⁻²) │\n╞═════════╪══════════════════╪═════════════════╡\n│ Mercury │             5429 │             3.7 │\n│ Venus   │             5243 │             8.9 │\n│ Earth   │             5514 │             9.8 │\n│ Mars    │             3934 │             3.7 │\n│ Jupiter │             1326 │            23.1 │\n│ Saturn  │              687 │             9.0 │\n│ Uranus  │             1270 │             8.7 │\n│ Neptune │             1638 │            11.0 │\n└─────────┴──────────────────┴─────────────────┘"
          }
        },
        {
          "name": "fmtChem",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc fmtChem(t: sink Tabella; columns: ColSel; rows = allRows()): Tabella"
          ],
          "doc": "Cells written as chemical formulas or reactions: `\"H2SO4\"` is \"H₂SO₄\".",
          "line": 205,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-fmtChem",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_chem()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  name: [\"water\", \"copper sulfate\", \"sulfate\", \"carbon-14\"]\n  formula: [\"H2O\", \"CuSO4 * 5H2O\", \"SO4^2-\", \"^14C\"]\nlet t = tabella(d, rownameCol = \"name\"):\n  fmtChem \"formula\"\necho t\necho formatChem(\"2H2 + O2 -> 2H2O\")",
            "prints": "┌────────────────┬─────────────┐\n│                │ formula     │\n╞════════════════╪═════════════╡\n│ water          │ H₂O         │\n│ copper sulfate │ CuSO₄⋅5 H₂O │\n│ sulfate        │ SO₄²⁻       │\n│ carbon-14      │ ¹⁴C         │\n└────────────────┴─────────────┘\n2 H₂ + O₂ → 2 H₂O"
          }
        },
        {
          "name": "colsUnits",
          "kind": "proc",
          "section": "verbs",
          "signatures": [
            "proc colsUnits(t: sink Tabella; units: openArray[(string, string)];\n               unitsPattern = \"\"): Tabella"
          ],
          "doc": "Units for column labels, in gt's notation: `colsUnits({\"density\": \"kg/m^3\"})` shows the\nlabel \"density, kg/m³\". `unitsPattern` places them: `{1}` is the label, `{2}` the units (\"\": the option\n`columnLabelsUnitsPattern`, \"{1}, {2}\").\nInside `tabella(data): body`, also as a block, one pair per line (see `tabella`):\n`colsUnits:` then `density: \"kg/m^3\"`.",
          "line": 209,
          "url": "https://pietroppeter.github.io/tabelline/api/#units-colsUnits",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_units()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  quantity: [\"speed of sound\", \"gravity\", \"air density\"]\n  value: [343.0, 9.81, 1.204]\n  units: [\"m /s\", \"m s^-2\", \"kg m^-3\"]\nlet quantities = tabella(d, rownameCol = \"quantity\"):\n  fmtUnits \"units\"\n  colsLabel:\n    value: \"at {{20 degC}}\"\necho quantities\nlet gravity = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsUnhide [\"density\", \"gravity\"]\n  colsUnits:\n    density: \"kg m^-3\"\n    gravity: \"m s^-2\"\n    unitsPattern = \"{1} ({2})\"\necho gravity",
            "prints": "┌────────────────┬──────────┬────────┐\n│                │ at 20 °C │ units  │\n╞════════════════╪══════════╪════════╡\n│ speed of sound │    343.0 │ m s⁻¹  │\n│ gravity        │     9.81 │ m s⁻²  │\n│ air density    │    1.204 │ kg m⁻³ │\n└────────────────┴──────────┴────────┘\n┌─────────┬──────────────────┬─────────────────┐\n│         │ density (kg m⁻³) │ gravity (m s⁻²) │\n╞═════════╪══════════════════╪═════════════════╡\n│ Mercury │             5429 │             3.7 │\n│ Venus   │             5243 │             8.9 │\n│ Earth   │             5514 │             9.8 │\n│ Mars    │             3934 │             3.7 │\n│ Jupiter │             1326 │            23.1 │\n│ Saturn  │              687 │             9.0 │\n│ Uranus  │             1270 │             8.7 │\n│ Neptune │             1638 │            11.0 │\n└─────────┴──────────────────┴─────────────────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline/verbs",
      "title": "The verbs",
      "path": "src/tabelline/verbs.nim",
      "doc": "The verbs that build a table spec, named after gt and Great Tables in camelCase:\n`tab*` add parts (header, spanners, notes, styles, options), `cols*` change columns,\n`dataColor` and `opt*` change the looks. Each takes a `Tabella` and returns the new one\n(`sink`, so a chain moves the spec along instead of copying it).",
      "symbols": [
        {
          "name": "initTabella",
          "kind": "proc",
          "section": "creating",
          "signatures": [
            "proc initTabella(data: TableData; rownameCol = \"\"; groupnameCol = \"\"; id = \"\";\n                 locale = \"\"; autoAlign = true): Tabella",
            "proc initTabella(data: TableData; rownameCol: openArray[string];\n                 groupnameCol = \"\"; id = \"\"; locale = \"\"; autoAlign = true;\n                 rowGroupAsColumn = false): Tabella",
            "proc initTabella(data: TableData; rownameCol: string; groupnameCol: string;\n                 rowGroupAsColumn: bool; id = \"\"; locale = \"\"; autoAlign = true): Tabella",
            "proc initTabella[T: object | tuple](rows: openArray[T]; rownameCol = \"\";\n                                    groupnameCol = \"\"; id = \"\"; locale = \"\"): Tabella",
            "proc initTabella[T: object | tuple](rows: openArray[T];\n                                    rownameCol: openArray[string];\n                                    groupnameCol = \"\"; id = \"\"; locale = \"\";\n                                    rowGroupAsColumn = false): Tabella",
            "proc initTabella(t: sink Tabella): Tabella"
          ],
          "doc": "A display table for `data`. `rownameCol` makes a column the stub (row labels),\n`groupnameCol` groups the rows by a column, in order of first appearance.",
          "line": 11,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-initTabella",
          "counterparts": [],
          "example": null
        },
        {
          "name": "tabHeader",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabHeader(t: sink Tabella; title: Text; subtitle: Text = toText(\"\")): Tabella"
          ],
          "doc": "",
          "line": 72,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabHeader",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_header()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_header()"
            }
          ],
          "example": {
            "spec": "rendering",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Tabellina\"\n  tabFootnote \"by heart\", loc.title()\necho t",
            "prints": "   Tabellina^1\n┌───┬───┬───┬───┐\n│   │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\n1 by heart"
          }
        },
        {
          "name": "tabStubhead",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabStubhead(t: sink Tabella; label: Text): Tabella"
          ],
          "doc": "",
          "line": 77,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabStubhead",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_stubhead()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_stubhead()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Times table\", \"from 1 to 3\"\n  tabStubhead \"×\"\n  tabSourceNote md(\"Learned **by heart**\")\necho t",
            "prints": "   Times table\n   from 1 to 3\n┌───┬───┬───┬───┐\n│ × │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\nLearned by heart"
          }
        },
        {
          "name": "tabSpanner",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabSpanner(t: sink Tabella; label: Text; columns: ColSel; level = 1;\n                gather = true): Tabella"
          ],
          "doc": "A label over `columns`. Higher `level`s sit above lower ones. With `gather` (the default, as\nin gt) the columns are moved next to the first of them, in the order given, so the label\nspans them all; with `gather = false` they stay where they are.",
          "line": 81,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabSpanner",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_spanner()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_spanner()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"density\", \"gravity\", \"day_length\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  rowsHide 2 .. 7\n  tabSpanner \"size\", [\"mass\", \"diameter\", \"moons\"]\necho t",
            "prints": "┌─────────┬──────┬──────────┬───────┬──────────┐\n│         │          size           │          │\n│         │ mass │ diameter │ moons │ distance │\n╞═════════╪══════╪══════════╪═══════╪══════════╡\n│ Mercury │ 0.33 │     4879 │     0 │     57.9 │\n│ Venus   │ 4.87 │    12104 │     0 │    108.2 │\n└─────────┴──────┴──────────┴───────┴──────────┘"
          }
        },
        {
          "name": "tabSpannerDelim",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabSpannerDelim(t: sink Tabella; delim = \".\";\n                     columns: ColSel = everything(); split = \"last\"; limit = -1;\n                     reverse = false): Tabella"
          ],
          "doc": "Spanners and labels from column names: `\"size.mass\"` gets the label \"mass\" under a spanner\n\"size\". Names with more parts get more levels; next to each other, the same parts make one\nspanner. `limit` caps the splits, counted from the `split` side (\"last\" or \"first\");\n`reverse` reads the parts the other way round.",
          "line": 103,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabSpannerDelim",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_spanner_delim()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_spanner_delim()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  planet: [\"Earth\", \"Mars\"]\n  size.diameter: [12756, 6792]\n  size.mass: [5.97, 0.642]\n  orbit.period.days: [365.2, 687.0]\n  orbit.period.years: [1.0, 1.88]\n  orbit.distance: [149.6, 228.0]\nlet t = tabella(d, rownameCol = \"planet\"):\n  tabSpannerDelim()\necho t",
            "prints": "┌───────┬──────────┬───────┬───────┬───────┬──────────┐\n│       │                  │          orbit           │\n│       │       size       │    period     │          │\n│       │ diameter │  mass │  days │ years │ distance │\n╞═══════╪══════════╪═══════╪═══════╪═══════╪══════════╡\n│ Earth │    12756 │  5.97 │ 365.2 │   1.0 │    149.6 │\n│ Mars  │     6792 │ 0.642 │ 687.0 │  1.88 │    228.0 │\n└───────┴──────────┴───────┴───────┴───────┴──────────┘"
          }
        },
        {
          "name": "tabCaption",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabCaption(t: sink Tabella; caption: Text): Tabella"
          ],
          "doc": "A caption for the table (an HTML `<caption>`), for screen readers and for figures.",
          "line": 152,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabCaption",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_caption()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(2)):\n  tabCaption \"Table 1: the times table of 2\"\necho \"<caption class=\\\"tb_caption\\\">Table 1: the times table of 2</caption>\" in t.toHtml\necho t",
            "prints": "true\nTable 1: the times table of 2\n┌───┬───┬───┐\n│ × │ 1 │ 2 │\n╞═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │\n│ 2 │ 2 │ 4 │\n└───┴───┴───┘"
          }
        },
        {
          "name": "tabSourceNote",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabSourceNote(t: sink Tabella; note: Text): Tabella"
          ],
          "doc": "",
          "line": 157,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabSourceNote",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_source_note()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_source_note()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Times table\", \"from 1 to 3\"\n  tabStubhead \"×\"\n  tabSourceNote md(\"Learned **by heart**\")\necho t",
            "prints": "   Times table\n   from 1 to 3\n┌───┬───┬───┬───┐\n│ × │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\nLearned by heart"
          }
        },
        {
          "name": "tabRowGroup",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabRowGroup(t: sink Tabella; label: Text;\n                 rows: RowSel = RowSel(kind: rsIndices); id = \"\"): Tabella"
          ],
          "doc": "Puts `rows` in a group (made when it is new). Groups show in the order they are made, and\nrows in no group come first. With the `id` of a group already there (one made by\n`groupnameCol` is named by its value), `label` is its new label: `tabRowGroup(md(\"[gt](...)\"),\nid = \"gt\")` makes a link of it, as gt's `tab_row_group(label = md(...))`.",
          "line": 161,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabRowGroup",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_row_group()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  tabRowGroup \"Giants\", where(it[\"type\"] != \"Terrestrial\")\necho t",
            "prints": "┌─────────┬──────────┬───────┐\n│         │ distance │ moons │\n╞═════════╪══════════╪═══════╡\n│ Mercury │     57.9 │     0 │\n│ Venus   │    108.2 │     0 │\n│ Earth   │    149.6 │     1 │\n│ Mars    │    228.0 │     2 │\n├─────────┼──────────┼───────┤\n│ Giants                     │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Jupiter │    778.5 │    95 │\n│ Saturn  │   1432.0 │   146 │\n│ Uranus  │   2867.0 │    28 │\n│ Neptune │   4515.0 │    16 │\n└─────────┴──────────┴───────┘"
          }
        },
        {
          "name": "tabStub",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc tabStub(t: sink Tabella; rownameCol = \"\"; groupnameCol = \"\"): Tabella",
            "proc tabStub(t: sink Tabella; rownameCol: openArray[string]; groupnameCol = \"\"): Tabella"
          ],
          "doc": "Chooses the stub (and the row groups) of a table already made, as Great Tables'\n`tab_stub(rowname_col, groupname_col)`: the same as `tabella(data, rownameCol = ...,\ngroupnameCol = ...)`. Verbs called before it keep what they did to other columns.",
          "line": 183,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabStub",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "GT.tab_stub()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets()):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\"]\n  tabStub \"planet\", groupnameCol = \"type\"\n  tabRowGroup md\"*Gas* giants\", id = \"Gas giant\"\necho t",
            "prints": "┌─────────┬───────┐\n│         │ rings │\n╞═════════╪═══════╡\n│ Terrestrial     │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Mercury │ false │\n│ Venus   │ false │\n│ Earth   │ false │\n│ Mars    │ false │\n├─────────┼───────┤\n│ Gas giants      │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Jupiter │ true  │\n│ Saturn  │ true  │\n├─────────┼───────┤\n│ Ice giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Uranus  │ true  │\n│ Neptune │ true  │\n└─────────┴───────┘"
          }
        },
        {
          "name": "rmHeader",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmHeader(t: sink Tabella): Tabella"
          ],
          "doc": "Removes the title and the subtitle.",
          "line": 197,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmHeader",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_header()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let base = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabHeader \"Times\", \"of two\"\n  tabSourceNote \"One.\"\n  tabSourceNote \"Two.\"\nlet less = tabella(base):\n  rmHeader()\n  rmSourceNotes [0]\necho less",
            "prints": "┌───┬───┬───┐\n│   │ 1 │ 2 │\n╞═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │\n│ 2 │ 2 │ 4 │\n└───┴───┴───┘\nTwo."
          }
        },
        {
          "name": "rmStubhead",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmStubhead(t: sink Tabella): Tabella"
          ],
          "doc": "",
          "line": 203,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmStubhead",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_stubhead()"
            }
          ],
          "example": null
        },
        {
          "name": "rmCaption",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmCaption(t: sink Tabella): Tabella"
          ],
          "doc": "",
          "line": 207,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmCaption",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_caption()"
            }
          ],
          "example": null
        },
        {
          "name": "rmSpanners",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmSpanners(t: sink Tabella; spanners: openArray[string] = [];\n                levels: openArray[int] = []): Tabella"
          ],
          "doc": "Removes the spanners with these labels, or at these levels; with neither, every spanner.",
          "line": 211,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmSpanners",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_spanners()"
            }
          ],
          "example": null
        },
        {
          "name": "rmFootnotes",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmFootnotes(t: sink Tabella; footnotes: openArray[int] = []): Tabella"
          ],
          "doc": "Removes the footnotes at these indices (0-based, in the order they were added), or all.",
          "line": 217,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmFootnotes",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_footnotes()"
            }
          ],
          "example": null
        },
        {
          "name": "rmSourceNotes",
          "kind": "proc",
          "section": "parts",
          "signatures": [
            "proc rmSourceNotes(t: sink Tabella; sourceNotes: openArray[int] = []): Tabella"
          ],
          "doc": "Removes the source notes at these indices (0-based), or all.",
          "line": 227,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rmSourceNotes",
          "counterparts": [
            {
              "in": "gt",
              "name": "rm_source_notes()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let base = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabHeader \"Times\", \"of two\"\n  tabSourceNote \"One.\"\n  tabSourceNote \"Two.\"\nlet less = tabella(base):\n  rmHeader()\n  rmSourceNotes [0]\necho less",
            "prints": "┌───┬───┬───┐\n│   │ 1 │ 2 │\n╞═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │\n│ 2 │ 2 │ 4 │\n└───┴───┴───┘\nTwo."
          }
        },
        {
          "name": "title",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func title(_: LocNs): Loc"
          ],
          "doc": "",
          "line": 239,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-title",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.title()"
            }
          ],
          "example": {
            "spec": "rendering",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Tabellina\"\n  tabFootnote \"by heart\", loc.title()\necho t",
            "prints": "   Tabellina^1\n┌───┬───┬───┬───┐\n│   │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\n1 by heart"
          }
        },
        {
          "name": "subtitle",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func subtitle(_: LocNs): Loc"
          ],
          "doc": "",
          "line": 240,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-subtitle",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.subtitle()"
            }
          ],
          "example": null
        },
        {
          "name": "stubhead",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func stubhead(_: LocNs): Loc"
          ],
          "doc": "",
          "line": 241,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-stubhead",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.stubhead()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  tabStubhead \"planet\"\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\"]\n  textTransform toUpperAscii, loc.stub()\n  fmtTf \"rings\", tfStyle = \"yes-no\"\n  textCaseMatch:\n    yes: \"rings!\"\n    default = \"\"\n    locations = loc.body(\"rings\")\n  textReplace \"planet\", \"Planet\", loc.stubhead()\necho t",
            "prints": "┌─────────┬────────┐\n│ Planet  │ rings  │\n╞═════════╪════════╡\n│ MERCURY │ no     │\n│ VENUS   │ no     │\n│ EARTH   │ no     │\n│ MARS    │ no     │\n│ JUPITER │ rings! │\n│ SATURN  │ rings! │\n│ URANUS  │ rings! │\n│ NEPTUNE │ rings! │\n└─────────┴────────┘"
          }
        },
        {
          "name": "columnLabels",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func columnLabels(_: LocNs; cols: ColSel = everything()): Loc"
          ],
          "doc": "",
          "line": 242,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-columnLabels",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.column_labels()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"rings\"]\n  tabFootnote \"Hotter than Mercury.\", loc.body(cols = \"mean_temp\", rows = where(it.planet == \"Venus\"))\n  tabFootnote \"As of 2024.\", loc.columnLabels(\"moons\")\necho t",
            "prints": "┌─────────┬───────────┬─────────┐\n│         │ mean_temp │ moons^1 │\n╞═════════╪═══════════╪═════════╡\n│ Mercury │       167 │       0 │\n│ Venus   │     464^2 │       0 │\n│ Earth   │        15 │       1 │\n│ Mars    │       -65 │       2 │\n│ Jupiter │      -110 │      95 │\n│ Saturn  │      -140 │     146 │\n│ Uranus  │      -195 │      28 │\n│ Neptune │      -200 │      16 │\n└─────────┴───────────┴─────────┘\n1 As of 2024.\n2 Hotter than Mercury."
          }
        },
        {
          "name": "spanners",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func spanners(_: LocNs; labels: varargs[string]): Loc"
          ],
          "doc": "",
          "line": 243,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-spanners",
          "counterparts": [],
          "example": null
        },
        {
          "name": "stub",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func stub(_: LocNs; rows = allRows(); cols: ColSel = everything();\n          labels: openArray[string] = []): Loc"
          ],
          "doc": "The stub's cells of `rows`; with `labels`, the rows whose stub reads one of them\n(`loc.stub(labels = [\"banana\"])`), together with the `rows` given (`rows = [0], labels =\n[\"banana\"]`), as Great Tables' `loc.stub(rows = [0, \"banana\"])`.",
          "line": 244,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-stub",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.stub()"
            }
          ],
          "example": {
            "spec": "styling",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabFootnote \"A note with no mark.\"\n  tabFootnote \"Two twos.\", loc.body(cols = \"2\", rows = [1])\n  tabFootnote \"The first row.\", loc.stub(rows = [0])\n  optFootnoteMarks \"standard\"\n  optFootnoteSpec \"^\", \"(\"\n  optFootnoteOrder \"marks_last\"\necho t",
            "prints": "┌─────┬───┬─────┐\n│     │ 1 │   2 │\n╞═════╪═══╪═════╡\n│ 1^* │ 1 │   2 │\n│ 2   │ 2 │ 4^† │\n└─────┴───┴─────┘\nA note with no mark.\n(*) The first row.\n(†) Two twos."
          }
        },
        {
          "name": "rowGroups",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func rowGroups(_: LocNs; groups: varargs[string]): Loc",
            "func rowGroups(_: LocNs; rows: RowSel): Loc"
          ],
          "doc": "The groups of these rows: `loc.rowGroups(rows = where(it.mass > 100))`, as Great Tables'\n`loc.row_groups(rows = ...)`.",
          "line": 249,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowGroups",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.row_groups()"
            }
          ],
          "example": {
            "spec": "styling",
            "code": "let d = tableData:\n  name: [\"Io\", \"Europa\", \"Titan\"]\n  planet: [\"Jupiter\", \"Jupiter\", \"\"]\n  radius: [1821.6, 1560.8, 2574.7]\nlet t = tabella(d, rownameCol = \"name\", groupnameCol = \"planet\"):\n  colsUnits:\n    radius: \"km\"\n  tabFootnote \"Galilean moons.\", loc.rowGroups()\n  tabSourceNote \"NASA\"\n  tabSourceNote \"JPL\"\n  tabOptions:\n    columnLabelsUnitsPattern = \"{1} ({2})\"\n    rowGroupDefaultLabel = \"Other moons\"\n    sourceNotesMultiline = false\n    sourceNotesSep = \" · \"\necho t\nlet empty = tabella(d):\n  rowsHide [0, 1, 2]\n  tabOptions(tableNoDataMessage = \"No moons\")\necho empty",
            "prints": "┌────────┬─────────────┐\n│        │ radius (km) │\n╞════════╪═════════════╡\n│ Other moons          │\n├┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┤\n│ Titan  │      2574.7 │\n├────────┼─────────────┤\n│ Jupiter^1            │\n├┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┤\n│ Io     │      1821.6 │\n│ Europa │      1560.8 │\n└────────┴─────────────┘\n1 Galilean moons.\nNASA · JPL\n┌──────┬────────┬────────┐\n│ name │ planet │ radius │\n╞══════╪════════╪════════╡\n│ No moons               │\n└──────┴────────┴────────┘"
          }
        },
        {
          "name": "body",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func body(_: LocNs; cols: ColSel = everything(); rows = allRows()): Loc",
            "func body(_: LocNs; cols: ColSel = everything(); rows = allRows();\n          mask: proc (v: Value; col: Column): bool): Loc",
            "func body(_: LocNs; cols: ColSel = everything(); rows = allRows();\n          mask: proc (v: Value): bool): Loc"
          ],
          "doc": "The data cells of `cols` and `rows`.",
          "line": 254,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-body",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.body()"
            }
          ],
          "example": {
            "spec": "nim-sugar",
            "code": "let t = tabella(tavolaPitagorica(4), rownameCol = \"×\"):\n  tabHeader \"Squares\"\n  for i in 1 .. 4:\n    tabFootnote \"a square\", loc.body(cols = $i, rows = [i - 1])\necho t",
            "prints": "           Squares\n┌───┬─────┬─────┬─────┬──────┐\n│   │   1 │   2 │   3 │    4 │\n╞═══╪═════╪═════╪═════╪══════╡\n│ 1 │ 1^1 │   2 │   3 │    4 │\n│ 2 │   2 │ 4^1 │   6 │    8 │\n│ 3 │   3 │   6 │ 9^1 │   12 │\n│ 4 │   4 │   8 │  12 │ 16^1 │\n└───┴─────┴─────┴─────┴──────┘\n1 a square"
          }
        },
        {
          "name": "sourceNotes",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func sourceNotes(_: LocNs): Loc"
          ],
          "doc": "",
          "line": 266,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-sourceNotes",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.source_notes()"
            }
          ],
          "example": null
        },
        {
          "name": "header",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func header(_: LocNs): Loc"
          ],
          "doc": "The title and the subtitle together.",
          "line": 267,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-header",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.header()"
            }
          ],
          "example": null
        },
        {
          "name": "columnHeader",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func columnHeader(_: LocNs): Loc"
          ],
          "doc": "The stub head, the spanners and the column labels together.",
          "line": 269,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-columnHeader",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.column_header()"
            }
          ],
          "example": null
        },
        {
          "name": "footer",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func footer(_: LocNs): Loc"
          ],
          "doc": "The footnotes and the source notes together.",
          "line": 271,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-footer",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.footer()"
            }
          ],
          "example": null
        },
        {
          "name": "spannerLabels",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func spannerLabels(_: LocNs; labels: varargs[string]): Loc"
          ],
          "doc": "The same as `loc.spanners`, by Great Tables' name.",
          "line": 273,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-spannerLabels",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.spanner_labels()"
            }
          ],
          "example": null
        },
        {
          "name": "footnotes",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func footnotes(_: LocNs): Loc"
          ],
          "doc": "",
          "line": 275,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-footnotes",
          "counterparts": [],
          "example": null
        },
        {
          "name": "summary",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func summary(_: LocNs; groups: openArray[string] = [];\n             columns: ColSel = everything(); rows: openArray[string] = []): Loc"
          ],
          "doc": "The cells of the summary rows of `groups` (all, by default), in `columns`, for the rows\nlabelled `rows` (all, by default).",
          "line": 276,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-summary",
          "counterparts": [],
          "example": null
        },
        {
          "name": "summaryStub",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func summaryStub(_: LocNs; groups: openArray[string] = [];\n                 rows: openArray[string] = []): Loc"
          ],
          "doc": "The labels of the summary rows, in the stub.",
          "line": 281,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-summaryStub",
          "counterparts": [],
          "example": null
        },
        {
          "name": "grandSummary",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func grandSummary(_: LocNs; columns: ColSel = everything();\n                  rows: openArray[string] = []): Loc"
          ],
          "doc": "The cells of the grand summary rows.",
          "line": 284,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-grandSummary",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.grand_summary()"
            }
          ],
          "example": null
        },
        {
          "name": "grandSummaryStub",
          "kind": "func",
          "section": "locations",
          "signatures": [
            "func grandSummaryStub(_: LocNs; rows: openArray[string] = []): Loc"
          ],
          "doc": "The labels of the grand summary rows, in the stub.",
          "line": 287,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-grandSummaryStub",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "loc.grand_summary_stub()"
            }
          ],
          "example": null
        },
        {
          "name": "resolve",
          "kind": "proc",
          "section": "locations",
          "signatures": [
            "proc resolve(l: Loc; t: Tabella): Target"
          ],
          "doc": "",
          "line": 291,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-resolve",
          "counterparts": [],
          "example": null
        },
        {
          "name": "tabStyle",
          "kind": "proc",
          "section": "locations",
          "signatures": [
            "proc tabStyle(t: sink Tabella; style: CellStyle; locations: varargs[Loc]): Tabella",
            "proc tabStyle(t: sink Tabella; fn: proc (r: Row): CellStyle;\n              locations: varargs[Loc]): Tabella"
          ],
          "doc": "Styles the cells at `locations`: `tabStyle(style.fill(\"#FFF3B0\"), loc.body(rows = [2]))`. A\nvalue may come from another column of each row: `style.fill(fromColumn(\"colour\"))`.",
          "line": 328,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabStyle",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  mfr: [\"Ferrari\", \"Ferrari\", \"Ford\", \"Ford\", \"Fiat\"]\n  model: [\"Roma\", \"Portofino\", \"GT\", \"Mustang\", \"500\"]\n  hp: [612, 600, 647, 450, 69]\nlet t = tabella(d, rownameCol = [\"mfr\", \"model\"]):\n  tabStubhead \"car\"\n  tabStyle style.text(weight = \"bold\"), loc.stub(cols = \"mfr\")\necho t\necho \"stub: \", stubColumns(t).join(\", \"), \"; cells over two rows: \", t.toHtml.count(\"rowspan=\\\"2\\\"\")",
            "prints": "┌─────────┬───────────┬─────┐\n│ car     │           │  hp │\n╞═════════╪═══════════╪═════╡\n│ Ferrari │ Roma      │ 612 │\n│         │ Portofino │ 600 │\n│ Ford    │ GT        │ 647 │\n│         │ Mustang   │ 450 │\n│ Fiat    │ 500       │  69 │\n└─────────┴───────────┴─────┘\nstub: mfr, model; cells over two rows: 2"
          }
        },
        {
          "name": "tabFootnote",
          "kind": "proc",
          "section": "locations",
          "signatures": [
            "proc tabFootnote(t: sink Tabella; note: Text; locations: varargs[Loc]): Tabella"
          ],
          "doc": "A note in the footer, marked at each of `locations` (no location: a plain footnote, no mark).",
          "line": 335,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabFootnote",
          "counterparts": [],
          "example": {
            "spec": "rendering",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Tabellina\"\n  tabFootnote \"by heart\", loc.title()\necho t",
            "prints": "   Tabellina^1\n┌───┬───┬───┬───┐\n│   │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\n1 by heart"
          }
        },
        {
          "name": "textTransform",
          "kind": "proc",
          "section": "text",
          "signatures": [
            "proc textTransform(t: sink Tabella; fn: proc (s: string): string;\n                   locations: varargs[Loc]): Tabella"
          ],
          "doc": "Changes the shown text at `locations` (by default the body) with a proc: for cells the proc\ngets the formatted text when the table is rendered (HTML in HTML), for labels and notes their\ntext now. `textTransform(toUpperAscii, loc.stub())`.",
          "line": 381,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-textTransform",
          "counterparts": [
            {
              "in": "gt",
              "name": "text_transform()"
            },
            {
              "in": "Great Tables",
              "name": "GT.text_transform()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  tabStubhead \"planet\"\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\"]\n  textTransform toUpperAscii, loc.stub()\n  fmtTf \"rings\", tfStyle = \"yes-no\"\n  textCaseMatch:\n    yes: \"rings!\"\n    default = \"\"\n    locations = loc.body(\"rings\")\n  textReplace \"planet\", \"Planet\", loc.stubhead()\necho t",
            "prints": "┌─────────┬────────┐\n│ Planet  │ rings  │\n╞═════════╪════════╡\n│ MERCURY │ no     │\n│ VENUS   │ no     │\n│ EARTH   │ no     │\n│ MARS    │ no     │\n│ JUPITER │ rings! │\n│ SATURN  │ rings! │\n│ URANUS  │ rings! │\n│ NEPTUNE │ rings! │\n└─────────┴────────┘"
          }
        },
        {
          "name": "textReplace",
          "kind": "proc",
          "section": "text",
          "signatures": [
            "proc textReplace(t: sink Tabella; pattern, replacement: string;\n                 locations: varargs[Loc]): Tabella"
          ],
          "doc": "Replaces every `pattern` (plain text, not a regex) with `replacement`.",
          "line": 391,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-textReplace",
          "counterparts": [
            {
              "in": "gt",
              "name": "text_replace()"
            },
            {
              "in": "Great Tables",
              "name": "GT.text_replace()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  tabStubhead \"planet\"\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\"]\n  textTransform toUpperAscii, loc.stub()\n  fmtTf \"rings\", tfStyle = \"yes-no\"\n  textCaseMatch:\n    yes: \"rings!\"\n    default = \"\"\n    locations = loc.body(\"rings\")\n  textReplace \"planet\", \"Planet\", loc.stubhead()\necho t",
            "prints": "┌─────────┬────────┐\n│ Planet  │ rings  │\n╞═════════╪════════╡\n│ MERCURY │ no     │\n│ VENUS   │ no     │\n│ EARTH   │ no     │\n│ MARS    │ no     │\n│ JUPITER │ rings! │\n│ SATURN  │ rings! │\n│ URANUS  │ rings! │\n│ NEPTUNE │ rings! │\n└─────────┴────────┘"
          }
        },
        {
          "name": "textCaseMatch",
          "kind": "proc",
          "section": "text",
          "signatures": [
            "proc textCaseMatch(t: sink Tabella; cases: openArray[(string, string)];\n                   default = \"\"; replace = \"all\"; locations: varargs[Loc]): Tabella"
          ],
          "doc": "Changes texts by cases, `{\"old\": \"new\"}`: with `replace = \"all\"` a text equal to a case\nbecomes its new text (and any other `default`, when given); with `\"partial\"` each case is\nreplaced inside the text.\nInside `tabella(data): body`, also as a block, one pair per line (see `tabella`):\n`textCaseMatch:` then `\"Gas giant\": \"giant\"` and `locations = loc.body(\"type\")`.",
          "line": 396,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-textCaseMatch",
          "counterparts": [
            {
              "in": "gt",
              "name": "text_case_match()"
            },
            {
              "in": "Great Tables",
              "name": "GT.text_case_match()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  tabStubhead \"planet\"\n  colsHide [\"type\", \"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\"]\n  textTransform toUpperAscii, loc.stub()\n  fmtTf \"rings\", tfStyle = \"yes-no\"\n  textCaseMatch:\n    yes: \"rings!\"\n    default = \"\"\n    locations = loc.body(\"rings\")\n  textReplace \"planet\", \"Planet\", loc.stubhead()\necho t",
            "prints": "┌─────────┬────────┐\n│ Planet  │ rings  │\n╞═════════╪════════╡\n│ MERCURY │ no     │\n│ VENUS   │ no     │\n│ EARTH   │ no     │\n│ MARS    │ no     │\n│ JUPITER │ rings! │\n│ SATURN  │ rings! │\n│ URANUS  │ rings! │\n│ NEPTUNE │ rings! │\n└─────────┴────────┘"
          }
        },
        {
          "name": "colsLabel",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsLabel(t: sink Tabella; column: string; label: Text): Tabella",
            "proc colsLabel(t: sink Tabella; labels: openArray[(string, string)]): Tabella",
            "proc colsLabel(t: sink Tabella; labels: openArray[(string, Text)]): Tabella"
          ],
          "doc": "`colsLabel({\"mass\": \"Mass\", \"diameter\": \"Diameter\"})`.\nInside `tabella(data): body`, also as a block, one pair per line (see `tabella`):\n`colsLabel:` then `mass: \"Mass\"` and `diameter: \"Diameter\"`.",
          "line": 416,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsLabel",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_label()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_label()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"density\", \"gravity\", \"day_length\", \"mean_temp\", \"rings\", \"moons\"]\n  colsLabel:\n    orbital_period: \"year\"\n  tabSpanner \"Size\", [\"mass\", \"diameter\"]\n  tabSpanner \"Orbit\", [\"distance\", \"orbital_period\"]\necho t",
            "prints": "┌─────────┬────────┬──────────┬──────────┬─────────┐\n│         │       Size        │       Orbit        │\n│         │   mass │ diameter │ distance │    year │\n╞═════════╪════════╪══════════╪══════════╪═════════╡\n│ Mercury │   0.33 │     4879 │     57.9 │    88.0 │\n│ Venus   │   4.87 │    12104 │    108.2 │   224.7 │\n│ Earth   │   5.97 │    12756 │    149.6 │   365.2 │\n│ Mars    │  0.642 │     6792 │    228.0 │   687.0 │\n│ Jupiter │ 1898.0 │   142984 │    778.5 │  4331.0 │\n│ Saturn  │  568.0 │   120536 │   1432.0 │ 10747.0 │\n│ Uranus  │   86.8 │    51118 │   2867.0 │ 30589.0 │\n│ Neptune │  102.0 │    49528 │   4515.0 │ 59800.0 │\n└─────────┴────────┴──────────┴──────────┴─────────┘"
          }
        },
        {
          "name": "colsAlign",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsAlign(t: sink Tabella; align: Align; columns: ColSel = everything()): Tabella"
          ],
          "doc": "",
          "line": 434,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsAlign",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_align()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_align()"
            }
          ],
          "example": null
        },
        {
          "name": "colsWidth",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsWidth(t: sink Tabella; widths: openArray[(string, string)]): Tabella"
          ],
          "doc": "CSS widths: `colsWidth({\"name\": \"120px\", \"notes\": \"30%\"})`.\nInside `tabella(data): body`, also as a block, one pair per line (see `tabella`):\n`colsWidth:` then `name: \"120px\"` and `notes: \"30%\"`.",
          "line": 440,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsWidth",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_width()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_width()"
            }
          ],
          "example": null
        },
        {
          "name": "colsHide",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsHide(t: sink Tabella; columns: ColSel): Tabella"
          ],
          "doc": "",
          "line": 450,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsHide",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_hide()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_hide()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let preview = tabellaPreview(planets(), topN = 2, bottomN = 1):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\"]\necho preview",
            "prints": "┌──────┬─────────┬─────────────┬───────┬───────┐\n│      │ planet  │ type        │ moons │ rings │\n╞══════╪═════════╪═════════════╪═══════╪═══════╡\n│ 1    │ Mercury │ Terrestrial │     0 │ false │\n│ 2    │ Venus   │ Terrestrial │     0 │ false │\n│ 3..7 │         │             │       │       │\n│ 8    │ Neptune │ Ice giant   │    16 │ true  │\n└──────┴─────────┴─────────────┴───────┴───────┘"
          }
        },
        {
          "name": "colsUnhide",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsUnhide(t: sink Tabella; columns: ColSel): Tabella"
          ],
          "doc": "",
          "line": 456,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsUnhide",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_unhide()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_unhide()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  quantity: [\"speed of sound\", \"gravity\", \"air density\"]\n  value: [343.0, 9.81, 1.204]\n  units: [\"m /s\", \"m s^-2\", \"kg m^-3\"]\nlet quantities = tabella(d, rownameCol = \"quantity\"):\n  fmtUnits \"units\"\n  colsLabel:\n    value: \"at {{20 degC}}\"\necho quantities\nlet gravity = tabella(planets(), rownameCol = \"planet\"):\n  colsHide everything()\n  colsUnhide [\"density\", \"gravity\"]\n  colsUnits:\n    density: \"kg m^-3\"\n    gravity: \"m s^-2\"\n    unitsPattern = \"{1} ({2})\"\necho gravity",
            "prints": "┌────────────────┬──────────┬────────┐\n│                │ at 20 °C │ units  │\n╞════════════════╪══════════╪════════╡\n│ speed of sound │    343.0 │ m s⁻¹  │\n│ gravity        │     9.81 │ m s⁻²  │\n│ air density    │    1.204 │ kg m⁻³ │\n└────────────────┴──────────┴────────┘\n┌─────────┬──────────────────┬─────────────────┐\n│         │ density (kg m⁻³) │ gravity (m s⁻²) │\n╞═════════╪══════════════════╪═════════════════╡\n│ Mercury │             5429 │             3.7 │\n│ Venus   │             5243 │             8.9 │\n│ Earth   │             5514 │             9.8 │\n│ Mars    │             3934 │             3.7 │\n│ Jupiter │             1326 │            23.1 │\n│ Saturn  │              687 │             9.0 │\n│ Uranus  │             1270 │             8.7 │\n│ Neptune │             1638 │            11.0 │\n└─────────┴──────────────────┴─────────────────┘"
          }
        },
        {
          "name": "colsMove",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsMove(t: sink Tabella; columns: ColSel; after: string): Tabella"
          ],
          "doc": "Moves `columns` (in their given order) right after the column `after`.",
          "line": 462,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMove",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_move()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_move()"
            }
          ],
          "example": null
        },
        {
          "name": "colsLabelWith",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsLabelWith(t: sink Tabella; columns: ColSel;\n                   fn: proc (s: string): string): Tabella",
            "proc colsLabelWith(t: sink Tabella; fn: proc (s: string): string): Tabella"
          ],
          "doc": "Relabels columns with a proc over their labels: `colsLabelWith(everything(), capitalizeAscii)`.",
          "line": 474,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsLabelWith",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_label_with()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_label_with()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  colsLabelWith proc (s: string): string = \"×\" & s\necho t",
            "prints": "┌───┬────┬────┐\n│   │ ×1 │ ×2 │\n╞═══╪════╪════╡\n│ 1 │  1 │  2 │\n│ 2 │  2 │  4 │\n└───┴────┴────┘"
          }
        },
        {
          "name": "colsMoveToEnd",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsMoveToEnd(t: sink Tabella; columns: ColSel): Tabella"
          ],
          "doc": "",
          "line": 485,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMoveToEnd",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_move_to_end()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_move_to_end()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  a: [1]\n  b: [2]\n  c: [3]\n  d: [4]\nlet t = tabella(d):\n  colsMoveToEnd \"a\"\n  colsReorder [\"d\", \"b\"]\necho t",
            "prints": "┌───┬───┬───┬───┐\n│ d │ c │ b │ a │\n╞═══╪═══╪═══╪═══╡\n│ 4 │ 3 │ 2 │ 1 │\n└───┴───┴───┴───┘"
          }
        },
        {
          "name": "colsReorder",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsReorder(t: sink Tabella; columns: ColSel): Tabella"
          ],
          "doc": "Puts `columns` in the given order, in the places they hold: the other columns stay put.",
          "line": 492,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsReorder",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "GT.cols_reorder()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  a: [1]\n  b: [2]\n  c: [3]\n  d: [4]\nlet t = tabella(d):\n  colsMoveToEnd \"a\"\n  colsReorder [\"d\", \"b\"]\necho t",
            "prints": "┌───┬───┬───┬───┐\n│ d │ c │ b │ a │\n╞═══╪═══╪═══╪═══╡\n│ 4 │ 3 │ 2 │ 1 │\n└───┴───┴───┴───┘"
          }
        },
        {
          "name": "colsMoveToStart",
          "kind": "proc",
          "section": "cols",
          "signatures": [
            "proc colsMoveToStart(t: sink Tabella; columns: ColSel): Tabella"
          ],
          "doc": "",
          "line": 503,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMoveToStart",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_move_to_start()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_move_to_start()"
            }
          ],
          "example": null
        },
        {
          "name": "rowOrder",
          "kind": "proc",
          "section": "rows",
          "signatures": [
            "proc rowOrder(t: sink Tabella; columns: ColSel; reverse = false): Tabella"
          ],
          "doc": "Shows the rows sorted by `columns` (the first decides, the next break ties), within their\ngroups; `reverse` sorts from high to low. Missing values go last.",
          "line": 519,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowOrder",
          "counterparts": [
            {
              "in": "gt",
              "name": "row_order()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  rowOrder \"moons\", reverse = true\n  rowGroupOrder [\"Ice giant\", \"Gas giant\"]\necho t",
            "prints": "┌─────────┬───────┐\n│         │ moons │\n╞═════════╪═══════╡\n│ Ice giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Uranus  │    28 │\n│ Neptune │    16 │\n├─────────┼───────┤\n│ Gas giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Saturn  │   146 │\n│ Jupiter │    95 │\n├─────────┼───────┤\n│ Terrestrial     │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Mars    │     2 │\n│ Earth   │     1 │\n│ Mercury │     0 │\n│ Venus   │     0 │\n└─────────┴───────┘"
          }
        },
        {
          "name": "rowGroupOrder",
          "kind": "proc",
          "section": "rows",
          "signatures": [
            "proc rowGroupOrder(t: sink Tabella; groups: openArray[string]): Tabella"
          ],
          "doc": "Shows the row groups in this order; groups not listed follow, as they were.",
          "line": 535,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowGroupOrder",
          "counterparts": [
            {
              "in": "gt",
              "name": "row_group_order()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  rowOrder \"moons\", reverse = true\n  rowGroupOrder [\"Ice giant\", \"Gas giant\"]\necho t",
            "prints": "┌─────────┬───────┐\n│         │ moons │\n╞═════════╪═══════╡\n│ Ice giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Uranus  │    28 │\n│ Neptune │    16 │\n├─────────┼───────┤\n│ Gas giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Saturn  │   146 │\n│ Jupiter │    95 │\n├─────────┼───────┤\n│ Terrestrial     │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Mars    │     2 │\n│ Earth   │     1 │\n│ Mercury │     0 │\n│ Venus   │     0 │\n└─────────┴───────┘"
          }
        },
        {
          "name": "agg",
          "kind": "const",
          "section": "summary rows",
          "signatures": [
            "agg = ()"
          ],
          "doc": "",
          "line": 548,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-agg",
          "counterparts": [],
          "example": null
        },
        {
          "name": "sum",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func sum(_: AggNs): Aggregate"
          ],
          "doc": "The sum of the numbers (an int when they are all ints).",
          "line": 554,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-sum",
          "counterparts": [],
          "example": null
        },
        {
          "name": "mean",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func mean(_: AggNs): Aggregate"
          ],
          "doc": "The mean of the numbers.",
          "line": 568,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-mean",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  city: [\"Oslo\", \"Rome\"]\n  trend: [\"1 4 2 8 5\", \"3, NA, 6, 2\"]\n  change: [4.2, -1.5]\nlet t = tabella(d, rownameCol = \"city\"):\n  fmtNanoplot \"trend\", referenceLine = \"mean\"\n  fmtNanoplot \"change\", plotType = \"bar\"\necho t\necho t.toHtml.count(\"class=\\\"tb_nanoplot\\\"\"), \" \", nanoplotLabel(1234), \" \", nanoplotLabel(0.25)",
            "prints": "┌──────┬───────────┬───────────────────┐\n│      │ trend     │            change │\n╞══════╪═══════════╪═══════════════════╡\n│ Oslo │ ▁▄▂█▅ 1–8 │    │███████ 4.20  │\n│ Rome │ ▃ █▁ 2–6  │ ███│        −1.50 │\n└──────┴───────────┴───────────────────┘\n4 1.23K 0.25"
          }
        },
        {
          "name": "median",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func median(_: AggNs): Aggregate"
          ],
          "doc": "The median of the numbers (the mean of the two middle ones when they are even).",
          "line": 574,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-median",
          "counterparts": [],
          "example": null
        },
        {
          "name": "std",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func std(_: AggNs): Aggregate"
          ],
          "doc": "The standard deviation of the numbers, of a sample (divided by n - 1, as R's `sd` and\nPolars' `std`).",
          "line": 583,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-std",
          "counterparts": [],
          "example": null
        },
        {
          "name": "min",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func min(_: AggNs): Aggregate"
          ],
          "doc": "The smallest value (of numbers, or of texts).",
          "line": 600,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-min",
          "counterparts": [],
          "example": null
        },
        {
          "name": "max",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func max(_: AggNs): Aggregate"
          ],
          "doc": "The largest value (of numbers, or of texts).",
          "line": 604,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-max",
          "counterparts": [],
          "example": null
        },
        {
          "name": "count",
          "kind": "func",
          "section": "summary rows",
          "signatures": [
            "func count(_: AggNs): Aggregate"
          ],
          "doc": "How many values are not missing. Shown as an integer, whatever the column's format.",
          "line": 608,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-count",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  item: [\"a\", \"b\", \"c\"]\n  count: [3, 2500000, 12]\n  ratio: [0.5, 0.0000123, 1.25]\n  price_eur: [3.5, 10.0, 99.99]\nlet t = tabella(d):\n  fmtAuto()\n  fmtPassthrough \"item\", pattern = \"item {x}\"\necho t",
            "prints": "┌────────┬───────────┬─────────────┬───────────┐\n│ item   │     count │       ratio │ price_eur │\n╞════════╪═══════════╪═════════════╪═══════════╡\n│ item a │         3 │         0.5 │     €3.50 │\n│ item b │ 2.5 × 10⁶ │ 1.23 × 10⁻⁵ │    €10.00 │\n│ item c │        12 │        1.25 │    €99.99 │\n└────────┴───────────┴─────────────┴───────────┘"
          }
        },
        {
          "name": "aggregate",
          "kind": "proc",
          "section": "summary rows",
          "signatures": [
            "proc aggregate[P: proc](fn: P; name = \"\"): Aggregate"
          ],
          "doc": "An aggregate of your own, from a proc of the non-missing values to one value:\n`aggregate(proc (vs: seq[Value]): Value = toValue(vs.len * 2))`, or a value that converts to\none (`proc (vs: seq[Value]): float`).",
          "line": 612,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-aggregate",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let middle = aggregate(proc (vs: seq[Value]): Value = vs[vs.len div 2])\nlet t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"mass\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  fmtInteger \"diameter\"\n  grandSummaryRows:\n    planets: agg.count\n    largest: agg.max\n    \"middle one\": middle\n  grandSummaryRows:\n    mean: agg.mean\n    fmt = (x: float) => formatNumber(x, decimals = 1)\necho t",
            "prints": "┌────────────┬──────────┬───────┐\n│            │ diameter │ moons │\n╞════════════╪══════════╪═══════╡\n│ Mercury    │    4,879 │     0 │\n│ Venus      │   12,104 │     0 │\n│ Earth      │   12,756 │     1 │\n│ Mars       │    6,792 │     2 │\n│ Jupiter    │  142,984 │    95 │\n│ Saturn     │  120,536 │   146 │\n│ Uranus     │   51,118 │    28 │\n│ Neptune    │   49,528 │    16 │\n╞════════════╪══════════╪═══════╡\n│ planets    │        8 │     8 │\n│ largest    │  142,984 │   146 │\n│ middle one │  142,984 │    95 │\n│ mean       │ 50,087.1 │  36.0 │\n└────────────┴──────────┴───────┘"
          }
        },
        {
          "name": "toFormatFn",
          "kind": "proc",
          "section": "summary rows",
          "signatures": [
            "proc toFormatFn[P: proc](fn: P): FormatFn"
          ],
          "doc": "A format from a proc of a float (`(x: float) => formatNumber(x, 1)`), of a value\n(`(v: Value) => $v`), both giving plain text, or a `FormatFn` as it is.",
          "line": 619,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-toFormatFn",
          "counterparts": [],
          "example": null
        },
        {
          "name": "summaryRows",
          "kind": "proc",
          "section": "summary rows",
          "signatures": [
            "proc summaryRows(t: sink Tabella; fns: openArray[(string, Aggregate)];\n                 groups: openArray[string] = []; columns: ColSel = numeric();\n                 side = sBottom; missingText = \"—\"): Tabella",
            "proc summaryRows[P: proc](t: sink Tabella; fns: openArray[(string, Aggregate)];\n                          fmt: P; groups: openArray[string] = [];\n                          columns: ColSel = numeric(); side = sBottom;\n                          missingText = \"—\"): Tabella"
          ],
          "doc": "Adds rows that sum up each row group (or the `groups` listed), one for each aggregate in\n`fns`, labelled in the stub: `summaryRows(fns = {\"total\": agg.sum}, columns = \"moons\")`.\nInside `tabella(data): body`, also as a block, one pair per line (see `tabella`):\n`summaryRows:` then `total: agg.sum`, `columns = \"moons\"` and `fmtNumber(decimals = 1)`\n(a `fmt*` line is `fmt`).\nThe summary rows go under the group, or above it with `side = sTop`. Each cell is\nformatted like its column (its last format), `agg.count` as an integer; a cell with\nnothing to sum up, and the columns not in `columns`, show `missingText`.",
          "line": 643,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-summaryRows",
          "counterparts": [
            {
              "in": "gt",
              "name": "summary_rows()"
            },
            {
              "in": "Great Tables",
              "name": "GT.summary_rows()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  summaryRows:\n    total: agg.sum\necho t",
            "prints": "┌─────────┬───────┐\n│         │ moons │\n╞═════════╪═══════╡\n│ Terrestrial     │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Mercury │     0 │\n│ Venus   │     0 │\n│ Earth   │     1 │\n│ Mars    │     2 │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ total   │     3 │\n├─────────┼───────┤\n│ Gas giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Jupiter │    95 │\n│ Saturn  │   146 │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ total   │   241 │\n├─────────┼───────┤\n│ Ice giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Uranus  │    28 │\n│ Neptune │    16 │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ total   │    44 │\n└─────────┴───────┘"
          }
        },
        {
          "name": "grandSummaryRows",
          "kind": "proc",
          "section": "summary rows",
          "signatures": [
            "proc grandSummaryRows(t: sink Tabella; fns: openArray[(string, Aggregate)];\n                      columns: ColSel = numeric(); side = sBottom;\n                      missingText = \"—\"): Tabella",
            "proc grandSummaryRows[P: proc](t: sink Tabella;\n                               fns: openArray[(string, Aggregate)]; fmt: P;\n                               columns: ColSel = numeric(); side = sBottom;\n                               missingText = \"—\"): Tabella"
          ],
          "doc": "Adds rows that sum up the whole table, every row of every group, one for each aggregate in\n`fns`: at the bottom of the table, or at the top with `side = sTop`. Formatted as\n`summaryRows`; a block as in `summaryRows`: `grandSummaryRows:` then `mean: agg.mean`.",
          "line": 664,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-grandSummaryRows",
          "counterparts": [
            {
              "in": "gt",
              "name": "grand_summary_rows()"
            },
            {
              "in": "Great Tables",
              "name": "GT.grand_summary_rows()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let medals = tableData:\n  country: [\"Norway\", \"Germany\", \"Italy\"]\n  gold: [16, 12, 7]\n  silver: [8, 10, 8]\n  bronze: [13, 5, 9]\nlet t = tabella(medals, rownameCol = \"country\"):\n  summaryColumns:\n    total: agg.sum\n  grandSummaryRows:\n    all: agg.sum\necho t",
            "prints": "┌─────────┬──────┬────────┬────────┬───────┐\n│         │ gold │ silver │ bronze │ total │\n╞═════════╪══════╪════════╪════════╪═══════╡\n│ Norway  │   16 │      8 │     13 │    37 │\n│ Germany │   12 │     10 │      5 │    27 │\n│ Italy   │    7 │      8 │      9 │    24 │\n╞═════════╪══════╪════════╪════════╪═══════╡\n│ all     │   35 │     26 │     27 │    88 │\n└─────────┴──────┴────────┴────────┴───────┘"
          }
        },
        {
          "name": "dataColor",
          "kind": "proc",
          "section": "dataColor",
          "signatures": [
            "proc dataColor(t: sink Tabella; columns: ColSel = numeric(); rows = allRows();\n               palette: seq[string] = palette(\"blues\");\n               domain = (0x7FF7FFFFFFFFFFFF'f64, 0x7FF7FFFFFFFFFFFF'f64);\n               reverse = false; naColor = \"#F0F0F0\"; autoColorText = true;\n               apply = \"fill\"): Tabella"
          ],
          "doc": "Colours cells by value, each column on its own: a number column along `palette` from the low\nto the high end of `domain` (by default the range of its selected cells), any other column by\ncategory. A `domain` from high to low runs the palette the other way. `apply = \"text\"`\ncolours the text instead of the fill. The stub is left out, as in Great Tables;\n`palette(\"great-tables\")` is Great Tables' default palette.",
          "line": 680,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-dataColor",
          "counterparts": [
            {
              "in": "gt",
              "name": "data_color()"
            },
            {
              "in": "Great Tables",
              "name": "GT.data_color()"
            }
          ],
          "example": null
        },
        {
          "name": "tabOptions",
          "kind": "macro",
          "section": "options",
          "signatures": [
            "macro tabOptions(t: Tabella; args: varargs[untyped]): Tabella"
          ],
          "doc": "Sets any of `TabOptions`' fields by name, checked when compiling:\n`t.tabOptions(rowStriping = true, headingAlign = \"left\")`.",
          "line": 725,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabOptions",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_options()"
            },
            {
              "in": "Great Tables",
              "name": "GT.tab_options()"
            }
          ],
          "example": {
            "spec": "nim-sugar",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\", \"moons\"]\n  colsLabel:\n    mass: \"mass, {{10^24 kg}}\"\n    diameter: \"diameter, {{km}}\"\n  grandSummaryRows:\n    mean: agg.mean\n    \"largest one\": agg.max\n    fmtNumber(decimals = 0)\n  tabOptions:\n    rowStriping = true\necho t\necho t.options.rowStriping",
            "prints": "┌─────────────┬───────────────┬──────────────┐\n│             │ mass, 10²⁴ kg │ diameter, km │\n╞═════════════╪═══════════════╪══════════════╡\n│ Mercury     │          0.33 │         4879 │\n│ Venus       │          4.87 │        12104 │\n│ Earth       │          5.97 │        12756 │\n│ Mars        │         0.642 │         6792 │\n│ Jupiter     │        1898.0 │       142984 │\n│ Saturn      │         568.0 │       120536 │\n│ Uranus      │          86.8 │        51118 │\n│ Neptune     │         102.0 │        49528 │\n╞═════════════╪═══════════════╪══════════════╡\n│ mean        │           333 │       50,087 │\n│ largest one │         1,898 │      142,984 │\n└─────────────┴───────────────┴──────────────┘\ntrue"
          }
        },
        {
          "name": "optRowStriping",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optRowStriping(t: sink Tabella; on = true): Tabella"
          ],
          "doc": "",
          "line": 737,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optRowStriping",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_row_striping()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_row_striping()"
            }
          ],
          "example": null
        },
        {
          "name": "optAlignTableHeader",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optAlignTableHeader(t: sink Tabella; align = \"left\"): Tabella"
          ],
          "doc": "",
          "line": 741,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optAlignTableHeader",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_align_table_header()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_align_table_header()"
            }
          ],
          "example": null
        },
        {
          "name": "optAllCaps",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optAllCaps(t: sink Tabella; on = true; locations: openArray[string] = [\n    \"column_labels\", \"stub\", \"row_group\"]): Tabella"
          ],
          "doc": "Small capitals (upper case, smaller and bolder) in the column labels, the stub and the row\ngroup labels, or only in the `locations` named, as gt's `opt_all_caps(locations = ...)`.",
          "line": 745,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optAllCaps",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_all_caps()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_all_caps()"
            }
          ],
          "example": null
        },
        {
          "name": "optTableFont",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optTableFont(t: sink Tabella; font: string): Tabella"
          ],
          "doc": "The table's font, as a CSS font stack: `optTableFont(systemFonts(\"humanist\"))`.",
          "line": 768,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optTableFont",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_table_font()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_table_font()"
            }
          ],
          "example": null
        },
        {
          "name": "fontStackNames",
          "kind": "const",
          "section": "options",
          "signatures": [
            "fontStackNames = [\"system-ui\", \"transitional\", \"old-style\", \"humanist\",\n                  \"geometric-humanist\", \"classical-humanist\", \"neo-grotesque\",\n                  \"monospace-slab-serif\", \"monospace-code\", \"industrial\",\n                  \"rounded-sans\", \"slab-serif\", \"antique\", \"didone\",\n                  \"handwritten\"]"
          ],
          "doc": "The names `systemFonts` knows, in Great Tables' order.",
          "line": 790,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-fontStackNames",
          "counterparts": [],
          "example": null
        },
        {
          "name": "systemFonts",
          "kind": "func",
          "section": "options",
          "signatures": [
            "func systemFonts(name = \"system-ui\"): string"
          ],
          "doc": "One of Great Tables' fifteen font stacks, fonts that are on most systems, as CSS text:\n`systemFonts(\"old-style\")` is \"'Iowan Old Style', 'Palatino Linotype', ..., serif\". The\nnames are in `fontStackNames`; another name raises `ValueError`.",
          "line": 793,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-systemFonts",
          "counterparts": [
            {
              "in": "gt",
              "name": "system_fonts()"
            },
            {
              "in": "Great Tables",
              "name": "system_fonts()"
            }
          ],
          "example": null
        },
        {
          "name": "defaultFonts",
          "kind": "func",
          "section": "options",
          "signatures": [
            "func defaultFonts(): string"
          ],
          "doc": "gt's default font stack, as CSS text (tabelline's default, `tableFontNames`, is close to it).",
          "line": 801,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-defaultFonts",
          "counterparts": [
            {
              "in": "gt",
              "name": "default_fonts()"
            }
          ],
          "example": null
        },
        {
          "name": "CssTheme",
          "kind": "type",
          "section": "options",
          "signatures": [
            "CssTheme = object\n  ink*, paper*, line*, shade*, primary*, font*: string"
          ],
          "doc": "Where a table takes its colours and font from (`optCssTheme`): for each, the name of a CSS\nvariable of the page (`\"--ink\"`) or a CSS value (`\"#1C1C1C\"`).",
          "line": 807,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-CssTheme",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cssTheme",
          "kind": "func",
          "section": "options",
          "signatures": [
            "func cssTheme(ink = \"--ink\"; paper = \"--paper\"; line = \"--line\";\n              shade = \"--shade\"; primary = \"--primary\"; font = \"--font\"): CssTheme"
          ],
          "doc": "A theme to keep and reuse with `optCssTheme(theme)`. Each argument starting with `--` names\nthe variable to read; anything else is the CSS value itself.",
          "line": 812,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-cssTheme",
          "counterparts": [],
          "example": null
        },
        {
          "name": "optCssTheme",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optCssTheme(t: sink Tabella; theme: CssTheme): Tabella",
            "proc optCssTheme(t: sink Tabella; ink = \"--ink\"; paper = \"--paper\";\n                 line = \"--line\"; shade = \"--shade\"; primary = \"--primary\";\n                 font = \"--font\"): Tabella"
          ],
          "doc": "Every colour of the table, and its font, from `theme`: see `optCssTheme()`.",
          "line": 822,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optCssTheme",
          "counterparts": [],
          "example": null
        },
        {
          "name": "optVerticalPadding",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optVerticalPadding(t: sink Tabella; scale = 1.0): Tabella"
          ],
          "doc": "Scales the vertical padding of the heading, the column labels and the rows (gt: 0 to 3).",
          "line": 867,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optVerticalPadding",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_vertical_padding()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_vertical_padding()"
            }
          ],
          "example": null
        },
        {
          "name": "optHorizontalPadding",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optHorizontalPadding(t: sink Tabella; scale = 1.0): Tabella"
          ],
          "doc": "Scales the horizontal padding of the heading, the column labels and the rows (gt: 0 to 3).",
          "line": 874,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optHorizontalPadding",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_horizontal_padding()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_horizontal_padding()"
            }
          ],
          "example": null
        },
        {
          "name": "optTableOutline",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optTableOutline(t: sink Tabella; style = \"solid\"; width = \"3px\";\n                     color = \"#D3D3D3\"): Tabella"
          ],
          "doc": "A line all around the table.",
          "line": 881,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optTableOutline",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_table_outline()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_table_outline()"
            }
          ],
          "example": null
        },
        {
          "name": "optStylize",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optStylize(t: sink Tabella; style = 1; color = \"blue\";\n                addRowStriping = true): Tabella"
          ],
          "doc": "A ready-made look, gt's and Great Tables' `opt_stylize()`: `style` 1 to 6, in one of `color`\n\"blue\", \"cyan\", \"pink\", \"green\", \"red\", \"gray\", with stripes unless `addRowStriping = false`.\nStyles 2, 4 and 5 draw a light outline around the table; a dark stub gets white text.",
          "line": 938,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optStylize",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_stylize()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_stylize()"
            }
          ],
          "example": null
        },
        {
          "name": "optTableLines",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optTableLines(t: sink Tabella; extent = \"default\"): Tabella"
          ],
          "doc": "The table's lines: `\"all\"` adds vertical lines between cells, `\"none\"` takes every line away,\n`\"default\"` brings back the defaults.",
          "line": 976,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optTableLines",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_table_lines()"
            }
          ],
          "example": null
        },
        {
          "name": "optFootnoteMarks",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optFootnoteMarks(t: sink Tabella; marks: FootnoteMarks): Tabella",
            "proc optFootnoteMarks(t: sink Tabella; marks: string): Tabella",
            "proc optFootnoteMarks(t: sink Tabella; marks: openArray[string]): Tabella"
          ],
          "doc": "By gt's names: \"numbers\", \"letters\", \"LETTERS\", \"standard\" (*, †, ‡, §) or \"extended\"\n(with ‖, ¶).",
          "line": 1005,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optFootnoteMarks",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_footnote_marks()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_footnote_marks()"
            }
          ],
          "example": {
            "spec": "styling",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabFootnote \"A note with no mark.\"\n  tabFootnote \"Two twos.\", loc.body(cols = \"2\", rows = [1])\n  tabFootnote \"The first row.\", loc.stub(rows = [0])\n  optFootnoteMarks \"standard\"\n  optFootnoteSpec \"^\", \"(\"\n  optFootnoteOrder \"marks_last\"\necho t",
            "prints": "┌─────┬───┬─────┐\n│     │ 1 │   2 │\n╞═════╪═══╪═════╡\n│ 1^* │ 1 │   2 │\n│ 2   │ 2 │ 4^† │\n└─────┴───┴─────┘\nA note with no mark.\n(*) The first row.\n(†) Two twos."
          }
        },
        {
          "name": "optFootnoteSpec",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optFootnoteSpec(t: sink Tabella; specRef = \"^\"; specFtr = \"^\"): Tabella"
          ],
          "doc": "How marks look, in the table (`specRef`) and in the footer (`specFtr`): \"^\" raised, \"i\"\nitalic, \"b\" bold, \"(\" or \"[\" around the mark: `optFootnoteSpec(\"^i\", \"(\")`.",
          "line": 1027,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optFootnoteSpec",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_footnote_spec()"
            }
          ],
          "example": {
            "spec": "styling",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabFootnote \"A note with no mark.\"\n  tabFootnote \"Two twos.\", loc.body(cols = \"2\", rows = [1])\n  tabFootnote \"The first row.\", loc.stub(rows = [0])\n  optFootnoteMarks \"standard\"\n  optFootnoteSpec \"^\", \"(\"\n  optFootnoteOrder \"marks_last\"\necho t",
            "prints": "┌─────┬───┬─────┐\n│     │ 1 │   2 │\n╞═════╪═══╪═════╡\n│ 1^* │ 1 │   2 │\n│ 2   │ 2 │ 4^† │\n└─────┴───┴─────┘\nA note with no mark.\n(*) The first row.\n(†) Two twos."
          }
        },
        {
          "name": "optFootnoteOrder",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optFootnoteOrder(t: sink Tabella; order = \"marks_first\"): Tabella"
          ],
          "doc": "The order of the footnotes: marked ones first (the default), last (\"marks_last\"), or as\nthey were added (\"preserve_order\", which also numbers the marks in that order).",
          "line": 1034,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optFootnoteOrder",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_footnote_order()"
            }
          ],
          "example": {
            "spec": "styling",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  tabFootnote \"A note with no mark.\"\n  tabFootnote \"Two twos.\", loc.body(cols = \"2\", rows = [1])\n  tabFootnote \"The first row.\", loc.stub(rows = [0])\n  optFootnoteMarks \"standard\"\n  optFootnoteSpec \"^\", \"(\"\n  optFootnoteOrder \"marks_last\"\necho t",
            "prints": "┌─────┬───┬─────┐\n│     │ 1 │   2 │\n╞═════╪═══╪═════╡\n│ 1^* │ 1 │   2 │\n│ 2   │ 2 │ 4^† │\n└─────┴───┴─────┘\nA note with no mark.\n(*) The first row.\n(†) Two twos."
          }
        },
        {
          "name": "optCss",
          "kind": "proc",
          "section": "options",
          "signatures": [
            "proc optCss(t: sink Tabella; css: string; add = true): Tabella"
          ],
          "doc": "CSS for the table, scoped to it (rules that start with `#` are left as they are); `add = false`\nreplaces what was given before.",
          "line": 1042,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-optCss",
          "counterparts": [
            {
              "in": "gt",
              "name": "opt_css()"
            },
            {
              "in": "Great Tables",
              "name": "GT.opt_css()"
            }
          ],
          "example": null
        },
        {
          "name": "colsMerge",
          "kind": "proc",
          "section": "merges",
          "signatures": [
            "proc colsMerge(t: sink Tabella; columns: openArray[string]; rows = allRows();\n               pattern = \"\"; autohide = true): Tabella"
          ],
          "doc": "Shows the formatted values of `columns` together, in the first one, with `pattern`:\n`{1}`, `{2}`, ... are the columns, and a part between `<<` and `>>` is left out when a value\nit names is missing: `colsMerge([\"city\", \"country\"], pattern = \"{1}<< ({2})>>\")`. Without a\npattern the values are joined by spaces. The other columns are hidden (unless `autohide =\nfalse`). A pattern reads the fields of a record too: `{2.lo}` is the field `lo` of column\n2, and `{lo}` of column 1, formatted as its column is, so a single column of records can be\nshown in a pattern: `colsMerge([\"span\"], pattern = \"{lo}–{hi}\")`.",
          "line": 1073,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMerge",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_merge()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_merge()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  sensor: [\"north\", \"south\"]\n  span: [(lo: 0.82, hi: 1.56), (lo: 9.13, hi: 12.71)]\n  unit: [\"mm\", \"cm\"]\nlet t = tabella(d, rownameCol = \"sensor\"):\n  fmtNumber \"span\", decimals = 1\n  colsMerge [\"span\", \"unit\"], pattern = \"{lo}–{hi}<< {2}>>\"\necho t",
            "prints": "┌───────┬─────────────┐\n│       │ span        │\n╞═══════╪═════════════╡\n│ north │ 0.8–1.6 mm  │\n│ south │ 9.1–12.7 cm │\n└───────┴─────────────┘"
          }
        },
        {
          "name": "colsMergeUncert",
          "kind": "proc",
          "section": "merges",
          "signatures": [
            "proc colsMergeUncert(t: sink Tabella; colVal, colUncert: string;\n                     rows = allRows(); sep = \" ± \"; autohide = true): Tabella"
          ],
          "doc": "A value and its uncertainty in one cell: `12.3 ± 0.4` (just the value when the uncertainty\nis missing).",
          "line": 1088,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMergeUncert",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_merge_uncert()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_merge_uncert()"
            }
          ],
          "example": null
        },
        {
          "name": "colsMergeRange",
          "kind": "proc",
          "section": "merges",
          "signatures": [
            "proc colsMergeRange(t: sink Tabella; colBegin, colEnd: string; rows = allRows();\n                    sep = \"–\"; autohide = true): Tabella"
          ],
          "doc": "A range in one cell, with an en dash: `1990–2000` (just the start when the end is missing).",
          "line": 1095,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMergeRange",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_merge_range()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_merge_range()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let d = tableData:\n  mission: [\"Voyager 1\", \"Galileo\", \"Cassini\"]\n  launch: [1977, 1989, 1997]\n  ended: [nil, 2003, 2017]\n  target: [\"Jupiter, Saturn\", \"Jupiter\", \"Saturn\"]\n  moon: [nil, \"Io\", \"Titan\"]\nlet t = tabella(d, rownameCol = \"mission\"):\n  colsMergeRange \"launch\", \"ended\"\n  colsMerge [\"target\", \"moon\"], pattern = \"{1}<< and {2}>>\"\necho t",
            "prints": "┌───────────┬───────────┬──────────────────┐\n│           │    launch │ target           │\n╞═══════════╪═══════════╪══════════════════╡\n│ Voyager 1 │      1977 │ Jupiter, Saturn  │\n│ Galileo   │ 1989–2003 │ Jupiter and Io   │\n│ Cassini   │ 1997–2017 │ Saturn and Titan │\n└───────────┴───────────┴──────────────────┘"
          }
        },
        {
          "name": "colsMergeNPct",
          "kind": "proc",
          "section": "merges",
          "signatures": [
            "proc colsMergeNPct(t: sink Tabella; colN, colPct: string; rows = allRows();\n                   autohide = true): Tabella"
          ],
          "doc": "A count and its percentage in one cell: `12 (4.5%)`; a zero count shows no percentage.\nFormat the percentage column first (`fmtPercent`).",
          "line": 1101,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsMergeNPct",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_merge_n_pct()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_merge_n_pct()"
            }
          ],
          "example": null
        },
        {
          "name": "colsAdd",
          "kind": "proc",
          "section": "adding columns",
          "signatures": [
            "proc colsAdd(t: sink Tabella; name: string; values: seq[Value]; before = \"\";\n             after = \"\"): Tabella",
            "proc colsAdd[T](t: sink Tabella; name: string; values: openArray[T];\n                before = \"\"; after = \"\"): Tabella",
            "proc colsAdd(t: sink Tabella; name: string; fn: proc (r: Row): Value;\n             before = \"\"; after = \"\"): Tabella"
          ],
          "doc": "Adds a column: at the end, or `before` or `after` another one. `colsAdd(\"ratio\", ratios)`.",
          "line": 1116,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsAdd",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_add()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  codes: [\"IT\", \"jpn\", \"FR, DE\", \"XX\"]\nlet t = tabella(d):\n  colsAdd \"names\", d[\"codes\"].values\n  fmtCountry \"names\"\necho t",
            "prints": "┌────────┬─────────────────┐\n│ codes  │ names           │\n╞════════╪═════════════════╡\n│ IT     │ Italy           │\n│ jpn    │ Japan           │\n│ FR, DE │ France, Germany │\n│ XX     │ XX              │\n└────────┴─────────────────┘"
          }
        },
        {
          "name": "summaryColumns",
          "kind": "proc",
          "section": "adding columns",
          "signatures": [
            "proc summaryColumns(t: sink Tabella; fns: openArray[(string, Aggregate)];\n                    columns: ColSel = numeric(); side = sRight;\n                    missingText = \"—\"): Tabella",
            "proc summaryColumns[P: proc](t: sink Tabella;\n                             fns: openArray[(string, Aggregate)]; fmt: P;\n                             columns: ColSel = numeric(); side = sRight;\n                             missingText = \"—\"): Tabella"
          ],
          "doc": "Adds a column for each aggregate in `fns`, summing up `columns` across each row:\n`summaryColumns(fns = {\"total\": agg.sum}, columns = [\"gold\", \"silver\", \"bronze\"])`, or as\na block (`summaryColumns:` then `total: agg.sum`, see `tabella`), at the\nright of the table (or at the left of the data with `side = sLeft`). The new column is\nformatted like the first column it sums up, or by `fmt`; summary rows sum it up like any\nother column, so a table of totals gets its grand total.",
          "line": 1178,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-summaryColumns",
          "counterparts": [
            {
              "in": "gt",
              "name": "summary_columns()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let medals = tableData:\n  country: [\"Norway\", \"Germany\", \"Italy\"]\n  gold: [16, 12, 7]\n  silver: [8, 10, 8]\n  bronze: [13, 5, 9]\nlet t = tabella(medals, rownameCol = \"country\"):\n  summaryColumns:\n    total: agg.sum\n  grandSummaryRows:\n    all: agg.sum\necho t",
            "prints": "┌─────────┬──────┬────────┬────────┬───────┐\n│         │ gold │ silver │ bronze │ total │\n╞═════════╪══════╪════════╪════════╪═══════╡\n│ Norway  │   16 │      8 │     13 │    37 │\n│ Germany │   12 │     10 │      5 │    27 │\n│ Italy   │    7 │      8 │      9 │    24 │\n╞═════════╪══════╪════════╪════════╪═══════╡\n│ all     │   35 │     26 │     27 │    88 │\n└─────────┴──────┴────────┴────────┴───────┘"
          }
        },
        {
          "name": "rowsAdd",
          "kind": "proc",
          "section": "adding rows",
          "signatures": [
            "proc rowsAdd(t: sink Tabella; rows: TableData; before = -1; after = -1): Tabella",
            "proc rowsAdd[T: object | tuple](t: sink Tabella; rows: openArray[T];\n                                before = -1; after = -1): Tabella"
          ],
          "doc": "Adds rows, given as a table of some of the columns (the others are missing): at the end, or\n`before` or `after` a row (by its index in the data). A value of `groupnameCol` puts the row\nin that group (made when new). `rowsAdd(tableData(planet = [\"Pluto\"], moons = [5]))`.",
          "line": 1197,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowsAdd",
          "counterparts": [
            {
              "in": "gt",
              "name": "rows_add()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\"]\n  rowsHide where(it[\"type\"] != \"Ice giant\")\n  rowsAdd [(planet: \"Pluto\", `type`: \"Dwarf planet\", moons: 5)]\necho t",
            "prints": "┌─────────┬───────┐\n│         │ moons │\n╞═════════╪═══════╡\n│ Ice giant       │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Uranus  │    28 │\n│ Neptune │    16 │\n├─────────┼───────┤\n│ Dwarf planet    │\n├┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┤\n│ Pluto   │     5 │\n└─────────┴───────┘"
          }
        },
        {
          "name": "rowsHide",
          "kind": "proc",
          "section": "adding rows",
          "signatures": [
            "proc rowsHide(t: sink Tabella; rows: RowSel): Tabella"
          ],
          "doc": "Hides rows: they are not shown, nor summed up by summary rows, but stay in the data.",
          "line": 1232,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowsHide",
          "counterparts": [
            {
              "in": "gt",
              "name": "rows_hide()"
            }
          ],
          "example": {
            "spec": "nim-sugar",
            "code": "let t = tabella(planets(), rownameCol = \"planet\"):\n  colsHide [\"type\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\", \"diameter\"]\n  rowsHide where(it.moons < 10)\necho t",
            "prints": "┌─────────┬────────┬───────┐\n│         │   mass │ moons │\n╞═════════╪════════╪═══════╡\n│ Jupiter │ 1898.0 │    95 │\n│ Saturn  │  568.0 │   146 │\n│ Uranus  │   86.8 │    28 │\n│ Neptune │  102.0 │    16 │\n└─────────┴────────┴───────┘"
          }
        },
        {
          "name": "rowsUnhide",
          "kind": "proc",
          "section": "adding rows",
          "signatures": [
            "proc rowsUnhide(t: sink Tabella; rows = allRows()): Tabella"
          ],
          "doc": "Shows hidden rows again (all of them, by default).",
          "line": 1238,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-rowsUnhide",
          "counterparts": [
            {
              "in": "gt",
              "name": "rows_unhide()"
            }
          ],
          "example": null
        },
        {
          "name": "tabStubIndent",
          "kind": "proc",
          "section": "stub and alignment",
          "signatures": [
            "proc tabStubIndent(t: sink Tabella; rows: RowSel; indent: int): Tabella",
            "proc tabStubIndent(t: sink Tabella; rows: RowSel; indent = \"increase\"): Tabella"
          ],
          "doc": "Indents the stub cells of `rows` at a level from 0 (none) to 5.",
          "line": 1246,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabStubIndent",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_stub_indent()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let budget = tableData:\n  item: [\"Hardware\", \"Laptops\", \"Screens\", \"Travel\"]\n  eur: [5200, 4000, 1200, 900]\nlet t = tabella(budget, rownameCol = \"item\"):\n  tabStubIndent [1, 2], \"increase\"\n  fmtInteger \"eur\"\necho t",
            "prints": "┌───────────┬───────┐\n│           │   eur │\n╞═══════════╪═══════╡\n│ Hardware  │ 5,200 │\n│   Laptops │ 4,000 │\n│   Screens │ 1,200 │\n│ Travel    │   900 │\n└───────────┴───────┘"
          }
        },
        {
          "name": "colsAlignDecimal",
          "kind": "proc",
          "section": "stub and alignment",
          "signatures": [
            "proc colsAlignDecimal(t: sink Tabella; columns: ColSel = numeric();\n                      decMark = \"\"; locale = \"\"): Tabella"
          ],
          "doc": "Aligns the numbers of `columns` on their decimal mark, by padding each formatted cell on the\nright with figure spaces (a number without decimals gets a space for the mark, too). The\ncolumns are aligned right. The mark is `decMark`, or the locale's (`\".\"` by default).",
          "line": 1260,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsAlignDecimal",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_align_decimal()"
            },
            {
              "in": "Great Tables",
              "name": "GT.cols_align_decimal()"
            }
          ],
          "example": null
        },
        {
          "name": "colsLabelRotate",
          "kind": "proc",
          "section": "rotated labels",
          "signatures": [
            "proc colsLabelRotate(t: sink Tabella; columns: ColSel = everything();\n                     dir = \"sideways-lr\"): Tabella"
          ],
          "doc": "Turns the labels of `columns` on their side, for narrow columns: read from the bottom up\n(`\"sideways-lr\"`) or from the top down (`\"sideways-rl\"`), or slanted at 45 degrees\n(`\"slanted\"`, not from gt: a longer label, such as a month's name, in a narrow column). HTML only: text and Markdown keep\nthe labels as they are.",
          "line": 1278,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-colsLabelRotate",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "GT.cols_label_rotate()"
            }
          ],
          "example": null
        },
        {
          "name": "fromColumn",
          "kind": "func",
          "section": "styles from the data",
          "signatures": [
            "func fromColumn(column: string; naValue = \"\"): string"
          ],
          "doc": "A style value taken, for each cell, from `column` of the same row:\n`tabStyle(style.fill(fromColumn(\"colour\")), loc.body(\"name\"))`. A missing value is\n`naValue` (\"\" leaves that property out). Works in any style for body and stub cells.",
          "line": 1296,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-fromColumn",
          "counterparts": [
            {
              "in": "gt",
              "name": "from_column()"
            },
            {
              "in": "Great Tables",
              "name": "from_column()"
            }
          ],
          "example": null
        },
        {
          "name": "tabStyleBody",
          "kind": "proc",
          "section": "styles from the data",
          "signatures": [
            "proc tabStyleBody(t: sink Tabella; style: CellStyle;\n                  columns: ColSel = everything(); rows = allRows();\n                  values: openArray[string] = []; pattern = \"\";\n                  fn: proc (v: Value): bool = nil; targets = \"cell\"): Tabella"
          ],
          "doc": "Styles the body cells whose value is one of `values` (compared as text, or as numbers),\ncontains `pattern`, or makes `fn` true; `targets = \"row\"` styles their whole row, `\"column\"`\ntheir whole column: `tabStyleBody(style.fill(\"var(--x-soft)\"), values = [\"Earth\"])`.",
          "line": 1338,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-tabStyleBody",
          "counterparts": [
            {
              "in": "gt",
              "name": "tab_style_body()"
            }
          ],
          "example": null
        },
        {
          "name": "initTabellaPreview",
          "kind": "proc",
          "section": "preview",
          "signatures": [
            "proc initTabellaPreview(data: TableData; topN = 5; bottomN = 1;\n                        inclRownums = true;\n                        moreRows: RowSel = toRowSel(newSeq(Natural(0)))): Tabella"
          ],
          "doc": "A preview of a big table: its first `topN` rows, its last `bottomN` rows and the rows of\n`moreRows` (not from gt: indices from 0, a range, a set such as `{12, 40..42}`, or\n`where(...)`), in their order, with a shaded row for each run of rows left out (\"6..99\"), and\nthe rows numbered from 1 in the stub (`inclRownums`), as gt's `gt_preview()`. A run of one\nrow is shown, not left out. Written `tabellaPreview(data, topN = 3)`, with a body if you like.",
          "line": 1381,
          "url": "https://pietroppeter.github.io/tabelline/api/#verbs-initTabellaPreview",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/build",
      "title": "Building a table",
      "path": "src/tabelline/build.nim",
      "doc": "Building a table for display: the step every renderer shares, after gt's `build_data()`.\nIt runs the formats and substitutions, puts the rows in display order (groups), places the\nfootnote marks and gathers the styles of every location. The renderers (HTML, text, Markdown)\nonly lay out a `Built`.",
      "symbols": [
        {
          "name": "BuiltRow",
          "kind": "type",
          "section": "",
          "signatures": [
            "BuiltRow = object\n  index*: int                ## row in the data\n  stub*: string              ## the stub cell, formatted (\"\" without a stub)\n  indent*: int               ## indent level of the stub cell (0 to 5)\n  levels*: seq[string]       ## the stub's higher levels (`stubCols`), formatted\n  spans*: seq[int]           ## how many rows each level spans: 0 when the one above covers it\n  cells*: seq[string]        ## formatted cells of the visible data columns"
          ],
          "doc": "",
          "line": 11,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-BuiltRow",
          "counterparts": [],
          "example": null
        },
        {
          "name": "BuiltSummary",
          "kind": "type",
          "section": "",
          "signatures": [
            "BuiltSummary = object\n  label*: string             ## the label in the stub, rendered\n  key*: string               ## the location key of its stub cell (`summaryKey`)\n  cells*: seq[string]        ## formatted cells of the visible data columns\n  values*: seq[Value]        ## the values behind them (missing where a column is not summed)"
          ],
          "doc": "",
          "line": 18,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-BuiltSummary",
          "counterparts": [],
          "example": null
        },
        {
          "name": "BuiltGroup",
          "kind": "type",
          "section": "",
          "signatures": [
            "BuiltGroup = object\n  id*: string\n  label*: string ## rendered label (\"\" for rows outside any group, unless\n                 ## `rowGroupDefaultLabel` names them)\n  rows*: seq[BuiltRow]\n  summaryTop*, summaryBottom*: seq[BuiltSummary] ## the group's summary rows"
          ],
          "doc": "",
          "line": 23,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-BuiltGroup",
          "counterparts": [],
          "example": null
        },
        {
          "name": "Built",
          "kind": "type",
          "section": "",
          "signatures": [
            "Built = object\n  ctx*: RenderContext\n  columns*: seq[ColInfo]     ## visible data columns, in order\n  groups*: seq[BuiltGroup]\n  grandTop*, grandBottom*: seq[BuiltSummary] ## the grand summary rows\n  marks*: Table[string, seq[int]] ## location key -> footnote numbers\n  notes*: seq[string]        ## rendered footnotes, by number - 1\n  plainNotes*: seq[string]   ## footnotes without a mark\n  footer*: seq[(int, string)] ## the footnotes in the order shown: (mark number or 0, text)\n  styles*: Table[string, string] ## location key -> CSS"
          ],
          "doc": "",
          "line": 29,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-Built",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cellKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func cellKey(row: int; col: string): string"
          ],
          "doc": "",
          "line": 40,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-cellKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "colKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func colKey(col: string): string"
          ],
          "doc": "",
          "line": 41,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-colKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "spannerKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func spannerKey(label: string): string"
          ],
          "doc": "",
          "line": 42,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-spannerKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "groupKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func groupKey(id: string): string"
          ],
          "doc": "",
          "line": 43,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-groupKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "summaryKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func summaryKey(group, label: string; col = \"\"): string"
          ],
          "doc": "A cell of a group's summary row (the stub cell when `col` is \"\").",
          "line": 44,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-summaryKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "grandKey",
          "kind": "func",
          "section": "",
          "signatures": [
            "func grandKey(label: string; col = \"\"): string"
          ],
          "doc": "",
          "line": 47,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-grandKey",
          "counterparts": [],
          "example": null
        },
        {
          "name": "renderText",
          "kind": "func",
          "section": "",
          "signatures": [
            "func renderText(t: Text; ctx: RenderContext): string"
          ],
          "doc": "",
          "line": 49,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-renderText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "renderLabel",
          "kind": "func",
          "section": "",
          "signatures": [
            "func renderLabel(t: Text; ctx: RenderContext): string"
          ],
          "doc": "A label (of a column, a spanner, the stubhead): like `renderText`, and units between `{{`\nand `}}` are formatted (`\"Density, {{kg/m^3}}\"`).",
          "line": 52,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-renderLabel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "columnLabel",
          "kind": "func",
          "section": "",
          "signatures": [
            "func columnLabel(c: ColInfo; ctx: RenderContext; unitsPattern = \"{1}, {2}\"): string"
          ],
          "doc": "The label of a column, with its units (`colsUnits`), placed by the column's pattern or else\nby `unitsPattern` (the option `columnLabelsUnitsPattern`).",
          "line": 59,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-columnLabel",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatValue",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc formatValue(t: Tabella; row: int; col: string; v: Value; ctx: RenderContext): string"
          ],
          "doc": "`v` as the cell at `row` of `col` would be formatted: the last format that covers the cell.\nA missing value is \"\".",
          "line": 78,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-formatValue",
          "counterparts": [],
          "example": null
        },
        {
          "name": "formatCell",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc formatCell(t: Tabella; row: int; col: string; ctx: RenderContext): string"
          ],
          "doc": "The shown text of one cell: the last format that covers it, then any substitution.",
          "line": 88,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-formatCell",
          "counterparts": [],
          "example": null
        },
        {
          "name": "markText",
          "kind": "func",
          "section": "",
          "signatures": [
            "func markText(n: int; marks: FootnoteMarks; custom: seq[string] = @[]): string",
            "func markText(n: int; o: TabOptions): string"
          ],
          "doc": "The mark of footnote `n` (from 1): numbers, letters, capitals, the four standard symbols\n(*, †, ‡, §) or six extended ones (with ‖, ¶), or marks of your own; symbols repeat (**) when\nthey run out.",
          "line": 100,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-markText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "wrapMark",
          "kind": "func",
          "section": "",
          "signatures": [
            "func wrapMark(s, spec: string): string"
          ],
          "doc": "`s` inside the brackets that `spec` asks for: \"(\" gives \"(1)\", \"[\" gives \"[1]\".",
          "line": 114,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-wrapMark",
          "counterparts": [],
          "example": null
        },
        {
          "name": "markSpanHtml",
          "kind": "func",
          "section": "",
          "signatures": [
            "func markSpanHtml(s, spec: string): string"
          ],
          "doc": "A mark (or marks) as HTML: raised with \"^\", italic with \"i\", bold with \"b\".",
          "line": 118,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-markSpanHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "keysOf",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc keysOf(t: Tabella; target: Target; columns: seq[ColInfo]): seq[string]"
          ],
          "doc": "The location keys a target covers, as the renderers name them.",
          "line": 127,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-keysOf",
          "counterparts": [],
          "example": null
        },
        {
          "name": "displayOrder",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc displayOrder(t: Tabella): seq[int]"
          ],
          "doc": "The rows of the data in the order they are shown (before grouping), without hidden rows.",
          "line": 162,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-displayOrder",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fillPattern",
          "kind": "func",
          "section": "",
          "signatures": [
            "func fillPattern(pattern: string;\n                 lookup: proc (r: PatternRef): (string, bool)",
            "func fillPattern(pattern: string; texts: seq[string]; missing: seq[bool]): string"
          ],
          "doc": "`pattern` with each `{...}` replaced by `lookup` (its text, and whether the value is\nmissing); a part in `<<...>>` is dropped when a value it names is missing (as in gt's\n`cols_merge`).",
          "line": 167,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-fillPattern",
          "counterparts": [],
          "example": null
        },
        {
          "name": "shownCell",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc shownCell(t: Tabella; row: int; col: string; ctx: RenderContext): string"
          ],
          "doc": "The text of a body cell: merged with other columns (`colsMerge`) or formatted.",
          "line": 222,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-shownCell",
          "counterparts": [],
          "example": null
        },
        {
          "name": "transformCell",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc transformCell(t: Tabella; row: int; col: string; shown: string): string"
          ],
          "doc": "The shown text of a cell after the text transforms that cover it, in the order given.",
          "line": 230,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-transformCell",
          "counterparts": [],
          "example": null
        },
        {
          "name": "build",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc build(t: Tabella; ctx: RenderContext): Built"
          ],
          "doc": "",
          "line": 305,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-build",
          "counterparts": [],
          "example": null
        },
        {
          "name": "marksHtml",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc marksHtml(b: Built; key: string; o: TabOptions): string"
          ],
          "doc": "",
          "line": 424,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-marksHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "marksText",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc marksText(b: Built; key: string; o: TabOptions): string"
          ],
          "doc": "",
          "line": 429,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-marksText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "footMarkHtml",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc footMarkHtml(n: int; o: TabOptions): string"
          ],
          "doc": "",
          "line": 434,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-footMarkHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "footMarkText",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc footMarkText(n: int; o: TabOptions): string"
          ],
          "doc": "",
          "line": 435,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-footMarkText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "spannerLevels",
          "kind": "func",
          "section": "",
          "signatures": [
            "func spannerLevels(t: Tabella; columns: seq[ColInfo]): int"
          ],
          "doc": "How many rows of spanners sit over the visible columns.",
          "line": 437,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-spannerLevels",
          "counterparts": [],
          "example": null
        },
        {
          "name": "spannerAt",
          "kind": "func",
          "section": "",
          "signatures": [
            "func spannerAt(t: Tabella; col: string; level: int): int"
          ],
          "doc": "The index of the spanner over `col` at `level`, or -1.",
          "line": 443,
          "url": "https://pietroppeter.github.io/tabelline/api/#build-spannerAt",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/render_html",
      "title": "HTML",
      "path": "src/tabelline/render_html.nim",
      "doc": "Rendering to HTML: one `<div>` holding a `<table>`, styled by `tabellaCss`, one stylesheet for\nevery table, with the options the table changes as CSS variables on the `<div>`. (gt and Great\nTables write a `<style>` per table, scoped to its id.) The parts follow gt's layout: the heading and the column labels in `<thead>`,\nthe row groups, stub and body in `<tbody>`, footnotes and source notes in `<tfoot>`.\nClass names start with `tb_` (gt uses `gt_`).",
      "symbols": [
        {
          "name": "nanoplotCss",
          "kind": "const",
          "section": "",
          "signatures": [
            "nanoplotCss = \"\"\"[i] .tb_nanoplot text { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; stroke-width: 0.15em; paint-order: stroke; stroke-linejoin: round; cursor: default; }\n[i] .tb_nanoplot .vert-line:hover rect { fill: var(--tb-guide); fill-opacity: 40%; stroke: #FFFFFF60; }\n[i] .tb_nanoplot .vert-line:hover text, [i] .tb_nanoplot .horizontal-line:hover text, [i] .tb_nanoplot .ref-line:hover text, [i] .tb_nanoplot .boxplot-line:hover text { stroke: white; fill: #212427; }\n[i] .tb_nanoplot .ref-line:hover rect { stroke: #FFFFFF60; }\n[i] .tb_nanoplot .ref-line:hover line { stroke: #FF0000; }\n[i] .tb_nanoplot .y-axis-line:hover rect { fill: #EDEDED; fill-opacity: 60%; stroke: #FFFFFF60; }\n[i] .tb_nanoplot .y-axis-line:hover text { stroke: white; stroke-width: 0.20em; fill: #1A1C1F; }\n[i] .tb_nanoplot_static .vert-line text, [i] .tb_nanoplot_static .horizontal-line text, [i] .tb_nanoplot_static .ref-line text, [i] .tb_nanoplot_static .boxplot-line text { stroke: white; fill: #212427; }\n[i] .tb_nanoplot_static .y-axis-line rect { fill: #EDEDED; fill-opacity: 60%; }\n[i] .tb_nanoplot_static .y-axis-line text { stroke: white; stroke-width: 0.20em; fill: #1A1C1F; }\n\"\"\""
          ],
          "doc": "",
          "line": 20,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-nanoplotCss",
          "counterparts": [],
          "example": null
        },
        {
          "name": "tabellaCss",
          "kind": "let",
          "section": "",
          "signatures": [
            "tabellaCss = tabellaCssValue & themeRule()"
          ],
          "doc": "The CSS of every table, the same for all of them: each value is a CSS variable named after\nits option (`--tb-table-font-size` for `tableFontSize`), falling back to the default. A\ntable sets the variables of the options it changes on its `<div>` (`toHtml`); a page can\nset one for all its tables (`.tabella { --tb-table-font-size: 14px }`). A table that takes\nthe page's theme (`optCssTheme()`) gets the class `tb_css_theme`, whose rule here sets the\ntheme's variables once for all of them.",
          "line": 186,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-tabellaCss",
          "counterparts": [],
          "example": null
        },
        {
          "name": "tabellaStyle",
          "kind": "let",
          "section": "",
          "signatures": [
            "tabellaStyle = \"<style>\\n\" & tabellaCss & \"</style>\""
          ],
          "doc": "`tabellaCss` in a `<style>` element, as `toHtml` writes it.",
          "line": 194,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-tabellaStyle",
          "counterparts": [],
          "example": null
        },
        {
          "name": "styleVars",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc styleVars(o: TabOptions): string"
          ],
          "doc": "The variables of the options `o` changes, for the `style` of the table's `<div>`: changed\nfrom the defaults, or from `optCssTheme()` for a table that takes it (`isThemed`).",
          "line": 197,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-styleVars",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toHtml",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc toHtml(t: Tabella; makePage = false; withStyle = true): string"
          ],
          "doc": "The table as an HTML fragment (a `<div>` holding the `<table>`), ready to put in a page.\nWith `withStyle = true` the fragment starts with `tabellaCss` in a `<style>`, so it works\nalone; with `false` it leaves it out, for a page that writes `tabellaCss` once for all its\ntables (`nbTable` does). With `makePage = true`, a whole standalone page holding it, titled\nafter the table, as Great Tables' `as_raw_html(make_page = True)`.",
          "line": 401,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-toHtml",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(2)):\n  tabCaption \"Table 1: the times table of 2\"\necho \"<caption class=\\\"tb_caption\\\">Table 1: the times table of 2</caption>\" in t.toHtml\necho t",
            "prints": "true\nTable 1: the times table of 2\n┌───┬───┬───┐\n│ × │ 1 │ 2 │\n╞═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │\n│ 2 │ 2 │ 4 │\n└───┴───┴───┘"
          }
        },
        {
          "name": "save",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc save(t: Tabella; path: string)"
          ],
          "doc": "Writes the table as a standalone HTML page, as gt's `gtsave(\"x.html\")`.",
          "line": 418,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_html-save",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/render_text",
      "title": "Text and Markdown",
      "path": "src/tabelline/render_text.nim",
      "doc": "Rendering to plain text (box drawing, for terminals and `echo`) and to Markdown (a GitHub pipe\ntable, for nimib's Markdown backend and READMEs). Both use the same built table as HTML, so\nthe formats, groups and footnote marks agree.",
      "symbols": [
        {
          "name": "toText",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc toText(t: Tabella): string"
          ],
          "doc": "The table drawn with box characters, like a dataframe printed at the console, but with the\nformats, the stub, the groups and the notes.",
          "line": 17,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_text-toText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "$",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc `$`(t: Tabella): string"
          ],
          "doc": "`echo t` draws the table.",
          "line": 152,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_text-op24",
          "counterparts": [],
          "example": null
        },
        {
          "name": "toMarkdown",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc toMarkdown(t: Tabella): string"
          ],
          "doc": "A GitHub-flavoured Markdown table, with the title above and the notes below. Spanners and\ngroup headings, which pipe tables cannot hold, become a line of text.",
          "line": 157,
          "url": "https://pietroppeter.github.io/tabelline/api/#render_text-toMarkdown",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/extract",
      "title": "Reading a table back",
      "path": "src/tabelline/extract.nim",
      "doc": "The built table as data: what a reader sees, cell by cell, as gt's `extract_body()`,\n`extract_cells()` and `extract_summary()` give it.",
      "symbols": [
        {
          "name": "extractCells",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc extractCells(t: Tabella; columns: ColSel; rows = allRows(); ctx = rcText): seq[\n    string]"
          ],
          "doc": "The shown text of the body cells of `columns` and `rows`, column by column, each in the\norder the table shows its rows: `extractCells(t, \"mass\")`. `ctx = rcHtml` gives HTML.",
          "line": 7,
          "url": "https://pietroppeter.github.io/tabelline/api/#extract-extractCells",
          "counterparts": [
            {
              "in": "gt",
              "name": "extract_cells()"
            }
          ],
          "example": {
            "spec": "rendering",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\", \"moons\"]\n  fmtNumber \"mass\", decimals = 1\n  summaryRows fns = {\"total\": agg.sum}\necho extractCells(t, \"mass\", rows = [0, 1]).join(\" | \")\necho tabella(extractSummary(t))",
            "prints": "0.3 | 4.9\n┌─────────────┬───────┬─────────┐\n│ group       │ label │ mass    │\n╞═════════════╪═══════╪═════════╡\n│ Terrestrial │ total │ 11.8    │\n│ Gas giant   │ total │ 2,466.0 │\n│ Ice giant   │ total │ 188.8   │\n└─────────────┴───────┴─────────┘"
          }
        },
        {
          "name": "extractBody",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc extractBody(t: Tabella; ctx = rcText): TableData"
          ],
          "doc": "The body as a table of texts, in the order shown: a column `group` (when the table has row\ngroups), the stub (`rowname`, when it has one) and every visible column, with the formats,\nmerges and substitutions applied.",
          "line": 22,
          "url": "https://pietroppeter.github.io/tabelline/api/#extract-extractBody",
          "counterparts": [
            {
              "in": "gt",
              "name": "extract_body()"
            }
          ],
          "example": null
        },
        {
          "name": "extractSummary",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc extractSummary(t: Tabella; ctx = rcText; values = false): TableData"
          ],
          "doc": "The summary rows as a table of texts: `group` (\"\" for a grand summary row), `label`, and a\ncell for each visible column, as shown; with `values = true` the values themselves, as\ngt's `extract_summary()` gives them (missing where a column is not summed).",
          "line": 47,
          "url": "https://pietroppeter.github.io/tabelline/api/#extract-extractSummary",
          "counterparts": [
            {
              "in": "gt",
              "name": "extract_summary()"
            }
          ],
          "example": {
            "spec": "rendering",
            "code": "let t = tabella(planets(), rownameCol = \"planet\", groupnameCol = \"type\"):\n  colsHide [\"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"rings\", \"moons\"]\n  fmtNumber \"mass\", decimals = 1\n  summaryRows fns = {\"total\": agg.sum}\necho extractCells(t, \"mass\", rows = [0, 1]).join(\" | \")\necho tabella(extractSummary(t))",
            "prints": "0.3 | 4.9\n┌─────────────┬───────┬─────────┐\n│ group       │ label │ mass    │\n╞═════════════╪═══════╪═════════╡\n│ Terrestrial │ total │ 11.8    │\n│ Gas giant   │ total │ 2,466.0 │\n│ Ice giant   │ total │ 188.8   │\n└─────────────┴───────┴─────────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline/pictures",
      "title": "Pictures",
      "path": "src/tabelline/pictures.nim",
      "doc": "Pictures in cells: icons and images, drawn without loading anything remote.\n\n- `fmtIcon`: names of Font Awesome Free icons (\"star\", \"fab fa-github\") as inline SVG. Every\n  free icon (solid, regular and brands) is in `data/fontawesome.tsv`, written by\n  `tools/fontawesome.nim` and read when compiling, only by a program that uses icons. The\n  icons are under CC BY 4.0 (`licenses/fontawesome-LICENSE.txt`).\n- `fmtImage`: file names as images, inlined as data URLs (`encode`), so a page stays one file.",
      "symbols": [
        {
          "name": "Icon",
          "kind": "type",
          "section": "icons",
          "signatures": [
            "Icon = object\n  name*, style*, label*, path*: string\n  width*: int"
          ],
          "doc": "A Font Awesome icon: its name, style (\"solid\", \"regular\" or \"brands\"), label and drawing\n(an SVG path on a canvas `width` wide and 512 high).",
          "line": 15,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-Icon",
          "counterparts": [],
          "example": null
        },
        {
          "name": "findIcon",
          "kind": "proc",
          "section": "icons",
          "signatures": [
            "proc findIcon(name: string): (bool, Icon)"
          ],
          "doc": "The icon for a name: a short name (\"star\", the regular style when there are two), a full\nname (\"fas fa-star\", \"fa-solid fa-star\") or an older name (\"user-large\" is \"user\").",
          "line": 39,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-findIcon",
          "counterparts": [],
          "example": null
        },
        {
          "name": "hasIcon",
          "kind": "proc",
          "section": "icons",
          "signatures": [
            "proc hasIcon(name: string): bool"
          ],
          "doc": "Whether `name` is a Font Awesome Free icon (see `findIcon`).",
          "line": 60,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-hasIcon",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  planet: [\"Earth\", \"Jupiter\"]\n  kind: [\"mountain\", \"cloud, star\"]\nlet t = tabella(d):\n  fmtIcon \"kind\", fillColors = {\"star\": \"gold\"}\necho t\necho t.toHtml.count(\"class=\\\"tb_icon\\\"\"), \" \", icon(\"star\").style, \" \", icon(\"fas fa-star\").style, \" \", hasIcon(\"user-large\")",
            "prints": "┌─────────┬─────────────┐\n│ planet  │ kind        │\n╞═════════╪═════════════╡\n│ Earth   │ mountain    │\n│ Jupiter │ cloud, star │\n└─────────┴─────────────┘\n3 regular solid true"
          }
        },
        {
          "name": "icon",
          "kind": "proc",
          "section": "icons",
          "signatures": [
            "proc icon(name: string): Icon"
          ],
          "doc": "The icon for a name (see `findIcon`); raises `ValueError` for an unknown one.",
          "line": 64,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-icon",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  planet: [\"Earth\", \"Jupiter\"]\n  kind: [\"mountain\", \"cloud, star\"]\nlet t = tabella(d):\n  fmtIcon \"kind\", fillColors = {\"star\": \"gold\"}\necho t\necho t.toHtml.count(\"class=\\\"tb_icon\\\"\"), \" \", icon(\"star\").style, \" \", icon(\"fas fa-star\").style, \" \", hasIcon(\"user-large\")",
            "prints": "┌─────────┬─────────────┐\n│ planet  │ kind        │\n╞═════════╪═════════════╡\n│ Earth   │ mountain    │\n│ Jupiter │ cloud, star │\n└─────────┴─────────────┘\n3 regular solid true"
          }
        },
        {
          "name": "iconSvg",
          "kind": "proc",
          "section": "icons",
          "signatures": [
            "proc iconSvg(name: string; height = \"1em\"; fill = \"\"; fillAlpha = NaN;\n             stroke = \"\"; strokeWidth = \"\"; strokeAlpha = NaN; marginLeft = \"\";\n             marginRight = \"\"; verticalAlign = \"-0.125em\"; title = \"\";\n             a11y = \"semantic\"): string"
          ],
          "doc": "An icon as inline SVG, `height` high and as wide as its shape: `iconSvg(\"star\")`. The fill is\nthe text's colour unless `fill` is given. With `a11y = \"semantic\"` a screen reader reads its\nlabel (or `title`), with \"decorative\" it skips it, with \"none\" nothing is added.",
          "line": 82,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-iconSvg",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtIcon",
          "kind": "proc",
          "section": "icons",
          "signatures": [
            "proc fmtIcon(t: sink Tabella; columns: ColSel; rows = allRows(); height = \"1em\";\n             sep = \" \"; strokeColor = \"\"; strokeWidth = \"\"; strokeAlpha = NaN;\n             fillColor = \"\"; fillColors: openArray[(string, string)] = [];\n             fillAlpha = NaN; marginLeft = \"\"; marginRight = \"\";\n             a11y = \"semantic\"): Tabella"
          ],
          "doc": "Names of Font Awesome Free icons as icons: \"star\", or several, in a list or separated by\ncommas (\"hard-drive, clock\"), joined by `sep`. `fillColor` colours them all, `fillColors` by name\n(`{\"circle-check\": \"green\"}`); by default they take the colour of the text. In text output\nthe names stay. An unknown name raises `ValueError` here, not when the table is rendered.",
          "line": 111,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-fmtIcon",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_icon()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_icon()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  planet: [\"Earth\", \"Jupiter\"]\n  kind: [\"mountain\", \"cloud, star\"]\nlet t = tabella(d):\n  fmtIcon \"kind\", fillColors = {\"star\": \"gold\"}\necho t\necho t.toHtml.count(\"class=\\\"tb_icon\\\"\"), \" \", icon(\"star\").style, \" \", icon(\"fas fa-star\").style, \" \", hasIcon(\"user-large\")",
            "prints": "┌─────────┬─────────────┐\n│ planet  │ kind        │\n╞═════════╪═════════════╡\n│ Earth   │ mountain    │\n│ Jupiter │ cloud, star │\n└─────────┴─────────────┘\n3 regular solid true"
          }
        },
        {
          "name": "imageDataUrl",
          "kind": "proc",
          "section": "images",
          "signatures": [
            "proc imageDataUrl(file: string): string"
          ],
          "doc": "A file as a data URL, its type from its extension: `imageDataUrl(\"moon.png\")` is\n\"data:image/png;base64,...\". Raises `ValueError` for a file that is not there.",
          "line": 151,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-imageDataUrl",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtImage",
          "kind": "proc",
          "section": "images",
          "signatures": [
            "proc fmtImage(t: sink Tabella; columns: ColSel; rows = allRows(); height = \"\";\n              width = \"\"; sep = \" \"; path = \"\"; filePattern = \"{x}\";\n              encode = true; alt = \"\"): Tabella"
          ],
          "doc": "File names as images: each cell holds one or more names (a list, or separated by commas), found in\n`path` and written with `filePattern` (\"{x}.png\" for a cell \"moon\"). With `encode` (the\ndefault) a local file is read now and inlined as a data URL, so the page needs nothing else;\nan address (`https://...`) is left as it is. Without `height` or `width` an image is 2em\nhigh. `alt` is the text a screen reader reads (\"{x}\" is the name); by default the name. In\ntext output the names stay.",
          "line": 159,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-fmtImage",
          "counterparts": [
            {
              "in": "gt",
              "name": "fmt_image()"
            },
            {
              "in": "Great Tables",
              "name": "GT.fmt_image()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let dir = getTempDir()\nwriteFile(dir / \"dot.svg\", \"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'><circle cx='1' cy='1' r='1'/></svg>\")\nlet d = tableData:\n  pic: [\"dot\"]\nlet t = tabella(d):\n  fmtImage \"pic\", path = dir, filePattern = \"{x}.svg\"\necho t\necho t.toHtml.contains(\"<img src=\\\"data:image/svg+xml;base64,\")",
            "prints": "┌─────┐\n│ pic │\n╞═════╡\n│ dot │\n└─────┘\ntrue"
          }
        },
        {
          "name": "localImage",
          "kind": "proc",
          "section": "images",
          "signatures": [
            "proc localImage(file: string; height = \"2em\"; alt = \"\"): Text"
          ],
          "doc": "A local image as `Text`, for a title, a label, a note or a cell of `fmtMarkdown`: the file is\nread now and inlined as a data URL, as gt's `local_image()`. `alt` (by default the file's\nname) is what a screen reader reads, and what text output shows.",
          "line": 202,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-localImage",
          "counterparts": [
            {
              "in": "gt",
              "name": "local_image()"
            }
          ],
          "example": null
        },
        {
          "name": "webImage",
          "kind": "proc",
          "section": "images",
          "signatures": [
            "proc webImage(url: string; height = \"2em\"; alt = \"\"): Text"
          ],
          "doc": "An image on the web as `Text`, the address left as it is (the page loads it), as gt's\n`web_image()`. `alt` is by default the last part of the address.",
          "line": 208,
          "url": "https://pietroppeter.github.io/tabelline/api/#pictures-webImage",
          "counterparts": [
            {
              "in": "gt",
              "name": "web_image()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let t = tabella(planets()):\n  colsHide [\"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\", \"moons\", \"rings\", \"diameter\", \"type\"]\n  rowsHide [1, 2, 3, 4, 5, 6, 7]\n  tabHeader webImage(\"https://example.org/sun.png\", alt = \"☉\"), \"The first planet\"\necho t\necho t.toHtml.count(\"<img src=\\\"https://example.org/sun.png\\\"\")",
            "prints": "        ☉\n The first planet\n┌─────────┬──────┐\n│ planet  │ mass │\n╞═════════╪══════╡\n│ Mercury │ 0.33 │\n└─────────┴──────┘\n1"
          }
        }
      ]
    },
    {
      "module": "tabelline/nanoplots",
      "title": "Nanoplots",
      "path": "src/tabelline/nanoplots.nim",
      "doc": "Nanoplots: tiny plots in cells, as inline SVG, after Great Tables' `fmt_nanoplot()` and gt's\n`cols_nanoplot()` (ported from Great Tables' `_utils_nanoplots.py`, MIT,\n`licenses/great-tables-MIT.txt`).\n\nA cell with several values (\"20 23 6.7\", or \"1, 2, NA\") is a line plot, a bar plot or a box\nplot; a cell with one number is a horizontal bar or line from a zero line shared by all the\nrows. The values show when the pointer is over the plot (no JavaScript: CSS `:hover`). In text\noutput a nanoplot is a sparkline (\"▁▃▅█\").",
      "symbols": [
        {
          "name": "NanoplotOptions",
          "kind": "type",
          "section": "",
          "signatures": [
            "NanoplotOptions = object\n  dataPointRadius*: seq[float] ## one value, or one per point (repeating)\n  dataPointStrokeColor*, dataPointFillColor*: seq[string]\n  dataPointStrokeWidth*: seq[float]\n  dataLineStrokeColor*: string\n  dataLineStrokeWidth*: float\n  dataLineType*: string\n  dataAreaFillColor*: string\n  dataBarStrokeColor*, dataBarFillColor*: seq[string] ## one value, or one per bar\n  dataBarStrokeWidth*: seq[float]\n  dataBarNegativeStrokeColor*, dataBarNegativeFillColor*: string\n  dataBarNegativeStrokeWidth*: float\n  referenceLineColor*, referenceAreaFillColor*: string\n  verticalGuideStrokeColor*: string\n  verticalGuideStrokeWidth*: float\n  showDataPoints*, showDataLine*, showDataArea*, showReferenceLine*,\n  showReferenceArea*, showVerticalGuides*, showYAxisGuide*,\n  interactiveDataValues*: bool\n  currency*: string\n  yValFmtFn*, yAxisFmtFn*, yRefLineFmtFn*: proc (x: float): string"
          ],
          "doc": "The look of a nanoplot, after Great Tables' `nanoplot_options()` (see `nanoplotOptions`).",
          "line": 15,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-NanoplotOptions",
          "counterparts": [],
          "example": null
        },
        {
          "name": "at",
          "kind": "func",
          "section": "",
          "signatures": [
            "func at[T](s: seq[T]; i: int): T"
          ],
          "doc": "The value of a per-point option for point `i`: the list repeats.",
          "line": 47,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-at",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nanoplotOptions",
          "kind": "func",
          "section": "",
          "signatures": [
            "func nanoplotOptions(dataPointRadius: SomeNumber | seq[float] | seq[int] = 10.0;\n                     dataPointStrokeColor: string | seq[string] = \"#FFFFFF\";\n    dataPointStrokeWidth: SomeNumber | seq[float] | seq[int] = 4.0;\n                     dataPointFillColor: string | seq[string] = \"#FF0000\";\n                     dataLineType = \"curved\"; dataLineStrokeColor = \"#4682B4\";\n                     dataLineStrokeWidth = 8.0; dataAreaFillColor = \"#FF0000\";\n                     dataBarStrokeColor: string | seq[string] = \"#3290CC\";\n    dataBarStrokeWidth: SomeNumber | seq[float] | seq[int] = 4.0;\n                     dataBarFillColor: string | seq[string] = \"#3FB5FF\";\n                     dataBarNegativeStrokeColor = \"#CC3243\";\n                     dataBarNegativeStrokeWidth = 4.0;\n                     dataBarNegativeFillColor = \"#D75A68\";\n                     referenceLineColor = \"#75A8B0\";\n                     referenceAreaFillColor = \"#A6E6F2\";\n                     verticalGuideStrokeColor = \"#911EB4\";\n                     verticalGuideStrokeWidth = 12.0; showDataPoints = true;\n                     showDataLine = true; showDataArea = true;\n                     showReferenceLine = true; showReferenceArea = true;\n                     showVerticalGuides = true; showYAxisGuide = true;\n                     interactiveDataValues = true; currency = \"\";\n                     yValFmtFn: proc (x: float): string = nil;\n                     yAxisFmtFn: proc (x: float): string = nil;\n                     yRefLineFmtFn: proc (x: float): string = nil): NanoplotOptions"
          ],
          "doc": "",
          "line": 51,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotOptions",
          "counterparts": [
            {
              "in": "gt",
              "name": "nanoplot_options()"
            },
            {
              "in": "Great Tables",
              "name": "nanoplot_options()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  week: [\"one\", \"two\"]\n  steps: [toValue(@[4, 8, 6]), toValue((x: @[\"2026-11-02\", \"2026-11-03\", \"2026-11-09\"], y: @[5, 7, 9]))]\nlet t = tabella(d, rownameCol = \"week\"):\n  fmtNanoplot \"steps\", options = nanoplotOptions(dataPointFillColor = @[\"#D64545\", \"#2E7D32\"])\necho t\nlet x = nanoplotXValues(d[\"steps\", 1])\necho t.toHtml.count(\"fill=\\\"#2E7D32\\\"\"), \" green points; the last is \", (x[2] - x[0]) / 86400, \" days after the first\"",
            "prints": "┌─────┬─────────┐\n│     │ steps   │\n╞═════╪═════════╡\n│ one │ ▁█▅ 4–8 │\n│ two │ ▁▅█ 5–9 │\n└─────┴─────────┘\n2 green points; the last is 7.0 days after the first"
          }
        },
        {
          "name": "nanoplotValues",
          "kind": "func",
          "section": "the values",
          "signatures": [
            "func nanoplotValues(v: Value): seq[float]"
          ],
          "doc": "The values of a nanoplot cell: a number, a list of numbers (`@[1, 4, 2]`), a record with the\nvalues in `y` (and their places in `x`, see `nanoplotXValues`), or a text of numbers\nseparated by spaces, commas or semicolons, maybe in brackets (\"[1, 2, NA]\"); `NA` (or\n`nan`) is a missing value, `NaN`.",
          "line": 97,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotValues",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nanoplotXValues",
          "kind": "proc",
          "section": "the values",
          "signatures": [
            "proc nanoplotXValues(v: Value): seq[float]"
          ],
          "doc": "The places of the values on the x axis: the field `x` of a record (`(x: @[1, 2, 4], y:\n@[3, 5, 4])`, Great Tables' dict of x and y), numbers or ISO dates and times\n(`@[\"2026-01-05\", \"2026-02-11\"]`, placed by time); empty for any other cell, whose values\nare evenly spaced.",
          "line": 129,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotXValues",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  runner: [\"Anna\", \"Bruno\"]\n  laps: [(x: @[0.0, 1, 2, 5], y: @[62.0, 60, 61, 58]), (x: @[0.0, 3, 4, 5], y: @[65.0, 63, 66, 59])]\n  kit: [@[\"person-running\", \"stopwatch\"], @[\"person-biking\"]]\nlet t = tabella(d, rownameCol = \"runner\"):\n  fmtNanoplot \"laps\", autoscale = true\n  fmtIcon \"kit\"\necho t\necho nanoplotXValues(d[\"laps\", 1]), \" \", t.toHtml.count(\"class=\\\"tb_nanoplot\\\"\")",
            "prints": "┌───────┬────────────┬───────────────────────────┐\n│       │ laps       │ kit                       │\n╞═══════╪════════════╪═══════════════════════════╡\n│ Anna  │ ▅▃▄▁ 58–62 │ person-running, stopwatch │\n│ Bruno │ ▇▅█▂ 59–66 │ person-biking             │\n└───────┴────────────┴───────────────────────────┘\n@[0.0, 3.0, 4.0, 5.0] 2"
          }
        },
        {
          "name": "plotTypes",
          "kind": "const",
          "section": "the values",
          "signatures": [
            "plotTypes = [\"line\", \"bar\", \"boxplot\", \"shape\"]"
          ],
          "doc": "The kinds of nanoplot: \"shape\" is tabelline's, not Great Tables'.",
          "line": 158,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-plotTypes",
          "counterparts": [],
          "example": null
        },
        {
          "name": "refKeywords",
          "kind": "const",
          "section": "the values",
          "signatures": [
            "refKeywords = [\"mean\", \"median\", \"min\", \"max\", \"q1\", \"q3\", \"first\", \"last\"]"
          ],
          "doc": "The keywords of a reference line or area: a statistic of the values.",
          "line": 161,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-refKeywords",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nanoplotLabel",
          "kind": "proc",
          "section": "the labels",
          "signatures": [
            "proc nanoplotLabel(x: float; asInteger = false; currency = \"\";\n                   fn: proc (x: float): string = nil): string"
          ],
          "doc": "A value as a nanoplot writes it, short, as Great Tables does: \"0\", integers below 100 as\nthey are, 3 significant figures (\"2.50\", \"123\"), K, M, B and T from a thousand (\"1.23K\"),\nand \"1.2E−3\" for the tiny and the huge; with a `currency`, money (\"$12.50\", \"€1.2K\").",
          "line": 196,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotLabel",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  city: [\"Oslo\", \"Rome\"]\n  trend: [\"1 4 2 8 5\", \"3, NA, 6, 2\"]\n  change: [4.2, -1.5]\nlet t = tabella(d, rownameCol = \"city\"):\n  fmtNanoplot \"trend\", referenceLine = \"mean\"\n  fmtNanoplot \"change\", plotType = \"bar\"\necho t\necho t.toHtml.count(\"class=\\\"tb_nanoplot\\\"\"), \" \", nanoplotLabel(1234), \" \", nanoplotLabel(0.25)",
            "prints": "┌──────┬───────────┬───────────────────┐\n│      │ trend     │            change │\n╞══════╪═══════════╪═══════════════════╡\n│ Oslo │ ▁▄▂█▅ 1–8 │    │███████ 4.20  │\n│ Rome │ ▃ █▁ 2–6  │ ███│        −1.50 │\n└──────┴───────────┴───────────────────┘\n4 1.23K 0.25"
          }
        },
        {
          "name": "shapeSide",
          "kind": "func",
          "section": "shapes",
          "signatures": [
            "func shapeSide(y, x: seq[float]): float"
          ],
          "doc": "The side of the square a shape fills: its width or its height, the larger.",
          "line": 552,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-shapeSide",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  field: [\"square\", \"strip\"]\n  outline: [toValue((x: @[0, 2, 2, 0], y: @[0, 0, 2, 2])), toValue((x: @[0, 4, 4, 0], y: @[0, 0, 1, 1]))]\nlet t = tabella(d, rownameCol = \"field\"):\n  fmtNanoplot \"outline\", plotType = \"shape\", autoscale = true\necho t\necho t.toHtml.count(\"class=\\\"tb_shape\\\"\"), \" shapes; the square is \", shapeSide(@[0.0, 0, 2, 2], @[0.0, 2, 2, 0]), \" wide\"",
            "prints": "┌────────┬─────────────────────┐\n│        │ outline             │\n╞════════╪═════════════════════╡\n│ square │ ◆ shape of 4 points │\n│ strip  │ ◆ shape of 4 points │\n└────────┴─────────────────────┘\n2 shapes; the square is 2.0 wide"
          }
        },
        {
          "name": "nanoplotSummary",
          "kind": "proc",
          "section": "shapes",
          "signatures": [
            "proc nanoplotSummary(y: seq[float]; plotType: string; single = false): string"
          ],
          "doc": "The values in words, for a screen reader: \"Line plot of 8 values from 12 to 47, ending at 30\".",
          "line": 603,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotSummary",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nanoplotSvg",
          "kind": "proc",
          "section": "shapes",
          "signatures": [
            "proc nanoplotSvg(y: seq[float]; plotType = \"line\"; height = \"2em\";\n                 missingVals = \"gap\"; referenceLine = \"\";\n                 referenceArea = (\"\", \"\"); expandY: seq[float] = @[];\n                 all: seq[float] = @[]; single = false;\n                 options = nanoplotOptions(); alt = \"\"; x: seq[float] = @[];\n                 expandX: seq[float] = @[]; side = 0.0;\n                 referenceX: seq[(float, string)] = @[]; sharedCount = 0): string"
          ],
          "doc": "One nanoplot as inline SVG: a line, bar or box plot of the values `y` (NaN for a missing\none), or with `single` a horizontal bar or line for `y[0]`, on the scale of `all` (the\nvalues of every row: single values and box plots share their scale). \"\" when there is\nnothing to plot. `alt` is read by a screen reader (\"{x}\" is a summary of the values).\nWith `x` (as many as `y`) a line plot puts each value at its place on an x axis that also\nincludes `expandX`; a bar plot and a box plot leave `x` out. A \"shape\" joins the points\n(`x`, `y`) in their order and closes them, at the same scale across and up, in a square",
          "line": 621,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotSvg",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nanoplotText",
          "kind": "proc",
          "section": "in text",
          "signatures": [
            "proc nanoplotText(y: seq[float]; plotType = \"line\"; missingVals = \"gap\";\n                  all: seq[float] = @[]; single = false;\n                  expandY: seq[float] = @[]; options = nanoplotOptions()): string"
          ],
          "doc": "A nanoplot in text: a sparkline of the values (\"▁▃▅█ 1–9\", on the axis of `expandY` too), a\nbar of blocks for a single value, left of a zero line when it is negative (\"███│ −4\", \"│█ 2\"),\nthe five numbers of a box plot (\"1 ┤2 │3│ 5├ 9\").",
          "line": 684,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-nanoplotText",
          "counterparts": [],
          "example": null
        },
        {
          "name": "fmtNanoplot",
          "kind": "proc",
          "section": "the verbs",
          "signatures": [
            "proc fmtNanoplot(t: sink Tabella; columns: ColSel; rows = allRows();\n                 plotType = \"line\"; plotHeight = \"2em\"; missingVals = \"gap\";\n                 autoscale = false; referenceLine = \"\";\n                 referenceArea = (\"\", \"\"); expandY: seq[float] = @[];\n                 options = nanoplotOptions(); alt = \"\";\n                 expandX: seq[float] = @[]; referenceX: seq[string] = @[]): Tabella"
          ],
          "doc": "Nanoplots of the values in each cell (see `nanoplotValues`: a list, a record of `x` and `y`,\nor a text of numbers): a line plot (\"line\"), a bar plot\n(\"bar\") or a box plot (\"boxplot\"). A numeric column gets one horizontal bar or line per row,\nfrom a zero line shared by the rows. `referenceLine` is a number (\"10\") or a statistic of the\ncell's values (\"mean\", \"median\", \"min\", \"max\", \"q1\", \"q3\", \"first\", \"last\"), and\n`referenceArea` two of them. `missingVals` says what a missing value does: \"gap\" breaks the\nline, \"marker\" marks it, \"zero\" counts it as 0, \"remove\" leaves it out. With `autoscale`",
          "line": 729,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-fmtNanoplot",
          "counterparts": [
            {
              "in": "Great Tables",
              "name": "GT.fmt_nanoplot()"
            }
          ],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  city: [\"Oslo\", \"Rome\"]\n  trend: [\"1 4 2 8 5\", \"3, NA, 6, 2\"]\n  change: [4.2, -1.5]\nlet t = tabella(d, rownameCol = \"city\"):\n  fmtNanoplot \"trend\", referenceLine = \"mean\"\n  fmtNanoplot \"change\", plotType = \"bar\"\necho t\necho t.toHtml.count(\"class=\\\"tb_nanoplot\\\"\"), \" \", nanoplotLabel(1234), \" \", nanoplotLabel(0.25)",
            "prints": "┌──────┬───────────┬───────────────────┐\n│      │ trend     │            change │\n╞══════╪═══════════╪═══════════════════╡\n│ Oslo │ ▁▄▂█▅ 1–8 │    │███████ 4.20  │\n│ Rome │ ▃ █▁ 2–6  │ ███│        −1.50 │\n└──────┴───────────┴───────────────────┘\n4 1.23K 0.25"
          }
        },
        {
          "name": "colsNanoplot",
          "kind": "proc",
          "section": "the verbs",
          "signatures": [
            "proc colsNanoplot(t: sink Tabella; columns: ColSel; rows = allRows();\n                  plotType = \"line\"; plotHeight = \"2em\"; missingVals = \"gap\";\n                  autoscale = false; referenceLine = \"\";\n                  referenceArea = (\"\", \"\"); expandY: seq[float] = @[];\n                  newColName = \"nanoplots\"; newColLabel = \"\"; before = \"\";\n                  after = \"\"; autohide = true; options = nanoplotOptions();\n                  alt = \"\"; xVals: seq[float] = @[];\n                  referenceX: seq[string] = @[]): Tabella"
          ],
          "doc": "A new column of nanoplots, one per row, of the values of several `columns` (in their order):\nafter gt's `cols_nanoplot()`. The columns are hidden (`autohide`); the new one is\n`newColName`, labelled `newColLabel` (its name by default), at the end or `before` or\n`after` a column. `xVals` (not from gt) places the columns on the x axis, one value each, the\nsame in every row (the years of `y2006` ... `y2025`): then `referenceX` draws a dashed\nvertical line at a place of that axis. The other arguments are those of `fmtNanoplot`.",
          "line": 802,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanoplots-colsNanoplot",
          "counterparts": [
            {
              "in": "gt",
              "name": "cols_nanoplot()"
            }
          ],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(4), rownameCol = \"×\"):\n  colsNanoplot [\"1\", \"2\", \"3\", \"4\"], newColLabel = \"the row\", autoscale = true\necho t",
            "prints": "┌───┬───────────┐\n│   │ the row   │\n╞═══╪═══════════╡\n│ 1 │ ▁▁▂▂ 1–4  │\n│ 2 │ ▁▂▃▄ 2–8  │\n│ 3 │ ▂▃▅▆ 3–12 │\n│ 4 │ ▂▄▆█ 4–16 │\n└───┴───────────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline",
      "title": "Everything at once",
      "path": "src/tabelline.nim",
      "doc": "tabelline: great tables for Nim.\n\nDisplay tables built from parts (a header, a stub, spanners, column labels, the body, a\nfooter), with formatted values and styles, rendered to HTML (and to text and Markdown).\nInspired by R's gt and Python's Great Tables, written in plain Nim.\n\n```nim\nimport tabelline\nlet t = tabella(planets, rownameCol = \"planet\", groupnameCol = \"type\"):\n  tabHeader \"The planets\", \"of the Solar System\"\n  tabSpanner \"Size\", [\"diameter\", \"mass\"]\n  fmtNumber \"mass\", decimals = 3\n  dataColor \"moons\", palette = palette(\"pastelli\")\necho t          # a text table\nt.save \"planets.html\"\n```\n\nTwo macros, where plain procs cannot do the job: `tabella(data): body`, which reads each\nline of `body` as a verb applied to the table (no chaining dots needed, and a verb that takes\na list of pairs may take them as an indented block, one per line), and `tableData:`, which\nreads columns as `name: [values]`, with `nil` for a missing value.",
      "symbols": [
        {
          "name": "tabella",
          "kind": "macro",
          "section": "",
          "signatures": [
            "macro tabella(args: varargs[untyped]): untyped"
          ],
          "doc": "`tabella(data, rownameCol = \"name\")` is a table for `data` (see `initTabella`), and with a body,\n`tabella(data): body` is that table changed by the verbs in `body`, one per line, without\nrepeating the table: `tabHeader \"Title\"` stands for `t = t.tabHeader(\"Title\")`.\n\nA verb in `body` may end with an indented block. In a verb whose first argument is a list of\npairs (`colsLabel`, `colsWidth`, `colsUnits`, `textCaseMatch`, `summaryRows`,\n`grandSummaryRows`, `summaryColumns`) a line `label: value` is a pair; in any verb a line\n`name = value` is a named argument; in a summary verb a line `fmtNumber(decimals = 1)` is\n`fmt = (x: float) => formatNumber(x, decimals = 1)`; `tabOptions:` takes `name = value`:\n\n```nim",
          "line": 123,
          "url": "https://pietroppeter.github.io/tabelline/api/#tabelline-tabella",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  country: [\"IT\", \"JPN\", \"FR,DE\"]\nlet t = tabella(d):\n  fmtFlag \"country\"\necho t",
            "prints": "┌─────────┐\n│ country │\n╞═════════╡\n│ 🇮🇹      │\n│ 🇯🇵      │\n│ 🇫🇷 🇩🇪   │\n└─────────┘"
          }
        },
        {
          "name": "tabellaPreview",
          "kind": "macro",
          "section": "",
          "signatures": [
            "macro tabellaPreview(args: varargs[untyped]): untyped"
          ],
          "doc": "`tabellaPreview(data, topN = 5, bottomN = 1)` is a preview of a big table (see\n`initTabellaPreview`), and with a body it is changed by the verbs in the body, as in `tabella`:\n\n```nim\nlet t = tabellaPreview(citta(), topN = 3):\n  fmtInteger \"population\"\n```",
          "line": 147,
          "url": "https://pietroppeter.github.io/tabelline/api/#tabelline-tabellaPreview",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let preview = tabellaPreview(planets(), topN = 2, bottomN = 1):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\"]\necho preview",
            "prints": "┌──────┬─────────┬─────────────┬───────┬───────┐\n│      │ planet  │ type        │ moons │ rings │\n╞══════╪═════════╪═════════════╪═══════╪═══════╡\n│ 1    │ Mercury │ Terrestrial │     0 │ false │\n│ 2    │ Venus   │ Terrestrial │     0 │ false │\n│ 3..7 │         │             │       │       │\n│ 8    │ Neptune │ Ice giant   │    16 │ true  │\n└──────┴─────────┴─────────────┴───────┴───────┘"
          }
        },
        {
          "name": "tableData",
          "kind": "macro",
          "section": "",
          "signatures": [
            "macro tableData(body: untyped): TableData"
          ],
          "doc": "Columns as `name: [values]` lines, each value converted on its own, so a column can mix\nnumbers with `nil` (missing). A name can have dots, `size.mass: [...]`, or be quoted.\nValues can be any list, such as a `collect`. A `for` (or `if`) adds the columns in its body,\nand their names can be computed: `$j: [...]`, or any expression in parentheses.\n\n```nim\nlet d = tableData:\n  planet: [\"Mercury\", \"Venus\"]\n  moons: [0, nil]\nlet tavola = tableData:\n  `×`: collect(for i in 1 .. 3: i)",
          "line": 202,
          "url": "https://pietroppeter.github.io/tabelline/api/#tabelline-tableData",
          "counterparts": [],
          "example": {
            "spec": "formatting",
            "code": "let d = tableData:\n  country: [\"IT\", \"JPN\", \"FR,DE\"]\nlet t = tabella(d):\n  fmtFlag \"country\"\necho t",
            "prints": "┌─────────┐\n│ country │\n╞═════════╡\n│ 🇮🇹      │\n│ 🇯🇵      │\n│ 🇫🇷 🇩🇪   │\n└─────────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline/datasets",
      "title": "Datasets",
      "path": "src/tabelline/datasets.nim",
      "doc": "Small datasets for examples and tests, built into the module (no files to find at run time).\n\n- `planets`: the eight planets, from NASA's Planetary Fact Sheet (public domain).\n- `exibble`: gt's tiny \"example tibble\", a column of each type (MIT, from gt / Great Tables).\n- `tavolaPitagorica(n)`: the times table, *la tavola pitagorica*, as every Italian pupil knows it.\n- `isole`: the 194 islands of the Mediterranean, by area (Wikipedia), the twin of gt's `islands`.\n- `citta`: the 95 largest cities of the European Union (Wikipedia), the twin of gt's `towny`.\n- `gtcars`, `countrypops`, `illness`, `metro`: four of gt's datasets, as Great Tables ships\n  them (MIT, `licenses/great-tables-MIT.txt`), the ones the book's pages use.\n\nThe data of `isole` and `citta` is in `data/` (CSV, with its source in a `#` line), read when\ncompiling; `docs/devlog/data/datasets/` has the programs that wrote it.",
      "symbols": [
        {
          "name": "planetsCsv",
          "kind": "const",
          "section": "",
          "signatures": [
            "planetsCsv = \"\"\"planet,type,mass,diameter,density,gravity,day_length,distance,orbital_period,mean_temp,moons,rings\nMercury,Terrestrial,0.330,4879,5429,3.7,4222.6,57.9,88.0,167,0,false\nVenus,Terrestrial,4.87,12104,5243,8.9,2802.0,108.2,224.7,464,0,false\nEarth,Terrestrial,5.97,12756,5514,9.8,24.0,149.6,365.2,15,1,false\nMars,Terrestrial,0.642,6792,3934,3.7,24.7,228.0,687.0,-65,2,false\nJupiter,Gas giant,1898,142984,1326,23.1,9.9,778.5,4331,-110,95,true\nSaturn,Gas giant,568,120536,687,9.0,10.7,1432.0,10747,-140,146,true\nUranus,Ice giant,86.8,51118,1270,8.7,17.2,2867.0,30589,-195,28,true\nNeptune,Ice giant,102,49528,1638,11.0,16.1,4515.0,59800,-200,16,true\n\"\"\""
          ],
          "doc": "Units: mass 10^24 kg, diameter km, density kg/m³, gravity m/s², day length hours,\ndistance from the Sun 10^6 km, orbital period days, mean temperature °C. Known moons as",
          "line": 16,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-planetsCsv",
          "counterparts": [],
          "example": null
        },
        {
          "name": "exibbleCsv",
          "kind": "const",
          "section": "",
          "signatures": [
            "exibbleCsv = \"\"\"num,char,fctr,date,time,datetime,currency,row,group\n0.1111,apricot,one,2015-01-15,13:35,2018-01-01 02:22,49.95,row_1,grp_a\n2.222,banana,two,2015-02-15,14:40,2018-02-02 14:33,17.95,row_2,grp_a\n33.33,coconut,three,2015-03-15,15:45,2018-03-03 03:44,1.39,row_3,grp_a\n444.4,durian,four,2015-04-15,16:50,2018-04-04 15:55,65100,row_4,grp_a\n5550,,five,2015-05-15,17:55,2018-05-05 04:00,1325.81,row_5,grp_b\n,fig,six,2015-06-15,,2018-06-06 16:11,13.255,row_6,grp_b\n777000,grapefruit,seven,,19:10,2018-07-07 05:22,,row_7,grp_b\n8880000,honeydew,eight,2015-08-15,20:20,,0.44,row_8,grp_b\n\"\"\""
          ],
          "doc": "",
          "line": 30,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-exibbleCsv",
          "counterparts": [],
          "example": null
        },
        {
          "name": "isoleCsv",
          "kind": "const",
          "section": "",
          "signatures": [
            "isoleCsv = \"# Islands of the Mediterranean by area: Wikipedia, List of islands in the Mediterranean, read 8 Nov 2026 by isole.nim\\nisland,country,area,population,city\\nSicily,Italy,25834,5010001,Palermo\\nSardinia,Italy,24100,1656000,Cagliari\\nCyprus,Cyprus,9251,,Nicosia\\nCorsica,France,8681,322000,Ajaccio\\nCrete,Greece,8312,622871,Heraklion\\nEuboea,Greece,3655,191206,Chalcis\\nMallorca,Spain,3640,846000,Palma\\nLesbos,Greece,1630,86436,Mytilene\\nRhodes,Greece,1398,115490,Rhodes\\nChios,Greece,842,51390,Chios\\nCephalonia,Greece,781,35801,Argostoli\\nMenorca,Spain,694,87000,Mahón\\nCorfu,Greece,592,100853,Corfu\\nIbiza,Spain,577,111000,Ibiza Town\\nDjerba,Tunisia,523,139544,Houmt Souk\\nLemnos,Greece,476,16992,Myrina\\nSamos,Greece,476,32973,Vathy\\nNaxos,Greece,428,17970,Naxos\\nZakynthos,Greece,406,40758,Zakynthos\\nCres,Croatia,405.78,3079,Cres\\nKrk,Croatia,405.78,19383,Krk\\nBrač,Croatia,394.57,13956,Supetar\\nAndros,Greece,380,9221,Andros\\nThasos,Greece,379,13765,Thasos\\nLefkada,Greece,303,22076,Lefkada\\nKarpathos,Greece,301,6181,Pigadia\\nHvar,Croatia,299.66,11077,Hvar\\nKos,Greece,290,33388,Kos\\nPag,Croatia,284.56,9059,Pag\\nGökçeada,Turkey,279,8894,Çınarlı\\nKythira,Greece,278,3973,Kythira\\nKorčula,Croatia,276.03,15522,Korčula\\nIcaria,Greece,255,8423,Agios Kirykos\\nMalta,Malta,246,409259,Valletta\\nElba,Italy,224,31572,Portoferraio\\nSkyros,Greece,209,2994,Skyros\\nParos,Greece,196,13715,Parikia\\nTinos,Greece,194,8636,Tinos\\nSamothrace,Greece,178,2859,Samothrace\\nMilos,Greece,160,4977,Plaka\\nKea,Greece,129,2446,Ioulis\\nAmorgos,Greece,121,1971,Amorgos\\nMarmara,Turkey,117,,\\nDugi Otok,Croatia,114.44,1655,Sali\\nKalymnos,Greece,111,16001,Pothia\\nChergui,Tunisia,110,,\\nSant\\'Antioco,Italy,109,11730,Sant\\'Antioco\\nIos,Greece,109,2024,Ios\\nMljet,Croatia,100.41,1088,Babino Polje\\nKythnos,Greece,100,1456,Kythnos\\nAstypalaia,Greece,97,1334,Astypalaia\\nIthaca,Greece,96,3231,Vathy\\nSkopelos,Greece,95.5,4960,Skopelos\\nSalamis,Greece,95,39283,Salamina\\nRab,Croatia,90.84,9328,Rab\\nVis,Croatia,90.26,3445,Vis\\nMykonos,Greece,86,10120,Mykonos\\nSyros,Greece,84,21505,Ermoupoli\\nAegina,Greece,83,13056,Aegina\\nFormentera,Spain,83,7461,Sant Francesc Xavier\\nPantelleria,Italy,83,7729,Pantelleria\\nSantorini,Greece,76,15230,Fira\\nLošinj,Croatia,74.68,7587,Mali Lošinj\\nSerifos,Greece,73,1420,Serifos\\nSifnos,Greece,73,2625,Apollonia\\nGharbi,Tunisia,69,,\\nGozo,Malta,67,37288,Victoria\\nKasos,Greece,66,1084,Fry\\nAlonissos,Greece,64,2712,Patitiri\\nTilos,Greece,63,780,Megálo Chorió\\nPašman,Croatia,63.34,2845,Pašman\\nŠolta,Croatia,58.98,1700,Grohote\\nSymi,Greece,58,2590,Symi\\nLeros,Greece,53,7907,Agia Marina\\nSan Pietro,Italy,51,6444,Carloforte\\nAsinara,Italy,51,1,Cala d\\'Oliva\\nHydra,Greece,50,1948,Hydra\\nUgljan,Croatia,50.21,6049,Preko\\nSkiathos,Greece,48,6088,Skiathos\\nLastovo,Croatia,46.87,792,Lastovo\\nIschia,Italy,46,60335,Ischia\\nAgios Efstratios,Greece,43,270,Agios Efstratios\\nNisyros,Greece,41,987,Mandraki\\nSikinos,Greece,41,273,Sikinos\\nPsara,Greece,40,454,Psara\\nAnafi,Greece,38,271,Anafi\\nLipari,Italy,37,10763,Lipari\\nBozcaada,Turkey,36,2427,Bozcaada\\nKimolos,Greece,36,908,Kimolos\\nAntiparos,Greece,35,1211,Antiparos\\nPatmos,Greece,35,2998,Patmos\\nKornat,Croatia,32.30,19,\\nFolegandros,Greece,32,765,Folegandros\\nFourni,Greece,30,1313,Fourni\\nGavdos,Greece,29.6,152,Kastri\\nČiovo,Croatia,28.80,5908,Okrug Gornji\\nHalki,Greece,28.1,478,Halki\\nSalina,Italy,26.8,2300,Malfa\\nOlib,Croatia,26.09,140,Olib\\nUzunada,Turkey,25.4,,\\nPaxi,Greece,25.3,2280,Gaios\\nKalamos,Greece,25,496,Kalamos\\nKyra Panagia,Greece,25,2,\\nGiglio,Italy,23.8,1458,\\nCunda (Alibey),Turkey,23.4,,\\nPoros,Greece,22.9,3993,Poros\\nMolat,Croatia,22.82,197,Molat\\nVir,Croatia,22.38,3000,Vir\\nSpetses,Greece,22.2,4027,Spetses\\nPaşalimanı,Turkey,21.4,,\\nSaria,Greece,21.1,45,\\nVulcano,Italy,20.9,715,Vulcano\\nAvsa,Turkey,20.6,,\\nAntikythera,Greece,20.4,68,Potamós\\nLampedusa,Italy,20.2,4500,Lampedusa e Linosa\\nLa Maddalena,Italy,20.1,11902,La Maddalena\\nMeganisi,Greece,20,1040,Katomeri\\nFavignana,Italy,19,4383,Favignana\\nCapraia,Italy,19,410,Capraia\\nElafonisos,Greece,19,1024,Elafonisos\\nMurter,Croatia,18.60,4895,Murter\\nMakronisos,Greece,18.3,9,\\nIrakleia,Greece,17.6,141,Irakleia\\nIž,Croatia,17.59,615,Iž Veli\\nGyaros,Greece,17.3,0,\\nMegalonisos Petalion,Greece,17.2,0,\\nPolyaigos,Greece,17.2,2,\\nUnije,Croatia,16.92,88,Unije\\nLeipsoi,Greece,16,790,Leipsoi\\nŠipan,Croatia,15.81,419,Šipanska Luka\\nCaprera,Italy,15.7,0,\\nCabrera,Spain,15.7,0,\\nKeros,Greece,15.2,0,\\nŽirje,Croatia,15.06,103,Žirje\\nSestrunj,Croatia,15.03,48,Sestrunj\\nSilba,Croatia,14.98,292,Silba\\nŽut,Croatia,14.82,0,\\nPserimos,Greece,14.8,80,Pserimos\\nOinousses,Greece,14.4,826,Oinousses\\nPeristera,Greece,14.2,30,\\nRineia,Greece,13.7,0,\\nAgathonisi,Greece,13.6,185,Megálo Chorió\\nDonoussa,Greece,13.6,167,Donoussa (Stavros)\\nPrvic (Krk),Croatia,13.5,0,\\nStromboli,Italy,12.6,572,San Vincenzo\\nDokos,Greece,12.5,18,Dokos\\nPorquerolles,France,12.5,200,\\nSchiza,Greece,12.3,0,\\nDrvenik Veliki,Croatia,12.1,168,Drvenik Veliki\\nMarettimo,Italy,12,819,Marettimo\\nAgistri,Greece,12,1142,Milos (Megalohori)\\nDia,Greece,11.8,0,\\nGioura,Greece,11.1,0,\\nCapri,Italy,10.4,12200,Capri\\nMontecristo,Italy,10.4,2,\\nPianosa,Italy,10.3,10,\\nOthonoi,Greece,10.1,392,Othonoi\\nThymaina,Greece,10.1,143,Thymaina\\nImrali,Turkey,10,,\\nIst,Croatia,9.65,202,\\nFilicudi,Italy,9.5,235,\\nTherasia,Greece,9.3,319,\\nKastellorizo,Greece,9.1,492,\\nLevitha,Greece,9.1,0,\\nSapientza,Greece,9.1,2,\\nKara Ada,Turkey,9,,\\nPremuda,Croatia,8.7,58,\\nUstica,Italy,8.7,1302,\\nPlavnik,Croatia,8.6,0,\\nMaun,Croatia,8.5,0,\\nŠćedro,Croatia,8.4,0,\\nZlarin,Croatia,8.1,276,\\nSchoinousa,Greece,8.1,227,\\nAntimilos,Greece,8,0,\\nSyrna,Greece,7.9,0,\\nDespotiko,Greece,7.8,0,\\nAmmouliani,Greece,7.7,541,\\nPonza,Italy,7.5,3107,\\nAlimia,Greece,7.4,0,\\nLa Galite,,7.3,,0\\nKaprije,Croatia,7.1,143,\\nPort-Cros,France,7,30,\\nArkoi,Greece,6.7,44,\\nSveti Grgur,Croatia,6.4,0,\\nSkantzoura,Greece,6.2,0,\\nBiševo,Croatia,5.9,15,\\nKastos,Greece,5.9,80,\\nTavolara,Italy,5.9,0,\\nLevanzo,Italy,5.8,208,\\nPano Koufonisi,Greece,5.8,399,\\nSazan Island,Albania,5.7,0,\\nVeliki Brijun,Croatia,5.7,0,\\nIlovik,Croatia,5.5,85,\\nPetalas,Greece,5.5,0,\\n\""
          ],
          "doc": "island, country, area (km²), population, city (the largest). Wikipedia, \"List of islands in\nthe Mediterranean\", read 8 Nov 2026.",
          "line": 41,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-isoleCsv",
          "counterparts": [],
          "example": null
        },
        {
          "name": "cittaCsv",
          "kind": "const",
          "section": "",
          "signatures": [
            "cittaCsv = \"# EU cities by population within city limits: Wikipedia, read 8 Nov 2026 by citta.nim\\ncity,state,population,counted\\nBerlin,GER,3913644,2025-12-31\\nMadrid,ESP,3506730,2025-01-01\\nRome,ITA,2745062,2026-01-01\\nParis,FRA,2047602,2026-01-01\\nVienna,AUT,2044366,2026-04-01\\nHamburg,GER,1869786,2026-03-31\\nWarsaw,POL,1866729,2025-12-31\\nBarcelona,ESP,1731649,2025-01-01\\nBucharest,ROU,1709458,2025-01-01\\nBudapest,HUN,1675777,2026-01-01\\nMunich,GER,1505036,2025-12-31\\nPrague,CZE,1405551,2026-03-31\\nMilan,ITA,1362863,2026-01-01\\nSofia,BUL,1303813,2025-12-31\\nCologne,GER,1025523,2025-12-31\\nStockholm,SWE,1000962,2026-06-30\\nAmsterdam,NLD,945870,2026-06-30\\nNaples,ITA,905050,2026-01-01\\nMarseille,FRA,890707,2024-01-01\\nTurin,ITA,855654,2026-01-01\\nValencia,ESP,840792,2025-01-01\\nKraków,POL,816614,2025-12-31\\nZagreb,CRO,777359,2024-12-31\\nFrankfurt,GER,756021,2024-12-31\\nHelsinki,FIN,699637,2026-07-01\\nZaragoza,ESP,693091,2025-01-01\\nSeville,ESP,689423,2025-01-01\\nRotterdam,NLD,673966,2026-06-30\\nWrocław,POL,672601,2025-12-31\\nCopenhagen,DEN,671714,2026-01-01\\nLisbon,POR,658236,2025-12-31\\nAthens,GRC,643450,2024-01-01\\nŁódź,POL,639890,2025-12-31\\nPalermo,ITA,626273,2026-01-01\\nDüsseldorf,GER,619444,2025-12-31\\nVilnius,LTU,619405,2026-07-01\\nGothenburg,SWE,614165,2026-06-30\\nStuttgart,GER,612663,2024-12-31\\nLeipzig,GER,611850,2024-12-31\\nDortmund,GER,600880,2025-12-31\\nMálaga,ESP,599063,2025-01-01\\nDublin,IRL,592713,2022-04-03\\nRiga,LVA,588911,2026-01-01\\nBremen,GER,586271,2024-12-31\\nEssen,GER,573618,2025-12-31\\nAntwerp,BEL,572365,2026-07-01\\nThe Hague,NLD,569293,2026-06-30\\nGenoa,ITA,566247,2026-01-01\\nDresden,GER,564904,2024-12-31\\nPoznań,POL,534239,2025-12-31\\nNuremberg,GER,531159,2025-12-31\\nLyon,FRA,527236,2024-01-01\\nToulouse,FRA,522662,2024-01-01\\nHanover,GER,522131,2024-12-31\\nDuisburg,GER,500810,2025-12-31\\nGdańsk,POL,489328,2025-12-31\\nBratislava,SVK,480947,2026-01-01\\nMurcia,ESP,479405,2025-01-01\\nTallinn,EST,452563,2026-01-01\\nSintra,POR,449956,2025-12-31\\nPalma de Mallorca,ESP,434786,2025-01-01\\nBrno,CZE,404296,2026-01-01\\nBologna,ITA,391473,2026-01-01\\nSzczecin,POL,383786,2025-12-31\\nLas Palmas,ESP,381868,2025-01-01\\nUtrecht,NLD,378444,2026-06-30\\nAarhus,DEN,378361,2026-01-01\\nMalmö,SWE,368660,2026-06-30\\nAlicante,ESP,366221,2025-01-01\\nFlorence,ITA,361625,2026-01-01\\nBochum,GER,358880,2025-12-31\\nNice,FRA,358527,2024-01-01\\nWuppertal,GER,357243,2025-12-31\\nBilbao,ESP,351124,2025-01-01\\nPlovdiv,BUL,333994,2025-12-31\\nNantes,FRA,332411,2024-01-01\\nBielefeld,GER,331419,2025-12-31\\nVarna,BUL,331260,2025-12-31\\nEspoo,FIN,328502,2026-07-01\\nLublin,POL,326685,2025-12-31\\nBonn,GER,323587,2025-12-31\\nCórdoba,ESP,323262,2025-01-01\\nVila Nova de Gaia,POR,323202,2025-12-31\\nBydgoszcz,POL,321100,2025-12-31\\nMannheim,GER,318035,2024-12-31\\nBari,ITA,316248,2026-01-01\\nMontpellier,FRA,312537,2024-01-01\\nKarlsruhe,GER,309050,2024-12-31\\nThessaloniki,GRC,307920,2024-01-01\\nMünster,GER,306368,2025-12-31\\nGraz,AUT,305314,2025-01-01\\nKaunas,LTU,303613,2026-07-01\\nLjubljana,SVN,302826,2026-01-01\\nValladolid,ESP,302614,2025-01-01\\nAugsburg,GER,301105,2024-12-31\\n\""
          ],
          "doc": "city, state (three-letter code), population within city limits, counted (the date of the\ncount). Wikipedia, \"List of cities in the European Union by population within city limits\",\nread 8 Nov 2026.",
          "line": 44,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-cittaCsv",
          "counterparts": [],
          "example": null
        },
        {
          "name": "gtcars",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc gtcars(): TableData"
          ],
          "doc": "47 deluxe automobiles from the 2014-2017 model years, with their performance and price\n(gt's `gtcars`).",
          "line": 55,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-gtcars",
          "counterparts": [
            {
              "in": "gt",
              "name": "gtcars()"
            }
          ],
          "example": null
        },
        {
          "name": "countrypops",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc countrypops(): TableData"
          ],
          "doc": "The population of every country, every year from 1960 to 2022 (World Bank; gt's\n`countrypops`).",
          "line": 58,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-countrypops",
          "counterparts": [
            {
              "in": "gt",
              "name": "countrypops()"
            }
          ],
          "example": null
        },
        {
          "name": "illness",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc illness(): TableData"
          ],
          "doc": "Daily tests of a patient with yellow fever, days 3 to 9, with their normal ranges (gt's\n`illness`).",
          "line": 61,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-illness",
          "counterparts": [
            {
              "in": "gt",
              "name": "illness()"
            }
          ],
          "example": null
        },
        {
          "name": "metro",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc metro(): TableData"
          ],
          "doc": "The stations of the Paris Metro, with their lines and passengers in 2021 (gt's `metro`).",
          "line": 64,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-metro",
          "counterparts": [
            {
              "in": "gt",
              "name": "metro()"
            }
          ],
          "example": null
        },
        {
          "name": "planets",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc planets(): TableData"
          ],
          "doc": "",
          "line": 67,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-planets",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let preview = tabellaPreview(planets(), topN = 2, bottomN = 1):\n  colsHide [\"mass\", \"diameter\", \"density\", \"gravity\", \"day_length\", \"distance\", \"orbital_period\", \"mean_temp\"]\necho preview",
            "prints": "┌──────┬─────────┬─────────────┬───────┬───────┐\n│      │ planet  │ type        │ moons │ rings │\n╞══════╪═════════╪═════════════╪═══════╪═══════╡\n│ 1    │ Mercury │ Terrestrial │     0 │ false │\n│ 2    │ Venus   │ Terrestrial │     0 │ false │\n│ 3..7 │         │             │       │       │\n│ 8    │ Neptune │ Ice giant   │    16 │ true  │\n└──────┴─────────┴─────────────┴───────┴───────┘"
          }
        },
        {
          "name": "exibble",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc exibble(): TableData"
          ],
          "doc": "",
          "line": 68,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-exibble",
          "counterparts": [
            {
              "in": "gt",
              "name": "exibble()"
            }
          ],
          "example": null
        },
        {
          "name": "isole",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc isole(): TableData"
          ],
          "doc": "",
          "line": 69,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-isole",
          "counterparts": [],
          "example": {
            "spec": "table-data",
            "code": "echo tabella(tavolaPitagorica(4), rownameCol = \"×\")\necho isole().nrows, \" islands, \", citta().nrows, \" cities; the largest: \", isole()[\"island\", 0], \", \", citta()[\"city\", 0]",
            "prints": "┌───┬───┬───┬────┬────┐\n│   │ 1 │ 2 │  3 │  4 │\n╞═══╪═══╪═══╪════╪════╡\n│ 1 │ 1 │ 2 │  3 │  4 │\n│ 2 │ 2 │ 4 │  6 │  8 │\n│ 3 │ 3 │ 6 │  9 │ 12 │\n│ 4 │ 4 │ 8 │ 12 │ 16 │\n└───┴───┴───┴────┴────┘\n194 islands, 95 cities; the largest: Sicily, Berlin"
          }
        },
        {
          "name": "citta",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc citta(): TableData"
          ],
          "doc": "",
          "line": 70,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-citta",
          "counterparts": [],
          "example": {
            "spec": "table-data",
            "code": "echo tabella(tavolaPitagorica(4), rownameCol = \"×\")\necho isole().nrows, \" islands, \", citta().nrows, \" cities; the largest: \", isole()[\"island\", 0], \", \", citta()[\"city\", 0]",
            "prints": "┌───┬───┬───┬────┬────┐\n│   │ 1 │ 2 │  3 │  4 │\n╞═══╪═══╪═══╪════╪════╡\n│ 1 │ 1 │ 2 │  3 │  4 │\n│ 2 │ 2 │ 4 │  6 │  8 │\n│ 3 │ 3 │ 6 │  9 │ 12 │\n│ 4 │ 4 │ 8 │ 12 │ 16 │\n└───┴───┴───┴────┴────┘\n194 islands, 95 cities; the largest: Sicily, Berlin"
          }
        },
        {
          "name": "tavolaPitagorica",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc tavolaPitagorica(n = 10): TableData"
          ],
          "doc": "An n×n times table: a column `×` with 1..n, then one column per factor (\"1\" .. \"n\").",
          "line": 72,
          "url": "https://pietroppeter.github.io/tabelline/api/#datasets-tavolaPitagorica",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(2), rownameCol = \"×\"):\n  colsLabelWith proc (s: string): string = \"×\" & s\necho t",
            "prints": "┌───┬────┬────┐\n│   │ ×1 │ ×2 │\n╞═══╪════╪════╡\n│ 1 │  1 │  2 │\n│ 2 │  2 │  4 │\n└───┴────┴────┘"
          }
        }
      ]
    },
    {
      "module": "tabelline/nimib",
      "title": "In nimib",
      "path": "src/tabelline/nimib.nim",
      "doc": "tabelline in nimib notebooks: `nbTable t` shows a table as a block of the page.\n\n```nim\nimport nimib, tabelline, tabelline/nimib\nnbInit\nnbCode:\n  let t = tabella(planets()):\n    tabHeader \"The planets\"\nnbTable t\nnbTable planets():          # or in one step, when the code need not be shown\n  tabHeader \"The planets\"\nnbSave\n```\n\nThe block keeps the HTML and the Markdown of the table, so it renders with both of nimib's\nbackends (`nbInit` for HTML, `nbInitMd` for Markdown, as in a README). The first table of a\npage carries `tabellaCss`, the stylesheet of every table; the others leave it out.",
      "symbols": [
        {
          "name": "NbTable",
          "kind": "type",
          "section": "",
          "signatures": [
            "NbTable = ref object of NbBlock\n  html*: string\n  markdown*: string"
          ],
          "doc": "",
          "line": 27,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-NbTable",
          "counterparts": [],
          "example": null
        },
        {
          "name": "newNbTable",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc newNbTable(html: string = default(typedesc[string]);\n                markdown: string = default(typedesc[string])): NbTable"
          ],
          "doc": "",
          "line": 89,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-newNbTable",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nbtableToHtml",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc nbtableToHtml(blk: NbBlock; nb: Nb): string"
          ],
          "doc": "",
          "line": 89,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-nbtableToHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "dump",
          "kind": "method",
          "section": "",
          "signatures": [
            "method dump(n`gensym5: NbTable): string"
          ],
          "doc": "",
          "line": 89,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-dump",
          "counterparts": [],
          "example": null
        },
        {
          "name": "nbTableToMd",
          "kind": "func",
          "section": "",
          "signatures": [
            "func nbTableToMd(blk: NbBlock; nb: Nb): string"
          ],
          "doc": "",
          "line": 29,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-nbTableToMd",
          "counterparts": [],
          "example": null
        },
        {
          "name": "tableHtml",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc tableHtml(nb: var Nb; t: Tabella): string"
          ],
          "doc": "The HTML of `t` for this page: with `tabellaCss` the first time on the page, without it\nafterwards. For a block that puts a table inside its own HTML.",
          "line": 34,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-tableHtml",
          "counterparts": [],
          "example": null
        },
        {
          "name": "table",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc table(nb: var Nb; t: Tabella)"
          ],
          "doc": "",
          "line": 41,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-table",
          "counterparts": [],
          "example": {
            "spec": "table-parts",
            "code": "let t = tabella(tavolaPitagorica(3), rownameCol = \"×\"):\n  tabHeader \"Times table\", \"from 1 to 3\"\n  tabStubhead \"×\"\n  tabSourceNote md(\"Learned **by heart**\")\necho t",
            "prints": "   Times table\n   from 1 to 3\n┌───┬───┬───┬───┐\n│ × │ 1 │ 2 │ 3 │\n╞═══╪═══╪═══╪═══╡\n│ 1 │ 1 │ 2 │ 3 │\n│ 2 │ 2 │ 4 │ 6 │\n│ 3 │ 3 │ 6 │ 9 │\n└───┴───┴───┴───┘\nLearned by heart"
          }
        },
        {
          "name": "nbTable",
          "kind": "macro",
          "section": "",
          "signatures": [
            "macro nbTable(args: varargs[untyped]): untyped"
          ],
          "doc": "Adds a table to the page: `nbTable t` for a table `t`, and `nbTable data` for a table of\n`data` as it is. With a body, `nbTable data: body` adds `tabella(data): body`, in one step,\nwithout naming the table (the other arguments of `tabella`, such as `rownameCol`, go too):\n\n```nim\nnbTable planets(), rownameCol = \"planet\":\n  tabHeader \"Planets\"\n  fmtNumber \"mass\", decimals = 1\n```\nA body works on a table too: `nbTable t: tabHeader \"Again\"` adds `t` with a heading.\n(A macro: written as a template, Nim would give the body to `nbTable`, not to `tabella`.)",
          "line": 47,
          "url": "https://pietroppeter.github.io/tabelline/api/#nimib-nbTable",
          "counterparts": [],
          "example": null
        }
      ]
    },
    {
      "module": "tabelline/nanuq",
      "title": "From nanuq",
      "path": "src/tabelline/nanuq.nim",
      "doc": "tabelline/nanuq: a table straight from a `nanuq <https://github.com/pietroppeter/nanuq>`_\nDataFrame (Polars for Nim). The data steps (group, summarise, pivot) happen in nanuq; tabelline\nmakes the table:\n\n```nim\nimport nanuq, nanuq/datasets\nimport tabelline, tabelline/nanuq\nlet byIsland = penguins().groupBy(\"island\").agg(len().alias(\"n\"))\nlet t = tabella(byIsland):\n  tabHeader \"Penguins by island\"\n```\n\nnanuq is an optional dependency: only this module needs it (the `docs` feature of\n`tabelline.nimble` brings it, with its prebuilt Polars library), and the core of tabelline\nstill needs only Nim's standard library. The data is copied, as Polars' `to_pandas` does.",
      "symbols": [
        {
          "name": "toTableData",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc toTableData(df: nq.DataFrame): TableData"
          ],
          "doc": "Copies every column of `df`, in order: integers become ints, floats floats, booleans bools,\nstrings strings, a list of numbers, booleans or strings a list (a nanoplot's values), and\nany other type (dates, durations, categories, structs) the text Polars writes for it. A null\nbecomes a missing value.",
          "line": 31,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanuq-toTableData",
          "counterparts": [],
          "example": null
        },
        {
          "name": "initTabella",
          "kind": "proc",
          "section": "",
          "signatures": [
            "proc initTabella(df: nq.DataFrame; rownameCol = \"\"; groupnameCol = \"\"; id = \"\";\n                 locale = \"\"; autoAlign = true): Tabella"
          ],
          "doc": "A display table for a nanuq DataFrame, so that `tabella(df): body` works as for any data.",
          "line": 52,
          "url": "https://pietroppeter.github.io/tabelline/api/#nanuq-initTabella",
          "counterparts": [],
          "example": null
        }
      ]
    }
  ]
}