Summary: | EDITING: Index Quirks | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Frank <foberle> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | foberle, quikee |
Version: | 4.3.0.0.alpha0+ Master | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | BSA | ||
i915 platform: | i915 features: |
Description
Frank
2014-01-25 19:21:31 UTC
oh wow.. I actually learned something trying to reproduce this :) Confirming.. Hi Tomaz: Always glad to aid in someone's education !!! Seriously, if I can contribute to testing any "fixes" to these things (I believe there may be several contributing but not necessarily related bugs involved), let me know and I'll try to help. Obviously, since I reported the issue, I've become familiar with its use. Also be aware that I also provided the following instructions to someone on some forum that I can't remember now to allow them to remove all the index markers, and this might help whoever is tasked with working on the index issues: ===== QUOTE ===== So, here's how to remove all of the index markers from a Writer document so you can start with a clean slate. To do this, you will need to be running LibreOffice on some flavor of Linux/Unix, or at least on a system that has a command line or some text editor with "sed" capabilities. 1: Make a backup of your Writer document. You know the consequences if something goes amiss. 2: Open the document in Writer, and choose Save As "OpenDocument Text (Flat XML) (fodt)" This creates an uncompressed XML version of the document. On my system (Ubuntu), I was unable to decompress the odt version, as the OS complained it was malformed. 3: Close the document and exit Writer. 4: Open a command line shell, preferably in the directory containing the fodt file. 5: Run the following command (all one line - broken apart here for clarity): sed 's/<text:alphabetical-index-mark text:string-value="\([A-Za-z]*\)"\/>//g' < Old_File_Name_and_Path.fodt > New_File_Name_and_Path.fodt Depending on the file size and processor speed, this may take a bit. If this gives errors, you're on your own. 6: Close the command line shell. 7: Open the new "cleansed" fodt file with Writer. 8: The file should look the same but without any alphabetical index markers. (The formatting is still there, though) 9: Go to where your alphabetical index is located, right click and select "Update Index/Table" A: All of the index entries should disappear; if any remain, go find them and manually delete them. Apparently, some of the indexes are somehow embedded in others and aren't found by the sed command above. I didn't bother to try figuring out how or why that happened. I had several hundred markers, of which only five weren't removed. B: Now, go back to the index and select Edit Index/Table, then File | Open. C: Select the original file (assuming you have it where you want it), and let Writer go to it. D: You now have a "clean" document with no duplicate index entries. E: LOOK AT IT CAREFULLY, of course, before replacing your original. The document I tried this on was over four hundred pages with lots of tables, graphics and so forth, and I found no problems, but it's up to you to determine if everything is ok. I hope this helps any others who might be using alphabetic indexes. ===== END QUOTE ===== Best of Luck, Frank |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.