https://bugs.freedesktop.org/show_bug.cgi?id=44580
--- Comment #19 from tommy27 <barta@quipo.it> ---
Created attachment 104939
--> https://bugs.freedesktop.org/attachment.cgi?id=104939&action=edit
autocorrect testkit
Hi Julien, probably my test in comment 17 was not 100% accurate.
try replicating this new experiment.
a- download the attached .zip file which contains 3 minimal autocorrect .dat
file
1- acor_und.dat
it has a single entry: test → test1
it will apply in any document regardless the language since the acor_und.dat
file is the global autocorrect list (you can find it at the top of the language
dropdown list in the autocorrect replacement table under [All] (don't know
how's localized in french)
2- acor_en-GB.dat
it has a single entry: test → test2
it will apply only in document where the language is English(UK)
3- acor_en.dat
it has a single entry: test → test3
it should apply in any document written in any of the English variants (UK, US,
Australia etc.)
b- place these 3 dat files in the autocorr subfolder of the user profile
c- load a blank new Writer document and set the language as English(UK)
d- type test and see how it gets autocorrected
e- compare with my results with LibO 4.2.6.2 under Win7x64:
- all 3 dat files present → test corrected into test2, so the localized variant
acor_en-GB.dat rules over the acor_und.dat and acor_en.dat
- remove the und.dat file → again you get test2, so the en-GB.dat wins over
the en.dat
- remove only the en-GB.dat file → you get test3 so the en.dat wins over the
und.dat
- remove both en-GB.dat and und.dat → again you get test3 since only en.dat is
left
- remove both en-GB.dat and en.dat → you get test1 since only und.dat is left
so basically in case of autocorrect conflicts the “en-GB” list wins over the
“en” list and over the “und” list.
I agree this is the correct behavior since the language of the document should
tell which is the first autocorrect list to look inside.
f- same results if I rename those file to match italian locale (i.e.
acor_it.dat and acor_it-IT.dat) and I write an italian(Italy) document.
g- different results if you do the same trick with german or french locales. In
those cases the renamed acor_de.dat and acor_fr.dat files will have no effect
even if you remove the und.dat and the de-DE.dat and the fr-FR.dat files. So it
seems that the unlocalized variant .dat files doesn't work in some language
subgroups... this is strange and unconsistent with the results with Italian and
English where it worked with no issue.
Do you have any thoughts about that?
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Bug 44580] share autocorrect replacement table for misc. language subgroups · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.