mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
302 lines
13 KiB
HTML
302 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html dir="ltr">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
|
<title>Archive/Usage/Offline images - XOWA</title>
|
|
<link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
|
|
<link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
|
|
|
|
</head>
|
|
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
|
|
<div id="mw-page-base" class="noprint"></div>
|
|
<div id="mw-head-base" class="noprint"></div>
|
|
<div id="content" class="mw-body">
|
|
<h1 id="firstHeading" class="firstHeading"><span>Archive/Usage/Offline images</span></h1>
|
|
<div id="bodyContent" class="mw-body-content">
|
|
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
|
|
<div id="contentSub"></div>
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
|
|
|
|
<table class="metadata plainlinks ambox ambox-delete" style="">
|
|
<tr>
|
|
<td class="mbox-empty-cell">
|
|
</td>
|
|
<td class="mbox-text" style="">
|
|
<p>
|
|
<span class="mbox-text-span">Note: This page is obsolete. It is preserved for historical reference only.</span>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table class="metadata plainlinks ambox ambox-delete" style="">
|
|
<tr>
|
|
<td class="mbox-empty-cell">
|
|
</td>
|
|
<td class="mbox-text" style="">
|
|
<p>
|
|
<span class="mbox-text-span">Note: This feature is currently not supported. The WMF Tarballs are severely out of date (2012 December). See the following for more info:</span>
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<span class="mbox-text-span"><a href="https://lists.wikimedia.org/pipermail/xmldatadumps-l/2013-July/000868.html" rel="nofollow" class="external free">https://lists.wikimedia.org/pipermail/xmldatadumps-l/2013-July/000868.html</a></span>
|
|
</li>
|
|
<li>
|
|
<span class="mbox-text-span"><a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=51001" rel="nofollow" class="external free">https://bugzilla.wikimedia.org/show_bug.cgi?id=51001</a></span>
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
<span class="mbox-text-span">Once the WMF provides a more up to date tarball, I'll resume work on this feature. If you are interested in this feature, please send inquiries to the xmldatadumps mailing list or comment on bugzilla.</span>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<br>
|
|
</p>
|
|
<div id="toc" class="toc">
|
|
<div id="toctitle">
|
|
<h2>
|
|
Contents
|
|
</h2>
|
|
</div>
|
|
<ul>
|
|
<li class="toclevel-1 tocsection-1">
|
|
<a href="#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-2">
|
|
<a href="#Download_tarball"><span class="tocnumber">2</span> <span class="toctext">Download tarball</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-3">
|
|
<a href="#Unzip_tarball"><span class="tocnumber">3</span> <span class="toctext">Unzip tarball</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-4">
|
|
<a href="#Change_config_file"><span class="tocnumber">4</span> <span class="toctext">Change config file</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-5">
|
|
<a href="#Known_limitations"><span class="tocnumber">5</span> <span class="toctext">Known limitations</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-6">
|
|
<a href="#Offline_thumbnails"><span class="tocnumber">6</span> <span class="toctext">Offline thumbnails</span></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<h2>
|
|
<span class="mw-headline" id="Overview">Overview</span>
|
|
</h2>
|
|
<p>
|
|
XOWA displays images by using online downloads as specified in <a href="http://xowa.org/wiki/home/page/Dev/File/Setup.html" id="xolnki_2" title="Dev/File/Setup">Dev/File/Setup</a>. However, XOWA can also be setup to use offline sources. If you have the time and storage space, you can download all the images for your wiki and run them from a hard drive. Note that the full tarball set for English Wikipedia is over 2 TB and may take 15 days to download and unzip. Even a small wiki like Simple Wikipedia requires 56 GB. Please prepare accordingly.
|
|
</p>
|
|
<h2>
|
|
<span class="mw-headline" id="Download_tarball">Download tarball</span>
|
|
</h2>
|
|
<ul>
|
|
<li>
|
|
Navigate to the Wikimedia image dump site at <a href="http://ftpmirror.your.org/pub/wikimedia/imagedumps/tarballs/fulls/" rel="nofollow" class="external free">http://ftpmirror.your.org/pub/wikimedia/imagedumps/tarballs/fulls/</a>
|
|
</li>
|
|
<li>
|
|
Select the tarball for your wiki and download it.
|
|
</li>
|
|
</ul>
|
|
<h2>
|
|
<span class="mw-headline" id="Unzip_tarball">Unzip tarball</span>
|
|
</h2>
|
|
<ul>
|
|
<li>
|
|
If you are on a Windows system, the current version of 7-Zip does not handle UTF-8 filenames (it default to CP-1252). You will need to download the latest 7-Zip alpha (I used 9.27).
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dd>
|
|
You can try the latest alpha here: <a href="http://sourceforge.net/projects/sevenzip/forums/forum/45797/topic/6063877" rel="nofollow" class="external free">http://sourceforge.net/projects/sevenzip/forums/forum/45797/topic/6063877</a>
|
|
</dd>
|
|
</dl>
|
|
<ul>
|
|
<li>
|
|
Unzip the tarball to the hard-drive's root.
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dd>
|
|
For example, on a Windows 7 system with a hard drive mounted at W, unzip to W:\. This will create a directory called <b>W:\wikipedia\common\</b>.
|
|
</dd>
|
|
</dl>
|
|
<h2>
|
|
<span class="mw-headline" id="Change_config_file">Change config file</span>
|
|
</h2>
|
|
<p>
|
|
Two changes will have to be made to the config file:
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
commons source
|
|
<ol>
|
|
<li>
|
|
Search for the following: <code>.set('src_http_commons', '<a href="http://upload.wikimedia.org/wikipedia/commons/'" rel="nofollow" class="external free">http://upload.wikimedia.org/wikipedia/commons/'</a> , 'commons.wikimedia.org' ).ext_rules_('img_only').owner</code>
|
|
</li>
|
|
<li>
|
|
Replace it with the following: <code>.set('src_http_commons', 'W:\wikipedia\commons\' , 'commons.wikimedia.org' ).fsys_('wnt').tarball_('y').ext_rules_('img_only').owner</code>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>
|
|
wiki source
|
|
<ol>
|
|
<li>
|
|
Search for the following: <code>.set('src_http_~{wiki_key}', '<a href="http://upload.wikimedia.org/~{wiki_type_name}/~{wiki_lang}/'" rel="nofollow" class="external free">http://upload.wikimedia.org/~{wiki_type_name}/~{wiki_lang}/'</a> , '~{wiki_key}').ext_rules_('img_only').owner</code>
|
|
</li>
|
|
<li>
|
|
Replace it with the following: <code>.set('src_http_~{wiki_key}', 'W:\~{wiki_type_name}\~{wiki_lang}\' , '~{wiki_key}').fsys_('wnt').tarball_('y').ext_rules_('img_only').owner</code>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
<p>
|
|
Note: the .fsys_('wnt') is not needed for Linux systems. It is a "hack" for Windows systems to handle File titles that have invalid Windows NT filesystem characters (such as " or :)
|
|
</p>
|
|
<h2>
|
|
<span class="mw-headline" id="Known_limitations">Known limitations</span>
|
|
</h2>
|
|
<ul>
|
|
<li>
|
|
The tarballs do not come with thumbnails for video or pdf files. XOWA will show them as blank.
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dd>
|
|
These thumbnails are generated with other programs. Future versions of XOWA will try to generate them.
|
|
</dd>
|
|
</dl>
|
|
<ul>
|
|
<li>
|
|
imageMagick/inkscape will improperly identify sizes for certain svgs.
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dd>
|
|
For example, on en.wikipedia.org/wiki/Earth, Earth-Moon.svg is 512x320
|
|
<dl>
|
|
<dd>
|
|
imageMagick incorrectly identifies it as 1000,1000.
|
|
</dd>
|
|
<dd>
|
|
inkscape incorrectly identifies it as 1991,316. It provides an X,Y of -825,-2.9 which doesn't help.
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
<ul>
|
|
<li>
|
|
inkscape will improperly show artifacts in certain svgs.
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dd>
|
|
For example, on en.wikipedia.org/wiki/France, France_location_map-Regions_and_departements.svg will have random black lines around Paris
|
|
</dd>
|
|
</dl>
|
|
<h2>
|
|
<span class="mw-headline" id="Offline_thumbnails">Offline thumbnails</span>
|
|
</h2>
|
|
<p>
|
|
Dumping all the thumbnails in a wiki is currently being implemented. See <a href="http://xowa.org/wiki/home/page/Dev/Design/Offline_files.html" id="xolnki_3" title="Dev/Design/Offline files">Dev/Design/Offline_files</a>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="mw-head" class="noprint">
|
|
<div id="left-navigation">
|
|
<div id="p-namespaces" class="vectorTabs">
|
|
<h3>Namespaces</h3>
|
|
<ul>
|
|
<li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id='mw-panel' class='noprint'>
|
|
<div id='p-logo'>
|
|
<a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
|
|
</div>
|
|
<div class="portal" id='xowa-portal-home'>
|
|
<h3>XOWA</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
|
|
<li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-started'>
|
|
<h3>Getting started</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/wiki/home/page/App/Setup/System_requirements.html" title='Get XOWA's system requirements'>Requirements</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-android'>
|
|
<h3>Android</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/wiki/home/page/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-help'>
|
|
<h3>Help</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/wiki/home/page/Help/About.html" title='Get more information about XOWA'>About</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
|
|
<li><a href="http://xowa.org/wiki/home/page/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-blog'>
|
|
<h3>Blog</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://xowa.org/wiki/home/page/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-links'>
|
|
<h3>Links</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
|
|
<li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
|
|
<li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portal" id='xowa-portal-donate'>
|
|
<h3>Donate</h3>
|
|
<div class="body">
|
|
<ul>
|
|
<li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
|
|
<li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
|
|
<!-- <li><a href="" title="Support XOWA! (but only after you've supported archive.org and Wikipedia)">XOWA</a></li> -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |