Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread davidson
On Mon, 10 May 2021 Emanuel Berg wrote: ...and this somewhat more complex-looking one... "W3C RSS 1.0 News Feed Creation How-To" https://www.w3.org/2001/10/glance/doc/howto Great, but stops on and , Elsewhere in the thread you seem to have moved on from XSLT to more promising options, but

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Curt
On 2021-05-12, Greg Wooledge wrote: > > Going directly to https://interglacial.com/tpj/26/ gives 403. > > Going directly to https://interglacial.com/ works. > >>From there, clicking https://interglacial.com/tpj/ gives 403. > > So, it's *probably* not a referer check. It could be a permissions > s

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Emanuel Berg
Greg Wooledge wrote: > Going directly to https://interglacial.com/tpj/26/ > gives 403. Now it is 403 but the other day I got 404 so it seems the webmaster is working on the situation... -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Emanuel Berg
David Wright wrote: > Here you go Thanks! -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Greg Wooledge
> >>> Having read through the rather old > >>> https://interglacial.com/tpj/26/ it looked to me as though the OP > >>> is halfway there. > >> The Perl Journal? What do you mean? (URL gives a 404) > I checked again just now, and I still get errors from that URL and its > parent directory, but they

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread Jonathan Dowland
On Mon, May 10, 2021 at 03:03:33PM +0200, Emanuel Berg wrote: Andrei POPESCU wrote: let's see, first write HTML, then include it in Markdown, then have the static site generator generate HTML Surely there must be some site generator with RSS support that takes "plain" HTML as input. I don't

Re: generate a rss.xml from a bunch of HTML files

2021-05-12 Thread The Wanderer
On 2021-05-11 at 23:01, David Wright wrote: > On Wed 12 May 2021 at 03:15:38 (+0200), Emanuel Berg wrote: > >> David Wright wrote: >> >>> BTW I downloaded one of the pages [...] just out of interest, the >>> code looked laid out very clearly — quite unlike so many web >>> pages I see. >> >> Wel

Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread Emanuel Berg
David Wright wrote: > BTW I downloaded one of the pages [...] just out of > interest, the code looked laid out very clearly — quite > unlike so many web pages I see. Well, thank you, pretty simple HTML I'd imagine but I guess one can screw up even simple tasks... > Having read through the rather

Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread David Wright
On Wed 12 May 2021 at 03:15:38 (+0200), Emanuel Berg wrote: > David Wright wrote: > > > BTW I downloaded one of the pages [...] just out of > > interest, the code looked laid out very clearly — quite > > unlike so many web pages I see. > > Well, thank you, pretty simple HTML I'd imagine but I gue

Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread David Wright
On Tue 11 May 2021 at 09:08:16 (+0300), Andrei POPESCU wrote: > On Lu, 10 mai 21, 19:23:02, David Wright wrote: > > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote: > > > > > > OK so no XSLT, no yacc for me, I got another idea, can you use > > > the static generators, get the RSS, then

Re: generate a rss.xml from a bunch of HTML files

2021-05-11 Thread Eduardo M KALINOWSKI
On 10/05/2021 19:30, Emanuel Berg wrote: OK so no XSLT, no yacc for me, I got another idea, can you use the static generators, get the RSS, then discard everything else and use the RSS on the regular or real site? The links in the RSS will be pointing to the articles using the file names and p

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Andrei POPESCU
On Lu, 10 mai 21, 19:23:02, David Wright wrote: > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote: > > > > OK so no XSLT, no yacc for me, I got another idea, can you use > > the static generators, get the RSS, then discard everything > > else and use the RSS on the regular or real site?

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
>> I parsed the question as being about whether the resulting >> rss.xml would be compatible with the input data, rather >> than with the rest of the output data generated by the >> static generator. >> >> That is: if you write a set of HTML files completely by >> hand (using no generators at all),

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
The Wanderer wrote: > I parsed the question as being about whether the resulting > rss.xml would be compatible with the input data, rather than > with the rest of the output data generated by the > static generator. > > That is: if you write a set of HTML files completely by hand > (using no gener

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
David Wright wrote: > AFAICT no trees will be destroyed or animals be harmed when > you throw away any output that is generated in excess of > what you want. Haha :) -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
After having limited success with XSLT after a lot of work, and after failing doing a grammar that would add two ints, I don't feel like doing all HTML to RSS :D LOL - have a look https://dataswamp.org/~incal/rss/parser/add.grm What's wrong? Looks right to me! That's SML BTW, maybe it's the ver

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread The Wanderer
On 2021-05-10 at 20:23, David Wright wrote: > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote: > >> After having limited success with XSLT after a lot of work, and >> after failing doing a grammar that would add two ints, I don't feel >> like doing all HTML to RSS :D LOL - have a look

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread David Wright
On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote: > After having limited success with XSLT after a lot of work, > and after failing doing a grammar that would add two ints, > I don't feel like doing all HTML to RSS :D LOL - have a look > > https://dataswamp.org/~incal/rss/parser/add.gr

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
>> ...and this somewhat more complex-looking one... >> >> "W3C RSS 1.0 News Feed Creation How-To" >> https://www.w3.org/2001/10/glance/doc/howto > > Great, but stops on and , these are > HTML5 tags: > > http://html5doctor.com/the-figure-figcaption-elements/ > > so either we must change the XSL

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
davidson wrote: > ...and this somewhat more complex-looking one... > > "W3C RSS 1.0 News Feed Creation How-To" > https://www.w3.org/2001/10/glance/doc/howto Great, but stops on and , these are HTML5 tags: http://html5doctor.com/the-figure-figcaption-elements/ so either we must change the X

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
Dan Ritter wrote: > The static refers to this: the pile of data is processed > when you assemble it, not when a viewer asks for it Well, of course not... -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
Andrei POPESCU wrote: >> let's see, first write HTML, then include it in Markdown, >> then have the static site generator generate HTML > > Surely there must be some site generator with RSS support > that takes "plain" HTML as input. I don't know, if so one would like to know what tool they use t

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Emanuel Berg
Andrei POPESCU wrote: > Except that an HTML to RSS converter is is basically useless > by itself. Well, it is (would be) useful in my setting which thanks heaven includes other tools and programs :) -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Dan Ritter
Darac Marjal wrote: > > On 10/05/2021 07:06, Andrei POPESCU wrote: > > On Lu, 10 mai 21, 01:44:32, Emanuel Berg wrote: > >> Charles Curley wrote: > >> > >>> Right. However, as I found out asking elsewhere, you can > >>> include HTML in Markdown. > >> Hehehe, let's see, first write HTML, then incl

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Dan Ritter
The Wanderer wrote: > On 2021-05-09 at 15:36, Dan Ritter wrote: > > > That is what a static site generator is. > > > > It's a command-line tool that takes a directory full of content > > files, a set of templates, a CSS file or 3, and spits out a web site > > ready to be served by your favorite

Re: generate a rss.xml from a bunch of HTML files

