Blish-HUD icon indicating copy to clipboard operation
Blish-HUD copied to clipboard

Chinese characters cannot be displayed

Open jiangyi0923 opened this issue 3 years ago • 13 comments

When I built the Chinese translation file, the Chinese characters did not appear when I opened the program And some places are still English characters 20200716214805 20200716214823 20200716214848

jiangyi0923 avatar Jul 16 '20 13:07 jiangyi0923

zh.zip This is the Chinese Blish hudd. resources.DLL

jiangyi0923 avatar Jul 16 '20 13:07 jiangyi0923

Thank you @jiangyi0923 I believe we had somebody recently recommend a specific font to be used.

Do you by chance use the Chinese client as well or are you playing outside of China? If you are using the Chinese client, could you let me know if the game itself uses perhaps a different font to display characters?

dlamkins avatar Jul 17 '20 14:07 dlamkins

Yes, I am a server player in China. We usually use the font of arcDPS plug-in. When I try to build blish-hud and make it Chinese, even if "\Content\ Common \ Menomonion.ttf "font file is replaced, The UI still cannot display Chinese characters.

I even tried to modify the "CharacterRegions" parameter of the "Content\ Common \ Menomonia. Spritefont "file and rebuilt it, but still couldn't display Chinese characters

This is the font file: arcdps_font.zip

jiangyi0923 avatar Jul 18 '20 11:07 jiangyi0923

Yes, looks like Microsoft YaHei.

The fonts have to get precompiled with a separate application I used to generate the spritefonts which is probably why that didn't work for you.

We'll probably need the content service to automatically swap what font is used and leave the reference to Menomonia if Chinese is detected as the UI language.

Basically have this function detect if it is currently in Chinese, and, if so, swap Menomonia for YaHei's name. https://github.com/blish-hud/Blish-HUD/blob/f7bab481dd31e131c012e430879abbbacdd45fb0/Blish%20HUD/GameServices/ContentService.cs#L261-L273

dlamkins avatar Jul 19 '20 17:07 dlamkins

@jiangyi0923 It seems that Microsoft YaHei is an incredibly large font (22 MB!). Is this font typically already installed on systems or is there perhaps a more light weight font with the appropriate character support available? I understand that it is expected to be quite large due to the number of characters, but ignoring the licensing issues, including the font nearly doubles the application size and also is quite large to load into memory.

dlamkins avatar Dec 15 '20 05:12 dlamkins

@jiangyi0923 It seems that Microsoft YaHei is an incredibly large font (22 MB!). Is this font typically already installed on systems or is there perhaps a more light weight font with the appropriate character support available? I understand that it is expected to be quite large due to the number of characters, but ignoring the licensing issues, including the font nearly doubles the application size and also is quite large to load into memory.

we can use wqy-microhei, it's opensource alternative of ms yahei,even though ms yahei is located at c:\windows\fonts by default.

Eveink avatar Jan 09 '21 09:01 Eveink

@jiangyi0923 It seems that Microsoft YaHei is an incredibly large font (22 MB!). Is this font typically already installed on systems or is there perhaps a more light weight font with the appropriate character support available? I understand that it is expected to be quite large due to the number of characters, but ignoring the licensing issues, including the font nearly doubles the application size and also is quite large to load into memory.

we can use wqy-microhei, it's opensource alternative of ms yahei,even though ms yahei is located at c:\windows\fonts by default.

It is difficult to determine what characters need to be used. It would be great if you can support it. I can provide you with a Chinese taco path package for testing characters, but if the game map is updated and you use a small font, this will cause duplication. For the problem of building files, my suggestion is to load the Chinese fonts that come with the system if possible, or use C++ and imgui to develop new plug-ins, so you don't need to think about localization.

jiangyi0923 avatar Jan 09 '21 12:01 jiangyi0923

@jiangyi0923看来,Microsoft YaHei是一个令人难以置信的大字体(22 MB !)。 这是字体通常已经安装在系统或有可能更重量轻和可用适当的字符支持的字体吗? 我知道它将相当大数量的字符,但忽略了许可证问题,包括字体几乎成倍增加应用程序大小也是相当大的加载到内存中。 https://drive.google.com/file/d/1sOdXtHs0wSJFHnh7ZmxfL8MGGvAvhzuv/view?usp=sharing

@jiangyi0923看来,Microsoft YaHei是一个令人难以置信的大字体(22 MB !)。 这是字体通常已经安装在系统或有可能更重量轻和可用适当的字符支持的字体吗? 我知道它将相当大数量的字符,但忽略了许可证问题,包括字体几乎成倍增加应用程序大小也是相当大的加载到内存中。

我们可以使用wqy-microhei,开源替代yahei女士,女士即使yahei位于c: \ windows \默认字体。

https://drive.google.com/file/d/1sOdXtHs0wSJFHnh7ZmxfL8MGGvAvhzuv/view?usp=sharing

jiangyi0923 avatar Jan 09 '21 12:01 jiangyi0923

Thank you. That will be good for testing. I'll see if I can get it to load from the system because that would be very useful and make this a lot easier.

dlamkins avatar Jan 12 '21 02:01 dlamkins

Being worked on as part of #423

dlamkins avatar Sep 13 '21 05:09 dlamkins

I am back This is the Chinese translation of the RESX file Strings.zip

jiangyi0923 avatar Dec 24 '21 12:12 jiangyi0923

20211224013852 and it Support Chinese

jiangyi0923 avatar Dec 24 '21 12:12 jiangyi0923

20211224013852 and it Support Chinese

Please tell me how to translate it to Chinese. I don't know how to use ur files make the effect.

fd0712 avatar Dec 04 '22 10:12 fd0712