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

Feature request: Automatic underscores for Greek letters #38

Open
Sinthoras7 opened this issue Sep 12, 2022 · 4 comments
Open

Feature request: Automatic underscores for Greek letters #38

Sinthoras7 opened this issue Sep 12, 2022 · 4 comments

Comments

@Sinthoras7
Copy link

Sinthoras7 commented Sep 12, 2022

It would be useful if the automatic underscores also worked for Greek letters, such that when there is a \alpha and I type 1 not \alpha1 but \alpha_1 appears.

(This would be useful, but TBH if this is not easily doable, I would prioritize #30 over this, because this is just a feature, which would make this package more useful/better, the other one is a bug, which makes it unusable, for people, who are working a lot with siunitx/chemical environments.)

@ymarco
Copy link
Collaborator

ymarco commented Sep 12, 2022 via email

@Sinthoras7
Copy link
Author

Yeah, I also think we'd need a whitelist/blacklist. I would probably just whitelist the Greek letters and wait, if there arise any issues, which would be solved by whitelisting more. Ideally, include a method, which users can use to add things to the whitelist

This snippet-data-structure would only work, if the Greek letter was also created by an aas-macro, wouldn't it?
Without directly checking, whether the expression before is element of the whitelist, it would be pretty tricky to expand it, no matter how it was inserted, I guess.

@ymarco
Copy link
Collaborator

ymarco commented Sep 12, 2022 via email

@Sinthoras7
Copy link
Author

A solution for users, who use the Unicode symbols, would be to create a variable, where the user can whitelist certain chars for the auto underscores.
Then, one could add the Unicode symbols for the Greek letters, f.e. 𝛼, 𝛽, 𝛾, 𝛿, etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants