GNU bug report logs -
#15245
Search and replace, but based on text properties (inclulding face properties)
Previous Next
Full log
View this message in rfc822 format
Drew Adams <drew.adams <at> oracle.com> writes:
> Also, when you say "convert" it makes me realize that you asked about
> search and *replace*, not just search. Not sure what you have in mind
> there.
The idea is a quick and dirty to convert a text rendered by eww in to
Org format.
----------------------------------------------------------------
For example, if eww read
<b> bold text </b>
and converted it to
bold text (Imagine a bold face)
I can do a search and replace on bold text property and get
*bold*
which is the Org equivalent for a bold markup.
----------------------------------------------------------------
For example, if eww read
<h2> level 2 headline </h2>
and converted it to
level 2 headline (Imagine a bold face, but with text property :tag h2)
I can do a search and replace on h2 property and end up with
** level 2 headline
which is the Org equivalent for a headline. If it was Creole or Oddmuse
it will be (I think)
== level 2 headline
----------------------------------------------------------------
This is a quick and dirty way of "importing" an HTML document in to
plain markup text. I have a feeling that it can be useful.
This bug report was last modified 11 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.