Bug 152488 - Omit Table of contents entries from User Index when using concordance file
Summary: Omit Table of contents entries from User Index when using concordance file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes Concordance-File
  Show dependency treegraph
 
Reported: 2022-12-12 15:43 UTC by rferraro
Modified: 2024-09-18 12:11 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
test document (12.37 KB, application/vnd.oasis.opendocument.text)
2022-12-26 21:49 UTC, Dieter
Details
Sample from my document (122.83 KB, image/jpeg)
2023-01-19 16:40 UTC, rferraro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rferraro 2022-12-12 15:43:59 UTC
Description:
When I create an alphabetical index, it also lists occurrences of that index entry that are in the Table of Contents. I use a concordance file but it occurs with manual index entries too.

For example, I have index entry Moon. So, in the index it shows Moon.... ix, 14, 30, 32, 49 etc. The ix is the page number format I use for Alphabetical Index.

This is undesirable and it means I need to manually edit the Index. I found no way of preventing this from occurring.

Steps to Reproduce:
1. Create a Table of Contents
2. Take one of the words that is also in the Table of Contents as well as in the text, and add it to the Concordance file.
2. Create an alphabetical index and you will see the page number that it is in the TOC will also occur in the index.

Actual Results:
See above

Expected Results:
See above


Reproducible: Always


User Profile Reset: No

Additional Info:
See above
Comment 1 Dieter 2022-12-26 21:49:36 UTC
Created attachment 184360 [details]
test document

I can't confirm it with

Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded
Comment 2 rferraro 2023-01-19 16:40:16 UTC
Created attachment 184782 [details]
Sample from my document

Please see attached image. The entries in Roman numerals are from my table of contents. The regular numbers are from instances in the body.
Comment 3 Robert Großkopf 2023-01-20 09:38:10 UTC
Could confirm the buggy behavior.
Took https://bugs.documentfoundation.org/attachment.cgi?id=184360 and added a new entry (again a header) without any problem.
Then created a concordance file.
Set the index to use this file.
Entries of TOC will appear in alphabetical index.
Removed the concordance file but the entries won't be removed.

The bug only appears together with concordance file.

Tested with
Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: c0dd1bc3f1a385d110b88e26ece634da94921f58
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

(OpenSUSE 15.3 64bit rpm Linux)
Comment 4 Buovjaga 2024-09-17 18:06:50 UTC
(In reply to Robert Großkopf from comment #3)
> Then created a concordance file.
> Set the index to use this file.

Please tell us more about how you created the file.

What I did:

1. Right-click alphabetical index, Edit index
2. In Type tab, check Concordance file
3. In the dropdown under the option, select New, input file name
4. Input complete garbage as values for the entry

I could not reproduce with 7.5 or master (updating the indexes after adding a heading).

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 45399721e1497bc9731eacc1b001335ef4314579
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 17 September 2024
Comment 5 BogdanB 2024-09-17 18:58:48 UTC
> 4. Input complete garbage as values for the entry

Take one of the words that is also in the Table of Contents as well as in the text, and add it to the Concordance file

With the test document, at step 4, insert a word that is already in Table of content, like Test. And add it to Concordance. The Alphabetical Index will also include page 1 because of one occurrence here.

Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2024-09-18 12:11:25 UTC
Already in 3.5.