FEAT superscript converter
Is your feature request related to a problem? Please describe.
We don't yet have converter that can convert text to superscript. If it's simple we could also allow for subscript.
Describe the solution you'd like
The only question is how much to convert to superscript. We probably don't want to convert the whole text. Maybe it makes sense to provide options like
- every other word
- random with some set percentage
- all
- ...?
Hi! Is anyone working on this? If not, Iād like to work on it š
Go ahead! It's yours š
Thanks!
I have a question about the random mode (maybe it's obvious but I want to make sure): How should this mode be implemented? Cause I see two possible options. It's either every word has a given chance of being converted. OR a specific percentage of words is selected randomly for conversion (for example, if there are 100 words and percentage is 30%, exactly 30 randomly chosen words would be converted). Or maybe I should add both options?
I would stick to the word level, not char level. The charswap converter has a way to select the words randomly. Feel free to copy from there. Or better, move the selection functionality to common and use it in both places.