In French, typography rules add a non-breaking space before so-called double-punctuation signs (!?:;). Consequently, autocorrection abbreviations like
:1/2: to produce ½ do not work, because the space is inserted before the treatment of the abbreviation.
Work around: I replaced these abbreviation using a comma as the ending character in the DocumentList.xml file within the archive file acor_fr-CH.dat in the configuration folder, autocorr subfolder - for me, it is
Steps to Reproduce:
1. Open Writer, document using French and autocorrection on
2. Type :1/2:<spaceY
3. It produces :1/2<non-breaking-space>: )
It should procude a ½ character
User Profile Reset: No
This is just a collision between the choice of a system of abbreviations in autocorrection and the rules of French typography.
You can also remove the unbreakable space after having typed the second ":" then if you type enter, the replace will be made.
So the problem seems to be the order of the replacements? I feel it would be logical to do them in the opposite order - would it break something?
(In reply to Mike Kaganski from comment #2)
> So the problem seems to be the order of the replacements? I feel it would be
> logical to do them in the opposite order - would it break something?
Silvain, Julien: can you reflect on this question?
(In reply to Buovjaga from comment #3)
> (In reply to Mike Kaganski from comment #2)
> > So the problem seems to be the order of the replacements? I feel it would be
> > logical to do them in the opposite order - would it break something?
> Silvain, Julien: can you reflect on this question?
I don't know if there may be some cons, I mean perhaps there may also be some situations where this opposite order might be wrong.
As far as I understand, I do not see that using these autocorrection replacements before the typographic rules would break anything.
Ok, I guess a possibility is to come up with the change and merge it very early on in pre-alpha stage. Then the French community could test the heck out of it. If it causes other problems, it will be reverted.
It seems the function to modify may be SvxAutoCorrect::DoAutoCorrect (see https://opengrok.libreoffice.org/xref/core/editeng/source/misc/svxacorr.cxx?r=ae56dc05#1302).
However, I don't measure the impact of changing the order of blocks and it seems it may impact other languages than French so too risky. If someone likes the risk, good luck! :-)
=> uncc myself.