! This Gema script converts text with embedded anchor elements to ScriptingNews format.
! Author: David A. Mundie, 1999-09-07.
! Use SGML-friendly notation
@set-syntax{>LLL;[|]>}
! Items get marked up
[item]=\n\t\n\t\t$1$l\n\t\t
! For each item, link-list gets reset
item:\A=@set{l;}
! Anchors become link elements
item:[U]=@set{u;$2}@append{l;\n\t\t\
\n\t\t\t$2\n\t\t\t$4\n\t\t\t}$4
! Two newlines end an item
item:\n\n=@terminate
! Emit header and footer
\A=\n\
\n\
\t\n\
\t\tCopyright 1997-1999 UserLand Software, Inc.\n\
\t\t2.0b1\n\
\t\tThu, 17 Jun 1999 16\:28\:20 GMT\n\
\t\tThu, 17 Jun 1999 16\:06\:41 GMT\n\
\t\thttp\://my.userland.com/stories/storyReader\$11\n\
\t\tJust a demo of what a channel might look like when automatically generated by a script.\n\
\t\thttp\://my.channel.com/editorname/\n\
\t\tJust a Demo Channel 2.0b1\n\
\t\thttp\://my.channel.com/editorname/\n\
\t\tJust a Demo Channel\n\
\t\thttp\://my.channel.com/editorname/gifs/tinyChannelImage.gif\n\
\t\tyou\@ynh.org\n\
\t\twebmaster\@ynh.org\n\
\t\tEnglish\n\
\t\t40\n\
\t\t78\n\
\t\tJust a Demo Channel\n\
\t\t\n\
\t\t\t6\n\
\t\t\t7\n\
\t\t\t8\n\
\t\t\t9\n\
\t\t\t10\n\
\t\t\t11\n\
\t\t\t\n\
\t\t\n\
\t\t\tSunday\n\
\t\t\t\n\
\t\t
\Z=\n\t\n