Bug 148708 - ordered letter list wrongs then save as docx, aa then bb instead of aa then ab
Summary: ordered letter list wrongs then save as docx, aa then bb instead of aa then ab
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://www.officetooltips.com/word_2...
Whiteboard:
Keywords: bibisected, bisected, filter:docx
Depends on:
Blocks: DOCX-Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2022-04-21 13:15 UTC by michele.petrazzo
Modified: 2022-08-02 11:18 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
docx file (5.13 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-04-21 13:15 UTC, michele.petrazzo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michele.petrazzo 2022-04-21 13:15:50 UTC
Created attachment 179707 [details]
docx file

1. Open a new document.
2. Create a new ordered letter list
3. Add at least 28 point
3. The list has now a->ab points -the value after aa) is ab)-
4. Save as .docx
5. Open the file with LO
6. The list become a->bb, but I'm expecting that the next value after aa) was ab) like saved, but I see bb)
7. change the ordered list to something other, like numbers (the last number is 28), and change it another time to letter. It correctly become a->ab and not a->bb like just opened
8. Save as .odt
9. Open the file with LO
10. The list is correct: the value after aa) is ab)

The bug is raised only then you save the file as .docx and re-open it with LO, it works when saved and opened as odt

Attached the docx file just create
Comment 1 Timur 2022-04-21 14:55:52 UTC
No repro 4.1. Repro 5.4 and 7.4+ when saved DOCX reopened in LO and MSO.
Comment 2 Timur 2022-04-21 15:16:28 UTC
LO 4.4max 999662c1344871699dbf487554379a9d8ab8437a is the first bad commit
 source-hash-d30a8ec448bcd08c6a52a37d6ae41a4b71c235da
 prev source-hash-ba59fc533b6ac393969b456e72223d7d839b46c1

2 commits here, I guess it's the 1st one:

author	Mark Hung <marklh9@gmail.com>
Correct number format mapping for CJK numbered lists in rtf/doc/docx filters.

author	Miklos Vajna <vmiklos@collabora.co.uk>
indentation fixes

Adding Mark to CC, please see.
Comment 3 Mark Hung 2022-04-24 04:52:44 UTC
ODT list numbering "a...z, aa, ab, ..." does not have corresponding numbering type in ooxml. Current export filter always export the list as "lowerLetter", i.e. "a..z, aa, ab ...". I'm also not able to create the expected list directly from Word. Maybe it should warn the lost of information before saving the file.
Comment 4 Justin L 2022-08-02 11:18:53 UTC
The example document in comment 0 was created in LO, right? (app.xml says yes.)

Based on Comment 3, this should be closed as NOTABUG since the DOCX format doesn't have a way to describe an aa, ab, ac numbering.

The Internet link above describes a complete hack for people who want to accomplish this in MS Word. Such kinds of exotic hacks (using fields etc) should not be part of the export process. The current process of mapping to the closest match is the most appropriate way to handle this.