Bug Hunting Session
Bug 114040 - Improve dictionary autocorrection with stressed words (in italian and french)
Summary: Improve dictionary autocorrection with stressed words (in italian and french)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete Dictionaries
  Show dependency treegraph
 
Reported: 2017-11-25 10:46 UTC by Luca Perri
Modified: 2019-02-10 09:01 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 Luca Perri 2017-11-25 10:46:25 UTC
Description:
When you write a stressed word using apostrophe after the vowel, instead of the stressed vowel (for example, if you write "liberta'" instead of "libertà" (italian for freedom)), the dictionary function corrects leaving the apostrophe after the correct word.

Take a look to steps to reproduce to understand better.

Steps to Reproduce:
1.Set the italian languange as language used in your document;
2.Write a stressed word using an apostrophe at the end of the word. For example: liberta'.
3.The dictionary will show you the correct version of the word "libertà".
4.Click on the corret spelling of the word.

Actual Results:  
Writer will show you: libertà', with a not needed apostrophe in the end.

Expected Results:
Writer should show "libertà", without the any apostrophe in the end ( ... a stressed vowel is enough!).


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 5.4.3.2
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Mac OS X 10.12; UI render: default; 
Locale: it-IT (it_IT.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Dieter Praas 2017-11-25 11:41:33 UTC
I confirm this.

I'm not an expert for dictionaries, but does it relate to the dictionary extension, so that you might report the bug to the developer of the dictionary?
Comment 2 Luca Perri 2017-11-25 16:37:17 UTC
Hello Dieter,

thanks a lot for your confirmation, but it happens also with french dictionary.

I tried with the french word liberté and the result is the same.

I do agree that single dictionaries are extensions, but probably the mechanism of the dictionary itself depends directly on libreoffice writer, am I wrong?

Thanks a lot for your help!
Comment 3 Italo Vignoli 2017-11-26 14:03:33 UTC
It's definitely not a bug, as it is the expected behaviour both in Italian and in French. The use of the apostrophe to replace the accent is current in Italian with a foreign keyboard, and is ignored by the dictionary (which recognizes the wrong word liberta and suggests to replace it with libertà, ignoring the apostrophe as it could be an intentional addition from the user). The user can add the requested change to the Autocorrect section.
Comment 4 Luca Perri 2017-11-26 14:47:36 UTC
Maybe it's my opinion, but it would be a better solution to eliminate the apostrophe too, instead of maintaining it.

In the end, the resulting spelling " libertà' " is a mistake too.

The right solution would be simply correct liberta' in libertà. Nothing more.

This is also how it works in Microsoft Words and it seems to me a better solution.
Comment 5 Dieter Praas 2017-11-26 18:11:59 UTC
Changed enhancement (since actual everything works as it should do) and precised the summary. Since I normally don't work with french ot italian textes I have no personal opinon to Lucas proposal.
Comment 6 tommy27 2017-12-06 10:34:07 UTC
it has always been like that since OOo era.

the spellchecker doesn't recognize the ' as part of the word to correct, hence after the correction the ' remains.

workaround is to put an .*a'  --> à  using wildcard autocorrection pattern  

this way anytime you type an italian word with incorrect a' ending it will be converted automatically in à
Comment 7 tommy27 2017-12-07 11:48:17 UTC
the only way to address this issue would be to change the "word boundaries" recognition by the autocorrect engine and make it consider the " ' " a s part of the word and not a s an punctation mark like "? ! ; : . ,"  etc. etc.

status NEW.
Comment 8 Julien Nabet 2019-02-09 14:25:38 UTC
Just for the record, I gave it a try with master sources updated yesterday.

Here are the steps I did:
- create a brand new file on Writer
- indicate "Italian" for the whole document
- type "Liberta"
=> a lot of words are proposed, including "Libertà" (without simple quote)
- choose "Libertà"
=> "Libertà" replaced my word still without simple quote.

On 6.1.5.1 LO Debian package, I tried with French language.
- create a brand new file on Writer
- indicate "Italian" for the whole document
- type "bonjour liberte"
=> some words are proposed, including "liberté" (without simple quote)
- choose "liberté"
=> "liberté" replaced my word still without simple quote.

Did I miss something or it may be set to WFM?
Comment 9 Luca Perri 2019-02-09 19:09:41 UTC
Hello Julien,

here's how you can reproduce the issue:

- create a brand new file on Writer
- indicate Italian or French as language for the whole document
- type liberta'
- dictionary will propose you libertà the proper correction;
- choose it
- as final result, you have libertà'(stressed a plus simple quote) instead of libertà (stressed a without simple quote

What I think would be the correct behaviour, is what happen with ms office.

Luca
Comment 10 Julien Nabet 2019-02-10 09:01:27 UTC
(In reply to Luca Perri from comment #9)
> Hello Julien,
> 
> ...
> What I think would be the correct behaviour, is what happen with ms office.
...

Thank you for your feedback.
In my case, when typing ', this simple quote is replaced by another type of quote (like in Word). So I'm not surprised this "special" quote stays after autocorrection of "liberte" to "liberté"