1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

v4.6.2.1907

This commit is contained in:
gnosygnu
2019-07-25 07:26:36 -04:00
parent 5ae5ec30b7
commit 9ec04690d6
195 changed files with 4968 additions and 3999 deletions

View File

@@ -37,7 +37,7 @@
<a href="#Software_Requirements"><span class="tocnumber">4</span> <span class="toctext">Software Requirements</span></a>
</li>
<li class="toclevel-1 tocsection-5">
<a href="#Compilation_instructions_.28ANT_command-line.29"><span class="tocnumber">5</span> <span class="toctext">Compilation instructions (ANT command-line)</span></a>
<a href="#Compilation_instructions_(ANT_command-line)"><span class="tocnumber">5</span> <span class="toctext">Compilation instructions (ANT command-line)</span></a>
<ul>
<li class="toclevel-2 tocsection-6">
<a href="#Setup_the_XOWA_app"><span class="tocnumber">5.1</span> <span class="toctext">Setup the XOWA app</span></a>
@@ -51,7 +51,7 @@
</ul>
</li>
<li class="toclevel-1 tocsection-9">
<a href="#IDE_instructions_.28Eclipse.29"><span class="tocnumber">6</span> <span class="toctext">IDE instructions (Eclipse)</span></a>
<a href="#IDE_instructions_(Eclipse)"><span class="tocnumber">6</span> <span class="toctext">IDE instructions (Eclipse)</span></a>
<ul>
<li class="toclevel-2 tocsection-10">
<a href="#Environment"><span class="tocnumber">6.1</span> <span class="toctext">Environment</span></a>
@@ -151,7 +151,7 @@
Note that the last two libraries are not currently used in XOWA.
</p>
<h2>
<span class="mw-headline" id="Compilation_instructions_.28ANT_command-line.29">Compilation instructions (ANT command-line)</span>
<span class="mw-headline" id="Compilation_instructions_(ANT_command-line)">Compilation instructions (ANT command-line)</span>
</h2>
<h3>
<span class="mw-headline" id="Setup_the_XOWA_app">Setup the XOWA app</span>
@@ -203,7 +203,7 @@
</li>
</ul>
<h2>
<span class="mw-headline" id="IDE_instructions_.28Eclipse.29">IDE instructions (Eclipse)</span>
<span class="mw-headline" id="IDE_instructions_(Eclipse)">IDE instructions (Eclipse)</span>
</h2>
<h3>
<span class="mw-headline" id="Environment">Environment</span>

View File

@@ -12,13 +12,6 @@
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
<style data-source="xowa" type="text/css">
.console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
.code
,.path
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">

View File

@@ -12,13 +12,6 @@
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
<style data-source="xowa" type="text/css">
.console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
.code
,.path
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
@@ -80,10 +73,10 @@
<a href="#Hardware"><span class="tocnumber">2.3</span> <span class="toctext">Hardware</span></a>
</li>
<li class="toclevel-2 tocsection-6">
<a href="#Internet-connectivity_.28optional.29"><span class="tocnumber">2.4</span> <span class="toctext">Internet-connectivity (optional)</span></a>
<a href="#Internet-connectivity_(optional)"><span class="tocnumber">2.4</span> <span class="toctext">Internet-connectivity (optional)</span></a>
</li>
<li class="toclevel-2 tocsection-7">
<a href="#Pre-existing_image_databases_for_your_wiki_.28optional.29"><span class="tocnumber">2.5</span> <span class="toctext">Pre-existing image databases for your wiki (optional)</span></a>
<a href="#Pre-existing_image_databases_for_your_wiki_(optional)"><span class="tocnumber">2.5</span> <span class="toctext">Pre-existing image databases for your wiki (optional)</span></a>
</li>
</ul>
</li>
@@ -111,7 +104,7 @@
<a href="#Script:_Simple_Wikipedia_example_with_documentation"><span class="tocnumber">5</span> <span class="toctext">Script: Simple Wikipedia example with documentation</span></a>
</li>
<li class="toclevel-1 tocsection-15">
<a href="#Script:_gnosygnu.27s_actual_English_Wikipedia_script_.28dirty.3B_provided_for_reference_only.29"><span class="tocnumber">6</span> <span class="toctext">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span></a>
<a href="#Script:_gnosygnu's_actual_English_Wikipedia_script_(dirty;_provided_for_reference_only)"><span class="tocnumber">6</span> <span class="toctext">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span></a>
</li>
<li class="toclevel-1 tocsection-16">
<a href="#Change_log"><span class="tocnumber">7</span> <span class="toctext">Change log</span></a>
@@ -205,7 +198,7 @@
For English Wikipedia, it still takes about 50 hours for the entire process.
</p>
<h3>
<span class="mw-headline" id="Internet-connectivity_.28optional.29">Internet-connectivity (optional)</span>
<span class="mw-headline" id="Internet-connectivity_(optional)">Internet-connectivity (optional)</span>
</h3>
<p>
You should have a broadband connection to the internet. The script will need to download dump files from Wikimedia and some dump files (like English Wikipedia) will be in the 10s of GB.
@@ -214,7 +207,7 @@
You can opt to download these files separately and place them in the appropriate location beforehand. However, the script below assumes that the machine is always online. If you are offline, you will need to comment the "util.download" lines yourself.
</p>
<h3>
<span class="mw-headline" id="Pre-existing_image_databases_for_your_wiki_.28optional.29">Pre-existing image databases for your wiki (optional)</span>
<span class="mw-headline" id="Pre-existing_image_databases_for_your_wiki_(optional)">Pre-existing image databases for your wiki (optional)</span>
</h3>
<p>
XOWA will automatically re-use the images from existing image databases so that you do not have to redownload them. This is particularly useful for large wikis where redownloading millions of images would be unwanted.
@@ -315,7 +308,6 @@ app.bldr.cmds {
// build commons database; this only needs to be done once, whenever commons is updated
add ('commons.wikimedia.org' , 'util.cleanup') {delete_all = 'y';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'pages-articles';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'categorylinks';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'page_props';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'image';}
add ('commons.wikimedia.org' , 'text.init');
@@ -323,7 +315,6 @@ app.bldr.cmds {
add ('commons.wikimedia.org' , 'text.term');
add ('commons.wikimedia.org' , 'text.css');
add ('commons.wikimedia.org' , 'wiki.page_props');
add ('commons.wikimedia.org' , 'wiki.categorylinks');
add ('commons.wikimedia.org' , 'wiki.image');
add ('commons.wikimedia.org' , 'file.page_regy') {build_commons = 'y'}
add ('commons.wikimedia.org' , 'wiki.page_dump.make');
@@ -495,7 +486,7 @@ app.bldr.cmds {
app.bldr.run;
</pre>
<h2>
<span class="mw-headline" id="Script:_gnosygnu.27s_actual_English_Wikipedia_script_.28dirty.3B_provided_for_reference_only.29">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span>
<span class="mw-headline" id="Script:_gnosygnu's_actual_English_Wikipedia_script_(dirty;_provided_for_reference_only)">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span>
</h2>
<pre class='code'>
app.bldr.pause_at_end_('n');
@@ -524,7 +515,6 @@ app.bldr.cmds {
add ('commons.wikimedia.org' , 'util.cleanup') {delete_all = 'y';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'pages-articles';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'image';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'categorylinks';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'page_props';}
add ('commons.wikimedia.org' , 'text.init');
add ('commons.wikimedia.org' , 'text.page');

View File

@@ -12,13 +12,6 @@
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
<style data-source="xowa" type="text/css">
.console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
.code
,.path
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">

View File

@@ -12,13 +12,6 @@
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
<style data-source="xowa" type="text/css">
.console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
.code
,.path
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
@@ -80,10 +73,10 @@
<a href="#Hardware"><span class="tocnumber">2.3</span> <span class="toctext">Hardware</span></a>
</li>
<li class="toclevel-2 tocsection-6">
<a href="#Internet-connectivity_.28optional.29"><span class="tocnumber">2.4</span> <span class="toctext">Internet-connectivity (optional)</span></a>
<a href="#Internet-connectivity_(optional)"><span class="tocnumber">2.4</span> <span class="toctext">Internet-connectivity (optional)</span></a>
</li>
<li class="toclevel-2 tocsection-7">
<a href="#Pre-existing_image_databases_for_your_wiki_.28optional.29"><span class="tocnumber">2.5</span> <span class="toctext">Pre-existing image databases for your wiki (optional)</span></a>
<a href="#Pre-existing_image_databases_for_your_wiki_(optional)"><span class="tocnumber">2.5</span> <span class="toctext">Pre-existing image databases for your wiki (optional)</span></a>
</li>
</ul>
</li>
@@ -111,7 +104,7 @@
<a href="#Script:_Simple_Wikipedia_example_with_documentation"><span class="tocnumber">5</span> <span class="toctext">Script: Simple Wikipedia example with documentation</span></a>
</li>
<li class="toclevel-1 tocsection-15">
<a href="#Script:_gnosygnu.27s_actual_English_Wikipedia_script_.28dirty.3B_provided_for_reference_only.29"><span class="tocnumber">6</span> <span class="toctext">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span></a>
<a href="#Script:_gnosygnu's_actual_English_Wikipedia_script_(dirty;_provided_for_reference_only)"><span class="tocnumber">6</span> <span class="toctext">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span></a>
</li>
<li class="toclevel-1 tocsection-16">
<a href="#Change_log"><span class="tocnumber">7</span> <span class="toctext">Change log</span></a>
@@ -205,7 +198,7 @@
For English Wikipedia, it still takes about 50 hours for the entire process.
</p>
<h3>
<span class="mw-headline" id="Internet-connectivity_.28optional.29">Internet-connectivity (optional)</span>
<span class="mw-headline" id="Internet-connectivity_(optional)">Internet-connectivity (optional)</span>
</h3>
<p>
You should have a broadband connection to the internet. The script will need to download dump files from Wikimedia and some dump files (like English Wikipedia) will be in the 10s of GB.
@@ -214,7 +207,7 @@
You can opt to download these files separately and place them in the appropriate location beforehand. However, the script below assumes that the machine is always online. If you are offline, you will need to comment the "util.download" lines yourself.
</p>
<h3>
<span class="mw-headline" id="Pre-existing_image_databases_for_your_wiki_.28optional.29">Pre-existing image databases for your wiki (optional)</span>
<span class="mw-headline" id="Pre-existing_image_databases_for_your_wiki_(optional)">Pre-existing image databases for your wiki (optional)</span>
</h3>
<p>
XOWA will automatically re-use the images from existing image databases so that you do not have to redownload them. This is particularly useful for large wikis where redownloading millions of images would be unwanted.
@@ -315,7 +308,6 @@ app.bldr.cmds {
// build commons database; this only needs to be done once, whenever commons is updated
add ('commons.wikimedia.org' , 'util.cleanup') {delete_all = 'y';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'pages-articles';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'categorylinks';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'page_props';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'image';}
add ('commons.wikimedia.org' , 'text.init');
@@ -323,7 +315,6 @@ app.bldr.cmds {
add ('commons.wikimedia.org' , 'text.term');
add ('commons.wikimedia.org' , 'text.css');
add ('commons.wikimedia.org' , 'wiki.page_props');
add ('commons.wikimedia.org' , 'wiki.categorylinks');
add ('commons.wikimedia.org' , 'wiki.image');
add ('commons.wikimedia.org' , 'file.page_regy') {build_commons = 'y'}
add ('commons.wikimedia.org' , 'wiki.page_dump.make');
@@ -495,7 +486,7 @@ app.bldr.cmds {
app.bldr.run;
</pre>
<h2>
<span class="mw-headline" id="Script:_gnosygnu.27s_actual_English_Wikipedia_script_.28dirty.3B_provided_for_reference_only.29">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span>
<span class="mw-headline" id="Script:_gnosygnu's_actual_English_Wikipedia_script_(dirty;_provided_for_reference_only)">Script: gnosygnu's actual English Wikipedia script (dirty; provided for reference only)</span>
</h2>
<pre class='code'>
app.bldr.pause_at_end_('n');
@@ -524,7 +515,6 @@ app.bldr.cmds {
add ('commons.wikimedia.org' , 'util.cleanup') {delete_all = 'y';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'pages-articles';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'image';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'categorylinks';}
add ('commons.wikimedia.org' , 'util.download') {dump_type = 'page_props';}
add ('commons.wikimedia.org' , 'text.init');
add ('commons.wikimedia.org' , 'text.page');

View File

@@ -12,13 +12,6 @@
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
<style data-source="xowa" type="text/css">
.console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
.code
,.path
,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
.bold {font-weight: 900;}
</style>
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">

View File

@@ -18,7 +18,7 @@
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<h2>
<span class="mw-headline" id="Overview_.28and_disclaimer.29">Overview (and disclaimer)</span>
<span class="mw-headline" id="Overview_(and_disclaimer)">Overview (and disclaimer)</span>
</h2>
<p>
XOWA uses a custom text format called gfs (an acronym for the gfs flexible script). It is a plain-text config file with a Java-like syntax.

View File

@@ -31,7 +31,7 @@
<a href="#bzip2:_disk_space_vs_speed"><span class="tocnumber">1</span> <span class="toctext">bzip2: disk space vs speed</span></a>
</li>
<li class="toclevel-1 tocsection-2">
<a href="#bzip2:_Application_install_.28GUI.29"><span class="tocnumber">2</span> <span class="toctext">bzip2: Application install (GUI)</span></a>
<a href="#bzip2:_Application_install_(GUI)"><span class="tocnumber">2</span> <span class="toctext">bzip2: Application install (GUI)</span></a>
</li>
<li class="toclevel-1 tocsection-3">
<a href="#Command-line_install"><span class="tocnumber">3</span> <span class="toctext">Command-line install</span></a>
@@ -65,7 +65,7 @@
If you have the extra disk space, you will want to use the <b>unzip</b> route. If you are low on disk space, then you can use the <b>bzip2</b> route instead
</p>
<h2>
<span class="mw-headline" id="bzip2:_Application_install_.28GUI.29">bzip2: Application install (GUI)</span>
<span class="mw-headline" id="bzip2:_Application_install_(GUI)">bzip2: Application install (GUI)</span>
</h2>
<p>
By default, the application install uses the <b>unzip</b> route.

View File

@@ -37,7 +37,7 @@
<a href="#Image_Magic_and_Inkscape"><span class="tocnumber">4</span> <span class="toctext">Image Magic and Inkscape</span></a>
</li>
<li class="toclevel-1 tocsection-5">
<a href="#.5Eorig_regy.sqlite3"><span class="tocnumber">5</span> <span class="toctext">^orig_regy.sqlite3</span></a>
<a href="#^orig_regy.sqlite3"><span class="tocnumber">5</span> <span class="toctext">^orig_regy.sqlite3</span></a>
</li>
<li class="toclevel-1 tocsection-6">
<a href="#Urls"><span class="tocnumber">6</span> <span class="toctext">Urls</span></a>
@@ -146,7 +146,7 @@ app.wikis.get('my_wiki').files.wkrs.get('fs.dir') {
<br>
</p>
<h2>
<span class="mw-headline" id=".5Eorig_regy.sqlite3">^orig_regy.sqlite3</span>
<span class="mw-headline" id="^orig_regy.sqlite3">^orig_regy.sqlite3</span>
</h2>
<ul>
<li>

View File

@@ -40,7 +40,7 @@
<a href="#Ubuntu"><span class="tocnumber">1</span> <span class="toctext">Ubuntu</span></a>
</li>
<li class="toclevel-1 tocsection-2">
<a href="#Config_.28all_distros.29"><span class="tocnumber">2</span> <span class="toctext">Config (all distros)</span></a>
<a href="#Config_(all_distros)"><span class="tocnumber">2</span> <span class="toctext">Config (all distros)</span></a>
<ul>
<li class="toclevel-2 tocsection-3">
<a href="#Enable_images"><span class="tocnumber">2.1</span> <span class="toctext">Enable images</span></a>
@@ -66,7 +66,7 @@ sudo apt-get install imagemagick
sudo apt-get install inkscape
</pre>
<h2>
<span class="mw-headline" id="Config_.28all_distros.29">Config (all distros)</span>
<span class="mw-headline" id="Config_(all_distros)">Config (all distros)</span>
</h2>
<h3>
<span class="mw-headline" id="Enable_images">Enable images</span>

View File

@@ -89,12 +89,15 @@
</h2>
<ul>
<li>
Navigate to <a href="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.files.general" id="xolnki_2" title="Special:XowaCfg?grp=xowa.files.general">Options: Files - General</a> and check "Download enabled"
Navigate to <a href="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.files.general" id="xolnki_2" title="Special:XowaCfg?grp=xowa.files.general" class="xowa-visited">Options: Files - General</a> and check "Download enabled"
</li>
<li>
Restart XOWA and navigate to any page. Any images will be downloaded automatically.
</li>
</ul>
<p>
<br>
</p>
<h2>
<span class="mw-headline" id="Notes">Notes</span>
</h2>

View File

@@ -51,10 +51,10 @@
<a href="#Get_a_Solid_State_Drive"><span class="tocnumber">6</span> <span class="toctext">Get a Solid State Drive</span></a>
</li>
<li class="toclevel-1 tocsection-9">
<a href="#Use_an_INDEX_for_your_SELECTs.2C_especially_JOINs"><span class="tocnumber">7</span> <span class="toctext">Use an INDEX for your SELECTs, especially JOINs</span></a>
<a href="#Use_an_INDEX_for_your_SELECTs,_especially_JOINs"><span class="tocnumber">7</span> <span class="toctext">Use an INDEX for your SELECTs, especially JOINs</span></a>
</li>
<li class="toclevel-1 tocsection-10">
<a href="#Use_TRANSACTIONs_for_multiple_INSERT_.2F_UPDATE_.2F_DELETE"><span class="tocnumber">8</span> <span class="toctext">Use TRANSACTIONs for multiple INSERT / UPDATE / DELETE</span></a>
<a href="#Use_TRANSACTIONs_for_multiple_INSERT_/_UPDATE_/_DELETE"><span class="tocnumber">8</span> <span class="toctext">Use TRANSACTIONs for multiple INSERT / UPDATE / DELETE</span></a>
</li>
<li class="toclevel-1 tocsection-11">
<a href="#Use_PRAGMA_page_size_4096"><span class="tocnumber">9</span> <span class="toctext">Use PRAGMA page_size 4096</span></a>
@@ -186,10 +186,10 @@ FROM tbl1 t1
SQLite does a lot of disk reading and writing
</p>
<h2>
<span class="mw-headline" id="Use_an_INDEX_for_your_SELECTs.2C_especially_JOINs">Use an INDEX for your SELECTs, especially JOINs</span>
<span class="mw-headline" id="Use_an_INDEX_for_your_SELECTs,_especially_JOINs">Use an INDEX for your SELECTs, especially JOINs</span>
</h2>
<h2>
<span class="mw-headline" id="Use_TRANSACTIONs_for_multiple_INSERT_.2F_UPDATE_.2F_DELETE">Use TRANSACTIONs for multiple INSERT / UPDATE / DELETE</span>
<span class="mw-headline" id="Use_TRANSACTIONs_for_multiple_INSERT_/_UPDATE_/_DELETE">Use TRANSACTIONs for multiple INSERT / UPDATE / DELETE</span>
</h2>
<h2>
<span class="mw-headline" id="Use_PRAGMA_page_size_4096">Use PRAGMA page_size 4096</span>