Bug 95252 - Unable to add table of contents to ODT file originating from an RTF file (see comment 4)
Summary: Unable to add table of contents to ODT file originating from an RTF file (see...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-22 10:19 UTC by Kiia Sol
Modified: 2017-05-23 10:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
tiedosto joka ei suostu hakemistoa tekemään. (13.41 KB, application/vnd.oasis.opendocument.text)
2015-10-23 05:49 UTC, Kiia Sol
Details
Original RTF sanitized in MS Word 2013 (374.60 KB, application/rtf)
2015-11-01 19:21 UTC, Buovjaga
Details
Sanitized RTF saved as ODT (17.70 KB, application/vnd.oasis.opendocument.text)
2015-11-01 19:24 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kiia Sol 2015-10-22 10:19:11 UTC
Hakemiston luominen ei ole onnistunut reiluun puoleen vuoteen kun alkuperäinen dokumentti on luotu rtf pohjalla ja tallennettu odt:nä. Aikaisemmin tämäkin on onnistunut.
Comment 1 raal 2015-10-22 17:34:47 UTC
@Beluga, one for you - Finnish report :-)
Comment 2 Buovjaga 2015-10-22 17:53:09 UTC
Voitko liittää tiedoston tähän? Eli Add an attachment tuossa kommenttilaatikon päällä.
Jos tiedosto sisältää luottamuksellista tietoa, siitä pitää luoda puhdistettu versio: https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission#Sanitize_file_text

Eli etsi ja korvaa.
Etsittävä-kenttään piste.
Korvaa tekstillä -kenttään x.
Huom.: Vain kokonaiset sanat ei saa olla valittuna.
Tämä pitää ruksata: Muut valinnat - Säännölliset lausekkeet.
Tallenna sitten eri nimellä ja liitä tähän raporttiin.
Comment 3 Kiia Sol 2015-10-23 05:49:51 UTC
Created attachment 119898 [details]
tiedosto joka ei suostu hakemistoa tekemään.
Comment 4 Buovjaga 2015-10-23 07:29:57 UTC
Confirmed with attachment 119898 [details].
The document has headings, but when inserting a table of contents, none of them are included.

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)

Version: 5.1.0.0.alpha1+
Build ID: fcc2415ade6ae93710bbbda9f7e163045e323105
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-10-21_16:55:13
Locale: fi-FI (fi_FI)

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 5 Oliver Specht (CIB) 2015-10-29 09:43:10 UTC
The headings have an outline level 'Body text' see 'Outline & Numbering' page in dialog "Edit paragraph style". That is why they are not included in a table of contents and not listed as headings in the navigator. 

So the document is o.k. What might went wrong is the RTF import. To check this  the related file is required.
Comment 6 Buovjaga 2015-10-29 11:02:34 UTC
Kiia: onko teillä vielä alkuperäinen RTF-pohja? Voiko sen jakaa julkisesti? Jos se täytyy puhdistaa, työ täytyisi tehdä varmaankin Microsoft Officessa. Minulla on mahdollisuus käyttää Officea, joten jos on tarvis, voit lähettää sen minun sähköpostiini.

Kommentissa 5 selitetään ongelman korjaaminen. Eli otsikoiden tyyliä pitää muokata ja Jäsennysnumerointi-kohtaan pitää korjata asianmukainen taso. Body text on väärä määrittely ja se ohitetaan.
Comment 7 Buovjaga 2015-11-01 19:21:53 UTC
Created attachment 120170 [details]
Original RTF sanitized in MS Word 2013

Used this regex to find:
[a-öA-Ö0-9]
replaced with x

Opening the original and sanitized files in LibO, they have a couple of white frames blocking the content. After selecting the frames and deleting you can see the content.
Comment 8 Buovjaga 2015-11-01 19:24:43 UTC
Created attachment 120171 [details]
Sanitized RTF saved as ODT

In LibO 5.0.2, saving the RTF as ODT does not mess up the heading outline levels! On page 3, the heading remains as "Level 1" and the ToC can be generated ok.

That is why I let this stay as unconfirmed. Perhaps we should even close as worksforme as we can't reproduce the problem from scratch anymore?

I wonder, if saving from MSO 2013 has any effect on avoiding the problem?

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)
Comment 9 Timur 2017-05-23 10:29:04 UTC
I didn't test this myself but since it's Unconfirmed since 2015, I close per last comment. Please open a new bug if not satisfied.