Created attachment 170389 [details] Problem example See attached file You can see a grammar error (use English language). There should be no space before question mark But the underlining is misplaced and if you choose to correct this error (by right click), the question mark is added at the wrong place. This is due to the fact that the text uses Mathematical chars from Libertinus Math (A, V, v) The problem is the same when using Cambria Math, or other specials glyphs
Created attachment 170390 [details] screenshot
You have to activate grammar checker options in English to see the issue. This is probably due to special characters length. The grammar checker in Python works with text in UTF-8 and send back errors with their position according to the text in UTF-8. If you replace 𝑉 with V, 𝐴 with A, 𝑣 with v, the second error is not misplaced. See attached screenshot.
The problem may be inherited from OpenOffice. The attached document makes OO crash when right-clicking on the underlined error
It would seem that if Unicode glyphs >= U+10000 are used, this bug occurs. U+FFFF and below do not trigger this problem.
(In reply to Ivo Straka from comment #4) > It would seem that if Unicode glyphs >= U+10000 are used, this bug occurs. > U+FFFF and below do not trigger this problem. Yes. Length of all all characters beyond U+10000 equals 2. That’s why all grammar checking errors are shifted to left each times one of these characters is present.
Thanks for reporting this issue. Could you please paste the info from Help - about LibreOffice ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the information has been provided
Dear Pierre C, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Pierre C, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp