On 11/19/22 01:22, Patrice Dumas wrote:
@findex f---bb @subentry f---cc the HTML is: <tr><td></td><td class="printindex-index-entry"><code>f---bb</code></td><td> </td><td class="printindex-index-section"></td></tr> <tr><td></td><td class="printindex-index-entry"><span class="index-entry-level-1"><a href="#index-f_002d_002d_002dbb"><code>f---cc</code></a></span></td><td> </td><td class="printindex-index-section"><a href="#chapter">1 chapter</a></td>
We really shouldn't be using ' ' or empty table cells for formatting. Use CSS. For example: <style> span.index-entry-level-1 {padding-left: 2em } td.printindex-index-section { padding-left: 1em } </style> Better of course if we we could nest the subentries within the super entries, and maybe avoid using tables altogether. It miight be possible using grids (and maybe subgrids), but they're relatively new, and I haven't used them.
Any proposition for a better formatting? Any idea on how to help javascript-ing, maybe with a custom attribute with the full entry with commas separating the subentries?
That would be fairly easy to deal with. However, JavaScript should be able figure it out without that. It can look at sibling entries wihout too much pain, as long as there is a clean well-defined structure: It is easy to tell entries, subentries, and subsubentries apart, and they're in the "obvious" order. -- --Per Bothner p...@bothner.com http://per.bothner.com/