Ord - Outline and Relational Data

A simple and powerful markup language for note-taking and structured information.

Ord CSV mapping

Version 0.7.0-draft, 2026-11-22. A companion spec to Ord specification, of the same version. The Spec's conventions (S1 to S6) and versioning (S10) apply here, and rule IDs that start with C, L, D or T refer to the Spec and the Test format.

1. Scope

2. The label column

3. Reading CSV

_id,_types,_label,_state,due,attendees
t9x1,task,Send draft +task,new,2026-10-10,@anna; erik
,task,"Book room, big",new,,
.
root
  node quoted "Send draft +task"
    field "_id"
      "t9x1"
    field "_types"
      "task"
    field "_state"
      "new"
    field "due"
      "2026-10-10" date
    field "attendees"
      "@anna"
      "erik"
  node "Book room, big"
    field "_id"
    field "_types"
      "task"
    field "_state"
      "new"
    field "due"
    field "attendees"
_label
Plain
Anna's notes
Send draft +task
- [x] Done
Meet ~ today
Meet ~today
See https://example.com
\#hashtag
"Trailing␣"
;
Ends with colons::
.
root
  node "Plain"
  node "Anna's notes"
  node quoted "Send draft +task"
  node quoted "- [x] Done"
  node "Meet ~ today"
  node quoted "Meet ~today"
  node quoted "See https://example.com"
  node quoted "\\#hashtag"
  node quoted "Trailing "
  node ";"
  node quoted "Ends with colons::"
_label,tags
"Say ""hi""","a; b;"
Short row
x,y,extra
.
root
  node "Say \"hi\""
    field "tags"
      "a"
      "b"
  node "Short row"
    field "tags"
  node "x"
    field "tags"
      "y"
! V11.1 3:1
! V11.2 4:4

4. Writing CSV

Send draft +task
→_types:: task
→due:: 2026-10-10
→attendees:: anna; erik
"Book room, big"
→due::
→tags:: a;
Plain
→note:: "x; y"
.
_label,_types,due,attendees,tags,note
Send draft +task,task,2026-10-10,anna; erik,,
"Book room, big",,,,a,
Plain,,,,,"""x; y"""

5. Known gaps

6. Diagnostics

Codes and severities work as in the Spec (C35 to C37). Positions are in the CSV text, with lines and columns counted as in the Spec (D9).

Code Severity Given when Position
V5.1 warning A cell that isn't quoted holds a " the "
V5.2 warning Text follows a quoted cell's closing " the first character after it
V5.3 warning A quoted cell is never closed its opening "
V11.1 warning A record has fewer cells than the header the record's first character
V11.2 warning A record has more cells than the header the , before the first extra cell
V11.3 warning The header has a second _label column that column's name
V11.4 warning A column's name is empty the , before it, or 1:1 for the first column

Source: CSV_mapping.md in ordlang/ord, licensed under CC BY 4.0.