Bug 150371 - autocorr/acor_*.dat files with a valid language tag should add that tag to the language list if not already present
Summary: autocorr/acor_*.dat files with a valid language tag should add that tag to th...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Eike Rathke
URL:
Whiteboard: target:7.5.0 inReleaseNotes:7.5
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2022-08-11 09:51 UTC by Eike Rathke
Modified: 2022-12-12 13:23 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Rathke 2022-08-11 09:51:37 UTC
It is possible to create AutoCorrect replacement files for any valid BCP 47 language tag resulting in, for example, some autocorr/acor_art-x-privuse.dat file in the user profile (see https://ask.libreoffice.org/t/how-to-create-an-exportable-keyboard-input-scheme/80482/4 )

Dropping such acor_*.dat file into the autocorr/ directory should add the language tag to the list of available languages so it could be readily used without the kludge of needing some source-edited template file just to be able to assign the language.
Comment 1 Commit Notification 2022-08-26 08:08:30 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ae975b3ddab520906ead4314cef1752be999ad6f

Resolves: tdf#150371 Scan autocorr dirs for language tags to add to list

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Stéphane Guillou (stragu) 2022-12-12 13:23:32 UTC
I could verify that new languages can be listed if a config file was manually added, basing it on an existing language's .dat archive and renamed. Could add new entries to it with the GUI.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 01c9c971e43782800ebf63acc763a7e7fba096c1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Thanks Eike!