Line break in Japanese

I’m trying OnlyOffice v9.2.1. When I type a long line, the line breaks automatically continuing to the next line. However, the break point is not appropriate. It leaves a wide space at the end of the first line. For example…
………途中で改行されると思
いますが、………
There is enough room for “いますが、” in the first line. It seems that the line break has occurred between the two kind of characters, Kanji and Kana.
Japanese text usually has no space characters. So generally, you can break a line at any point except some prohibitions.
I searched for this problem, but I’ve found no reports. This problem is so important for Japanse writers. I hope you solve it soon.

Hello, @nibbana ! :blush:
Thank you for the detailed explanation!
We will check this behavior on our side and get back to you with an update as soon as we have the results.

1 Like

Hello, @nibbana
Thank you once again for the detailed bug report.
​We’ve registered this issue in our internal tracker: 80386.
We’ll post an update in this thread as soon as we have any news about the fix.

2 Likes

Hello, @moorisu

Thank you for sharing your feedback and for your interest in ONLYOFFICE. We understand how important correct Japanese line breaking is for everyday and professional use.

We’ve added your feedback and the affected version to the existing bug in our internal tracker.

We’ll keep you updated in this thread as soon as we have any news.

1 Like

Hi, @Marix, thank you for your response. Looking forward to the fix!

By the way, I accidentally deleted my original post. Sorry about that. I put the original post below for future reference.

Hi, I’m another Japanese user. I recently discovered ONLYOFFICE and found it to be a promising office suite for Linux. However, while trying it out, I encountered the same issue in version 9.4.0.129.

This is a major issue for Japanese users, as it makes ONLYOFFICE difficult to use for professional, academic, or other serious documents. Apart from this issue, I would be very happy to use ONLYOFFICE as my main office suite. I hope fixing it can be given high priority.

2 Likes

Hi, @moorisu! Thank you for restoring the details.
We’ll update the thread once there’s news on the fix.

1 Like

Hi @Nurullo and @Marix,

After some investigation, I found that this behavior is caused by a few functions in sdkjs. I opened a PR with a fix:

At least in my testing, it seems to work correctly for the cases discussed in this thread.

Hope this helps!

2 Likes

Hi, @moorisu

Thank you very much for investigating this issue and for preparing a pull request with a fix. We really appreciate your detailed analysis and contribution.

Thank you as well for sharing it here on the forum with us and other users — we believe this information will be very helpful to everyone experiencing the same behavior.