2021-05-10 Thread Darac Marjal
On 10/05/2021 07:06, Andrei POPESCU wrote: > On Lu, 10 mai 21, 01:44:32, Emanuel Berg wrote: >> Charles Curley wrote: >> >>> Right. However, as I found out asking elsewhere, you can >>> include HTML in Markdown. >> Hehehe, let's see, first write HTML, then include it in >> Markdown, then have the

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Andrei POPESCU
On Lu, 10 mai 21, 01:44:32, Emanuel Berg wrote: > Charles Curley wrote: > > > Right. However, as I found out asking elsewhere, you can > > include HTML in Markdown. > > Hehehe, let's see, first write HTML, then include it in > Markdown, then have the static site generator generate > HTML... brill

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Andrei POPESCU
On Du, 09 mai 21, 20:15:38, Emanuel Berg wrote: > Dan Ritter wrote: > > ... no one did it? :O > >>> > >>> In FLOSS this usually means nobody else needed it. > >> > >> Impossible in this, basic case. The static generator guys who > >> also did the RSS as mentioned already needed it, and did i

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
davidson wrote: >> How can I generate a rss.xml from a bunch of HTML files? >> >> Tho one would think this to be quite a simple tool of >> parsing the HTML and outputting the RSS XML dialect, >> I can't find any tool... > > XSLT is a language that is s

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
Charles Curley wrote: > Right. However, as I found out asking elsewhere, you can > include HTML in Markdown. Hehehe, let's see, first write HTML, then include it in Markdown, then have the static site generator generate HTML... brilliant :) -- underground experts united https://dataswamp.org/~i

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
The Wanderer wrote: > One possible difference is that the ones I've looked at > (admittedly nowhere near all of them) seem to expect the > input to be in some other format, to be translated into HTML > etc., rather than letting you write the HTML etc. > directly and doing [whatever other things] w

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Charles Curley
On Sun, 09 May 2021 17:38:06 -0400 The Wanderer wrote: > One possible difference is that the ones I've looked at (admittedly > nowhere near all of them) seem to expect the input to be in some other > format, to be translated into HTML etc., rather than letting you write > the HTML etc. directly a

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
Dan Ritter wrote: ... no one did it? :O >>> >>> In FLOSS this usually means nobody else needed it. >> >> Impossible in this, basic case. The static generator guys who >> also did the RSS as mentioned already needed it, and did it, >> only not modular to fit this purpose (IIUC from reading he

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread The Wanderer
On 2021-05-09 at 15:36, Dan Ritter wrote: > Emanuel Berg wrote: >>> It sounds like you've written about a quarter of a static site >>> generator already. >> >> Heh, no, what do you mean? >> >>> You could continue down that path, or just install Pelican and be >>> happy in about a day. >> >> I

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread davidson
On Sun, 9 May 2021 Emanuel Berg wrote: How can I generate a rss.xml from a bunch of HTML files? Tho one would think this to be quite a simple tool of parsing the HTML and outputting the RSS XML dialect, I can't find any tool... XSLT is a language that is sort of made for describing this

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
> I have a blog, just a bunch of HTML5/CSS files, absolutely > nothing advanced, and I'd like an RSS file which is > generated from the HTML files (not the CSS, so even simpler > actually) so I for example can submit it [to Gwene] and read > it with Gnus Speaking of Emacs (Emacs Gnus), in GNU ELPA

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Dan Ritter
Emanuel Berg wrote: > > It sounds like you've written about a quarter of a static site > > generator already. > > Heh, no, what do you mean? > > > You could continue down that path, or just install Pelican > > and be happy in about a day. > > I would if it would do what I want namely get an RS

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
Andrei POPESCU wrote: >> ... no one did it? :O > > In FLOSS this usually means nobody else needed it. Impossible in this, basic case. The static generator guys who also did the RSS as mentioned already needed it, and did it, only not modular to fit this purpose (IIUC from reading here). > Why do

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Dan Ritter
Emanuel Berg wrote: > Andrei POPESCU wrote: > > >> ... no one did it? :O > > > > In FLOSS this usually means nobody else needed it. > > Impossible in this, basic case. The static generator guys who > also did the RSS as mentioned already needed it, and did it, > only not modular to fit this purp

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
Dan Ritter wrote: > hugo, jekyll, lektor, nanoc, staticsite, pelican ... unless they can be told by way of options perhaps to do just the HTML-to-RSS part? -- underground experts united https://dataswamp.org/~incal

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
Dan Ritter wrote: >> I don't know why, but it seems too involved anyway, there >> isn't a webpile2rss tool like this or something: >> >> $ webpile2rss *.html > rss.xml # sweet > > There isn't one packaged in Debian, but there are libraries > packaged which would allow you to build one. ... no

generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Emanuel Berg
How can I generate a rss.xml from a bunch of HTML files? Tho one would think this to be quite a simple tool of parsing the HTML and outputting the RSS XML dialect, I can't find any tool... tt-rss maybe, but when I install it it tries to setup a MySQL database which fails. I don't kno

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Andrei POPESCU
On Du, 09 mai 21, 14:19:44, Emanuel Berg wrote: > Dan Ritter wrote: > > >> I don't know why, but it seems too involved anyway, there > >> isn't a webpile2rss tool like this or something: > >> > >> $ webpile2rss *.html > rss.xml # sweet > > > > There isn't one packaged in Debian, but there are l

Re: generate a rss.xml from a bunch of HTML files

2021-05-09 Thread Dan Ritter
Emanuel Berg wrote: > How can I generate a rss.xml from a bunch of HTML files? > > Tho one would think this to be quite a simple tool of parsing > the HTML and outputting the RSS XML dialect, I can't find any > tool... > > tt-rss maybe, but when I install it it tries t