source: scrabutility/www/index.php @ 100

Revision 100, 1.9 KB checked in by csnyder, 10 years ago (diff)

Updated for www.scrabutility.com

Line 
1<?$title="Scrabutility"; $noselector=TRUE;?>
2<?include('header.html')?>
3
4<h3>
5Tournament Word List (TWL06)<br><br>
6  <a href="2_TWL06.php">Two Letter Words</a><br>&nbsp;<br>
7  <a href="3_TWL06.php">Three Letter Words</a><br>&nbsp;<br>
8  <a href="4_TWL06.php">Four Letter Words</a><br>&nbsp;<br>
9  <a href="lookup_TWL06.php">Lookup Tool</a><br>&nbsp;
10</h3>
11
12<h3>
13Official Scrabble Words + Official Scrabble Players Dictionary (SOWPODS)<br><br>
14  <a href="2_SOWPODS.php">Two Letter Words</a><br>&nbsp;<br>
15  <a href="3_SOWPODS.php">Three Letter Words</a><br>&nbsp;<br>
16  <a href="4_SOWPODS.php">Four Letter Words</a><br>&nbsp;<br>
17  <a href="lookup_SOWPODS.php">Lookup Tool</a><br>&nbsp;
18</h3>
19
20<p>The word lists compiled here are based on the words lists available at <a href="http://www.isc.ro/en/commands/lists.html" title="http://www.isc.ro/en/commands/lists.html">http://www.isc.ro/en/commands/lists.html</a>. <br></p>
21<p>To create the TWL06 lists, for example, the complete list was unzipped, and then the following commands were used to extract the two, three, and four letter words:<br></p>
22<pre>grep -E '^.{2}\W$' TWL06.txt &gt; 2_TWL06.php<br>grep -E '^.{3}\W$' TWL06.txt &gt; 3_TWL06.php<br>grep -E '^.{4}\W$' TWL06.txt &gt; 4_TWL06.php<br></pre>
23<p>The php files were opened using a text editor that provides search-and-replace using regular expressions. The following replacements were made in each file:<br></p>
24<pre>Find: (\w)<br>Replace with: &lt;span class=&quot;letter $1&quot;&gt;$1&lt;/span&gt;<br></pre>
25<pre>Find: \n<br>Replace with: &lt;/div&gt;\n&lt;div class=&quot;word&quot;&gt;<br></pre>
26<p>The resulting markup was cleaned up, and header and footer includes were added to each file.</p>
27<p>You can view the <a href="http://svn.chxo.com/scrabutility/">source code</a>.<br></p>
28<blockquote>
29  <address><a href="http://chxo.com/">Chris Snyder</a><br>
30  New York City<br>
31  December 25, 2007<br></address>
32</blockquote>
33<p>&nbsp;</p>
34
35<?include('footer.html')?>
Note: See TracBrowser for help on using the repository browser.