KIRAKIRA-DOUGA / KIRAKIRA-Cerasus

KIRAKIRA's frontend powered by Nuxt 3.
https://kirakira.moe
BSD 3-Clause "New" or "Revised" License
112 stars 17 forks source link

The space between words is too wide #196

Open cyahega opened 3 months ago

cyahega commented 3 months ago

Screenshot_20240804-133255_Chrome.jpg

AkutaZehy commented 2 months ago

According to the TEST, the text alignment mode uses a mode similar to "JUSTIFY", not because the space spacing is too wide, which is very common in many typesetting systems.

The only way to solve this problem is to use the solution described as "left alignment", but this in turn will seriously affect the layout of CJK texts if texts of languages cannot be separated. At the same time, whether this solution needs to be used also requires to be discussed by the Admins.

otomad commented 2 months ago

This should depend on the language of the comment, if the language of the comment is Chinese, Japanese, or Korean, it should be justified alignment, and left alignment for other languages. However, there is no easily way to know the language of the comment now, only know the language currently used by the user. This results in, for example, if you post a comment in English or Vietnamese, but another user is browsing the web in Chinese, your comment will be rendered as if it were in Chinese, and it will still be justified alignment.

A fundamental solution is that the front-end checks the language of the comment in some way, such as the number of characters in a particular language, which may not be accurate, but the translation software's automatic detection of the source language can do so. This solves the problem.