rugk / unicodify

✍️ A browser add-on (Firefox, Chrome, Thunderbird) that allows you to autocorrect common text sequences and convert text characters to a look like a special font.
https://addons.mozilla.org/firefox/addon/unicodify-text-transformer/?utm_source=github.com&utm_medium=git&utm_content=repo-about-description&utm_campaign=github
Other
11 stars 2 forks source link

Auto superscript or subscript #66

Open amourchaleur opened 3 years ago

amourchaleur commented 3 years ago

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

rugk commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.

amourchaleur commented 2 years ago

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

tdulcet commented 2 years ago

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 commented 2 years ago

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

tdulcet commented 9 months ago

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.