Bug 156792 - Default values by language for Autocorrect localized options: a way to disable 1st > 1^{st} by language
Summary: Default values by language for Autocorrect localized options: a way to disabl...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2023-08-16 20:09 UTC by jmontane
Modified: 2024-05-15 09:05 UTC (History)
5 users (show)

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 jmontane 2023-08-16 20:09:48 UTC
I request a way to define default values by language for Autocorrect localized options.

Case:

Tools>AutoCorrect>AutoCorrect Options…>Localized Options, “Format ordinal numbers suffixes (1st → 1^st)” is enabled as default for **all** languages. For Catalan (and maybe other languages), it should be disabled by default or alternatively permanently.


I can disable this option at user's profile, but I didn't find any way to disable this Autocorrect option for Catalan language as default.
Comment 1 Martin Srebotnjak 2023-08-16 20:36:12 UTC
This and some other options should be customizable with/during installation (langpacks or language versions of LO).
Comment 2 Eyal Rozenberg 2023-08-17 07:14:42 UTC
In some languages such constructs, or transformations, are meaningless anyway. Hebrew doesn't have an equivalent of "1st"; you have ראשון (meaning first) and that's that. I _think_ there is no such thing in Arabic but I'm not 100% sure. In fact, I wonder how many languages _do_ have this...
Comment 3 Eike Rathke 2023-08-25 11:54:14 UTC
(In reply to Martin Srebotnjak from comment #1)
> This and some other options should be customizable with/during installation
> (langpacks or language versions of LO).
AutoCorrect options are about _document content_, not UI languages, so having that depend on langpacks doesn't make sense.
Comment 4 Commit Notification 2024-05-15 08:33:21 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4c7686b7e1f4d012c00892f1cac1ae8a3298da5a

tdf#156792 sw Catalan AutoCorrect: no superscript ordinal indicator

It will be available in 24.8.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 5 László Németh 2024-05-15 09:05:09 UTC
I've disabled the (partial) superscript for Catalan (it was already for Swedish). 

Note: It's possible to do for other languages, which have letter-only ordinal indicators defined in i18npool/ICU, but without superscript formatting, if they exist.

I've close this report, because the known problem has been solved. 

@Joan et al.: thanks for your report and feedback!