Skip to main content
Version: 0.0.5 (stable)

agrag.common.data_models.document.UnitKind

Bases: StrEnum

The kind of content in a unit.

Attributes:

  • PARAGRAPH – A paragraph of running text.
  • LIST – A list. One unit holds all the items of one list.
  • CODE – A block of code.
  • FORMULA – A formula.
  • FOOTNOTE – A footnote.
  • TABLE – A table. Its rows are in Unit.rows.
  • FIGURE – A picture, chart, or diagram. Its text is the caption.

CODE​

CODE = 'code'

FIGURE​

FIGURE = 'figure'

FOOTNOTE​

FOOTNOTE = 'footnote'

FORMULA​

FORMULA = 'formula'

LIST​

LIST = 'list'

PARAGRAPH​

PARAGRAPH = 'paragraph'

TABLE​

TABLE = 'table'