Email list hosting service & mailing list manager

Re: Proposal to add HTML class attributes to SRFIs to aid machine-parsing Marc Nieper-Wißkirchen (06 Mar 2019 10:12 UTC)
Re: Proposal to add HTML class attributes to SRFIs to aid machine-parsing Amirouche Boubekki (06 Mar 2019 00:18 UTC)

Re: Proposal to add HTML class attributes to SRFIs to aid machine-parsing Amirouche Boubekki 06 Mar 2019 00:18 UTC

On 2019-03-05 15:00, Lassi Kortela wrote:
> Hello,

Hello Lassi et al.

> This is a proposal to gradually add a standardized set of HTML class
> attributes to the SRFI source documents. The classes would encode
> metadata that can be used to index all symbols defined in SRFIs.


> General information about the SRFI (date, author, abstract, status,
> license, etc.) could also be encoded.
> I made a simple SRFI symbol index (<>)
> by screen-scraping the source HTML of all SRFI documents. I wasn't
> aware that Ciprian Craciun had already done similar work earlier
> (<>). These indexes
> are useful but contain errors and omissions because scrapers have to
> guess where the definitions are in the SRFI.
> Scraping could be made perfectly reliable by adding HTML class
> attributes to the SRFI source HTML. I emailed Arthur Gleckler about
> this and his initial response was enthusiastic but he suggested that
> we have a wider discussion on this mailing list. He also pointed me to
> earlier threads started by Ciprian Craciun on this list in 2018:
> * "Is there an index of symbols defined by the various SRFI's?"
>   <>
> * "Describing Scheme libraries (and thus SRFI's and R7RS) in a
>   "machine readable" format (and rendering in various formats)"
>   <>
> The approach described here would be complementary. Ciprian has been
> working on an S-expression-based layout for the metadata: the
> S-expressions could be generated automatically from the HTML markup
> proposed here. In fact, Arthur Gleckler and Per Bothner already hinted
> at an HTML-based approach in the earlier thread.
> Why use HTML class attributes instead of another approach?

This looks like html microformats (e.g.

I am not sure why they overload the class attribute instead of using
more sensible html attribute names given any attribute can be used
in css.


I might have skipped something but what would be the goal of those
Is it to allow to generate indices? or more complicated things language
or even reference doc for things like

I rely on skribe syntax to document my project [1][2] and the main pain
point is that editors don't like it much even if looks like
That can be fixed. I generate html, I can also generate indices. The
representation is regular scheme data, I even rely on chez scheme
expander to
generate part of the html [3]. I also have a specific evaluator for
I could not make work (yet) with macros [4].

I find the skribe syntax more powerful than the equivalent racket
language that
is inspired from latex.

[1] skribe source:
[2] html rendering:

At the end of the day, my take on this is that the SRFI process should
keep a
simple approach. Eventually implementations differ in their
documentation habits
so it is not worth perusing an advanced process that will not help