Fwd: Add sections to the XHTML output?

Thibaut Cuvelier tcuvelier at lyx.org
Sun Jul 12 16:19:27 UTC 2020


Committed, then! (Authorship information might be out of date, because I
configured Git after committing this one…)

Would there be an interest in adding more metadata into the XHTML output
with Microdata?

On Sun, 12 Jul 2020 at 17:38, Richard Kimberly Heck <rikiheck at lyx.org>
wrote:

> On 7/12/20 11:04 AM, Thibaut Cuvelier wrote:
>
> On Sun, 12 Jul 2020 at 06:08, Richard Kimberly Heck <rikiheck at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200712/d3c7c1d0/attachment.html>


More information about the lyx-devel mailing list