—
If you’re an iPhone user you may have seen this before, I’m just making this post for people who may need some modification on the whole articles.bin or maybe for some other language wiki’s, like I did.
Before you begin you got to know, you need a Jailbroken iPhone to do this.
So… here’s the files you need:
- Wikipedia Dumps
- Indexer
- Wiki2srvd (for iPhone)
- Actually some way to copy articles.bin to you’re iphone
1. you can get you own wiki dumps (different language or … ) from here:
http://download.wikimedia.org/
for English Dump you can check: http://download.wikimedia.org/enwiki/
or for you’re own language : http://download.wikimedia.org/XXwiki/ (XX would be you language’s init)
the file name should be something like this: pages-articles.xml.bz2
2,3. the Indexer, the original place to get that is from the site of T. Haukap but I couldn’t find anything related to Wiki in that site. Other places you can find this is by Wiki2Touch google codes page and also this project is somehow down for now.
anyways, I have attached the files needed including Wikisrvd v 0.65 (latest by now) in this post.
4. You can use SSH for transfering the file but if it’s too big you can use softwares like iFunBox or iPhone PC Suit in Windows, DiskAid or PhoneView in Mac.
——————————————————————-
Now all you have to do is run the indexer on the dump. (this is the view of the indexer and everything is obvious)
Wiki2Touch repackager/indexer
Copyright (c) 2008 T. Haukap
Version 0.65
Usage: indexer [-adIi] <filename>
filename: articles file from wikipedia like ‘enwiki-latest-pages-articles.xml.bz2′
-a : Add all articles (not removing namespaces like ‘Help’, ‘Category’ or so)
-d : Add an index where the diacritics (i.e. é, ä or so) in titles are not taken into account
-I : Not scan for images. ‘images.txt’ is not procduced.
-i : Scan for images only. An ‘articles.bin’ is not produced.
-s : Silent, don’t produce any output on the console window (except the copright message).
It will produce a file in the same directory as you dump named “articles.bin”.
then you need to install wikisrvd on your iPhone. the older version of wikisrvd is availble through Cydia but if you dump is bigger than 4 GBs you will need this version. also the Updated version is also availble in i-Phone.ir Cydia Repository.
now you just need to copy “articles.bin” to your iPhone in this path: “/var/Media/mobile/Wikipedia/en” (if you’re using english dump. en would be your own dump language init)
So now you’re done. go to 127.0.0.1:8080 on your iPhone’s safari and enjoy the Offline Wiki on the iPhone.
iPhone Wiki Files
These files are included in the attached zip file:
Mac -> gen, indexer, pack
Win -> ImageGetter.exe, TransferTool.exe, indexer.exe, gen.exe, pack.exe
iPhone-> wikisrvd-0.1.20091028.deb