#57627 sgrep: Missing HTML macros

Package:
sgrep
Source:
sgrep
Description:
tool to search a file for structured pattern
Submitter:
Stephane Bortzmeyer
Date:
2005-07-18 03:23:37 UTC
Severity:
wishlist
#57627#5
Date:
2000-02-09 13:26:21 UTC
From:
To:
The default /etc/sgreprc does not contain the HTML macros so the examples
in http://www.cs.helsinki.fi/~jjaakkol/sgrepexamples.html fail.

#57627#10
Date:
2000-02-09 13:51:47 UTC
From:
To:
The default sample.sgreprc does not contain the HTML macros so the examples in
<http://www.cs.helsinki.fi/~jjaakkol/sgrepexamples.html> fail.

This has been reported as Debian bug #57627. See <http://www.debian.org/Bugs/db
/57/57627.html>.

Here is a subset of the announced macros. HTML_HREF is too difficult for me :-)

define(NAMED_ELEMS,`( "<$1>" or ( ("<$1 " or "<$1\t" or "<$1\n")  .. ">")) ..
"</$1>"')
define(NAMED_STAG,`( "<$1>" or ( ("<$1 " or "<$1\t" or "<$1\n")  .. ">"))')

define(HTML_TITLE,"<TITLE>" or ( ("<TITLE " or "<TITLE\t" or "<TITLE\n")  .. ">
") .. ( "</TITLE>" ))

define(HTML_H1,NAMED_ELEMS(H1))

#57627#15
Date:
2001-01-15 18:46:03 UTC
From:
To:
I get no response from the upstream people.  sgrep development seems
to have been suddenly stopped before those macros made it into any
of the source kits.

I have reclassified this as wishlist and will develop html macros someday
when I have time.