ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.65k stars 312 forks source link

Document language is not respected in new paragraphs. #1449

Open erikhakansson opened 6 months ago

erikhakansson commented 6 months ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

version 7.5.1.23 (x64 msi)

Expected Behavior

New paragraphs get either the language of the preceding paragraph or the document language.

Actual Behavior

New paragraphs always gets set to English (Keyboard layout language) rather than the document language or preceding paragraph language.

Reproduction Steps

  1. Set Windows Keyboard layout to language A
  2. Set document language to language B
  3. Write new parapraphs.

Additional information

System and UI language is English, document language is Swedish. If I change the Windows keyboard layout to Swedish, it works, so it seems that the error comes from OO picking up the System keyboard layout rather than respecting user settings.

HectorB-2020 commented 6 months ago

@erikhakansson, I regret to accede to your issue that Only Office has great potential of improving documents with multiple languages. Some of the issues below might resemble yours.

For OO team: I certainly admit that some of the issues above are closed. But who knows, maybe it's worth checking them occasionally.

TatianaKirillova commented 5 months ago

Hello @erikhakansson! Thank you for your request! In the MS WORD editor the behavior is similar (as in the ONLYOFFICE editor). Which editor are you comparing with?

erikhakansson commented 5 months ago

Hi!

I am not comparing to any other editor.

I do this:

  1. Set document language to Swedish
  2. Set paragraph language to Swedish

Yet when I press enter to start a new paragraph, OnlyOffice automatically changes to English and I have to manually change to Swedish again. Every single time I press enter. Again, this happens EVERY time I press Enter to create a new paragraph, so several times per minute.

It doesn't matter how other editors do it, but I find it weird if the default behaviour is to automatically change language every time you press Enter despite the fact that the user has selected another language multiple times. That makes it impossible to use spelling control of a language that is not setup on the computer that you're using.

TatianaKirillova commented 3 months ago

Hello,  @erikhakansson Sorry for the long wait I can confirm that the problem exists, issue #67119 with your proposal

Rita-Bubnova commented 3 months ago

The issue is actual in DocumentServer.

TatianaKirillova commented 3 months ago

@erikhakansson In the desktop editor settings, you can disable the text language from the keyboard language. Perhaps this will help your problem?

image

erikhakansson commented 2 months ago

@TatianaKirillova this makes no difference, unfortunately. I believe that option is for detecting language from text, right? In any case that options seems to be completely non-functional and the editor keeps picking up OS language settings.

erikhakansson commented 2 months ago

Recently the problem has gotten even worse. It doesn't even matter what keyboard layout I use, it seems to pick up the OS language instead.