#! /bin/sed -f # Converts a Wikipedia list of reflist entroes " ... " # to HTML format for inclusion in a clickable index. s:[&]:\&:g s:>:\>:g s:<:\<:g s:''\([^']*\)'':\1:g s:["]:\":g s:[']:\':g # Comments at end of entry: s:[&]lt;!--\(.*\)--[&]gt;:\[\]:g # Make the DOI into a link: s:{{doi[|]\([^{}]*\)}}:{{doi|\1}}:g # Convert title links: s: * *\[\([^ ]*\) \(.*\)\] *: \2:g s: *[&]#34; *\[\([^ ]*\) \(.*\)\] *[&]#34;:\"\2\":g s:^\([&].*\)$: