https://bugs.documentfoundation.org/show_bug.cgi?id=159652

            Bug ID: 159652
           Summary: Finding a way to join a suffix to the word immediately
                    before it, using autocorrect function
           Product: LibreOffice
           Version: 7.6.4.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I'm looking for a way to merge two words together by using the autocorrect
function in Writer. I use the Polish language in my work) 

My aim is to type a word, add the space (so that the word is corrected if
necessary, eg. diacritics are added, etc.), and then type a suffix as a
separate word. The suffix should be autocorrected (again, dicritics, etc.) and
the space prceding it removed, as if by hitting the Backspace key.

The reason for this request is that I'm making a huge list of autocorrect
definitions. Polish is chock-full of diacritics, so I'm using autocorrect to be
able to type without thinking about them, letting the software auto-add the
various dots and squiggles where necessary.

To make my task even more complicated, Polish is also an inflected language,
which means that every one of these words has multiple variants depending on
their flection.

Adding a suffix on top of this (each suffix taking a different form depending
on flection) leads to a huge number of necessary autocorrect definitions for
one word in all its forms.

What I'd like to do is:
1. define for autocorrect purposes the base form of a word (that is eg. change
mogl to mógł). — This is not a problem, as autocorrect already does it.
2. define a suffix after a space (eg. bys) that will be autocorrected (eg.
byś), but ALSO the space before it will be removed — so that the suffix is
joined with the preceding word, resulting in: mógłbyś.

It seems removing that space could be done by regex, which autocorrection
currently does not support, as aadvised to me by another user here:
https://ask.libreoffice.org/t/can-you-auto-delete-the-space-before-an-auto-corrected-word/101757.


Steps to Reproduce:
1. In autocorrect options (I use Polish language) define: mogl to be
autocorrected to: mógł.
2. In autocorrect options define:  bys (that's [space]bys) to be autocorrected
to: byś (that is [no space]byś.
3.Close the options.
In Writer document type: mogl bys.

Actual Results:
After the above steps the actual result is:
mógł byś (diacritics corrected properly, space persists)

Expected Results:
I'd like the result to be:
mógłbyś (diacritics in both words corrected properly, space removed — words are
joined)


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to