Text Formatting Codes #53
Labels
area: Customization
area: Extensibility
area: GUI
area: QoL/UX
area: Rendering
area: Visual
engine: Graphics
feature: Expansion
feature: Update
scope: Feature
status: Advisory
Requiring more ideas or brainstorming about issue.
status: Sketchy
Requiring more details and/or examples about issue.
type: Migrated
type: Plan
type: Proposal
type: Scheme
Milestone
Original: MinicraftPlus/minicraft-plus-revived#392
Requires #26
Background
If we want the style of text looks different, it is restricted to using Unicode codes, and only colors are available, accessibility is quite limited and thus difficult to use. Also, we now have #6 for some special formatting codes. This should not be limited to just coloring when we have the ability for allowing more text styling.
Details
This feature or functionality would generally available globally, but only for rendering or displaying purposes. This would to enhance customizable visual control elements for texts. May refer to Minecraft's implementation and ANSI Select Graphic Rendition (SGR) for implementation details. Since a typeable, uncommon and displayable character must be used, it would still stick with the section sign (
§
). However, since it is a display character, one code for literal character should be available, which may be§§
like%%
in formatter. Here,%
is for parameterized texts, so it acts differently, but it might still be available for some functions.It should not be error-prone. So, to keeping the usability of the codes without ruining the visual experience, unparsable codes will remain literal and not used for styling. This way, it could also inform the user that, the code is invalid, since it is remained literal in rendering.
For extensibility of formatting codes, allowing variety of styling, the implementation might be similar to the SGR. Specifically, they would less likely be just one-character codes, especially when color codes could be supported.
Examples
Format:
§<sequences>;
<sequences>
can contain one or more formatting codes with colon (:
) separators. Likely they are mostly numbers instead of letters due to extensibility, unless there would be options for particular styles.Format:
§^<code>;
This would help inputting some special characters, but also help displaying.
§
Different ideas are welcome, even using a different format of control sequent codes.
See Also
The text was updated successfully, but these errors were encountered: