DesktopEditors icon indicating copy to clipboard operation
DesktopEditors copied to clipboard

Auto-correction does not properly insert non-breaking spaces inside French quotes

Open Silejonu opened this issue 2 years ago • 5 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System

Linux (RPM package)

Version information

7.1.0.215

Expected Behavior

In the French version, when typing « followed by some characters, or » preceded by some characters, a non-breaking space should be automatically added, similar to how " is correctly replaced by the French quotes and non-breaking spaces.

Actual Behavior

No automatic correction is made.

Reproduction Steps

  1. Set interface to French
  2. Type « followed by some text
  3. No non-breaking space is added after the «
  4. Type some text, followed by »
  5. No non-breaking space is added before the »

Additional information

Expands on #406

Silejonu avatar May 18 '22 20:05 Silejonu

Hello, @Silejonu. I didn't reproduce your problem. I used Desktop Editors version 7.1.0.215 on Windows 11. Could you describe how you enter quotes (with which key)?

Rita-Bubnova avatar May 24 '22 11:05 Rita-Bubnova

@Rita-Bubnova I enter the quotes with the « and » keys present on the bépo layout. Not with the " key. I just tested on a Windows 10 machine with the latest ONLYOFFICE version available, and the same issue occurs.

Silejonu avatar May 24 '22 12:05 Silejonu

I installed the bépo layout and repeated the problem with it. But the same behavior in MS Word with this layout. Unfortunately, I don't know French and I don't know why non-printable characters depend on the layout. If you use the French (France) layout, then non-breaking spaces are added.

Rita-Bubnova avatar May 26 '22 14:05 Rita-Bubnova

If you use the French (France) layout, then non-breaking spaces are added.

Do you mean French AZERTY? If so, it doesn't have « and » keys.

I tried with the newest AZERTY following the AFNOR norm (not yet integrated into Windows, downloadable on this repo), which has both keys, with the exact same behaviour as in bépo.

But the same behavior in MS Word with this layout.

I don't have MS Word to test this on, but I tried on LibreOffice as well as Google Docs, which both behave the same (no non-breaking space gets inserted).

I could swear LibreOffice inserted non-breaking spaces automatically, but this seems to be the case of me misremembering things. At this point, I don't know whether this behaviour should be changed or not. On one hand, « and » should always be followed/precede by non-breaking spaces in French typography; on the other hand, if all the other text editors have kept the same behaviour, it may be for a reason. I fail to see the reasoning, but maybe there is one.

Silejonu avatar May 27 '22 11:05 Silejonu

Hi @Silejonu! I checked the behavior of the new keyboard (as you indicated above) on four editors:

  • ONLYOFFICE Desktop Editor 7.1.0.215
  • Microsoft 365 (desktop)
  • MS Office 2013
  • Libre Office 7.2.7.2.

My OS: Windows 10 Pro 21H2 x64

On all editors, the behavior is the same with the specified keyboard and the non-breaking space is not added automatically. I will note your appeal in a similar issue 45791 of our private tracker. Maybe this will be resolved in the future. Thank you for contacting us.

LuckySpecialist avatar Jun 07 '22 13:06 LuckySpecialist