typst / typst/codex

Allow repeated modifiers to simplify naming

Open
#94 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta proposal
Dominant language
Rust
Stars
53
Forks
22
PR merge metrics
No merged PRs in 30d

Description

For a handful of symbols, it would be useful to be able to repeat modifiers. I give two examples here.

  1. We currently have

× - times
⊗ - times.o

Another variant that has not been named yet is ⨷, where times.o.o is an obvious name candidate.

  1. In "Supplemental Mathematical Operators" one finds ⪓ and ⪔.

Natural names would be lt.seq.gt.seq and gt.seq.lt.seq.

(Or any of a number of other alternatives, but they all share the need to repeat one or more modifiers)

This is only somewhat orthogonal to making it possible to disambiguate using order (the other proposal)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the symbol-name parsing and modifier-handling entry points, then compare the existing times and times.o cases with the proposed repeated names. Done should include a settled naming rule and coverage showing that examples such as times.o.o, lt.seq.gt.seq, and gt.seq.lt.seq resolve correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.