Bug 141711 - LO Writer creates Turkish alphabetical index in wrong sort order
Summary: LO Writer creates Turkish alphabetical index in wrong sort order
Status: RESOLVED DUPLICATE of bug 65018
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 11:30 UTC by Fedon Kadifeli
Modified: 2024-06-28 09:18 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample Writer document to illustrate the bug (12.80 KB, application/vnd.oasis.opendocument.text)
2021-04-16 11:33 UTC, Fedon Kadifeli
Details
An extended version of the previously posted sample Writer document to illustrate the bug (13.83 KB, application/vnd.oasis.opendocument.text)
2021-07-31 10:25 UTC, Fedon Kadifeli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fedon Kadifeli 2021-04-16 11:30:30 UTC
Description:
When I try to create an "alphabetical index" for a document with *Turkish Language Sort order*, the index created has some problems:

(1) Entries starting with non-english (=non-ASCII) letters are sorted after the letter "Z". They should be sorted according to Turkish sort order: "Ç" after "C", "Ğ" after "G", "İ" after "I"; "Ö" after "O", "Ş" after "S", and "Ü" after "U".

(2) Entries starting with the letter "İ" or its equivalent lower case "i" (dotted i) are grouped together (which is correct). However the "alphabetical delimiter" for these entries is displayed as "î" which is wrong. The correct delimiter should be "İ" (upper case dotted i). (For more info, see: https://en.wikipedia.org/wiki/Dotted_and_dotless_I )

I tested only in versions 7.0.4 and 7.0.5 under Ubuntu Linux (20.10).

Steps to Reproduce:
1. Open a new Writer document and create some Index Entries like these: FFF fff GGG ggg ĞĞĞ ğğğ HHH hhh III ııı İİİ iii JJJ jjj KKK
2. Go to the end of the document and add using *Insert | Table of Contents and Index* menu entry create an Alphabetical Index.
3. In *Type* tab Select Alphabetical Index, Case sensitive and Turkish (Sort) Language.
4. In the *Entries* tab select Alphabetical delimiter for entry 1.


Actual Results:
Index is created with the problems as explained in the Description above: Wrong sort order for non-ASCII letters and wrong alphabetical delimiter for entries starting with i and İ.

Expected Results:
1. Turkish sort order should be respected.
2. The letter "İ" should be used as the correct alphabetical delimiter for entries starting with i and İ.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.5.2
Build ID: 00(Build:2)
CPU threads: 12; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-GB (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.5-0ubuntu0.20.10.1
Calc: threaded
Comment 1 Fedon Kadifeli 2021-04-16 11:33:51 UTC
Created attachment 171238 [details]
A sample Writer document to illustrate the bug
Comment 2 Fedon Kadifeli 2021-04-21 12:40:40 UTC
Additional notes:

(1) This problem is the same in versions 6 of LibreOffice (I tested with 6.1.5.2).

(2) The sort order problem appears only for the first letter of the entries (which is also used for the "Alphabetical Delimiter"). Sorting order for the second letter onwards (where the first letter is the same) appears to work OK. So, it seems that there is a separate algorithm to group entries according to *first letter* (which DOES NOT work OK) and another for a language-dependent general sorting (which works AS EXPECTED).
Comment 3 Fedon Kadifeli 2021-04-23 10:51:19 UTC
Exactly the same problem with version 7.1 too. I tested with Writer version 7.1.2.2 under Ubuntu 21.04.
Comment 4 Fedon Kadifeli 2021-05-18 08:38:23 UTC
No change in 7.1.3.2 too.
Comment 5 Roman Kuznetsov 2021-07-30 14:38:28 UTC
Muhammet, could you confirm it?
Comment 6 Fedon Kadifeli 2021-07-31 10:25:46 UTC
Created attachment 173993 [details]
An extended version of the previously posted sample Writer document to illustrate the bug
Comment 7 Fedon Kadifeli 2021-07-31 10:26:40 UTC
Same problem in Writer:

Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-GB (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.4-0ubuntu0.21.04.1
Calc: threaded
Comment 8 Fedon Kadifeli 2021-09-25 13:26:20 UTC
Problem persists in Version: 7.1.6.2 too. :(
Comment 9 Fedon Kadifeli 2021-10-15 18:13:30 UTC
Still the same in version 7.2.1.2 too.
Comment 10 Fedon Kadifeli 2022-08-17 15:16:38 UTC
Still the same in version 7.3.5.2 too.
Comment 11 Julien Nabet 2022-11-26 08:01:46 UTC
On pc Debian x86-64 with master sources yesterday, I could reproduce this.

Code pointer:
SwTOXInternational::Init()
(see https://opengrok.libreoffice.org/xref/core/sw/source/core/tox/txmsrt.cxx?r=24865e2d#76)
Comment 12 Julien Nabet 2022-11-26 08:04:43 UTC

*** This bug has been marked as a duplicate of bug 65018 ***
Comment 13 Fedon Kadifeli 2024-06-28 09:16:11 UTC
Still the same problem in version 24.2.4.2.
Comment 14 Xisco Faulí 2024-06-28 09:18:23 UTC
(In reply to Fedon Kadifeli from comment #13)
> Still the same problem in version 24.2.4.2.

Yep, bug 65018 is still open

*** This bug has been marked as a duplicate of bug 65018 ***