Bug 154433 - Auto-Replacement gets Ukrainian Quotation Marks wrong
Summary: Auto-Replacement gets Ukrainian Quotation Marks wrong
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Eike Rathke
URL:
Whiteboard: target:7.6.0 target:7.5.3
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-28 18:29 UTC by linus.sturm.github
Modified: 2023-03-29 02:31 UTC (History)
1 user (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 linus.sturm.github 2023-03-28 18:29:11 UTC
Description:
According to both the German (*) and English (†) Wikipedia articles, the quotation marks used in the Ukrainian language are like the French one (but without the space), so like this: «word». But LibreOffice's automatic quotation mark placement system places English-style quotation marks like “”. This has actually been asked on AskLibreoffice (‡) about seven years ago, but the user who solved the problem just explained how to change the default setting for the replacement, and further states that "it is not possible to set a second (or even third if needed - according to typographic rules in my country) level of quotation marks in Autocorrect", although (afaik) LibreOffice replaces " with the respective primary and ' with the respective secondary quotation marks, so while tertiary marks aren't possible, secondary ones are.

P.S.: I know that Wikipedia can be wrong, but the AskLibreoffice question stated the exact same facts, and I also know that the Russian language (which at least has similarities to Ukrianian) also uses the «» type marks (which are btw correctly replaced by LO). I also tested the replacement in Word Online, it seems to have the wrong way of replacing them as well.

------
Links:
*: https://de.wikipedia.org/wiki/Anf%C3%BChrungszeichen#Andere_Sprachen (scroll down the grid until you reach "Ukrainisch")
†: https://en.wikipedia.org/wiki/Quotation_mark#Belarusian,_Russian,_and_Ukrainian
‡: https://ask.libreoffice.org/t/quote-marks-autocorrect-for-ukrainian/19573

Steps to Reproduce:
1. Set document language to Ukrainian
2. Press the " key to place the language-specific starting quotation mark.
3. Type some text
4. Press the " key again to place the language-specific ending quotation mark

Actual Results:
LibreOffice places “” quotation marks (as customary e.g. in English).

Expected Results:
LibreOffice should place the appropiate Ukrainian quotation marks, «».


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 1 Eike Rathke 2023-03-28 20:14:41 UTC
https://en.wikipedia.org/wiki/Quotation_mark#Summary_table
lists «…» and “…” or ‘…’ (alternative „…“ or „…”)

https://de.wikipedia.org/wiki/Anf%C3%BChrungszeichen#Andere_Sprachen
lists «…» and „…“

https://unicode-org.github.io/cldr-staging/charts/latest/by_type/core_data.alphabetic_information.html
lists «…» and „…“

Going with the latter, U+00AB U+00BB and U+201E U+201C
Comment 2 Commit Notification 2023-03-28 23:12:08 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/002f941ec20e594e9702c39fab9cf9f4cc392dab

Resolves: tdf#154433 Correct {uk-UA} quotation mark characters

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Eike Rathke 2023-03-28 23:12:35 UTC
Pending review https://gerrit.libreoffice.org/c/core/+/149611 for 7-5
Comment 4 Commit Notification 2023-03-29 02:31:25 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/debd5bd5cf86a8e20754c9fa1e69455764beeedb

Resolves: tdf#154433 Correct {uk-UA} quotation mark characters

It will be available in 7.5.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.