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

            Bug ID: 174565
           Summary: Incorrect Kurdish (Kurmanji) alphabetical sorting of
                    multi-word expressions in LibreOffice Writer and Calc
           Product: LibreOffice
           Version: 26.8.3.1 release
          Hardware: ARM
                OS: macOS (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

## Description

Following the partial fix of Bug 173547, Kurdish (Kurmanji / Latin-Hawar)
alphabetical sorting has improved in LibreOffice 26.8.3. However, an additional
sorting problem remains.

The problem occurs when sorting multi-word expressions containing spaces. The
alphabetical order of the words following a space appears to be handled
incorrectly.

This issue can be reproduced in both LibreOffice Calc and LibreOffice Writer.
Therefore, it does not appear to be limited to a single application.

## Actual Result

When sorting the following Kurdish expressions in ascending order, LibreOffice
produces this result:

| Expression |
|---|
| av dayîn |
| avdayin |
| rez kirin |
| rez kirîn |
| rez kirun |
| rez kirûn |
| rezkirun |
| rezkirûn |
| rêz |
| rêz kirin |
| rêz kirîn |
| rêzkirin |
| rêzkirîn |

## Expected Result

The expected Kurdish alphabetical order should be:

| Expression |
|---|
| avdayin |
| av dayîn |
| rez kirin |
| rez kirîn |
| rez kirun |
| rezkirun |
| rezkirûn |
| rez kirûn |
| rêz |
| rêz kirin |
| rêzkirin |
| rêz kirîn |
| rêzkirîn |

## Steps to Reproduce

1. Open LibreOffice Calc or Writer.
2. Enter the Kurdish expressions listed above, one expression per line or row.
3. Select the expressions.
4. Use the ascending alphabetical sort function.
5. Observe the resulting order.

The problem can be reproduced in both applications.

## Suspected Cause

One possible cause may be the way the space character (U+0020) is handled by
the Kurdish collation rules.

It appears that the space character may receive an unexpected sorting weight,
affecting the comparison of letters and words that follow it.

For example, expressions such as:

- rezkirun
- rez kirûn
- rêzkirin
- rêz kirin

are not consistently ordered according to the expected Kurdish alphabetical
sequence.

This is a suspected cause and requires further investigation.

## Expected Behavior

LibreOffice should consistently apply Kurdish (Kurmanji / Latin-Hawar)
alphabetical sorting rules in all applications.

The sorting mechanism should correctly handle:

- Kurdish letters: Ç, Ê, Î, Ş, Û
- Expressions containing multiple words
- Spaces between words
- Comparisons between expressions written separately and as a single word

## Related Issue

This issue is related to Bug 173547, which addressed incorrect Kurdish
alphabetical sorting.

Although the previous issue was partially fixed, the problem described here
remains in LibreOffice 26.8.3.

Please investigate and improve Kurdish collation rules so that multi-word
expressions are sorted correctly in both Writer and Calc.

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

Reply via email to