Skip to content

Layout: tab stops with leaders #298

Closed

Description

@Tim81

There are no tab stops and no leader support in the layout engine.

That is an ordinary typographic gap, but it is also a hard prerequisite for L9: §8.2.5.8 requires
that a table of contents' leaders — the dot runs between an entry and its page number — be identified
as artifacts. A TOC generator that cannot draw a leader cannot produce a conforming table of contents.

Scope

Named tab stops with the four alignments:

Alignment Use
Left ordinary column starts
Right page numbers in a TOC, right-aligned figures
Centre centred column content
Decimal numeric columns aligned on the decimal separator

Decimal alignment is worth calling out: it is what makes a column of numbers readable, it is currently
impossible, and it interacts with L38's culture-aware formatting since the decimal separator is
locale-dependent.

Plus leader characters — dots, dashes, rules — filling the space to the next stop, emitted inside an
artifact marked-content sequence so they never appear as real content.

Acceptance

  • A TOC line with a right-aligned page number and a dot leader, the leader emitted as an artifact.
  • A numeric column decimal-aligned, including negative numbers and differing digit counts.
  • Decimal alignment respecting the document's culture once L38 lands.
  • Leaders not appearing in pdftotext output as real content.

Relates to

  • L9 — TOC generation. Hard prerequisite.
  • L38 — the decimal separator is culture-dependent.
  • L39 — leaders are artifacts, and artifacts need property lists.

Plan labels used above, resolved: L9 #294 · L39 #303 · L38 #322.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/layouttype/feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions