On 7/12/20 11:04 AM, Thibaut Cuvelier wrote: > On Sun, 12 Jul 2020 at 06:08, Richard Kimberly Heck <rikih...@lyx.org > <mailto:rikih...@lyx.org>> wrote: > > On 7/11/20 11:04 PM, Scott Kostyshak wrote: > > On Mon, Jun 08, 2020 at 04:55:10AM +0200, wrote: > >> Dear list, > >> > >> During my work on DocBook, I first prototyped a few things > based on the > >> XHTML output. One part that might be of interest is adding > sections in the > >> generated file. This requires HTML5 to be valid: > >> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section. > >> > >> Are you interested in it? If so, here is the patch. > > I don't know anything about this, but I'm bumping the email just > in case > > someone else wants to take a look, since the patch might have > slipped > > through the cracks. > > I don't know about the HTML itself, as I've not kept up with the HTML5 > developments. > > Thibaut, can you say a word about what this does? > > > It uses one of the new HTML5 elements to bring more semantics in the > page (instead of generic div elements). Its purpose is to delimit > sections (beginning and end), in a recursive fashion. > > Before this patch, a LyXHTML document would look like this: > <h2>Title</h2> > <h3>Subsection</h3> > <p>Something.</p> > After (indentation only to improve formatting of this email, it's not > implemented): > <section> > <h2>Title</h2> > <section> > <h3>Subsection</h3> > <p>Something.</p> > </section> > </section> > > There are quite a few other new elements in HTML5 that could be useful > for this, like article or aside. The only goal is to give more > semantics about the document to web crawlers or to assistive > technology to better understand the page. (Similarly, Microdata might > bring some more semantics: https://schema.org/docs/gs.html.)
Seems like a good idea, then. Riki
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel