Chinese paragraph segmentation
djkcyl opened this issue · 12 comments
For feature requests, just erase this template and clearly describe the feature you'd like to see
Minecraft Version
1.16.1
Forge Version
32.0.108
Mod Version
2020.8.22 Github Source code Compile
Describe your problem, including steps to reproduce it
When using lang with Chinese characters, gui.tooltip.block and gui.tab.info cannot automatically wrap, and the font is too small to see clearly
And when using Chinese characters, it will display format error
Any other comments?
NO
Where did you get Chinese translations for 1.16? 1.16.2 only ships with en_us translations.
Where did you get Chinese translations for 1.16? 1.16.2 only ships with en_us translations.
I am a member of https://github.com/CFPAOrg/Minecraft-Mod-Language-Package, I am making Chinese translations, and now I have a little problem
I think the problem is your translated text doesn't contain any ASCII space characters, which is what the mod uses to split up text for formatting. If there's a particular Unicode character (or characters) commonly used in Chinese text as whitespace, let me know what and I can add that to the list of word delimiters in the text formatting code.
There are no spaces for separating characters in Chinese paragraphs
But if you can break lines by judging the number of characters, it may be helpful for Chinese paragraphs
Yeah I could force a break after a certain number of characters, even when there's no whitespace, I suppose.
Regarding the format error problem, I would need to see the text you're providing, but you probably have the wrong number of "%" characters - "%" is used as a formatting marker and needs to be escaped.
Regarding the format error problem, I would need to see the text you're providing, but you probably have the wrong number of "%" characters - "%" is used as a formatting marker and needs to be escaped.
I have fixed the format error, just use %%
"gui.tooltip.block.pneumaticcraft.advanced_air_compressor" : "这个机器是空气压缩机的二级版本。 像他的稍逊一筹的兄弟那样, 它可以使用任何能在熔炉中燃烧的燃料产生压缩空气。 但是, 这台机器的生产速率为50ML/TICK,他同时也产生热量。 热量越高,效率也就越低。 GUI内温度条底部的箭头指示了效率将开始下降的位置, 而顶部的箭头指示了效率降至0%%的标记。你可能会失望, 此机器不会在温度过高时爆炸。",