Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore order of modifiers when searching symbol pages #505

Open
MDLC01 opened this issue Dec 6, 2024 · 0 comments
Open

Ignore order of modifiers when searching symbol pages #505

MDLC01 opened this issue Dec 6, 2024 · 0 comments
Labels
docs Improvements or additions to documentation UX. feature request New feature or request.

Comments

@MDLC01
Copy link

MDLC01 commented Dec 6, 2024

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.

@MDLC01 MDLC01 added the feature request New feature or request. label Dec 6, 2024
@MDLC01 MDLC01 changed the title Ignore order of modifiers when searching symbols Ignore order of modifiers when searching symbols pages Dec 6, 2024
@MDLC01 MDLC01 changed the title Ignore order of modifiers when searching symbols pages Ignore order of modifiers when searching symbol pages Dec 6, 2024
@laurmaedje laurmaedje added the docs Improvements or additions to documentation UX. label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation UX. feature request New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants