From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Zhao Subject: Re: html to org-mode Date: Sat, 4 Jan 2014 01:22:47 -0500 Message-ID: References: <87ha9kuyyn.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2f4822af9f104ef1f0e0e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzKdG-00030O-7P for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 01:22:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzKdE-0007y5-OP for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 01:22:50 -0500 Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:52946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzKdE-0007y0-GM for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 01:22:48 -0500 Received: by mail-ie0-f169.google.com with SMTP id e14so16962863iej.28 for ; Fri, 03 Jan 2014 22:22:47 -0800 (PST) In-Reply-To: <87ha9kuyyn.fsf@news.tumashu-localhost.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Feng Shu Cc: emacs-orgmode --001a11c2f4822af9f104ef1f0e0e Content-Type: text/plain; charset=ISO-8859-1 Hi John Kitchin, What is org-rss, I couldn't find it. Can you give a link? Thanks On Fri, Jan 3, 2014 at 11:56 PM, Feng Shu wrote: > John Kitchin writes: > > > Hi everyone, > > > > I was playing around with org-rss today, and it is pretty cool. I > > would like to customize the way the subheading bodies look though, > > primarily to unescape some html things like <, to get rid of all > > the html tags, convert to org-mode links, to download > > so they can be displayed, etc... > > > > for example a body of an rss entry looks like: > > > > Philip Herron: Cython Book > > http://redbrain.co.uk/?p=147 > > http://redbrain.co.uk/cython-book/

Hey > > all i thought i should really share that i actually wrote a book on > > Cython. The book has detailed examples and even shows you how you can > > extend native C/C++ applications in python by doing it for Tmux. > href="http://bit.ly/195ahQs">http://bit.ly/195ahQs

> href="http://redbrain.co.uk/wp-content/uploads/2013/12/photo.jpg"> > class="aligncenter size-full wp-image-148" alt="photo" > > src="http://redbrain.co.uk/wp-content/uploads/2013/12/photo.jpg" > > width="640" height="480" />The code can be found: > href="https://github.com/redbrain/cython-book"> > https://github.com/redbrain/cython-book

> > Tue, 10 Dec 2013 14:45:08 +0000 > > > > I would like this simplified to something like: > > Philip Herron: Cython Book > > > > http://redbrain.co.uk/?p=147 > > > > http://redbrain.co.uk/cython-book/ > > Hey all i thought i should really share that i actually wrote a book > > on Cython. The book has detailed examples and even shows you how you > > can extend native C/C++ applications in python by doing it for Tmux. > > http://bit.ly/195ahQs > > > > [[feed-images/photo.jpg]] > > > > The code can be found: https://github.com/redbrain/cython-book > > > > basically, get the html code as close to org as reasonable. i found a > > way to get an html parse tree (libxml-parse-html-region start end), > > but I can't figure out how to convert that to the text I want. > > > > Has anyone done anything like this? > > > > John > > Maybe eww can help you... > > > > > ----------------------------------- > > John Kitchin > > Associate Professor > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > http://kitchingroup.cheme.cmu.edu > > -- > > --001a11c2f4822af9f104ef1f0e0e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi John Kitchin,

What is org-rss, I couldn't fi= nd it. Can you give a link?

Thanks




On Fri, Jan 3, 2014 at 11:56 = PM, Feng Shu <tumashu@gmail.com> wrote:
John= Kitchin <jkitchin@andrew.cmu= .edu> writes:

> Hi everyone,
>
> I was playing around with org-rss today, and it is pretty cool. I
> would like to customize the way the subheading bodies look though,
> primarily to unescape some html things like &lt;, to get rid of al= l
> the html tags, convert <a ..> to org-mode links, to download <= ;img ...>
> so they can be displayed, etc...
>
> for example a body of an rss entry looks like:
>
> <title>Philip Herron: Cython Book</title>
> <guid>http://redbrain.co.uk/?p=3D147</guid>
> <link>http://redbrain.co.uk/cython-book/</link> <description&= gt;<p>Hey
> all i thought i should really share that i actually wrote a book on > Cython. The book has detailed examples and even shows you how you can<= br> > extend native C/C++ applications in python by doing it for Tmux. <a=
> href=3D"http:= //bit.ly/195ahQs">http://bit.ly/195ahQs</a></p> <p><a
> href=3D"http://redbrain.co.uk/wp-content/uploads/20= 13/12/photo.jpg"><img
> class=3D"aligncenter size-full wp-image-148" alt=3D"pho= to"
> src=3D"http://redbrain.co.uk/wp-content/uploads/201= 3/12/photo.jpg"
> width=3D"640" height=3D"480" /></a>The co= de can be found: <a
> href=3D"https://github.com/redbrain/cython-book">https://gith= ub.com/redbrain/cython-book</a></p></description>
> <pubDate>Tue, 10 Dec 2013 14:45:08 +0000</pubDate>
>
> I would like this simplified to something like:
> Philip Herron: Cython Book
>
> http://re= dbrain.co.uk/?p=3D147
>
> http:= //redbrain.co.uk/cython-book/
> Hey all i thought i should really share that i actually wrote a book > on Cython. The book has detailed examples and even shows you how you > can extend native C/C++ applications in python by doing it for Tmux. > http://bit.ly/195a= hQs
>
> [[feed-images/photo.jpg]]
>
> The code can be found: https://github.com/redbrain/cython-book
>
> basically, get the html code as close to org as reasonable. i found a<= br> > way to get an html parse tree (libxml-parse-html-region start end), > but I can't figure out how to convert that to the text I want.
>
> Has anyone done anything like this?
>
> John

Maybe eww can help you...

>
> -----------------------------------
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 > http:/= /kitchingroup.cheme.cmu.edu

--


--001a11c2f4822af9f104ef1f0e0e--