Bug 154495

Summary: Autodetecting Arabic locale as Hindi
Product: LibreOffice Reporter: AvidSeeker <avidseeker7>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ilmari.lauhakangas
Priority: medium    
Version: 7.5.1.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112810    
Attachments: LO misdetects Arabic text as Hindi

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 ***