Add [ruby] BBCode tag to RichTextLabel#119460
Open
Zemeio wants to merge 1 commit into
Open
Conversation
Member
Please do not use LLMs or similar tools to write documentation, if you need help with the wording please ask, the quality and wording of documentation is important |
This commit introduces the [ruby] BBCode tag to support phonetic guides (ruby characters/furigana) in RichTextLabel text. It updates the layout rendering logic to properly handle inline ruby text styling and positioning, adds documentation, and includes test coverage for tables and standard text flow. Disclosure: this PR was made with the assistance of AI and authored by me (a human).
Author
Thank you for the comment, I will refrain from doing that in the future. To be clear, I did review the documentation and tried to match the other documentation in terms of content and wording, but since this is my first contributions, please be patient if I get some things wrong. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the
[ruby]BBCode tag toRichTextLabel. This tag supports phonetic guides (often known as ruby characters or furigana), allowing developers to add small annotative annotations or pronunciation guides above the base text.Human Verification:
What problem(s) does this PR solve?
[ruby]tag for Furigana in RichTextLabel godot-proposals#5876Example with bbcode
Known Limitations
There are currently a few limitations with this implementation:
Example with bbcode
AI Usage Disclosure
This PR was created with the assistance of an AI tool, overseen by a human author. Specifically, the AI assisted with the following tasks: