On Fri, Aug 04, 2023 at 11:15:56AM +0100, Gavin Smith wrote: > > There is already code for that in Texinfo::Transformations, new_master_menu > > creates a detailmenu, and regenerate_master_menu regenerate the Top node > > master menu, replacing the first detailmenu in Top node menus or > > appending at the end of the Top node menu. This is used in the > > regenerate_master_menu tree transformation. > > > > They could be moved to Common.pm and be used in > > Texinfo/Convert/Plaintext.pm and/or Texinfo/Convert/Info.pm. They may > > also be changed not to directly modify the top node but returns a tree. > > Thanks, I will give this a try.
I think I've done most of the work for this but I still have a bit of tidying-up to do.