Bug 147696

Summary: FILESAVE DOCX Index entries of alphabetic index are wrongly exported to docx
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: kelemeng, miguelangelrv
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104524    
Attachments: Testdocument with alphabetic index

Description Regina Henschel 2022-02-28 15:03:07 UTC
Created attachment 178580 [details]
Testdocument with alphabetic index

Open attached document and export it to docx. Open the docx file in Word.

Error:
The part, which is an index entry in odt, is not shown in Word. The index entry itself is not visible in Word, but Word needs the original text _and_ the {XE ... } item.


Update the index. The items in the index are grouped, but are not grouped in odt.

Error:
Word uses the : as grouping sign. So if an index entry in odt contains a :, it has to be escaped in the {XE ...} item.
Example: Instead of
   { XE "draw:style-name" }
it has to be
   { XE "draw\:style-name" }
Comment 1 m_a_riosv 2022-02-28 18:36:37 UTC
Reproducible.
Right-click on the index with word, offers to update field, which works but not like in LibreOffice, and there it's not 'table of contents to update'
Version: 7.2.6.1 (x64) / LibreOffice Community
Build ID: ce99d6a58f9368279ff1495b5b367eb64343b26c
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL