On Mon, 25 Apr 2022 at 07:43, Jürgen Spitzmüller <sp...@lyx.org> wrote:
> Am Montag, dem 25.04.2022 um 02:43 +0200 schrieb Thibaut Cuvelier: > > I have pushed a slightly revised patch to your branch with the > > DocBook implementation. I'm now having a look at the XHTML one, in > > particular to share some code between the two. > > Great! > I've pushed my refactoring of the XHTML output. According to my tests, it is functionally equivalent to the previous code, but with cleaner XHTML output (new lines, use of dashes for internationalisation). Also, I believe the code is much easier to understand and modify in the long term (it also handles more than three levels of index, even if I doubt it will ever be useful). Algorithmically, it has a very similar time complexity but has arrays to store the index in a format closer to the XHTML output. Except for very large indices, this should not have a significant impact on users. Next: port the DocBook code to reuse as much as possible of the new XHTML implementation; add features to the XHTML export (multiple indices and ranges should be more or less easy to implement). Feedback welcome on the code :)!
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel