HI,
I've written scripts that take static
wikipedia html-dumps, remove everything unneeded (menus, footers, you name it...) and creates multiple datafiles which are to be used in mobigen.exe .
A single datafile looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<mbp:pagebreak/>
<idx:entry name="wp"><idx:orth>Some article title</idx:orth>
<a name="abc" external="yes" />
<h1>Some article title>
lots of html...
<a onclick="window.open('subdoc.mobi#xyz')">some intra-wikipedia-but-inter-file-link</a>
<a onclick="window.open('#foobar')">some intra-file-link</a>
</idx:entry>
<mpb:pagebreak/>
<idx:entry name="wpfb"><idx:orth>Some other article title</idx:orth>
<a name="foobar" external="yes" />
[...]
</body>
</html>
|
A single datafile's opf file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<package unique-identifier="wpfb_0">
<metadata>
<dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core"
xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Identifier id="uid">WPFB_0</dc:Identifier>
<dc:Title>WPFB_0</dc:Title>
<dc:Creator>FB</dc:Creator>
<dc:Date>18/7/2007</dc:Date>
<dc:Copyrights>GNU FDL</dc:Copyrights>
<dc:Publisher></dc:Publisher>
<dc:Subject></dc:Subject>
<dc:Language>de</dc:Language></dc-metadata>
<x-metadata/>
</metadata>
<manifest>
<item id="wpfb_0" href="wpfb_0.html" media-type="text/x-oeb1-document" />
</manifest>
<tours>
</tours>
<spine>
</spine>
<guide>
<reference type="start" title="Start" href="index_search('wpfb')" />
<reference type="toc" title="Find article" href="index_search('wpfb')" />
</guide>
</package>
|
Using mobigen.exe under Linux works like a charm - thanks to wine

.
However, there are some problems:
When I click on a link (MP reader on Symbian Series80, Nokia 9300i), it says
Could not open D%3A%5Cebooks%5Csubdocs#wp_XRCO=20Award .
I don't know, how to access the index in the reader, although I added guide/reference-tags.
The former
wikipedia builder guy mentioned his idea of make a data file just for the index. His idea was to put one inter-file-link per
wikipedia article into this data file. Unfortunately, I've no idea, how to define such an automatic redirect. Could someone post a short example?
What's the difference between *.mobi (the ones generated by mobigen.exe) and *.prc files?
Thank you for any help,
Frank