Skip to content

Support text small-caps and slanted font shapes #300

Open
0 of 2 issues completed
Open

Description

@Happypig375

Complete parser and serializer integration for LaTeX's distinct text-shape commands \textsl{...} (slanted) and \textsc{...} (small capitals).

This is the final integration task after the font model and renderer can represent and honor those requests:

The current model conflates family, weight, and italic choice, and the renderer primarily performs Unicode-to-glyph lookup rather than shape-aware feature selection. Adding parser aliases before #306 and #307 would lose the semantic distinction or silently substitute uppercase/italic behavior, so this issue is blocked by both.

Parser and serializer scope:

  • Recognize \textsl{...} and \textsc{...} in text mode and math-mode text spans.
  • Preserve slanted versus italic and small-caps versus uppercase as distinct requests in the syntax tree.
  • Preserve nesting with family, weight, color, size, and math transitions.
  • Serialize canonically and survive parse → serialize → parse.

Completion criteria:

LaTeX defines \textsl and \textsc as separate font-shape commands: https://latex-project.org/help/documentation/source2e.pdf

Parent backlog: #81.

Sub-issues

Sub-issues

0 of 2 Issues completed
Loading 2 sub-issues
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/ParsingArea/RenderingType/Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions