80legs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source :gemcutter
2
+
3
+ gem 'rake', '0.8.7'
4
+
5
+ group :development do
6
+ gem "shoulda", ">= 0"
7
+ gem "bundler", "~> 1.0.0"
8
+ gem "jeweler", "~> 1.6.4"
9
+ gem "rcov", ">= 0"
10
+ end
@@ -0,0 +1,21 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.6.4)
6
+ bundler (~> 1.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.8.7)
10
+ rcov (0.9.9)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.6.4)
19
+ rake (= 0.8.7)
20
+ rcov
21
+ shoulda
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Jan Szumiec
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,28 @@
1
+ = 80legs
2
+
3
+ Usage:
4
+
5
+ require 'eighty_legs'
6
+ f = EightyLegs::EightyFormat.new("sample_file.80")
7
+ f.each do |entry|
8
+ puts entry.url
9
+ puts entry.data
10
+ end
11
+
12
+ Note: If an IO is passed in instead of a file name, then that instance of IO needs to be managed (closed) manually.
13
+
14
+ == Contributing to 80legs
15
+
16
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
17
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
18
+ * Fork the project
19
+ * Start a feature/bugfix branch
20
+ * Commit and push until you are happy with your contribution
21
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
22
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
23
+
24
+ == Copyright
25
+
26
+ Copyright (c) 2011 Jan Szumiec. See LICENSE.txt for
27
+ further details.
28
+
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "80legs"
18
+ gem.homepage = "http://github.com/jasiek/80legs"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{80legs' .80 file format reader}
21
+ gem.description = %Q{Provides a class for reading .80 files as delivered by 80legs.}
22
+ gem.email = "jan.szumiec@gmail.com"
23
+ gem.authors = ["Jan Szumiec"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "80legs #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,6 @@
1
+ module EightyLegs
2
+ autoload :EightyFormat, 'eighty_legs/eighty_format'
3
+ autoload :Entry, 'eighty_legs/entry'
4
+
5
+ class EightyError < StandardError; end
6
+ end
@@ -0,0 +1,34 @@
1
+ module EightyLegs
2
+ class EightyFormat
3
+ def initialize(filename_or_io)
4
+ @io = if filename_or_io.is_a?(String)
5
+ File.open(filename_or_io)
6
+ elsif filename_or_io.is_a?(IO)
7
+ filename_or_io
8
+ else
9
+ raise TypeError.new(filename_or_io.class)
10
+ end
11
+ check_for_classid_and_version()
12
+ end
13
+
14
+ def each(&blk)
15
+ while not @io.eof?
16
+ url_size = @io.read(4).unpack("i").first
17
+ url = @io.read(url_size)
18
+ data_size = @io.read(4).unpack("i").first
19
+ data = @io.read(data_size)
20
+ blk.call(Entry.new(url, data))
21
+ end
22
+ @io.seek(8, IO::SEEK_SET)
23
+ end
24
+
25
+ private
26
+ def check_for_classid_and_version
27
+ @io.rewind
28
+ classid, version = @io.read(8).unpack("ii")
29
+ raise FileFormatError unless [classid, version] == [218217067, 1]
30
+ end
31
+
32
+ class FileFormatError < EightyError; end
33
+ end
34
+ end
@@ -0,0 +1,3 @@
1
+ module EightyLegs
2
+ Entry = Struct.new(:url, :data)
3
+ end
@@ -0,0 +1,19 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'eighty_legs'
16
+
17
+ class Test::Unit::TestCase
18
+ include EightyLegs
19
+ end
@@ -0,0 +1,553 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>Wikipedia, the free encyclopedia</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="Content-Style-Type" content="text/css" />
7
+ <meta name="generator" content="MediaWiki 1.17wmf1" />
8
+ <link rel="apple-touch-icon" href="http://en.wikipedia.org/apple-touch-icon.png" />
9
+ <link rel="shortcut icon" href="/favicon.ico" />
10
+ <link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (en)" />
11
+ <link rel="EditURI" type="application/rsd+xml" href="http://en.wikipedia.org/w/api.php?action=rsd" />
12
+ <link rel="copyright" href="http://creativecommons.org/licenses/by-sa/3.0/" />
13
+ <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" />
14
+ <link rel="stylesheet" href="http://bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=mediawiki%21legacy%21commonPrint%7Cmediawiki%21legacy%21shared%7Cskins%21vector&amp;only=styles&amp;skin=vector" type="text/css" media="all" />
15
+ <meta name="ResourceLoaderDynamicStyles" content="" /><link rel="stylesheet" href="http://bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=styles&amp;skin=vector" type="text/css" media="all" />
16
+ <style type="text/css" media="all">a.new,#quickbar a.new{color:#ba0000}
17
+
18
+ /* cache key: enwiki:resourceloader:filter:minify-css:5:f2a9127573a22335c2a9102b208c73e7 */</style>
19
+ <script src="http://bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector" type="text/javascript"></script>
20
+ <script type="text/javascript">if ( window.mediaWiki ) {
21
+ mediaWiki.config.set({"wgCanonicalNamespace": "", "wgCanonicalSpecialPageName": false, "wgNamespaceNumber": 0, "wgPageName": "Main_Page", "wgTitle": "Main Page", "wgAction": "view", "wgArticleId": 15580374, "wgIsArticle": true, "wgUserName": null, "wgUserGroups": ["*"], "wgCurRevisionId": 433914749, "wgCategories": [], "wgBreakFrames": false, "wgRestrictionEdit": ["sysop"], "wgRestrictionMove": ["sysop"], "wgSearchNamespaces": [0], "wgFlaggedRevsParams": {"tags": {"status": {"levels": 1, "quality": 2, "pristine": 3}}}, "wgStableRevisionId": null, "wgRevContents": {"error": "Unable to get content.", "waiting": "Waiting for content"}, "wgWikimediaMobileUrl": "http://en.m.wikipedia.org/wiki", "wgVectorEnabledModules": {"collapsiblenav": true, "collapsibletabs": true, "editwarning": true, "expandablesearch": false, "footercleanup": false, "sectioneditlinks": false, "simplesearch": true, "experiments": true}, "wgWikiEditorEnabledModules": {"toolbar": true, "dialogs": true, "templateEditor": false, "templates": false, "addMediaWizard": false, "preview": false, "previewDialog": false, "publish": false, "toc": false}, "wgTrackingToken": "616b9bb6176c0f09f352fd981d76d8df", "wikilove-recipient": "", "wikilove-edittoken": "+\\", "wikilove-anon": 0, "Geo": {"city": "", "country": ""}, "wgNoticeProject": "wikipedia"});
22
+ }
23
+ </script>
24
+
25
+ <script type="text/javascript">wgNamespaceNumber=0;wgAction="view";wgPageName="Main_Page";wgMainPageTitle="Main Page";wgWikimediaMobileUrl="http:\/\/en.m.wikipedia.org\/wiki";</script><script src="http://bits.wikimedia.org/w/extensions-1.17/WikimediaMobile/MobileRedirect.js?9.2" type="text/javascript"></script><!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.17/vector/csshover.min.htc")}</style><![endif]--></head>
26
+ <body class="mediawiki ltr ns-0 ns-subject page-Main_Page skin-vector">
27
+ <div id="mw-page-base" class="noprint"></div>
28
+ <div id="mw-head-base" class="noprint"></div>
29
+ <!-- content -->
30
+ <div id="content">
31
+ <a id="top"></a>
32
+ <div id="mw-js-message" style="display:none;"></div>
33
+ <!-- sitenotice -->
34
+ <div id="siteNotice"><!-- centralNotice loads here --><script type="text/javascript">
35
+ /* <![CDATA[ */
36
+ document.writeln("\x3cdiv id=\"localNotice\"\x3e\x3cp\x3e\x3c/p\x3e\n\x3c/div\x3e");
37
+ /* ]]> */
38
+ </script></div>
39
+ <!-- /sitenotice -->
40
+ <!-- firstHeading -->
41
+ <h1 id="firstHeading" class="firstHeading">Main Page</h1>
42
+ <!-- /firstHeading -->
43
+ <!-- bodyContent -->
44
+ <div id="bodyContent">
45
+ <!-- tagline -->
46
+ <div id="siteSub">From Wikipedia, the free encyclopedia</div>
47
+ <!-- /tagline -->
48
+ <!-- subtitle -->
49
+ <div id="contentSub"></div>
50
+ <!-- /subtitle -->
51
+ <!-- jumpto -->
52
+ <div id="jump-to-nav">
53
+ Jump to: <a href="#mw-head">navigation</a>,
54
+ <a href="#p-search">search</a>
55
+ </div>
56
+ <!-- /jumpto -->
57
+ <!-- bodytext -->
58
+ <table id="mp-topbanner" style="width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;">
59
+ <tr>
60
+ <td style="width:61%; color:#000;">
61
+ <table style="width:280px; border:none; background:none;">
62
+ <tr>
63
+ <td style="width:280px; text-align:center; white-space:nowrap; color:#000;">
64
+ <div style="font-size:162%; border:none; margin:0; padding:.1em; color:#000;">Welcome to <a href="/wiki/Wikipedia" title="Wikipedia">Wikipedia</a>,</div>
65
+ <div style="top:+0.2em; font-size:95%;">the <a href="/wiki/Free_content" title="Free content">free</a> <a href="/wiki/Encyclopedia" title="Encyclopedia">encyclopedia</a> that <a href="/wiki/Wikipedia:Introduction" title="Wikipedia:Introduction">anyone&#160;can&#160;edit</a>.</div>
66
+ <div id="articlecount" style="font-size:85%;"><a href="/wiki/Special:Statistics" title="Special:Statistics">3,676,724</a> articles in <a href="/wiki/English_language" title="English language">English</a></div>
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ <td style="width:13%; font-size:95%;">
72
+ <ul>
73
+ <li><a href="/wiki/Portal:Arts" title="Portal:Arts">Arts</a></li>
74
+ <li><a href="/wiki/Portal:Biography" title="Portal:Biography">Biography</a></li>
75
+ <li><a href="/wiki/Portal:Geography" title="Portal:Geography">Geography</a></li>
76
+ </ul>
77
+ </td>
78
+ <td style="width:13%; font-size:95%;">
79
+ <ul>
80
+ <li><a href="/wiki/Portal:History" title="Portal:History">History</a></li>
81
+ <li><a href="/wiki/Portal:Mathematics" title="Portal:Mathematics">Mathematics</a></li>
82
+ <li><a href="/wiki/Portal:Science" title="Portal:Science">Science</a></li>
83
+ </ul>
84
+ </td>
85
+ <td style="width:13%; font-size:95%;">
86
+ <ul>
87
+ <li><a href="/wiki/Portal:Society" title="Portal:Society">Society</a></li>
88
+ <li><a href="/wiki/Portal:Technology" title="Portal:Technology">Technology</a></li>
89
+ <li><b><a href="/wiki/Portal:Contents/Portals" title="Portal:Contents/Portals">All&#160;portals</a></b></li>
90
+ </ul>
91
+ </td>
92
+ </tr>
93
+ </table>
94
+ <table id="mp-upper" style="width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;">
95
+ <tr>
96
+ <td class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;">
97
+ <table id="mp-left" style="vertical-align:top; background:#f5fffa;">
98
+ <tr>
99
+ <th style="padding:2px;">
100
+ <h2 id="mp-tfa-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="Today.27s_featured_article">Today's featured article</span></h2>
101
+ </th>
102
+ </tr>
103
+ <tr>
104
+ <td style="color:#000;">
105
+ <div id="mp-tfa" style="padding:2px 5px">
106
+ <div style="float:left;margin:0.5em 0.9em 0.4em 0;"><a href="/wiki/File:Riverparrett.jpg" class="image" title="River Parrett near Burrowbridge"><img alt="River Parrett near Burrowbridge" src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Riverparrett.jpg/100px-Riverparrett.jpg" width="100" height="67" /></a></div>
107
+ <p>The <b><a href="/wiki/River_Parrett" title="River Parrett">River Parrett</a></b> flows through the counties of <a href="/wiki/Dorset" title="Dorset">Dorset</a> and <a href="/wiki/Somerset" title="Somerset">Somerset</a> in <a href="/wiki/South_West_England" title="South West England">South West England</a>, from its <a href="/wiki/Source_(river)" title="Source (river)" class="mw-redirect">source</a> in the Thorney Mills <a href="/wiki/Spring_(hydrosphere)" title="Spring (hydrosphere)">springs</a> in the hills around <a href="/wiki/Chedington" title="Chedington">Chedington</a> in Dorset. Flowing northwest through Somerset and the <a href="/wiki/Somerset_Levels" title="Somerset Levels">Somerset Levels</a> to its mouth at <a href="/wiki/Burnham-on-Sea" title="Burnham-on-Sea">Burnham-on-Sea</a>, into the <a href="/wiki/Bridgwater_Bay" title="Bridgwater Bay">Bridgwater Bay</a> <a href="/wiki/National_Nature_Reserves_in_England" title="National Nature Reserves in England">Nature Reserve</a> on the <a href="/wiki/Bristol_Channel" title="Bristol Channel">Bristol Channel</a>, the Parrett drains about 50&#160;per cent of Somerset's land area. The 37-mile (60&#160;km) long river is tidal for 27 miles (43&#160;km) up to <a href="/wiki/Oath,_Somerset" title="Oath, Somerset" class="mw-redirect">Oath</a>. Because the fall of the river between <a href="/wiki/Langport" title="Langport">Langport</a> and <a href="/wiki/Bridgwater" title="Bridgwater">Bridgwater</a> is only 1 foot per mile (0.2&#160;m/km), it is prone to frequent flooding in winter and during high tides. During the <a href="/wiki/Britannia_(Roman_province)" title="Britannia (Roman province)" class="mw-redirect">Roman</a> era the river was crossed by a ford, and in <a href="/wiki/Anglo-Saxon" title="Anglo-Saxon" class="mw-redirect">Anglo-Saxon</a> times formed a boundary between <a href="/wiki/Wessex" title="Wessex">Wessex</a> and <a href="/wiki/Dumnonia" title="Dumnonia">Dumnonia</a>. From the medieval period the river served the Port of Bridgwater, enabling cargoes to be transported inland. The arrival of the railways led to a decline and commercial shipping now only docks at <a href="/wiki/Dunball" title="Dunball">Dunball</a>. The Parrett along with its connected waterways and network of drains supports an ecosystem that includes several rare species of flora and fauna. The <a href="/wiki/River_Parrett_Trail" title="River Parrett Trail">River Parrett Trail</a> has been established along the banks of the river. (<a href="/wiki/River_Parrett" title="River Parrett"><b>more...</b></a>)</p>
108
+ <p>Recently featured: <a href="/wiki/Primate" title="Primate">Primate</a> – <a href="/wiki/Battle_of_Osan" title="Battle of Osan">Battle of Osan</a> – <a href="/wiki/U.S._Route_491" title="U.S. Route 491">U.S. Route 491</a></p>
109
+ <div style="float:right" class="noprint"><b><a href="/wiki/Wikipedia:Today%27s_featured_article/July_2011" title="Wikipedia:Today's featured article/July 2011">Archive</a></b> – <b><a href="https://lists.wikimedia.org/mailman/listinfo/daily-article-l" class="extiw" title="mail:daily-article-l">By email</a></b> – <b><a href="/wiki/Wikipedia:Featured_articles" title="Wikipedia:Featured articles">More featured articles...</a></b></div>
110
+ </div>
111
+ </td>
112
+ </tr>
113
+ <tr>
114
+ <th style="padding:2px;">
115
+ <h2 id="mp-dyk-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="Did_you_know...">Did you know...</span></h2>
116
+ </th>
117
+ </tr>
118
+ <tr>
119
+ <td style="color:#000; padding:2px 5px 5px;">
120
+ <div id="mp-dyk">
121
+ <p><i>From Wikipedia's <a href="/wiki/Wikipedia:Recent_additions" title="Wikipedia:Recent additions">newest content</a>:</i></p>
122
+ <div style="float:right;margin-left:0.5em;">
123
+ <p><a href="/wiki/File:Liliuokalani.jpg" class="image" title="Queen Liliuokalani"><img alt="A queen sitting on a throne" src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Liliuokalani.jpg/78px-Liliuokalani.jpg" width="78" height="100" /></a></p>
124
+ </div>
125
+ <ul>
126
+ <li style="-moz-float-edge: content-box">... that, in 1898, the United States government annexed the <a href="/wiki/Kingdom_of_Hawaii#Annexation" title="Kingdom of Hawaii">Kingdom of Hawaii</a> despite <b><a href="/wiki/Opposition_to_the_overthrow_of_the_Hawaiian_Kingdom#Letter_of_protest_against_annexation" title="Opposition to the overthrow of the Hawaiian Kingdom">protestation from Queen Liliuokalani</a></b> <i>(pictured)</i>?</li>
127
+ <li style="-moz-float-edge: content-box">... that in 1954 <i><a href="/wiki/The_New_York_Times" title="The New York Times">The New York Times</a></i> warned that the <b><a href="/wiki/Communist_Party_of_French_India" title="Communist Party of French India">Communist Party of French India</a></b> was likely to seize power in the colony?</li>
128
+ <li style="-moz-float-edge: content-box">... that the <b><a href="/wiki/CFTR_inhibitory_factor" title="CFTR inhibitory factor">CFTR inhibitory factor</a></b> can induce <a href="/wiki/Cystic_fibrosis" title="Cystic fibrosis">cystic fibrosis</a> (CF) -like conditions in the lungs of a non-CF patient?</li>
129
+ <li style="-moz-float-edge: content-box">... that following a landmark <b><a href="/wiki/R_v_Chaytor" title="R v Chaytor">decision</a></b> of the United Kingdom's <a href="/wiki/Supreme_Court_of_the_United_Kingdom" title="Supreme Court of the United Kingdom">Supreme Court</a>, the <b><a href="/wiki/John_Saunders_(1949-)" title="John Saunders (1949-)">same judge</a></b> passed sentence on each of the six politicians in separate trials charged in relation to the 2009 <a href="/wiki/Parliamentary_expenses_scandal" title="Parliamentary expenses scandal" class="mw-redirect">Parliamentary expenses scandal</a>?</li>
130
+ <li style="-moz-float-edge: content-box">... that American journalist <b><a href="/wiki/Charles_Franklin_Hildebrand" title="Charles Franklin Hildebrand">Charles Franklin Hildebrand</a></b> earned the <a href="/wiki/Purple_Heart" title="Purple Heart">Purple Heart</a> and <a href="/wiki/Silver_Star" title="Silver Star">Silver Star</a> for his World War&#160;I service in the battles of the <a href="/wiki/Second_Battle_of_the_Marne" title="Second Battle of the Marne">Marne River</a> and <a href="/wiki/Battle_of_the_Argonne_Forest" title="Battle of the Argonne Forest" class="mw-redirect">Argonne Forest</a>?</li>
131
+ <li style="-moz-float-edge: content-box">... that the <a href="/wiki/Anarchist" title="Anarchist" class="mw-redirect">anarchist</a> <i><b><a href="/wiki/Rewolucyjni_M%C5%9Bciciele" title="Rewolucyjni Mściciele">Revolutionary Avengers</a></b></i> group from 1910 to 1914 has been described as the most radical terrorist organization in the <a href="/wiki/History_of_Poland" title="History of Poland">history of Poland</a>?</li>
132
+ <li style="-moz-float-edge: content-box">... that witnesses have reported ghostly lights and phantom fires emanating from the <b><a href="/wiki/Dr._John_R._Drish_House" title="Dr. John R. Drish House">Dr. John R. Drish House</a></b> in <a href="/wiki/Tuscaloosa,_Alabama" title="Tuscaloosa, Alabama">Tuscaloosa</a>, Alabama?<br style="clear:both;" />
133
+ <div style="text-align: right;" class="noprint"><b><a href="/wiki/Wikipedia:Recent_additions" title="Wikipedia:Recent additions">Archive</a></b> – <b><a href="/wiki/Wikipedia:Your_first_article" title="Wikipedia:Your first article">Start a new article</a></b> – <b><a href="/wiki/Template_talk:Did_you_know" title="Template talk:Did you know">Nominate an article</a></b></div>
134
+ </li>
135
+ </ul>
136
+ </div>
137
+ </td>
138
+ </tr>
139
+ </table>
140
+ </td>
141
+ <td style="border:1px solid transparent;"></td>
142
+ <td class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;">
143
+ <table id="mp-right" style="width:100%; vertical-align:top; background:#f5faff;">
144
+ <tr>
145
+ <th style="padding:2px;">
146
+ <h2 id="mp-itn-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="In_the_news">In the news</span></h2>
147
+ </th>
148
+ </tr>
149
+ <tr>
150
+ <td style="color:#000; padding:2px 5px;">
151
+ <div id="mp-itn">
152
+ <div style="float:right;margin-left:0.5em;">
153
+ <p><a href="/wiki/File:Habsburgotto.jpg" title="Otto von Habsburg"><img alt="Otto von Habsburg" src="http://upload.wikimedia.org/wikipedia/en/thumb/d/d3/Habsburgotto.jpg/86px-Habsburgotto.jpg" width="86" height="100" /></a></p>
154
+ </div>
155
+ <ul>
156
+ <li style="-moz-float-edge: content-box">The <a href="/wiki/International_Olympic_Committee" title="International Olympic Committee">International Olympic Committee</a> announces that <a href="/wiki/Pyeongchang" title="Pyeongchang">Pyeongchang</a>, <a href="/wiki/South_Korea" title="South Korea">South Korea</a>, will host the <b><a href="/wiki/2018_Winter_Olympics" title="2018 Winter Olympics">2018 Winter Olympics</a></b>.</li>
157
+ <li style="-moz-float-edge: content-box"><a href="/wiki/Otto_von_Habsburg" title="Otto von Habsburg">Otto von Habsburg</a> <i>(pictured)</i>, former Crown Prince of <a href="/wiki/Austria-Hungary" title="Austria-Hungary">Austria-Hungary</a>, <b><a href="/wiki/Death_and_funeral_of_Otto_von_Habsburg" title="Death and funeral of Otto von Habsburg">dies at the age of 98</a></b>.</li>
158
+ <li style="-moz-float-edge: content-box">In the <b><a href="/wiki/Thai_general_election,_2011" title="Thai general election, 2011">Thai general election</a></b>, the <a href="/wiki/Pheu_Thai_Party" title="Pheu Thai Party">Pheu Thai Party</a>, led by <a href="/wiki/Yingluck_Shinawatra" title="Yingluck Shinawatra">Yingluck Shinawatra</a>, wins a landslide majority.</li>
159
+ <li style="-moz-float-edge: content-box">In <a href="/wiki/Tennis" title="Tennis">tennis</a>, <b><a href="/wiki/Petra_Kvitov%C3%A1" title="Petra Kvitová">Petra Kvitova</a></b> wins the <a href="/wiki/2011_Wimbledon_Championships_%E2%80%93_Women%27s_Singles" title="2011 Wimbledon Championships – Women's Singles">women's singles</a> and <b><a href="/wiki/Novak_Djokovic" title="Novak Djokovic">Novak Djokovic</a></b> wins the <a href="/wiki/2011_Wimbledon_Championships_%E2%80%93_Men%27s_Singles" title="2011 Wimbledon Championships – Men's Singles">men's singles</a> at the <a href="/wiki/2011_Wimbledon_Championships" title="2011 Wimbledon Championships">Wimbledon Championships</a>.</li>
160
+ <li style="-moz-float-edge: content-box">Treasure worth at least <span style="white-space:nowrap;">25 billion</span> <a href="/wiki/Indian_rupee" title="Indian rupee">rupees</a> (<a href="/wiki/Euro" title="Euro">€</a><span style="white-space:nowrap;">385 million</span>) is found at the <b><a href="/wiki/Padmanabhaswamy_Temple" title="Padmanabhaswamy Temple">Padmanabhaswamy Temple</a></b> in <a href="/wiki/Kerala" title="Kerala">Kerala</a>, <a href="/wiki/India" title="India">India</a>.
161
+ <div style="text-align: right;" class="noprint"><b><a href="http://en.wikinews.org/wiki/Main_Page" class="extiw" title="n:Main Page">Wikinews</a></b> – <b><a href="/wiki/Deaths_in_2011" title="Deaths in 2011">Recent deaths</a></b> – <b><a href="/wiki/Portal:Current_events" title="Portal:Current events">More&#160;current&#160;events...</a></b></div>
162
+ </li>
163
+ </ul>
164
+ </div>
165
+ </td>
166
+ </tr>
167
+ <tr>
168
+ <th style="padding:2px;">
169
+ <h2 id="mp-otd-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="On_this_day...">On this day...</span></h2>
170
+ </th>
171
+ </tr>
172
+ <tr>
173
+ <td style="color:#000; padding:2px 5px 5px;">
174
+ <div id="mp-otd">
175
+ <p><b><a href="/wiki/July_7" title="July 7">July 7</a></b>: <a href="/wiki/List_of_national_independence_days" title="List of national independence days">Independence Day</a> in the <b><a href="/wiki/Solomon_Islands" title="Solomon Islands">Solomon Islands</a></b> (<a href="/wiki/1978" title="1978">1978</a>); <b><a href="/wiki/Tanabata" title="Tanabata">Tanabata</a></b> in <a href="/wiki/Japan" title="Japan">Japan</a></p>
176
+ <div style="float:right;margin-left:0.5em;">
177
+ <p><a href="/wiki/File:Trapped_underground.jpg" class="image" title="Victims of the 7 July bombings trapped underground"><img alt="Victims of the 7 July bombings trapped underground" src="http://upload.wikimedia.org/wikipedia/en/thumb/9/9d/Trapped_underground.jpg/100px-Trapped_underground.jpg" width="100" height="75" /></a></p>
178
+ </div>
179
+ <ul>
180
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1834" title="1834">1834</a> – In <a href="/wiki/New_York_City" title="New York City">New York City</a>, <a href="/wiki/Evangelicalism" title="Evangelicalism">evangelical Protestants</a> began <b><a href="/wiki/Anti-abolitionist_riots_(1834)" title="Anti-abolitionist riots (1834)">four nights of rioting</a></b> against <a href="/wiki/Abolitionism" title="Abolitionism">abolitionists</a>.</li>
181
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1911" title="1911">1911</a> – The United States, United Kingdom, Japan, and Russia signed the <b><a href="/wiki/North_Pacific_Fur_Seal_Convention_of_1911" title="North Pacific Fur Seal Convention of 1911">North Pacific Fur Seal Convention</a></b> banning open-water <a href="/wiki/Seal_hunting" title="Seal hunting">seal hunting</a>, the first international treaty to address <a href="/wiki/Wildlife_conservation" title="Wildlife conservation">wildlife conservation</a> issues.</li>
182
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1963" title="1963">1963</a> – The police of <a href="/wiki/Ngo_Dinh_Nhu" title="Ngo Dinh Nhu">Ngo Dinh Nhu</a>, brother and chief political adviser of <a href="/wiki/Leaders_of_South_Vietnam" title="Leaders of South Vietnam">President of South Vietnam</a> <a href="/wiki/Ngo_Dinh_Diem" title="Ngo Dinh Diem">Ngo Dinh Diem</a>, <b><a href="/wiki/Double_Seven_Day_scuffle" title="Double Seven Day scuffle">attacked</a></b> a group of <a href="/wiki/United_States" title="United States">American</a> journalists who were covering a protest during the <a href="/wiki/Buddhist_crisis" title="Buddhist crisis">Buddhist crisis</a>.</li>
183
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1983" title="1983">1983</a> – After writing a letter to <a href="/wiki/List_of_leaders_of_the_Soviet_Union" title="List of leaders of the Soviet Union">Soviet premier</a> <a href="/wiki/Yuri_Andropov" title="Yuri Andropov">Yuri Andropov</a>, American schoolgirl <b><a href="/wiki/Samantha_Smith" title="Samantha Smith">Samantha Smith</a></b> visited the Soviet Union as Andropov's personal guest, becoming known as "America's Youngest Ambassador".</li>
184
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1994" title="1994">1994</a> – Troops from the former <a href="/wiki/Yemen_Arab_Republic" title="Yemen Arab Republic">North Yemen</a> captured <a href="/wiki/Aden" title="Aden">Aden</a>, ending the <b><a href="/wiki/1994_civil_war_in_Yemen" title="1994 civil war in Yemen">Yemeni civil war</a></b>.</li>
185
+ <li style="-moz-float-edge: content-box"><a href="/wiki/2005" title="2005">2005</a> – Suicide bombers <a href="/wiki/Casualties_of_the_7_July_2005_London_bombings" title="Casualties of the 7 July 2005 London bombings" class="mw-redirect">killed 52 people</a> in <b><a href="/wiki/7_July_2005_London_bombings" title="7 July 2005 London bombings">a series of four explosions</a></b> on <a href="/wiki/London" title="London">London</a>'s <a href="/wiki/Transport_in_London" title="Transport in London">public transport system</a> <i>(victims trapped in train pictured)</i>.</li>
186
+ </ul>
187
+ <p>More anniversaries: <a href="/wiki/July_6" title="July 6">July 6</a> – <b><a href="/wiki/July_7" title="July 7">July 7</a></b> – <a href="/wiki/July_8" title="July 8">July 8</a></p>
188
+ <div style="text-align: right;" class="noprint"><b><a href="/wiki/Wikipedia:Selected_anniversaries/July" title="Wikipedia:Selected anniversaries/July">Archive</a></b> – <b><a href="https://lists.wikimedia.org/mailman/listinfo/daily-article-l" class="extiw" title="mail:daily-article-l">By email</a></b> – <b><a href="/wiki/List_of_historical_anniversaries" title="List of historical anniversaries">List of historical anniversaries</a></b></div>
189
+ <div style="text-align: right;"><small>It is now <a href="/wiki/July_7" title="July 7">July 7</a>, <a href="/wiki/2011" title="2011">2011</a> (<a href="/wiki/Coordinated_Universal_Time" title="Coordinated Universal Time">UTC</a>) – <span class="plainlinks" id="purgelink"><a href="http://en.wikipedia.org/w/index.php?title=Main_Page&amp;action=purge" class="external text" rel="nofollow">Refresh this page</a></span></small></div>
190
+ </div>
191
+ </td>
192
+ </tr>
193
+ </table>
194
+ </td>
195
+ </tr>
196
+ </table>
197
+ <table id="mp-lower" style="margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;">
198
+ <tr>
199
+ <td class="MainPageBG" style="width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;">
200
+ <table id="mp-bottom" style="vertical-align:top; background:#faf5ff; color:#000; width:100%">
201
+ <tr>
202
+ <th style="padding:2px;">
203
+ <h2 id="mp-tfp-h2" style="margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em"><span class="mw-headline" id="Today.27s_featured_picture">Today's featured picture</span></h2>
204
+ </th>
205
+ </tr>
206
+ <tr>
207
+ <td style="color:#000; padding:2px;">
208
+ <div id="mp-tfp">
209
+ <table style="margin:0 3px 3px; width:100%; text-align:left; background-color:transparent; border-collapse: collapse;">
210
+ <tr>
211
+ <td style="padding:0 0.9em 0 0;"><a href="/wiki/File:Lincoln_conspirators_execution2.jpg" class="image" title="Execution of conspirators in Lincoln's assassination"><img alt="Execution of conspirators in Lincoln's assassination" src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Lincoln_conspirators_execution2.jpg/180px-Lincoln_conspirators_execution2.jpg" width="180" height="179" /></a></td>
212
+ <td style="padding:0 6px 0 0">
213
+ <p>On July 7, 1865, at <a href="/wiki/Fort_Lesley_J._McNair" title="Fort Lesley J. McNair">Fort McNair</a> in <a href="/wiki/Washington,_D.C." title="Washington, D.C.">Washington, D.C.</a>, <b><a href="/wiki/Mary_Surratt" title="Mary Surratt">Mary Surratt</a></b>, <b><a href="/wiki/Lewis_Powell_(assassin)" title="Lewis Powell (assassin)">Lewis Powell</a></b>, <b><a href="/wiki/David_Herold" title="David Herold">David Herold</a></b>, and <b><a href="/wiki/George_Atzerodt" title="George Atzerodt">George Atzerodt</a></b> (shown left-to-right) were hanged for their roles in the <a href="/wiki/Assassination_of_Abraham_Lincoln" title="Assassination of Abraham Lincoln">assassination</a> of <a href="/wiki/President_of_the_United_States" title="President of the United States">U.S. President</a> <a href="/wiki/Abraham_Lincoln" title="Abraham Lincoln">Abraham Lincoln</a>. Eight people were convicted for the crime; three others were sentenced to life imprisonment, with the last receiving a six-year sentence. Mary Surratt's son <a href="/wiki/John_Surratt" title="John Surratt">John</a> was able to escape and was never convicted for his role. His mother was the first woman to be <a href="/wiki/Capital_punishment_by_the_United_States_federal_government" title="Capital punishment by the United States federal government">executed by the United States federal government</a>.</p>
214
+ <small>Photo: <a href="/wiki/Alexander_Gardner_(photographer)" title="Alexander Gardner (photographer)">Alexander Gardner</a>; Restoration: <a href="/wiki/User:Durova" title="User:Durova">Lise Broer</a></small>
215
+ <div style="text-align:right;">
216
+ <p>Recently featured: <a href="/wiki/Template:POTD/2011-07-06" title="Template:POTD/2011-07-06">Painted Cliffs, Maria Island</a> – <a href="/wiki/Template:POTD/2011-07-05" title="Template:POTD/2011-07-05">Macleay's Swallowtail</a> – <a href="/wiki/Template:POTD/2011-07-04" title="Template:POTD/2011-07-04">"Join, or Die"</a><br /></p>
217
+ <div class="noprint"><b><a href="/wiki/Wikipedia:Picture_of_the_day/July_2011" title="Wikipedia:Picture of the day/July 2011">Archive</a></b> – <b><a href="/wiki/Wikipedia:Featured_pictures" title="Wikipedia:Featured pictures">More featured pictures...</a></b></div>
218
+ </div>
219
+ </td>
220
+ </tr>
221
+ </table>
222
+ </div>
223
+ </td>
224
+ </tr>
225
+ </table>
226
+ </td>
227
+ </tr>
228
+ </table>
229
+ <div id="mp-other" style="padding-top:4px; padding-bottom:2px;">
230
+ <h2><span class="mw-headline" id="Other_areas_of_Wikipedia">Other areas of Wikipedia</span></h2>
231
+ <ul>
232
+ <li><b><a href="/wiki/Wikipedia:Community_portal" title="Wikipedia:Community portal">Community portal</a></b> – Bulletin board, projects, resources and activities covering a wide range of Wikipedia areas.</li>
233
+ <li><b><a href="/wiki/Wikipedia:Help_desk" title="Wikipedia:Help desk">Help desk</a></b> – Ask questions about using Wikipedia.</li>
234
+ <li><b><a href="/wiki/Wikipedia:Local_Embassy" title="Wikipedia:Local Embassy">Local embassy</a></b> – For Wikipedia-related communication in languages other than English.</li>
235
+ <li><b><a href="/wiki/Wikipedia:Reference_desk" title="Wikipedia:Reference desk">Reference desk</a></b> – Serving as virtual librarians, Wikipedia volunteers tackle your questions on a wide range of subjects.</li>
236
+ <li><b><a href="/wiki/Wikipedia:News" title="Wikipedia:News">Site news</a></b> – Announcements, updates, articles and press releases on Wikipedia and the Wikimedia Foundation.</li>
237
+ <li><b><a href="/wiki/Wikipedia:Village_pump" title="Wikipedia:Village pump">Village pump</a></b> – For discussions about Wikipedia itself, including areas for technical issues and policies.</li>
238
+ </ul>
239
+ </div>
240
+ <div id="mp-sister">
241
+ <h2><span class="mw-headline" id="Wikipedia.27s_sister_projects">Wikipedia's sister projects</span></h2>
242
+ <p>Wikipedia is hosted by the <a href="/wiki/Wikimedia_Foundation" title="Wikimedia Foundation">Wikimedia Foundation</a>, a non-profit organization that also hosts a range of other <a href="http://wikimediafoundation.org/wiki/Our_projects" class="extiw" title="wikimedia:Our projects">projects</a>:</p>
243
+ <table class="layout plainlinks" style="width:100%; margin:auto; text-align:left; background:transparent;">
244
+ <tr>
245
+ <td style="text-align:center; padding:4px;"><a href="http://commons.wikimedia.org/wiki/" title="Commons"><img alt="Commons" src="http://upload.wikimedia.org/wikipedia/en/9/9d/Commons-logo-31px.png" width="31" height="41" /></a></td>
246
+ <td style="width:33%; padding:4px;"><b><a href="http://commons.wikimedia.org/" class="external text" rel="nofollow">Commons</a></b><br />
247
+ Free media repository</td>
248
+ <td style="text-align:center; padding:4px;"><a href="http://en.wikiquote.org/wiki/" title="Wikiquote"><img alt="Wikiquote" src="http://upload.wikimedia.org/wikipedia/en/4/46/Wikiquote-logo-51px.png" width="51" height="41" /></a></td>
249
+ <td style="width:33%; padding:4px;"><b><a href="http://en.wikiquote.org/" class="external text" rel="nofollow">Wikiquote</a></b><br />
250
+ Collection of quotations</td>
251
+ <td style="text-align:center; padding:4px;"><a href="http://en.wikiversity.org/wiki/" title="Wikiversity"><img alt="Wikiversity" src="http://upload.wikimedia.org/wikipedia/en/e/e3/Wikiversity-logo-41px.png" width="41" height="32" /></a></td>
252
+ <td style="width:33%; padding:4px;"><b><a href="http://en.wikiversity.org/" class="external text" rel="nofollow">Wikiversity</a></b><br />
253
+ Free learning materials and activities</td>
254
+ </tr>
255
+ <tr>
256
+ <td style="text-align:center; padding:4px;"><a href="http://en.wikibooks.org/wiki/" title="Wikibooks"><img alt="Wikibooks" src="http://upload.wikimedia.org/wikipedia/en/7/7f/Wikibooks-logo-35px.png" width="35" height="35" /></a></td>
257
+ <td style="padding:4px;"><b><a href="http://en.wikibooks.org/" class="external text" rel="nofollow">Wikibooks</a></b><br />
258
+ Free textbooks and manuals</td>
259
+ <td style="text-align:center; padding:4px;"><a href="http://en.wikisource.org/wiki/" title="Wikisource"><img alt="Wikisource" src="http://upload.wikimedia.org/wikipedia/en/b/b6/Wikisource-logo-35px.png" width="35" height="37" /></a></td>
260
+ <td style="padding:4px;"><b><a href="http://en.wikisource.org/" class="external text" rel="nofollow">Wikisource</a></b><br />
261
+ Free-content library</td>
262
+ <td style="text-align:center; padding:4px;"><a href="http://en.wiktionary.org/wiki/" title="Wiktionary"><img alt="Wiktionary" src="http://upload.wikimedia.org/wikipedia/en/f/f2/Wiktionary-logo-51px.png" width="51" height="35" /></a></td>
263
+ <td style="padding:4px;"><b><a href="http://en.wiktionary.org/" class="external text" rel="nofollow">Wiktionary</a></b><br />
264
+ Dictionary and thesaurus</td>
265
+ </tr>
266
+ <tr>
267
+ <td style="text-align:center; padding:4px;"><a href="http://en.wikinews.org/wiki/" title="Wikinews"><img alt="Wikinews" src="http://upload.wikimedia.org/wikipedia/en/6/60/Wikinews-logo-51px.png" width="51" height="30" /></a></td>
268
+ <td style="padding:4px;"><b><a href="http://en.wikinews.org/" class="external text" rel="nofollow">Wikinews</a></b><br />
269
+ Free-content news</td>
270
+ <td style="text-align:center; padding:4px;"><a href="http://species.wikimedia.org/wiki/" title="Wikispecies"><img alt="Wikispecies" src="http://upload.wikimedia.org/wikipedia/en/b/bf/Wikispecies-logo-35px.png" width="35" height="41" /></a></td>
271
+ <td style="padding:4px;"><b><a href="http://species.wikimedia.org/" class="external text" rel="nofollow">Wikispecies</a></b><br />
272
+ Directory of species</td>
273
+ <td style="text-align:center; padding:4px;"><a href="http://meta.wikimedia.org/wiki/" title="Meta-Wiki"><img alt="Meta-Wiki" src="http://upload.wikimedia.org/wikipedia/en/b/bc/Meta-logo-35px.png" width="35" height="35" /></a></td>
274
+ <td style="padding:4px;"><b><a href="http://meta.wikimedia.org/" class="external text" rel="nofollow">Meta-Wiki</a></b><br />
275
+ Wikimedia project coordination</td>
276
+ </tr>
277
+ </table>
278
+ </div>
279
+ <div id="mp-lang">
280
+ <h2><span class="mw-headline" id="Wikipedia_languages">Wikipedia languages</span></h2>
281
+ <div id="lang" class="nowraplinks nourlexpansion">
282
+ <p>This Wikipedia is written in <a href="/wiki/English_language" title="English language">English</a>. Started in 2001<span style="display:none">&#160;(<span class="bday dtstart published updated">2001</span>)</span>, it currently contains <a href="/wiki/Special:Statistics" title="Special:Statistics">3,676,724</a> articles. Many other Wikipedias are available; some of the largest are listed below.</p>
283
+ <ul>
284
+ <li id="lang-3">More than 650,000 articles: <a href="http://de.wikipedia.org/wiki/" class="extiw" title="de:"><span title="German (de:)" lang="de" xml:lang="de">Deutsch</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://es.wikipedia.org/wiki/" class="extiw" title="es:"><span title="Spanish (es:)" lang="es" xml:lang="es">Español</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://fr.wikipedia.org/wiki/" class="extiw" title="fr:"><span title="French (fr:)" lang="fr" xml:lang="fr">Français</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://it.wikipedia.org/wiki/" class="extiw" title="it:"><span title="Italian (it:)" lang="it" xml:lang="it">Italiano</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://nl.wikipedia.org/wiki/" class="extiw" title="nl:"><span title="Dutch (nl:)" lang="nl" xml:lang="nl">Nederlands</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://ja.wikipedia.org/wiki/" class="extiw" title="ja:"><span title="Japanese (ja:)" lang="ja" xml:lang="ja">日本語</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://pl.wikipedia.org/wiki/" class="extiw" title="pl:"><span title="Polish (pl:)" lang="pl" xml:lang="pl">Polski</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://pt.wikipedia.org/wiki/" class="extiw" title="pt:"><span title="Portuguese (pt:)" lang="pt" xml:lang="pt">Português</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://ru.wikipedia.org/wiki/" class="extiw" title="ru:"><span title="Russian (ru:)" lang="ru" xml:lang="ru">Русский</span></a></li>
285
+ <li id="lang-2">More than 150,000 articles: <a href="http://ar.wikipedia.org/wiki/" class="extiw" title="ar:"><span title="Arabic (ar:)" lang="ar" xml:lang="ar">العربية</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://id.wikipedia.org/wiki/" class="extiw" title="id:"><span title="Indonesian (id:)" lang="id" xml:lang="id">Bahasa Indonesia</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://ca.wikipedia.org/wiki/" class="extiw" title="ca:"><span title="Catalan (ca:)" lang="ca" xml:lang="ca">Català</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://cs.wikipedia.org/wiki/" class="extiw" title="cs:"><span title="Czech (cs:)" lang="cs" xml:lang="cs">Česky</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://da.wikipedia.org/wiki/" class="extiw" title="da:"><span title="Danish (da:)" lang="da" xml:lang="da">Dansk</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://fa.wikipedia.org/wiki/" class="extiw" title="fa:"><span title="Persian (fa:)" lang="fa" xml:lang="fa">فارسی</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://ko.wikipedia.org/wiki/" class="extiw" title="ko:"><span title="Korean (ko:)" lang="ko" xml:lang="ko">한국어</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://hu.wikipedia.org/wiki/" class="extiw" title="hu:"><span title="Hungarian (hu:)" lang="hu" xml:lang="hu">Magyar</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://no.wikipedia.org/wiki/" class="extiw" title="no:"><span title="Norwegian (no:)" lang="no" xml:lang="no">‪Norsk (bokmål)‬</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://ro.wikipedia.org/wiki/" class="extiw" title="ro:"><span title="Romanian (ro:)" lang="ro" xml:lang="ro">Română</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://fi.wikipedia.org/wiki/" class="extiw" title="fi:"><span title="Finnish (fi:)" lang="fi" xml:lang="fi">Suomi</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://sv.wikipedia.org/wiki/" class="extiw" title="sv:"><span title="Swedish (sv:)" lang="sv" xml:lang="sv">Svenska</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://vi.wikipedia.org/wiki/" class="extiw" title="vi:"><span title="Vietnamese (vi:)" lang="vi" xml:lang="vi">Tiếng Việt</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://tr.wikipedia.org/wiki/" class="extiw" title="tr:"><span title="Turkish (tr:)" lang="tr" xml:lang="tr">Türkçe</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://uk.wikipedia.org/wiki/" class="extiw" title="uk:"><span title="Ukrainian (uk:)" lang="uk" xml:lang="uk">Українська</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://zh.wikipedia.org/wiki/" class="extiw" title="zh:"><span title="Chinese (zh:)" lang="zh" xml:lang="zh">中文</span></a></li>
286
+ <li id="lang-1">More than 50,000 articles: <a href="http://ms.wikipedia.org/wiki/" class="extiw" title="ms:"><span title="Malay (ms:)" lang="ms" xml:lang="ms">Bahasa Melayu</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://bg.wikipedia.org/wiki/" class="extiw" title="bg:"><span title="Bulgarian (bg:)" lang="bg" xml:lang="bg">Български</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://et.wikipedia.org/wiki/" class="extiw" title="et:"><span title="Estonian (et:)" lang="et" xml:lang="et">Eesti</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://el.wikipedia.org/wiki/" class="extiw" title="el:"><span title="Greek (el:)" lang="el" xml:lang="el">Ελληνικά</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://simple.wikipedia.org/wiki/" class="extiw" title="simple:"><span title="Simple English (simple:)" lang="simple" xml:lang="simple">Simple English</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://eo.wikipedia.org/wiki/" class="extiw" title="eo:"><span title="Esperanto (eo:)" lang="eo" xml:lang="eo">Esperanto</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://eu.wikipedia.org/wiki/" class="extiw" title="eu:"><span title="Basque (eu:)" lang="eu" xml:lang="eu">Euskara</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://gl.wikipedia.org/wiki/" class="extiw" title="gl:"><span title="Galician (gl:)" lang="gl" xml:lang="gl">Galego</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://he.wikipedia.org/wiki/" class="extiw" title="he:"><span title="Hebrew (he:)" lang="he" xml:lang="he">עברית</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://hr.wikipedia.org/wiki/" class="extiw" title="hr:"><span title="Croatian (hr:)" lang="hr" xml:lang="hr">Hrvatski</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://lt.wikipedia.org/wiki/" class="extiw" title="lt:"><span title="Lithuanian (lt:)" lang="lt" xml:lang="lt">Lietuvių</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://nn.wikipedia.org/wiki/" class="extiw" title="nn:"><span title="Norwegian (Nynorsk) (nn:)" lang="nn" xml:lang="nn">‪Norsk (nynorsk)‬</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://sk.wikipedia.org/wiki/" class="extiw" title="sk:"><span title="Slovak (sk:)" lang="sk" xml:lang="sk">Slovenčina</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://sl.wikipedia.org/wiki/" class="extiw" title="sl:"><span title="Slovene (sl:)" lang="sl" xml:lang="sl">Slovenščina</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://sr.wikipedia.org/wiki/" class="extiw" title="sr:"><span title="Serbian (sr:)" lang="sr" xml:lang="sr">Српски / Srpski</span></a>&#160;<span style="font-weight:bold;">·</span> <a href="http://th.wikipedia.org/wiki/" class="extiw" title="th:"><span title="Thai (th:)" lang="th" xml:lang="th">ไทย</span></a></li>
287
+ </ul>
288
+ </div>
289
+ <div id="metalink" style="text-align:center;"><b><a href="http://meta.wikimedia.org/wiki/List_of_Wikipedias" class="extiw" title="meta:List of Wikipedias">Complete list of Wikipedias</a></b></div>
290
+ </div>
291
+
292
+
293
+ <!--
294
+ NewPP limit report
295
+ Preprocessor node count: 10620/1000000
296
+ Post-expand include size: 53417/2048000 bytes
297
+ Template argument size: 10722/2048000 bytes
298
+ Expensive parser function count: 47/500
299
+ -->
300
+
301
+ <!-- Saved in parser cache with key enwiki:pcache:idhash:15580374-0!*!0!!*!4!* and timestamp 20110707171920 -->
302
+ <div class="printfooter">
303
+ Retrieved from "<a href="http://en.wikipedia.org/wiki/Main_Page">http://en.wikipedia.org/wiki/Main_Page</a>"</div>
304
+ <!-- /bodytext -->
305
+ <!-- catlinks -->
306
+ <div id='catlinks' class='catlinks catlinks-allhidden'></div> <!-- /catlinks -->
307
+ <div class="visualClear"></div>
308
+ </div>
309
+ <!-- /bodyContent -->
310
+ </div>
311
+ <!-- /content -->
312
+ <!-- header -->
313
+ <div id="mw-head" class="noprint">
314
+
315
+ <!-- 0 -->
316
+ <div id="p-personal" class="">
317
+ <h5>Personal tools</h5>
318
+ <ul>
319
+ <li id="pt-login"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Main_Page" title="You are encouraged to log in; however, it is not mandatory. [o]" accesskey="o">Log in / create account</a></li>
320
+ </ul>
321
+ </div>
322
+
323
+ <!-- /0 -->
324
+ <div id="left-navigation">
325
+
326
+ <!-- 0 -->
327
+ <div id="p-namespaces" class="vectorTabs">
328
+ <h5>Namespaces</h5>
329
+ <ul>
330
+ <li id="ca-nstab-main" class="selected"><span><a href="/wiki/Main_Page" title="View the content page [c]" accesskey="c">Article</a></span></li>
331
+ <li id="ca-talk"><span><a href="/wiki/Talk:Main_Page" title="Discussion about the content page [t]" accesskey="t">Discussion</a></span></li>
332
+ </ul>
333
+ </div>
334
+
335
+ <!-- /0 -->
336
+
337
+ <!-- 1 -->
338
+ <div id="p-variants" class="vectorMenu emptyPortlet">
339
+ <h5><span>Variants</span><a href="#"></a></h5>
340
+ <div class="menu">
341
+ <ul>
342
+ </ul>
343
+ </div>
344
+ </div>
345
+
346
+ <!-- /1 -->
347
+ </div>
348
+ <div id="right-navigation">
349
+
350
+ <!-- 0 -->
351
+ <div id="p-views" class="vectorTabs">
352
+ <h5>Views</h5>
353
+ <ul>
354
+ <li id="ca-view" class="selected"><span><a href="/wiki/Main_Page" >Read</a></span></li>
355
+ <li id="ca-viewsource"><span><a href="/w/index.php?title=Main_Page&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></span></li>
356
+ <li id="ca-history" class="collapsible "><span><a href="/w/index.php?title=Main_Page&amp;action=history" title="Past versions of this page [h]" accesskey="h">View history</a></span></li>
357
+ </ul>
358
+ </div>
359
+
360
+ <!-- /0 -->
361
+
362
+ <!-- 1 -->
363
+ <div id="p-cactions" class="vectorMenu emptyPortlet">
364
+ <h5><span>Actions</span><a href="#"></a></h5>
365
+ <div class="menu">
366
+ <ul>
367
+ </ul>
368
+ </div>
369
+ </div>
370
+
371
+ <!-- /1 -->
372
+
373
+ <!-- 2 -->
374
+ <div id="p-search">
375
+ <h5><label for="searchInput">Search</label></h5>
376
+ <form action="/w/index.php" id="searchform">
377
+ <input type='hidden' name="title" value="Special:Search"/>
378
+ <div id="simpleSearch">
379
+ <input id="searchInput" name="search" type="text" title="Search Wikipedia [f]" accesskey="f" value="" />
380
+ <button id="searchButton" type='submit' name='button' title="Search Wikipedia for this text"><img src="http://bits.wikimedia.org/skins-1.17/vector/images/search-ltr.png?301-3" alt="Search" /></button>
381
+ </div>
382
+ </form>
383
+ </div>
384
+
385
+ <!-- /2 -->
386
+ </div>
387
+ </div>
388
+ <!-- /header -->
389
+ <!-- panel -->
390
+ <div id="mw-panel" class="noprint">
391
+ <!-- logo -->
392
+ <div id="p-logo"><a style="background-image: url(http://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png);" href="/wiki/Main_Page" title="Visit the main page"></a></div>
393
+ <!-- /logo -->
394
+
395
+ <!-- navigation -->
396
+ <div class="portal" id='p-navigation'>
397
+ <h5>Navigation</h5>
398
+ <div class="body">
399
+ <ul>
400
+ <li id="n-mainpage-description"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li>
401
+ <li id="n-contents"><a href="/wiki/Portal:Contents" title="Guides to browsing Wikipedia">Contents</a></li>
402
+ <li id="n-featuredcontent"><a href="/wiki/Portal:Featured_content" title="Featured content – the best of Wikipedia">Featured content</a></li>
403
+ <li id="n-currentevents"><a href="/wiki/Portal:Current_events" title="Find background information on current events">Current events</a></li>
404
+ <li id="n-randompage"><a href="/wiki/Special:Random" title="Load a random article [x]" accesskey="x">Random article</a></li>
405
+ <li id="n-sitesupport"><a href="http://wikimediafoundation.org/wiki/Special:Landingcheck?landing_page=WMFJA085&amp;language=en&amp;utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=20101204SB002" title="Support us">Donate to Wikipedia</a></li>
406
+ </ul>
407
+ </div>
408
+ </div>
409
+
410
+ <!-- /navigation -->
411
+
412
+ <!-- SEARCH -->
413
+
414
+ <!-- /SEARCH -->
415
+
416
+ <!-- interaction -->
417
+ <div class="portal" id='p-interaction'>
418
+ <h5>Interaction</h5>
419
+ <div class="body">
420
+ <ul>
421
+ <li id="n-help"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia">Help</a></li>
422
+ <li id="n-aboutsite"><a href="/wiki/Wikipedia:About" title="Find out about Wikipedia">About Wikipedia</a></li>
423
+ <li id="n-portal"><a href="/wiki/Wikipedia:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li>
424
+ <li id="n-recentchanges"><a href="/wiki/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
425
+ <li id="n-contact"><a href="/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia">Contact Wikipedia</a></li>
426
+ </ul>
427
+ </div>
428
+ </div>
429
+
430
+ <!-- /interaction -->
431
+
432
+ <!-- TOOLBOX -->
433
+ <div class="portal" id="p-tb">
434
+ <h5>Toolbox</h5>
435
+ <div class="body">
436
+ <ul>
437
+ <li id="t-whatlinkshere"><a href="/wiki/Special:WhatLinksHere/Main_Page" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j">What links here</a></li>
438
+ <li id="t-recentchangeslinked"><a href="/wiki/Special:RecentChangesLinked/Main_Page" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
439
+ <li id="t-upload"><a href="/wiki/Wikipedia:Upload" title="Upload files [u]" accesskey="u">Upload file</a></li>
440
+ <li id="t-specialpages"><a href="/wiki/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
441
+ <li id="t-permalink"><a href="/w/index.php?title=Main_Page&amp;oldid=433914749" title="Permanent link to this revision of the page">Permanent link</a></li>
442
+ <li id="t-cite"><a href="/w/index.php?title=Special:Cite&amp;page=Main_Page&amp;id=433914749" title="Information on how to cite this page">Cite this page</a></li> </ul>
443
+ </div>
444
+ </div>
445
+
446
+ <!-- /TOOLBOX -->
447
+
448
+ <!-- coll-print_export -->
449
+ <div class="portal" id='p-coll-print_export'>
450
+ <h5>Print/export</h5>
451
+ <div class="body">
452
+ <ul id="collectionPortletList"><li id="coll-create_a_book"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Main+Page" title="Create a book or page collection" rel="nofollow">Create a book</a></li><li id="coll-download-as-rl"><a href="/w/index.php?title=Special:Book&amp;bookcmd=render_article&amp;arttitle=Main+Page&amp;oldid=433914749&amp;writer=rl" title="Download a PDF version of this wiki page" rel="nofollow">Download as PDF</a></li><li id="t-print"><a href="/w/index.php?title=Main_Page&amp;printable=yes" title="Printable version of this page [p]" accesskey="p">Printable version</a></li></ul> </div>
453
+ </div>
454
+
455
+ <!-- /coll-print_export -->
456
+
457
+ <!-- LANGUAGES -->
458
+ <div class="portal" id="p-lang">
459
+ <h5>Languages</h5>
460
+ <div class="body">
461
+ <ul>
462
+ <li class="interwiki-simple"><a href="http://simple.wikipedia.org/wiki/" title="">Simple English</a></li>
463
+ <li class="interwiki-ar"><a href="http://ar.wikipedia.org/wiki/" title="">العربية</a></li>
464
+ <li class="interwiki-id"><a href="http://id.wikipedia.org/wiki/" title="">Bahasa Indonesia</a></li>
465
+ <li class="interwiki-ms"><a href="http://ms.wikipedia.org/wiki/" title="">Bahasa Melayu</a></li>
466
+ <li class="interwiki-bg"><a href="http://bg.wikipedia.org/wiki/" title="">Български</a></li>
467
+ <li class="interwiki-ca"><a href="http://ca.wikipedia.org/wiki/" title="">Català</a></li>
468
+ <li class="interwiki-cs"><a href="http://cs.wikipedia.org/wiki/" title="">Česky</a></li>
469
+ <li class="interwiki-da"><a href="http://da.wikipedia.org/wiki/" title="">Dansk</a></li>
470
+ <li class="interwiki-de"><a href="http://de.wikipedia.org/wiki/" title="">Deutsch</a></li>
471
+ <li class="interwiki-et"><a href="http://et.wikipedia.org/wiki/" title="">Eesti</a></li>
472
+ <li class="interwiki-el"><a href="http://el.wikipedia.org/wiki/" title="">Ελληνικά</a></li>
473
+ <li class="interwiki-es"><a href="http://es.wikipedia.org/wiki/" title="">Español</a></li>
474
+ <li class="interwiki-eo"><a href="http://eo.wikipedia.org/wiki/" title="">Esperanto</a></li>
475
+ <li class="interwiki-eu"><a href="http://eu.wikipedia.org/wiki/" title="">Euskara</a></li>
476
+ <li class="interwiki-fa"><a href="http://fa.wikipedia.org/wiki/" title="">فارسی</a></li>
477
+ <li class="interwiki-fr"><a href="http://fr.wikipedia.org/wiki/" title="">Français</a></li>
478
+ <li class="interwiki-gl"><a href="http://gl.wikipedia.org/wiki/" title="">Galego</a></li>
479
+ <li class="interwiki-ko"><a href="http://ko.wikipedia.org/wiki/" title="">한국어</a></li>
480
+ <li class="interwiki-he"><a href="http://he.wikipedia.org/wiki/" title="">עברית</a></li>
481
+ <li class="interwiki-hr"><a href="http://hr.wikipedia.org/wiki/" title="">Hrvatski</a></li>
482
+ <li class="interwiki-it"><a href="http://it.wikipedia.org/wiki/" title="">Italiano</a></li>
483
+ <li class="interwiki-lt"><a href="http://lt.wikipedia.org/wiki/" title="">Lietuvių</a></li>
484
+ <li class="interwiki-hu"><a href="http://hu.wikipedia.org/wiki/" title="">Magyar</a></li>
485
+ <li class="interwiki-nl"><a href="http://nl.wikipedia.org/wiki/" title="">Nederlands</a></li>
486
+ <li class="interwiki-ja"><a href="http://ja.wikipedia.org/wiki/" title="">日本語</a></li>
487
+ <li class="interwiki-no"><a href="http://no.wikipedia.org/wiki/" title="">‪Norsk (bokmål)‬</a></li>
488
+ <li class="interwiki-nn"><a href="http://nn.wikipedia.org/wiki/" title="">‪Norsk (nynorsk)‬</a></li>
489
+ <li class="interwiki-pl"><a href="http://pl.wikipedia.org/wiki/" title="">Polski</a></li>
490
+ <li class="interwiki-pt"><a href="http://pt.wikipedia.org/wiki/" title="">Português</a></li>
491
+ <li class="interwiki-ro"><a href="http://ro.wikipedia.org/wiki/" title="">Română</a></li>
492
+ <li class="interwiki-ru"><a href="http://ru.wikipedia.org/wiki/" title="">Русский</a></li>
493
+ <li class="interwiki-sk"><a href="http://sk.wikipedia.org/wiki/" title="">Slovenčina</a></li>
494
+ <li class="interwiki-sl"><a href="http://sl.wikipedia.org/wiki/" title="">Slovenščina</a></li>
495
+ <li class="interwiki-sr"><a href="http://sr.wikipedia.org/wiki/" title="">Српски / Srpski</a></li>
496
+ <li class="interwiki-fi"><a href="http://fi.wikipedia.org/wiki/" title="">Suomi</a></li>
497
+ <li class="interwiki-sv"><a href="http://sv.wikipedia.org/wiki/" title="">Svenska</a></li>
498
+ <li class="interwiki-th"><a href="http://th.wikipedia.org/wiki/" title="">ไทย</a></li>
499
+ <li class="interwiki-vi"><a href="http://vi.wikipedia.org/wiki/" title="">Tiếng Việt</a></li>
500
+ <li class="interwiki-tr"><a href="http://tr.wikipedia.org/wiki/" title="">Türkçe</a></li>
501
+ <li class="interwiki-uk"><a href="http://uk.wikipedia.org/wiki/" title="">Українська</a></li>
502
+ <li class="interwiki-zh"><a href="http://zh.wikipedia.org/wiki/" title="">中文</a></li>
503
+ </ul>
504
+ </div>
505
+ </div>
506
+
507
+ <!-- /LANGUAGES -->
508
+ </div>
509
+ <!-- /panel -->
510
+ <!-- footer -->
511
+ <div id="footer">
512
+ <ul id="footer-info">
513
+ <li id="footer-info-lastmod"> This page was last modified on 12 June 2011 at 17:52.<br /></li>
514
+ <li id="footer-info-copyright">Text is available under the <a rel="license" href="http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">Creative Commons Attribution-ShareAlike License</a><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/" style="display:none;"></a>;
515
+ additional terms may apply.
516
+ See <a href="http://wikimediafoundation.org/wiki/Terms_of_use">Terms of use</a> for details.<br/>
517
+ Wikipedia&reg; is a registered trademark of the <a href="http://www.wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.<br /></li><li class="noprint"><a class='internal' href="http://en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact us</a></li>
518
+ </ul>
519
+ <ul id="footer-places">
520
+ <li id="footer-places-privacy"><a href="http://wikimediafoundation.org/wiki/Privacy_policy" title="wikimedia:Privacy policy">Privacy policy</a></li>
521
+ <li id="footer-places-about"><a href="/wiki/Wikipedia:About" title="Wikipedia:About">About Wikipedia</a></li>
522
+ <li id="footer-places-disclaimer"><a href="/wiki/Wikipedia:General_disclaimer" title="Wikipedia:General disclaimer">Disclaimers</a></li>
523
+ </ul>
524
+ <ul id="footer-icons" class="noprint">
525
+ <li id="footer-copyrightico">
526
+ <a href="http://wikimediafoundation.org/"><img src="http://bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a>
527
+ </li>
528
+ <li id="footer-poweredbyico">
529
+ <a href="http://www.mediawiki.org/"><img src="http://bits.wikimedia.org/skins-1.17/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" width="88" height="31" /></a>
530
+ </li>
531
+ </ul>
532
+ <div style="clear:both"></div>
533
+ </div>
534
+ <!-- /footer -->
535
+ <script type="text/javascript">if ( window.mediaWiki ) {
536
+ mediaWiki.loader.load(["mediawiki.legacy.wikibits", "mediawiki.util", "mediawiki.legacy.ajax", "mediawiki.legacy.mwsuggest", "ext.vector.collapsibleNav", "ext.vector.collapsibleTabs", "ext.vector.editWarning", "ext.vector.simpleSearch", "ext.UserBuckets", "ext.articleFeedback.startup"]);
537
+ mediaWiki.loader.go();
538
+ }
539
+ </script>
540
+
541
+ <script src="/w/index.php?title=Special:BannerController&amp;cache=/cn.js&amp;301-3" type="text/javascript"></script>
542
+ <script src="http://bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=scripts&amp;skin=vector" type="text/javascript"></script>
543
+ <script type="text/javascript">if ( window.mediaWiki ) {
544
+ mediaWiki.user.options.set({"ccmeonemails":0,"cols":80,"contextchars":50,"contextlines":5,"date":"default","diffonly":0,"disablemail":0,"disablesuggest":0,"editfont":"default","editondblclick":0,"editsection":1,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"externaldiff":0,"externaleditor":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"highlightbroken":1,"imagesize":2,"justify":0,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nocache":0,"noconvertlink":0,"norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"quickbar":1,"rcdays":7,"rclimit":50,"rememberpassword":0,"rows":25,"searchlimit":20,"showhiddencats":0,"showjumplinks":1,"shownumberswatching":1,"showtoc":1,"showtoolbar":1,"skin":"vector","stubthreshold":0,"thumbsize":4,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":0,"watchdeletion":0,
545
+ "watchlistdays":"3","watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,"flaggedrevssimpleui":1,"flaggedrevsstable":false,"flaggedrevseditdiffs":true,"flaggedrevsviewdiffs":false,"vector-simplesearch":1,"useeditwarning":1,"vector-collapsiblenav":1,"usebetatoolbar":1,"usebetatoolbar-cgd":1,"wikilove-enabled":1,"variant":"en","language":"en","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"searchNs100":false,"searchNs101":false,"searchNs108":false,"searchNs109":false});;mediaWiki.loader.state({"user.options":"ready"});
546
+
547
+ /* cache key: enwiki:resourceloader:filter:minify-js:5:996e33ddb59e7313dacfd6576d7aa594 */
548
+ }
549
+ </script><script type="text/javascript" src="http://geoiplookup.wikimedia.org/"></script> <!-- fixalpha -->
550
+ <script type="text/javascript"> if ( window.isMSIE55 ) fixalpha(); </script>
551
+ <!-- /fixalpha -->
552
+ <!-- Served by srv272 in 0.047 secs. --> </body>
553
+ </html>
@@ -0,0 +1,36 @@
1
+ require 'test/helper'
2
+
3
+ class TestEightyFormat < Test::Unit::TestCase
4
+ TEST_80 = 'test/test_data/wikipedia.80'
5
+ TEST_80_HTML = 'test/test_data/wikipedia-index.html'
6
+
7
+ def test_parse_correct
8
+ [File.open(TEST_80), TEST_80].each do |file_or_io|
9
+ howmany = 0
10
+ file = EightyFormat.new(file_or_io).each do |entry|
11
+ assert_equal("http://en.wikipedia.org/wiki/Main_Page", entry.url)
12
+ assert_equal(File.open(TEST_80_HTML).read, entry.data)
13
+ howmany += 1
14
+ break
15
+ end
16
+ assert_equal(1, howmany)
17
+ end
18
+
19
+ [File.open(TEST_80), TEST_80].each do |file_or_io|
20
+ howmany = 0
21
+ EightyFormat.new(file_or_io).each do |entry|
22
+ howmany += 1
23
+ end
24
+ assert_equal(91, howmany)
25
+ end
26
+ end
27
+
28
+ def test_dont_parse_incorrect
29
+ assert_raises(EightyFormat::FileFormatError) do
30
+ EightyFormat.new(TEST_80_HTML).each do
31
+ # NOOP
32
+ end
33
+ end
34
+ end
35
+ end
36
+
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: 80legs
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Jan Szumiec
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-08 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 49
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 7
34
+ version: 0.8.7
35
+ name: rake
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ prerelease: false
39
+ type: :development
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ name: shoulda
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ prerelease: false
53
+ type: :development
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ hash: 23
60
+ segments:
61
+ - 1
62
+ - 0
63
+ - 0
64
+ version: 1.0.0
65
+ name: bundler
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ prerelease: false
69
+ type: :development
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ hash: 7
76
+ segments:
77
+ - 1
78
+ - 6
79
+ - 4
80
+ version: 1.6.4
81
+ name: jeweler
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ prerelease: false
85
+ type: :development
86
+ requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ hash: 3
92
+ segments:
93
+ - 0
94
+ version: "0"
95
+ name: rcov
96
+ version_requirements: *id005
97
+ description: Provides a class for reading .80 files as delivered by 80legs.
98
+ email: jan.szumiec@gmail.com
99
+ executables: []
100
+
101
+ extensions: []
102
+
103
+ extra_rdoc_files:
104
+ - LICENSE.txt
105
+ - README.rdoc
106
+ files:
107
+ - .document
108
+ - Gemfile
109
+ - Gemfile.lock
110
+ - LICENSE.txt
111
+ - README.rdoc
112
+ - Rakefile
113
+ - VERSION
114
+ - lib/eighty_legs.rb
115
+ - lib/eighty_legs/eighty_format.rb
116
+ - lib/eighty_legs/entry.rb
117
+ - test/helper.rb
118
+ - test/test_data/wikipedia-index.html
119
+ - test/test_data/wikipedia.80
120
+ - test/test_eighty_format.rb
121
+ has_rdoc: true
122
+ homepage: http://github.com/jasiek/80legs
123
+ licenses:
124
+ - MIT
125
+ post_install_message:
126
+ rdoc_options: []
127
+
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 0
138
+ version: "0"
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ hash: 3
145
+ segments:
146
+ - 0
147
+ version: "0"
148
+ requirements: []
149
+
150
+ rubyforge_project:
151
+ rubygems_version: 1.6.2
152
+ signing_key:
153
+ specification_version: 3
154
+ summary: 80legs' .80 file format reader
155
+ test_files: []
156
+