From: haj@posteo.de (Harald Jörg)
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Reading Atom feeds with Gnus
Date: Wed, 21 Oct 2020 16:31:47 +0200 [thread overview]
Message-ID: <871rhr7ir0.fsf@hajtower> (raw)
In-Reply-To: <874kmnwz3e.fsf@skimble.plus.com> (Sharon Kimble's message of "Wed, 21 Oct 2020 13:19:33 +0100")
Hello Sharon,
you write:
> haj@posteo.de (Harald Jörg) writes:
>
>> Hello all,
>>
>> I'm moving (back) to Gnus as my mail+news+feed client, after having
>> tried another program for some time without being really happy with it.
>> During that time, some of the feeds I like to read moved from RSS to
>> Atom-only - and I haven't figured out how to read those with Gnus.
>> [...]
>> So... is there a recommended way to read Atom feeds with Gnus?
>
> Hi Haj.
>
> I do it everyday and it seems to be working out okay. I'll share with
> you what I use.
>
> And this comes from the gnu section of my config.
>
> (require 'mm-url)
> (defadvice mm-url-insert (after DE-convert-atom-to-rss () )
> "Converts atom to RSS by calling xsltproc."
> (when (re-search-forward "xmlns=\"http://www.w3.org/.*/Atom\""
> nil t)
> (goto-char (point-min))
> (message "Converting Atom to RSS... ")
> (call-process-region (point-min) (point-max)
> "xsltproc"
> t t nil
> (expand-file-name "/home/boudiccas/.emacs.d/atom2rss.xsl") "-")
> (goto-char (point-min))
> (message "Converting Atom to RSS... done")))
Thanks!
I recall that I've read something about an on-the-fly conversion, but I
lost the reference. Chances are that something like this is what it was
about.
> I hope these help you. I've had the atom2rss file for some time (its
> dated to 2018-06-25) and I can't remember where I got it from, so if
> anyone knows I'd love to know.
That would probably be https://atom.geekhood.net/ (found in the XSL file).
I guess I could use this. I usually have xsltproc lying around on the
systems where I read news. I can probably live without the optional PHP
stuff (which I don't have). It has its hacky parts (e.g. assuming that
Atom always gets assigned the "empty" namespace), but should work quite
well in practice.
Hm. I wonder... since Emacs is (per default) built with libxml2, maybe
this can be leveraged to do this directly in Emacs... there's
libxml-parse-xml-region... maybe I should look at that.
Again, thanks for the hints!
--
Cheers,
haj
next prev parent reply other threads:[~2020-10-21 14:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 23:40 Reading Atom feeds with Gnus Harald Jörg
2020-10-20 23:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-21 14:04 ` Harald Jörg
2020-10-21 2:03 ` Tim Landscheidt
2020-10-21 2:37 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-21 12:19 ` Sharon Kimble
2020-10-21 14:31 ` Harald Jörg [this message]
2020-10-21 16:17 ` Stefan Monnier
2020-10-21 16:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-21 19:08 ` Stefan Monnier
2020-10-21 19:37 ` Jude DaShiell
2020-10-27 0:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871rhr7ir0.fsf@hajtower \
--to=haj@posteo.de \
--cc=boudiccas@skimble.plus.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).