Ruby text support
What problem does this solve or what need does it fill?
Some languages, mostly Asian, have a typographical form where annotations are written above / below / next to characters or words. This behaviour is pretty hard to implement by yourself as there are many pitfalls. Games will sometimes use this form of annotation when the meaning of a character/word cannot be extrapolated from the context.
What solution would you like?
I'm unsure on whether to create a new Text component with ruby support or to extend the capabilities of the current text component. I'm still unsure on what the best way is on implementing it in the TextSection. The implementations I've considered:
- using the unicode spec when parsing the TextSection.value to determine the annotation groups
- adding an annotation field to the TextSection struct, (This does mean that if a text annotates every character that there are a lot of textsections, i don't know if that performs wel) In both cases TextSection would have a field describing where to place the annotation (above, below, right or left)
What alternative(s) have you considered?
There are currently no crates that over these features.
Additional context
I'm planning on implementing this myself, but I would like some peoples opinions
For the most part, this is a feature that should be covered on cosmic-text's side :) Once it's supported there, we can ensure that this is exposed correctly in Bevy.