<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Generating Hyperlinks Automatically?</title>
      <link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically/</link>
      <description>Comments on Ask MetaFilter post Generating Hyperlinks Automatically?</description>
	  	  <pubDate>Fri, 04 May 2007 07:43:50 -0800</pubDate>
      <lastBuildDate>Fri, 04 May 2007 07:43:50 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Generating Hyperlinks Automatically?</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically</link>	
  	<description>I would like to automatically generate hypertext links from a list of text. Ideally this would mean pasting a series of comma separated words into some online tool and having the system turn each word into a relevant google/wikipedia link... Does anyone know any sites/tools that will do this? &lt;br /&gt;&lt;br /&gt; Just for anyone who is interested, here&apos;s the text I want to auto-link:&lt;br&gt;
&lt;br&gt;
Zeus, Zam, Zababa, Yu-Huang-Shang-Ti, Yeng-Wang-Yeh, Yara Ma Yha Who, Yahweh, Ya Mughnee, Ya `Aallah, Xochiquetzal, Xipe Totec, Xbalanque, Winabozho, Warohunugamwanehaora, Waramurungundi, Wakahiru-Me, Wadjet, Voltumna, Vishnu, Venus, Uttu, Urcaguary, Ulaulekeahi, Uke-Mochi-No-Kami, Ukapirmas, Turiacus, Tsukuyomi, Torngasoak, Tonatiuh, Tlahuizcalpantecuhtli, Thoth, Thor, Tharapita, Tekkeitserktock, T&#257;whiri-matea, Take-Mikazuchi, Sw&#257;ikstiks, Spandarmet, Sobek, Skadi, Shiva, Shina-Tsu-Hiko, Shamash, Shai&apos;-ha-Qawm, Seaxn&#xe9;at, Saraswati, Saosyant, Runesocesius, Roonikka, Rimmon, rDo-rje-rnal-hbyor-ma, Raluvhimba, Quirinus, Qaynan, Ptah, Prajnaparamita, Potrimpos, Poshaiyankayo, Persephone, Pellon Pekko, P&apos;an-Chin-Lien, Osiris, Odin, Occupirn, Nzambi, Ninhursag, Nevinbimbaau, Nephthys, Nanghaithya, Nana Buluku, Nai-No-Kami, Mudungkala, Morrigan, Morpheus, Morgan, LeFay, Moaalii, Mar&apos;rallang, Marduk, Mao, Mantis, Manisilat, Mama Pacha, Maahes, Lonomakua, Leviathan, Lemminkainen, Lakshmi, Laima, Kunapipi, Kukalikimoku, Ku, Krishna, Koko, Kiskil-lilla, Kishar, Khnum, Khahdoma, Kapohoikahiola, Kaluannuunohonionio, Joukahainen, Jengu, Jehovah, Jahwe, Izanami, Isis, Inanna, Igaluk, Huruing Wuhti, Huitzilopochtli, Horus, Hine Raumati, Hiiakawawahilani, Hendursanga, Heimdall, Hecate, Hastshehogan, Hanuman, Hades, Gudratrigakwitl, Gebeleizis, Garuda, Ganesha, Gandarewa, Frigga, Estasanatlehi, Ereshkigal, Epona, Dolichenus, Dionysos, Dhakhan, Demeter, D&#275;iwas, Dattatreya, Coyolxauhqui, Chimata-No-Kami, Ch&apos;eng-Huang, Cernunnos, Carmenta, Caillech, Bunbulama, Branwyn, Birrahgnooloo, Bikeh Hozho, Berekyndai, Balac, Bah&#xe1;&apos;u&apos;ll&#xe1;h, Baal-Qarnain, Athena, Asha Vahishta, Arnarquagsag, Archons, Aramurungundju, Apollo, Apocatequil, Aphrodite, Antero Vipunen, Anitun Tabu, Angwusnasomtaka, Amaunet, Amaterasu, Amaethon, Aji-Suki-Taka-Hi-Kone, Ahmeto Lela Okya, Agadjimbiri, Adnoartina</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.61939</guid>
  	<pubDate>Fri, 04 May 2007 07:09:08 -0800</pubDate>
  	<dc:creator>0bvious</dc:creator>
	
	<category>links</category>
	
	<category>internet</category>
	
	<category>hypertext</category>
	
	<category>websites</category>
	
	<category>automatic</category>
	
	<category>autolinks</category>
	
	<category>text</category>
	
	<category>list</category>
	
	<category>fun</category>
	
	<category>useful</category>
	
	<category>tool</category>
	
	<category>google</category>
	
	<category>wikipedia</category>
	
	<category>gods</category>
	
</item>
<item>
  	<title>By: popechunk</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932328</link>	
  	<description>I wrote &lt;a href=&quot;http://nansi.org/askme/example.pl&quot;&gt;this&lt;/a&gt;, which yielded &lt;a href=&quot;http://nansi.org/askme/output.html&quot;&gt;this&lt;/a&gt;, as an example of how you might do it in perl. This is a very rough, 2-minute script. But something like that could work. &lt;br&gt;
&lt;br&gt;
&lt;small&gt;I&apos;m not in the mood to make this print on metafilter, so you&apos;ll have to click the links. &lt;/small&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932328</guid>
  	<pubDate>Fri, 04 May 2007 07:43:50 -0800</pubDate>
  	<dc:creator>popechunk</dc:creator>
</item>
<item>
  	<title>By: desjardins</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932331</link>	
  	<description>Open up your CSV in Excel. (Or Google spreadsheets, if you don&apos;t have Excel.) &lt;br&gt;
&lt;br&gt;
Insert the following formula:&lt;br&gt;
= &amp;quot;http://www.google.com/search?q=&amp;quot; &amp;amp; A1&lt;br&gt;
&lt;br&gt;
Which produces:&lt;br&gt;
&lt;a href=&quot;http://www.google.com/search?q=zeus&quot;&gt;http://www.google.com/search?q=zeus&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932331</guid>
  	<pubDate>Fri, 04 May 2007 07:46:06 -0800</pubDate>
  	<dc:creator>desjardins</dc:creator>
</item>
<item>
  	<title>By: Doofus Magoo</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932332</link>	
  	<description>A couple of lines of Perl would do the trick. Just split the list (on comma-space) into an array, then loop through the array and construct a new output string based on the simple URL format of both Wikipedia and Google. E.g.:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
// Replace this with your full list.&lt;br&gt;
my $sInput = &amp;quot;Zeus, Zam, Zababa&amp;quot;;&lt;br&gt;
my $sOutputGoogle = &apos;;&lt;br&gt;
my $sOutputWikipedia = &apos;;&lt;br&gt;
&lt;br&gt;
my @input = split (&apos;, &apos;, $sInput);&lt;br&gt;
foreach my $s (@input)&lt;br&gt;
{&lt;br&gt;
if ($sOutputGoogle ne &apos;)&lt;br&gt;
{&lt;br&gt;
$sOutputGoogle .= &apos;, &apos;;&lt;br&gt;
$sOutputWikipedia .= &apos;, &apos;;&lt;br&gt;
}&lt;br&gt;
// Wikipedia URL is http://en.wikipedia.org/wiki/foo&lt;br&gt;
// Google URL is http://www.google.com/search?source=ig&amp;amp;q=foo&lt;br&gt;
$sOutputGoogle .= &amp;quot;&amp;lt;a href=&apos;http://www.google.com/search?source=ig&amp;amp;q=$s&apos;&amp;gt;$s&amp;quot;;&lt;br&gt;
$sOutputWikipedia .= &amp;quot;&amp;lt;A HREF=&apos;http://en.wikipedia.org/wiki/$s&apos;&amp;gt;$s&amp;quot;;&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
// Replace these filenames.&lt;br&gt;
open GOOGLEOUT, &apos;&amp;gt;C:\google.htm&apos;;&lt;br&gt;
print GOOGLEOUT $sOutputGoogle . &amp;quot;\n&amp;quot;;&lt;br&gt;
close GOOGLEOUT;&lt;br&gt;
&lt;br&gt;
open WIKIOUT, &apos;&amp;gt;C:\wikipedia.htm&apos;;&lt;br&gt;
print WIKIOUT $sOutputWikipedia . &amp;quot;\n&amp;quot;;&lt;br&gt;
close WIKIOUT;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Note that the Wikipedia versions link in many cases to the &amp;quot;&lt;i&gt;foo&lt;/i&gt; can not be found; would you like to create it?&amp;quot; page.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932332</guid>
  	<pubDate>Fri, 04 May 2007 07:46:55 -0800</pubDate>
  	<dc:creator>Doofus Magoo</dc:creator>
</item>
<item>
  	<title>By: popechunk</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932333</link>	
  	<description>Oh, and on unix-alike machines, you run it like this:&lt;br&gt;
&lt;tt&gt;&lt;br&gt;
/path/to/example.pl &amp;lt; input_file &amp;gt; output.html&lt;br&gt;
&lt;/tt&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932333</guid>
  	<pubDate>Fri, 04 May 2007 07:47:28 -0800</pubDate>
  	<dc:creator>popechunk</dc:creator>
</item>
<item>
  	<title>By: cerebus19</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932337</link>	
  	<description>I did it in two lines with sed and got &lt;a href=&quot;http://www.mediafire.com/?dd2n2nhnz2h&quot;&gt;this&lt;/a&gt; (for Wikipedia, of course).  I accidentally deleted the script, but could regenerate it in a minute if you want it.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932337</guid>
  	<pubDate>Fri, 04 May 2007 07:50:29 -0800</pubDate>
  	<dc:creator>cerebus19</dc:creator>
</item>
<item>
  	<title>By: divabat</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#932343</link>	
  	<description>Are those names of gods? Because &amp;quot;Ya `Aallah&amp;quot; could just be Allah.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-932343</guid>
  	<pubDate>Fri, 04 May 2007 07:56:30 -0800</pubDate>
  	<dc:creator>divabat</dc:creator>
</item>
<item>
  	<title>By: xulu</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#933157</link>	
  	<description>It would take some time, but I&apos;d highly recommend learning the basics of &lt;a href=&quot;http://www.evolt.org/article/rating/20/22700/&quot;&gt;regular expressions&lt;/a&gt; for this kind of thing. You don&apos;t have to learn a full blown programming language like Perl; just find a text editor or HTML editor with support for regular expressions. Two freeware editors to consider are NoteTab Light and PSPad.&lt;br&gt;
&lt;br&gt;
For any kind of repetitive text editing or complex search and replace, regular expressions can&apos;t be beat.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-933157</guid>
  	<pubDate>Fri, 04 May 2007 23:48:29 -0800</pubDate>
  	<dc:creator>xulu</dc:creator>
</item>
<item>
  	<title>By: 0bvious</title>
  	<link>http://ask.metafilter.com/61939/Generating-Hyperlinks-Automatically#933257</link>	
  	<description>thanks for the help!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.61939-933257</guid>
  	<pubDate>Sat, 05 May 2007 05:44:44 -0800</pubDate>
  	<dc:creator>0bvious</dc:creator>
</item>

    </channel>
</rss>
