Bug 167143 - The "Grammar By" column for user-defined dictionary gets misaligned (24.8 regression)
Summary: The "Grammar By" column for user-defined dictionary gets misaligned (24.8 reg...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
24.8.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: possibleRegression
Depends on:
Blocks: Dictionaries
  Show dependency treegraph
 
Reported: 2025-06-21 03:30 UTC by Ming Hua
Modified: 2025-06-21 08:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example Dictionary File (88 bytes, text/plain)
2025-06-21 03:30 UTC, Ming Hua
Details
Good (expected) screenshot (version 24.2.7) (48.83 KB, image/png)
2025-06-21 08:41 UTC, Ming Hua
Details
Bad (malfunctioning) screenshot (version 25.2.4 RC1) (39.88 KB, image/png)
2025-06-21 08:42 UTC, Ming Hua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ming Hua 2025-06-21 03:30:18 UTC
Created attachment 201393 [details]
Example Dictionary File

Description:

There is a "Grammar By" column in the user-defined dictionary. The idea, from my simple understanding as a user, is that the user can assign a word already in the dictionary for the user-added new word, so that the new word can have the same inflection forms (such as plurals for nouns) as the "Grammar By" word.  For example, if I add "New Yorker" to my dictionary, I can put "worker" in the "Grammar By" field so that the spellchecker knows "New Yorkers" is just the plural form of the word I just added.

Since 24.8, when I edit (or just view) my custom dictionary, the "Grammar By" column is not aligned to their corresponding word anymore, and is instead all aggregated to the top of the dictionary.  The functionality of spellchecking based on custom dictionary doesn't seem to be affected.  I haven't tried adding new words yet.

Steps to Reproduce:

1. Download the attached custom "Example.dic" file and place it in the user/wordbook/ dictionary.  (Or alternatively, create a user-defined dictionary and add these custom words.)

2. Open the Options dialog with "Tools > Options", then edit/view this dictionary at "Languages and Locales > Writing Aids" page, by choosing "Example [English (USA)]" in the "User-defined Dictionaries" and clicking "Edit..." button.

Expected Result:

The "Chinese" entry in "Grammar By" column should correspond to "Shanghainese".  The other two words have no "Grammar By" companions.

Actual Result:

"Chinese" goes to the "Huangpu" entry as it is the first word in the dictionary. "Shanghainese" has no "Grammar By" word.

Version Information:

Bug seen in both 24.8 and 25.2.  Just reproduced with:
Version: 25.2.4.1 (X86_64) / LibreOffice Community
Build ID: 09303ce8b49f86f106fccd32b1324662053027cc
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: default; VCL: win
Locale: zh-CN (zh_CN); UI: en-US
Calc: CL threaded

Works fine in:
Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 12; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: CL threaded

So likely a regression in 24.8.

P.S.:

I am not a native speaker, and only an infrequent user of user-defined dictionaries. I may be not using the correct terms.  Please ask for clarifications if anything is unclear.
Comment 1 Shantanu 2025-06-21 07:29:46 UTC
Can you please upload 2 images (before and after) that shows the difference?
Comment 2 Ming Hua 2025-06-21 08:41:01 UTC
Created attachment 201396 [details]
Good (expected) screenshot (version 24.2.7)
Comment 3 Ming Hua 2025-06-21 08:42:13 UTC
Created attachment 201397 [details]
Bad (malfunctioning) screenshot (version 25.2.4 RC1)