typst / typst/codex

Allow the use of order-dependence to disambiguate symbol variants

Open
#95 6 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

Let me first say: This is not a proposal to make symbol names order-dependent in general. Only variants where order is needed for disambiguation would be order-dependent.

Currently, ⪋ and ⪌ are lt.gt.equiv and gt.lt.equiv. However, the symbols and also exist, but have not yet been named. In order to name these in our current scheme, one would need to invent yet more unnatural modifiers.

With this proposal, we would be able to distinguish between

lt.equiv.gt
lt.gt.equiv
gt.equiv.lt
gt.lt.equiv

It would also enable https://github.com/typst/codex/pull/75 without abusing submodules, assuming we also get https://github.com/typst/codex/issues/94.

(Not to mention there are examples of current naming that could potentially be improved with this proposal, such as for arrows.)

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

Review the current symbol-naming scheme, then compare this proposal with codex#94 and pull request #75. Done means determining whether order-dependent names can distinguish ⪋, ⪑, ⪌, and ⪒ without making names order-dependent in general, and assessing the mentioned arrow examples.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.