Skip to content
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

The space between words is too wide #196

Open
cyahega opened this issue Aug 4, 2024 · 2 comments
Open

The space between words is too wide #196

cyahega opened this issue Aug 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cyahega
Copy link
Contributor

cyahega commented Aug 4, 2024

Screenshot_20240804-133255_Chrome.jpg

@cyahega cyahega added the bug Something isn't working label Aug 4, 2024
@cyahega cyahega closed this as completed Aug 7, 2024
@cyahega cyahega reopened this Aug 7, 2024
@AkutaZehy
Copy link
Member

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
Copy link
Member

otomad commented Aug 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants