Thread: iLiad I want wikipedia...
View Single Post
Old 08-15-2007, 08:22 AM   #10
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Well, I've got the posted solution working from the terminal. It required a port of php, perl, bzip2, and xapian. With the database, it uses almost my entire 4gb CF card.

Extracting from the bzip archive and generating the html is a bit slow (~12 seconds), but it's doable. If someone could write a gtk gui for it....we would have the wikipedia in the palm of our hands!

Code:
root@ereader:/mnt/cf/offline.wikipedia# ./mywiki.pl iliad
0: (abort)
1: (100%) Iliad
2: (72%) The Iliad
3: (72%) Little Iliad
4: (72%) Ambrosian Iliad
5: (63%) Category:Characters in the Iliad
6: (63%) Wikipedia:Articles for deletion/Ambrosian Iliad
7: (63%) Wikipedia:Votes for deletion/Ambrosian Iliad

Select a number: 1
This is the search program. It's case insensitive, so I think the article about the iRex iLiad is overwritten by the book...

Code:
Selected:
        Iliad
        rec00153enwiki-20070802-pages-articles.xml.bz2p
And now that the result html has been generated, I open it from the contentlister.
Attached Thumbnails
Click image for larger version

Name:	wikipedia.png
Views:	620
Size:	124.6 KB
ID:	4876  
Adam B. is offline   Reply With Quote