Skip to content

Ignore order of modifiers when searching symbol pages #505

Open
@MDLC01

Description

@MDLC01

Description

On the General Symbols page and the Emoji Symbols page, searching for a symbol variant using the usual Typst syntax (<name>.<modifiers>) only lists the corresponding character if the modifiers are specified in the order in which they are defined internally, like illustrated in the two following examples:

  • Searching for "tilde.rev.equiv" on the General Symbols page adequately displays ≌ (sym.tilde.rev.equiv), but searching for "tilde.equiv.rev" does not.

  • Searching for "face.down.sweat" on the Emoji Symbols page adequately displays 😓 (emoji.face.down.sweat), but searching for "face.sweat.down" does not.

Instead, the order of modifiers should not be taken into account.

Use Case

This would make it easier to search for a symbol when you know its name, or checking whether a specific symbol exists. Another potential use case is to get information about a character that is used in a Typst document (such as its Unicode code point and name, or its default math class if #175 is implemented) by copy-pasting its Typst name from the source.

Additionally, some people might want to use the General Symbols page as a way to easily copy Unicode symbols when they know the corresponding Typst name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentation UX.feature requestNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions