Le 01/03/2014 19:26, James Forrester a écrit : > On Saturday, March 1, 2014, Emmanuel Engelhart <[email protected]> wrote: > fix a few issues on mwoffliner: >> * Recreate the "table of content" based on the HTML DOM (*) > > We are currently working on doing similar work to this in VisualEditor (to > provide for a Table of Contents that can change 'live' as the document is > edited); this code may ultimately be used to generate the "real" Tables of > Contents for the reading HTML, as part of the plans to replace the output > of the PHP parser with Parsoid everywhere. > > It should be possible for Kiwix to re-use this in some way (rather than > have to re-implement it!). We hope to have something to show in the next > few weeks, if that's helpful.
Nice news! Yes, indeed, this would be great to be able to re-use your work. I have subscribed this Bugzilla entry, which is guess what you mean: https://bugzilla.wikimedia.org/show_bug.cgi?id=49224 Of course, for our usage, the best solution would be to have the initial TOC rendering done on Parsoid side, which would also offer the advantage of speeding-up initial VE rendering. Emmanuel -- Kiwix - Wikipedia Offline & more * Web: http://www.kiwix.org * Twitter: https://twitter.com/KiwixOffline * more: http://www.kiwix.org/wiki/Communication _______________________________________________ Offline-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/offline-l
