Bug 154495 - Autodetecting locale of RTL-CTL group languages as Hindi
Summary: Autodetecting locale of RTL-CTL group languages as Hindi
Status: RESOLVED DUPLICATE of bug 108151
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Arabic-and-Farsi Hebrew
  Show dependency treegraph
 
Reported: 2023-03-31 01:34 UTC by AvidSeeker
Modified: 2024-08-04 22:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
LO misdetects Arabic text as Hindi (1.74 MB, video/mp4)
2023-03-31 01:34 UTC, AvidSeeker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AvidSeeker 2023-03-31 01:34:28 UTC
Created attachment 186344 [details]
LO misdetects Arabic text as Hindi

LO doesn't enable CTL by default. However, if locale is set to Arabic, LO detects that and enables CTL.

Problem is that LO enables the default which is Hindi, instead of properly detecting that the text is Arabic.

See attached video: https://i.imgur.com/ghxWyks.mp4
Comment 1 Eyal Rozenberg 2023-04-05 08:36:16 UTC
So, how exactly did you install LibreOffice? And did this happen with no pre-existing profile?
Comment 2 AvidSeeker 2023-04-05 19:50:44 UTC
(In reply to Eyal Rozenberg from comment #1)
> So, how exactly did you install LibreOffice? And did this happen with no
> pre-existing profile?

Tested this on Fedora 38 Beta with latest Libreoffice version 7.5.1.2. On a fresh install, I set locale to ar_EG.

Regardless what the locale is, it shouldn't detect Arabic text as Hindi.
Comment 3 Buovjaga 2023-04-11 11:54:02 UTC
What do you have in Tools - Options - Language Settings - Languages: Default Language for Documents - Complex text layout?

I don't know if it is even supposed to autodetect anything or just go by that option.
Comment 4 AvidSeeker 2023-04-11 18:49:01 UTC
CTL from settings also shows Hindi
Comment 5 Buovjaga 2023-04-11 19:02:07 UTC
(In reply to AvidSeeker from comment #4)
> CTL from settings also shows Hindi

Then change it to Arabic for all docs and be happy. I can inquire about how this is supposed to work.
Comment 6 Buovjaga 2023-04-12 07:38:36 UTC
I found bug 113298 for detecting based on keyboard layout.

It is said there about the input method (IM):

"we support this under Windows because the IM there has a property to indicate the language the IM is for, while under Linux we don't cause it doesn't"

*** This bug has been marked as a duplicate of bug 113298 ***
Comment 7 Buovjaga 2023-04-12 08:25:16 UTC

*** This bug has been marked as a duplicate of bug 108151 ***