-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Minecraft to display more Unicode characters. #5
Comments
For example: The character: 𬭶 (Hassium) has a Unicode encoding of U+183158, represented in hexadecimal as 0x2CB76. This character cannot be displayed in Minecraft because Minecraft can only display characters from 0000 to FFFF. However, this mod allows displaying these additional characters. Specifically, you only need to place these additional characters according to the original method of storing Unicode characters in Minecraft (the first two hexadecimal digits represent the file name, the third digit represents the row number , and the fourth digit represents the column number). The last two hexadecimal digits represent the row and column numbers, and the remaining characters represent the file name. For example: 2CB76 is located at the 7th row and 6th column of the 2cb file. |
Is it possible to convert the mod to Mixin or at least make it easier to read? Some of the optimization/tweak mods touch |
Yes, these ASMs were written exactly to be compatible with other mod modifications |
|
Well, it doesn't seem to work with Angelica, I'm trying to fix it. |
@mitchej123 I find the problem, the BatchedFontRendererRenderString method to intercept the upstream. Maybe I can only change this part from it angelica. I don't think this mod is suitable for angelica integration because it's too big |
It is well known that Java's
char
andString
use UTF-16 encoding. Minecraft's character rendering system is designed to only support the first 16384 code points of UTF-16. For characters in the supplementary planes of UTF-16, Java uses twochar
to store one character, but Minecraft's character rendering does not support them. To better support internationalization, it might be advisable to extend it. Now, I have created a mod that enables Minecraft's character rendering to support more UTF-16 characters (currently, UTF-16 uses at most twochar
, specifically: the Basic Multilingual Plane uses onechar
, and the Supplementary Planes use twochar
). This mod allows directly using the unicode points of characters for layout.The text was updated successfully, but these errors were encountered: