Bug 129723

Summary: INDEX DIALOG: allow each level to be "Run On" or "Set Out" independently
Product: LibreOffice Reporter: R. Green <greenandpleasant2000-support>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: dgp-mail, heiko.tietze
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 122497    

Description R. Green 2020-01-01 17:11:40 UTC
In LibreOffice alphabetical indexes:

* If "Key separated by commas" is unticked (Index edit > Entries), ALL entries start on a new line (i.e. SET OUT).

* If "Key separated by commas" is ticked, ALL entries are entered one after the other, separated by a semicolon and a space (i.e. RUN ON).

Suggestion for improvement:

1. Each Index Level (1,2,3) can be set to RUN ON or SET OUT, independently of other levels.

2. If "Key separated by commas" is TICKED (i.e. index entries for that level are RUN ON), then all subentries (i.e. higher-numbered levels in the "Entries" tab) are disallowed.

3. If  "Key separated by commas" is UNTICKED (i.e. index entries for that level are SET OUT) then subentries are enabled.

This will allow the following combinations:

Level 1 | Run On     | Set Out | Set Out | Set Out    |
Level 2 | Disallowed | Set Out | Set Out | Run On     |
Level 3 | Disallowed | Set Out | N/A     | Disallowed |
Comment 1 R. Green 2020-01-01 17:16:02 UTC
*** Bug 129717 has been marked as a duplicate of this bug. ***
Comment 2 Heiko Tietze 2020-01-08 09:59:08 UTC
Don't see a reason why not (but round-trips should work). 

To give a clue in the UI  that this option depends on the chosen level, we should move the checkbox upwards, out of the Format frame.
Comment 3 R. Green 2020-01-25 18:26:07 UTC
To meet publishing standards, the following change also needs to be made.

If a run-on list of subentries appears after an entry, it is separated from the entry by either a colon and space ("Chicago Manual of Style"), or semicolon and space ("New Hart's Rules").

For example (using the Chicago style):

"Native American peoples: Ahualucos, 273, 274; Chichimecs, 67–68; Huastecs, 154; Toltecs, 128–36; Zapotecs, 168–72"

(Note: "Native American peoples" is the entry, and the rest are subentries)