maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   portable wikipedia - mokopedia (https://talk.maemo.org/showthread.php?t=24251)

Felixx 2008-10-12 09:26

portable wikipedia - mokopedia
 
Hi there,

before upgrading to Diablo, I had this nice portable wikipedia running, a port of openmoko's mokopedia. However, it doesn't run in Diablo anymore for some reason. And the wikipedia data was somewhat outdated anyway. http://alendit.blogspot.com/2008/02/...ur-pocket.html

Wouldn't it be cool to port the latest version of Mokopedia to the Nokia 8x0? Anyone interested? The openmoko version is at http://mokopedia.mister-muffin.de/

Looking forward to what you have to say - wouldn't it be cool to have wikipedia with you always? Even in places that have no mobile phone and WLAN signal!

Felixx

allnameswereout 2008-10-12 16:07

Re: portable wikipedia - mokopedia
 
There are alternatives. For example, there are 'dictionary' versions of Wikipedia. You can then import this into e.g. StarDict. Here one can download other versions of Wikipedia in various formats. You can also convert the XML to various other formats.

But I will look into your suggestion. It shouldn't be to hard to port it to Diablo if it was already ported to Chinook.

Felixx 2008-10-12 16:39

Re: portable wikipedia - mokopedia
 
Hi,

I have tried sdict, but it isn't that nice to use, the search doesn't work very well and it loses the entire layout, including tables - and links don't work.

Felix

allnameswereout 2008-10-17 14:30

Re: portable wikipedia - mokopedia
 
Yes ehm, you can create a newer database of Wikipedia using the instructions posted there.

What kind of error do you get when running it?

Felixx 2008-10-19 12:14

Re: portable wikipedia - mokopedia
 
It is true, you can create a new database - it is quite a project, though as wikipedia doesn't publish html dumps any more, so you need to make one from the xml dump and then get it into a squashfs format. I have the German 2007 wikipedia as a html dump in squashfs, but when I tried to put the English one into squashfs it failed with file sizes larger than 2GB.

Felixx 2008-10-19 12:16

Re: portable wikipedia - mokopedia
 
When I try to install the lighttpd package provided by alendit I get:


dpkg -i /media/mmc2/lighttpd_1.4.18-1_armel.deb

(Reading database ... 18212 files and directories currently installed.)

Preparing to replace lighttpd 1.4.18-1 (using .../lighttpd_1.4.18-1_armel.deb) ...

Unpacking replacement lighttpd ...

dpkg: dependency problems prevent configuration of lighttpd:

lighttpd depends on libpcre3-dev (>= 6.7-1osso1); however:

Package libpcre3-dev is not installed.

dpkg: error processing lighttpd (--install):

dependency problems - leaving unconfigured

Errors were encountered while processing:

lighttpd

/media/squashfs #

allnameswereout 2008-10-19 15:11

Re: portable wikipedia - mokopedia
 
Try $ apt-get -f install

If its not installing it is probably in a repository you don't have enabled. Probably extras-devel :)

nippleless 2008-10-25 14:01

Re: portable wikipedia - mokopedia
 
I just want to say that I'm pretty excited for someone to figure out how to get this going with Diablo, since having Wikipedia always available to me has been a dream for a while; ever since I heard it could be done on older generation iPods.

Here's my moral support! Go team!

svs57 2008-10-25 16:26

Re: portable wikipedia - mokopedia
 
I use wikipedia with sdictviewer
Works fine. Download from http://sdict.com/en/wikipedia.php

Thesandlord 2008-10-25 17:09

Re: portable wikipedia - mokopedia
 
The static HTML dump for English Wikipedia June 2008 seems to be 14GB in a 7-zip file! I don't think that would fit on the tablet (even if it was squashed). The Sdict file is 500 MB, so something must be missing (images probably, maybe some obscure info?)

svs57 2008-10-25 17:16

Re: portable wikipedia - mokopedia
 
ls -l /media/mmc2/sdic/ruwiki-2007-01-03_wiki.dct
-rw-r--r-- 1 user root 187805506 апр 12 2008 /media/mmc2/sdic/ruwiki-2007-01-03_wiki.dct

allnameswereout 2008-10-25 19:13

Re: portable wikipedia - mokopedia
 
you can use xml2dict to convert it to a .dct

There are various database dumps. You need to grab the right one.

I have an issue with it because my howto asks for a SQL file, which I don't have. I suppose I browsed around at the XML files; not the SQL files.

allnameswereout 2008-10-27 06:55

Re: portable wikipedia - mokopedia
 
http://mokopedia.mister-muffin.de is down. You cannot access it even with Google Cache. Live.com Cache does work though.

I've installed Wikipedia Offline Reader and grabbed nlwiki-latest-pages-articles.xml.bz2 (341 MB) which can be read directly after an index database is created (takes a while).

So I'm waiting, but I can tell you its easier than the method described at the mokopedia page. It speaks about importing wikidb.sql but this file simply doesn't exist; bad documentation!

qole 2008-10-28 17:00

Re: portable wikipedia - mokopedia
 
Quote:

Originally Posted by Felixx (Post 234781)
When I try to install the lighttpd package provided by alendit I get:...
dpkg: dependency problems prevent configuration of lighttpd:

lighttpd depends on libpcre3-dev (>= 6.7-1osso1); however:

Package libpcre3-dev is not installed.

Here's another lighttpd server package, also includes PHP support.

Quote:

Originally Posted by jolouis (Post 235084)
The package is quite big (about 10 mb when installed), with the vast majority of that being the PHP binary itself. I noticed that there had been requests for gzip support, and somebody mentioned SQLite, so I've included both those modules which in turn required a few other bits which makes PHP grow in filesize. Anyways, details:
This package contains:
- PHP 5.2.5 CGI
- Built in support for: SimpleXML, sessions, PDO, SQLite
- Modules included for: FTP, pcntl (Process control), Sockets, XML, zlib (gzip, etc)

- Lighttpd (latest version, the number escapes me at the moment)
- Modules for: Authentication, Aliases, CGI

Tested working on Diablo, it's very easy. Simply click the link, wait for application manager to open and install.



All times are GMT. The time now is 20:00.

vBulletin® Version 3.8.8