On Tue, Jul 08, 2025 at 12:19:58PM +0000, Werner LEMBERG wrote: > > Comparing the HTML of version 6.8 with version 7.2, I see that many > classes got new names. This means that we essentially have to rewrite > our custom CSS file, which is not fun. > > What about providing a script > > ``` > texinfo-css-update --from 6.8 --to 7.2 < infile > outfile > ``` > > that does the job, reporting conversion problems that have to be > resolved manually? There could also be an option `--compatible` to > allow the CSS file work for both an older and a newer `texi2any` > version.
I do not think that it is worth it, for two reasons. First, if I recall well, it is not a mere change of classes, but a redesign of how classes are associated to @-commands and associated HTML elements, such that there is (probably) no obvious mapping from the previous classes to the new classes or for some elements only. The second reason is that it requires doing or using a CSS parser, which would be a big investment. So I think that a manual rewrite is the way to go. Hopefully, the CSS classes should not change much after 7.0, although the HTML elements could change (and have changed). -- Pat