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

Auto superscript or subscript #66

Open
amourchaleur opened this issue Aug 22, 2021 · 7 comments
Open

Auto superscript or subscript #66

amourchaleur opened this issue Aug 22, 2021 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@amourchaleur
Copy link

Suggest for auto superscript or subscript for text such as 10th or 1st (in thunderbird).

@amourchaleur amourchaleur added the enhancement New feature or request label Aug 22, 2021
@rugk
Copy link
Owner

rugk commented Aug 22, 2021

Please mind to fill out the issue template you choose, when you open an issue the next time. This makes it easier to troubleshoot issues or understand feature requests etc.
Or even better, edit this issue and fill it out.

As you seem to come from #30, I interpret this issue as including these subscript such as 10th as an auto-correct feature.

@tdulcet
Copy link
Collaborator

tdulcet commented Aug 23, 2021

Suggest for auto superscript or subscript for text such as 10th or 1st

OK, thanks for the feature request. I am assuming you want ordinal numerals like 10th and 1st to autocorrect to 10ᵗʰ and 1ˢᵗ respectfully for the auto superscript. What did you want for the auto subscript?

Users can already manually do superscript from the context menu. (It does not currently work in Thunderbird because of Bug 1716976.) However, I am not aware of a subscript Unicode font, so auto subscript would not currently be possible. Edit: There is a subscript Unicode font, but it does not yet include all the letters.

(in thunderbird).

The Firefox, Chrome and Thunderbird versions of this add-on all share the same code.

@amourchaleur
Copy link
Author

Yup, auto superscript like 1st and 2nd. Correction: don't normally use subscript so don't have examples. Superscript is commonly used for typing dates etc.

Thank you.

@tdulcet tdulcet added the good first issue Good for newcomers label Aug 23, 2021
@amourchaleur
Copy link
Author

Hi, would the auto superscript be implemented anytime soon? :) Thanks!

@tdulcet
Copy link
Collaborator

tdulcet commented Jul 30, 2022

Sorry, I do not have any plans to implement this any time soon. Our priority is currently on improving the autocorrect feature so it can be enabled by default (see #4 and #64).

However, pull requests are always welcome! It should be relatively easy to implement, which is why I added the "good first issue" label. There are general instructions here. The Intl.PluralRules API might also be helpful.

@amourchaleur
Copy link
Author

Oh I see, it's okay, not good with coding. Thanks for the reply!

@tdulcet
Copy link
Collaborator

tdulcet commented Dec 9, 2023

I am not sure if this helps with your use case, but the extension now supports doing subscript from the context menu:
image
This will be included with the next version of the add-on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants