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

fix_cli_for_fsdb_make_v1a

This commit is contained in:
gnosygnu
2020-09-07 22:43:20 -04:00
parent 52523ced53
commit 2fa92d6e34
161 changed files with 2406 additions and 5103 deletions

View File

@@ -64,7 +64,7 @@
Open up a command-line. For example, on Windows, run <span class='bold'>cmd</span>
</li>
<li>
Run the following: <span class='console'>java -jar C:\000\200_dev\110_java\400_xowa\bin\ --cmd_file C:\xowa\xowa_build.gfs --app_mode cmd</span>
Run the following: <span class='console'>java -jar C:\000\200_dev\110_java\100_core\out\production\400_xowa\ --cmd_file C:\xowa_release\xowa_build.gfs --app_mode cmd</span>
</li>
<li>
Wait about 10 minutes for the script to complete
@@ -78,7 +78,7 @@
</h2>
<ul>
<li>
Open the following file in a <a href="http://xowa.org/home/wiki/Dev/Environment/Text_editor" id="xolnki_2" title="Dev/Environment/Text editor">text editor</a>: <span class='path'>C:\xowa\xowa_build.gfs</span>. See Script below for the full text.
Open the following file in a <a href="/wiki/Dev/Environment/Text_editor" id="xolnki_2" title="Dev/Environment/Text editor">text editor</a>: <span class='path'>C:\xowa_release\xowa_build.gfs</span>. See Script below for the full text.
</li>
<li>
Replace all instances of <span class='bold'>simple.wikipedia.org</span> with the domain name. For example, for English Wikipedia, use <span class='bold'>en.wikipedia.org</span>

View File

@@ -460,8 +460,8 @@ app.bldr.cmds {
commit_interval = 1000; progress_interval = 200; select_interval = 10000;
ns_ids = '0|4|14';
// specify whether original wiki databases are v1 (.sqlite3) or v2 (.xowa)
src_bin_mgr__fsdb_version = 'v1';
// DEPRECATED: specify whether original wiki databases are v1 (.sqlite3) or v2 (.xowa)
// src_bin_mgr__fsdb_version = 'v1';
// always redownload certain files
src_bin_mgr__fsdb_skip_wkrs = 'page_gt_1|small_size';

View File

@@ -460,8 +460,8 @@ app.bldr.cmds {
commit_interval = 1000; progress_interval = 200; select_interval = 10000;
ns_ids = '0|4|14';
// specify whether original wiki databases are v1 (.sqlite3) or v2 (.xowa)
src_bin_mgr__fsdb_version = 'v1';
// DEPRECATED: specify whether original wiki databases are v1 (.sqlite3) or v2 (.xowa)
// src_bin_mgr__fsdb_version = 'v1';
// always redownload certain files
src_bin_mgr__fsdb_skip_wkrs = 'page_gt_1|small_size';

View File

@@ -78,7 +78,7 @@
<b>Current delay in XML dumps</b>: The last good wikidata XML dump was 2+ months old due to problems with dump generation. See: <a href="https://phabricator.wikimedia.org/T98585" rel="nofollow" class="external free">https://phabricator.wikimedia.org/T98585</a>
</li>
<li>
<b>JSON dumps recommended</b>: Wikidata seems to prefer using the JSON dump over the XML dump. See: <a href="/site/www.wikidata.org/wiki/Database_download">http://www.wikidata.org/wiki/Wikidata:Database_download</a>
<b>JSON dumps recommended</b>: Wikidata seems to prefer using the JSON dump over the XML dump. See: <a href="http://www.wikidata.org/wiki/Wikidata:Database_download" rel="nofollow" class="external free">http://www.wikidata.org/wiki/Wikidata:Database_download</a>
</li>
<li>
<b>JSON dumps are more frequent</b>: The JSON dumps have been dumping regularly on a weekly basis. In contrast the XML dumps take 3 - 4 weeks.

View File

@@ -24,10 +24,10 @@
<span class="mw-headline" id="Overview">Overview</span>
</h2>
<p>
XOWA stores the CSS for a wiki page in the following directory: C:\xowa\user\anonymous\wiki\ For example, for simple.wikipedia.org, the css is in C:\xowa\user\anonymous\wiki\simple.wikipedia.org
XOWA stores the CSS for a wiki page in the following directory: C:\xowa_release\user\anonymous\wiki\ For example, for simple.wikipedia.org, the css is in C:\xowa_release\user\anonymous\wiki\simple.wikipedia.org
</p>
<p>
The logo in the upper right-hand corner is called logo.png and stored in C:\xowa\user\anonymous\wiki\simple.wikipedia.org\html\logo.png
The logo in the upper right-hand corner is called logo.png and stored in C:\xowa_release\user\anonymous\wiki\simple.wikipedia.org\html\logo.png
</p>
<p>
The CSS files are downloaded automatically from Wikimedia servers. xowa_common.css is the main file. xowa_wiki.css is the contents of the css at simple.wikipedia.org/wiki/MediaWiki:Commons.css

View File

@@ -18,7 +18,7 @@
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<p>
The Wikimedia data dump files are released in compressed forms: <a href="/site/en.wikipedia.org/wiki/bzip2">bzip2</a> or <a href="/site/en.wikipedia.org/wiki/gzip">gzip</a>. Prior to v0.5.2, XOWA required that the files be uncompressed in order to read them. v0.5.2 allows the user the option to either read directly from the compressed or uncompressed file.
The Wikimedia data dump files are released in compressed forms: <a href="http://en.wikipedia.org/bzip2" rel="nofollow" class="external text">bzip2</a> or <a href="http://en.wikipedia.org/gzip" rel="nofollow" class="external text">gzip</a>. Prior to v0.5.2, XOWA required that the files be uncompressed in order to read them. v0.5.2 allows the user the option to either read directly from the compressed or uncompressed file.
</p>
<div id="toc" class="toc">
<div id="toctitle" class="toctitle">

View File

@@ -108,7 +108,7 @@
</p>
<ul>
<li>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-xtn.category.core.xowa</span> is deleted.
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-xtn.category.core.xowa</span> is deleted.
<ul>
<li>
Categories will no longer show, but the wiki functions as normal
@@ -116,7 +116,7 @@
</ul>
</li>
<li>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-xtn.category.core.xowa</span> is restored.
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-xtn.category.core.xowa</span> is restored.
<ul>
<li>
Categories will now work again.
@@ -158,7 +158,7 @@
en.wikipedia.org-text-ns.012.xowa
</td>
<td>
Articles in the namespace will not be available. See <a href="/site/en.wikipedia.org/wiki/Wikipedia:Namespace">http://en.wikipedia.org/wiki/Wikipedia:Namespace</a> For example, ns.012 is for "Help:" articles
Articles in the namespace will not be available. See <a href="http://en.wikipedia.org/wiki/Wikipedia:Namespace" rel="nofollow" class="external free">http://en.wikipedia.org/wiki/Wikipedia:Namespace</a> For example, ns.012 is for "Help:" articles
</td>
</tr>
<tr>
@@ -249,10 +249,10 @@
old
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org.000.sqlite3</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org.000.sqlite3</span>
</td>
<td>
<span class='path'>C:\xowa\file\en.wikipedia.org\fsdb.main\fsdb.abc.sqlite3</span>
<span class='path'>C:\xowa_release\file\en.wikipedia.org\fsdb.main\fsdb.abc.sqlite3</span>
</td>
</tr>
<tr>
@@ -263,10 +263,10 @@
old
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa</span>
</td>
<td>
<span class='path'>C:\xowa\file\en.wikipedia.org\fsdb.main\fsdb.abc.sqlite3</span>
<span class='path'>C:\xowa_release\file\en.wikipedia.org\fsdb.main\fsdb.abc.sqlite3</span>
</td>
</tr>
<tr>
@@ -277,10 +277,10 @@
new
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org.000.sqlite3</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org.000.sqlite3</span>
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-file-core.xowa</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-file-core.xowa</span>
</td>
</tr>
<tr>
@@ -291,10 +291,10 @@
new
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-core.xowa</span>
</td>
<td>
<span class='path'>C:\xowa\wiki\en.wikipedia.org\en.wikipedia.org-file-core.xowa</span>
<span class='path'>C:\xowa_release\wiki\en.wikipedia.org\en.wikipedia.org-file-core.xowa</span>
</td>
</tr>
</table>

View File

@@ -42,7 +42,7 @@
</p>
<ul>
<li>
<code>[ 50 GB; 03 h]</code> Import the Commons wiki with category level 2. See <a href="/wiki/Dashboard/Import/Offline" id="xolnki_2" title="Dashboard/Import/Offline" class="xowa-visited">Dashboard/Import/Offline</a>
<code>[ 50 GB; 03 h]</code> Import the Commons wiki with category level 2. See <a href="/wiki/Dashboard/Import/Offline" id="xolnki_2" title="Dashboard/Import/Offline">Dashboard/Import/Offline</a>
</li>
<li>
<code>[ 50 GB; 02 h]</code> Download and unzip commonswiki-latest-image.sql.gz

View File

@@ -54,7 +54,7 @@ references
All other extension tags will be disabled. For example, &lt;math&gt; will show up as just &lt;math&gt; LaTeX source instead of being replaced with graphical equations
</p>
<p>
The main purpose of this functionality is to disable extensions in some wikis. For example, the &lt;do&gt; extension is only active in the Wikivoyage wiki. Otherwise, English Wikipedia has an article called <a href="/site/en.wikipedia.org/wiki/Type_system">Type system</a> which will render incorrectly with the following fragment:
The main purpose of this functionality is to disable extensions in some wikis. For example, the &lt;do&gt; extension is only active in the Wikivoyage wiki. Otherwise, English Wikipedia has an article called <a href="https://en.wikipedia.org/wiki/Type_system" rel="nofollow" class="external text">Type system</a> which will render incorrectly with the following fragment:
</p>
<pre>
&lt;code&gt;if &lt;complex test&gt; then &lt;do something&gt; else &lt;generate type error&gt;&lt;/code&gt;

View File

@@ -25,7 +25,7 @@
<b>Large wikis and FAT32</b>:
<ul>
<li>
Most flash memory cards use a <a href="/site/en.wikipedia.org/wiki/FAT32">FAT32</a> file-system. FAT32 is particulary convenient when exchanging files between Windows, Linux, Mac OS X and Android.
Most flash memory cards use a <a href="http://en.wikipedia.org/wiki/FAT32" rel="nofollow" class="external text">FAT32</a> file-system. FAT32 is particulary convenient when exchanging files between Windows, Linux, Mac OS X and Android.
</li>
<li>
FAT32 has a limit of 4GB for any one file. A large wiki like en.wikipedia.org will easily take 20 GB.

View File

@@ -24,7 +24,7 @@
Ubuntu instructions are listed below. Other distro-specific instructions will be added as feedback is received.
</p>
<p>
After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config: <a href="xowa-cmd:%0Aapp.setup.cmds%0A%2F%2F%20Config%20file%0A.cmd_add('wiki.image_cfg'%2C%20'%7E%7B%3C%3Euser_cfg_dir%3C%3E%7Duser_system_cfg.gfs')%0A%20%20.add('.download.enabled_(''n'')'%2C%20'.download.enabled_(''y'')'%0A).owner%0A.cmd_add('msg.ok'%2C%20'config%20updated').owner%0A.run;%0A">update xowa config<img src="file:///C:/xowa/bin/any/xowa/file/app.general/xowa_exec.png"></a>. You can also configure this option at <a href="/wiki/Options/Files" id="xolnki_2" title="Options/Files">Options/Files</a>
After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config: <a href="xowa-cmd:%0Aapp.setup.cmds%0A%2F%2F%20Config%20file%0A.cmd_add('wiki.image_cfg'%2C%20'%7E%7B%3C%3Euser_cfg_dir%3C%3E%7Duser_system_cfg.gfs')%0A%20%20.add('.download.enabled_(''n'')'%2C%20'.download.enabled_(''y'')'%0A).owner%0A.cmd_add('msg.ok'%2C%20'config%20updated').owner%0A.run;%0A">update xowa config<img src="file:///C:/xowa_release/bin/any/xowa/file/app.general/xowa_exec.png"></a>. You can also configure this option at <a href="/wiki/Options/Files" id="xolnki_2" title="Options/Files">Options/Files</a>
</p>
<p>
For more information about the config, see the section below.

View File

@@ -36,7 +36,7 @@ brew install imagemagick
brew cask install inkscape
</pre>
<p>
After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config: <a href="xowa-cmd:%0Aapp.setup.cmds%0A%2F%2F%20Config%20file%0A.cmd_add('wiki.image_cfg'%2C%20'%7E%7B%3C%3Euser_cfg_dir%3C%3E%7Duser_system_cfg.gfs')%0A%20%20.add('.download.enabled_(''n'')'%2C%20'.download.enabled_(''y'')'%0A).owner%0A.cmd_add('msg.ok'%2C%20'config%20updated').owner%0A.run;%0A">update xowa config<img src="file:///C:/xowa/bin/any/xowa/file/app.general/xowa_exec.png"></a>
After ImageMagic and Inkscape are installed, you must click the following link to update XOWA's config: <a href="xowa-cmd:%0Aapp.setup.cmds%0A%2F%2F%20Config%20file%0A.cmd_add('wiki.image_cfg'%2C%20'%7E%7B%3C%3Euser_cfg_dir%3C%3E%7Duser_system_cfg.gfs')%0A%20%20.add('.download.enabled_(''n'')'%2C%20'.download.enabled_(''y'')'%0A).owner%0A.cmd_add('msg.ok'%2C%20'config%20updated').owner%0A.run;%0A">update xowa config<img src="file:///C:/xowa_release/bin/any/xowa/file/app.general/xowa_exec.png"></a>
</p>
<p>
You can also do the following:

View File

@@ -89,7 +89,7 @@
</h2>
<ul>
<li>
Navigate to <a href="/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"
Navigate to <a href="/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"
</li>
<li>
Restart XOWA and navigate to any page. Any images will be downloaded automatically.