mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
516 lines
19 KiB
HTML
516 lines
19 KiB
HTML
<!DOCTYPE html>
|
|
<html dir="ltr">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
|
<title>Options/Import Dansguardian - 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">
|
|
<style data-source="xowa">
|
|
.options_row_label {font-weight:bold; vertical-align:text-top; text-align:right; width:150px;}
|
|
.options_table {border: 1px solid #AAAAAA; border-collapse: collapse; color: black; margin: 1em 0; background-color: #F9F9F9;}
|
|
.options_table td {border: 1px solid #AAAAAA; padding: 0.2em;}
|
|
.options_textbox {padding: 2px; border: 1px solid black;}
|
|
.options_textbox_num {padding: 2px; border: 1px solid black; text-align:right;}
|
|
.options_textarea {padding: 2px; border: 1px solid black;}
|
|
.options_select {padding: 2px; border: 1px solid black;}
|
|
.options_button {padding: 2px; border: 1px solid black; background: white; height: 22px; margin-left: 1px; vertical-align: top;}
|
|
.options_checkbox {padding: 2px; border: 1px solid black;}
|
|
.options_readonly {background-color:#F9F9F9;}
|
|
</style>
|
|
<style data-source="xowa">
|
|
.optionsButton
|
|
{
|
|
width: 100px;
|
|
height: 40px;
|
|
font-family: 'Segoe UI';
|
|
font-size: 12px;
|
|
margin-left: -5px;
|
|
cursor: pointer;
|
|
background-color: lightgray;
|
|
text-align: center;
|
|
}
|
|
|
|
.optionsLink
|
|
{
|
|
color: black !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.optionsButton.active
|
|
{
|
|
width: 100px;
|
|
height: 40px;
|
|
font-family: 'Segoe UI';
|
|
font-size: 12px;
|
|
margin-left: -5px;
|
|
cursor: pointer;
|
|
background-color: dimgray;
|
|
color: white !important;
|
|
border: solid 1px dimgray;
|
|
}
|
|
.optionsButton.active a
|
|
{
|
|
color: white !important;
|
|
}
|
|
|
|
.tabs
|
|
{
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.tab-links ul
|
|
{
|
|
margin-left: -40px;
|
|
}
|
|
.tab-links li
|
|
{
|
|
margin: 0px 0px 0px 0px;
|
|
float: left;
|
|
list-style: none;
|
|
}
|
|
|
|
.tab-links a
|
|
{
|
|
padding: 9px 15px 9px 15px;
|
|
border-radius: 3px 3px 0px 0px;
|
|
background: #f0f0f0;
|
|
font-family: 'Segoe UI';
|
|
font-size: 13px;
|
|
color: black !important;
|
|
text-decoration: none;
|
|
border-radius: 3px;
|
|
border-top: solid 1px gray;
|
|
border-left: solid 1px gray;
|
|
border-right: solid 1px gray;
|
|
}
|
|
|
|
.tab-links a:hover
|
|
{
|
|
background: #B0B0B0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
li.active a, li.active a:hover
|
|
{
|
|
background: #fff;
|
|
color: #4c4c4c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tab-content
|
|
{
|
|
padding: 15px;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
border-top: solid 1px gray;
|
|
margin-top: 5px;
|
|
min-height: 300px;
|
|
}
|
|
</style>
|
|
<style data-source="xowa">
|
|
.options_row_label {font-weight:bold; vertical-align:text-top; text-align:right; width:150px;}
|
|
.options_table {border: 1px solid #AAAAAA; border-collapse: collapse; color: black; margin: 1em 0; background-color: #F9F9F9;}
|
|
.options_table td {border: 1px solid #AAAAAA; padding: 0.2em;}
|
|
.options_textbox {padding: 2px; border: 1px solid black;}
|
|
.options_textbox_num {padding: 2px; border: 1px solid black; text-align:right;}
|
|
.options_textarea {padding: 2px; border: 1px solid black;}
|
|
.options_select {padding: 2px; border: 1px solid black;}
|
|
.options_button {padding: 2px; border: 1px solid black; background: white; height: 22px; margin-left: 1px; vertical-align: top;}
|
|
.options_checkbox {padding: 2px; border: 1px solid black;}
|
|
.options_readonly {background-color:#F9F9F9;}
|
|
</style>
|
|
<style data-source="xowa">
|
|
.optionsButton
|
|
{
|
|
width: 100px;
|
|
height: 40px;
|
|
font-family: 'Segoe UI';
|
|
font-size: 12px;
|
|
margin-left: -5px;
|
|
cursor: pointer;
|
|
background-color: lightgray;
|
|
text-align: center;
|
|
}
|
|
|
|
.optionsLink
|
|
{
|
|
color: black !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.optionsButton.active
|
|
{
|
|
width: 100px;
|
|
height: 40px;
|
|
font-family: 'Segoe UI';
|
|
font-size: 12px;
|
|
margin-left: -5px;
|
|
cursor: pointer;
|
|
background-color: dimgray;
|
|
color: white !important;
|
|
border: solid 1px dimgray;
|
|
}
|
|
.optionsButton.active a
|
|
{
|
|
color: white !important;
|
|
}
|
|
|
|
.tabs
|
|
{
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.tab-links ul
|
|
{
|
|
margin-left: -40px;
|
|
}
|
|
.tab-links li
|
|
{
|
|
margin: 0px 0px 0px 0px;
|
|
float: left;
|
|
list-style: none;
|
|
}
|
|
|
|
.tab-links a
|
|
{
|
|
padding: 9px 15px 9px 15px;
|
|
border-radius: 3px 3px 0px 0px;
|
|
background: #f0f0f0;
|
|
font-family: 'Segoe UI';
|
|
font-size: 13px;
|
|
color: black !important;
|
|
text-decoration: none;
|
|
border-radius: 3px;
|
|
border-top: solid 1px gray;
|
|
border-left: solid 1px gray;
|
|
border-right: solid 1px gray;
|
|
}
|
|
|
|
.tab-links a:hover
|
|
{
|
|
background: #B0B0B0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
li.active a, li.active a:hover
|
|
{
|
|
background: #fff;
|
|
color: #4c4c4c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tab-content
|
|
{
|
|
padding: 15px;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
border-top: solid 1px gray;
|
|
margin-top: 5px;
|
|
min-height: 300px;
|
|
}
|
|
</style>
|
|
|
|
</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>Options/Import Dansguardian</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">
|
|
|
|
<div>
|
|
<table>
|
|
<tr>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Window'>Apps (basic)</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Security'>Apps (advanced)</a>
|
|
</td>
|
|
<td class='optionsButton active'>
|
|
<a class='optionsLink' href='/wiki/Options/Import'>Wiki</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/HTML'>HTML</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Content_apps'>External apps</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Search_suggest'>Modules</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Math'>Extensions</a>
|
|
</td>
|
|
<td class='optionsButton'>
|
|
<a class='optionsLink' href='/wiki/Options/Dev'>Misc</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="tabs">
|
|
<div>
|
|
<ul class='tab-links' style='margin-left:0px;'>
|
|
<li class=''>
|
|
<a href='/wiki/Options/Import'>Import</a>
|
|
</li>
|
|
<li class=''>
|
|
<a href='/wiki/Options/Files'>Files</a>
|
|
</li>
|
|
<li class=''>
|
|
<a href='/wiki/Options/Category'>Category</a>
|
|
</li>
|
|
<li class='active'>
|
|
<a href='/wiki/Options/Import_Dansguardian'>Import Dansguardian</a>
|
|
</li>
|
|
</ul>
|
|
</div><br>
|
|
<div class='tab-content'>
|
|
<div id="toc" class="toc">
|
|
<div id="toctitle">
|
|
<h2>
|
|
Contents
|
|
</h2>
|
|
</div>
|
|
<ul>
|
|
<li class="toclevel-1 tocsection-1">
|
|
<a href="#Basic"><span class="tocnumber">1</span> <span class="toctext">Basic</span></a>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-2">
|
|
<a href="#Notes"><span class="tocnumber">2</span> <span class="toctext">Notes</span></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div style='float:right; margin-right:10px; margin-top:5px;'>
|
|
<p>
|
|
<a href="xowa-cmd:app.user.prefs.save();" accesskey='s'><img src='file:///C:/xowa/bin/any/xowa/file/app.window/save.png' width="16" height="16">Save</a>
|
|
</p>
|
|
</div><br>
|
|
|
|
<p>
|
|
For more information, see <a href="http://xowa.org/home/wiki/App/Xtn/Import/Dansguardian.html" id="xolnki_2" title="App/Xtn/Import/Dansguardian">App/Xtn/Import/Dansguardian</a>
|
|
</p>
|
|
<h2>
|
|
<span class="mw-headline" id="Basic">Basic</span>
|
|
</h2>
|
|
<table class='options_table'>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Enabled: <sup id="cite_ref-enabled_0-0" class="reference"><a href="#cite_note-enabled-0">[1]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.enabled" type="checkbox" class="options_checkbox" id='xowa_prop_0'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Root directory: <sup id="cite_ref-root_dir_1-0" class="reference"><a href="#cite_note-root_dir-1">[2]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.root_dir" class="options_textbox" style="width: 400px;" id='xowa_prop_1' value='C:\xowa\bin\any\xowa\cfg\bldr\filter\'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Initial page score: <sup id="cite_ref-score_init_2-0" class="reference"><a href="#cite_note-score_init-2">[3]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.score_init" class="options_textbox" style="width: 100px;" id='xowa_prop_2' value='0'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Filtered page score: <sup id="cite_ref-score_fail_3-0" class="reference"><a href="#cite_note-score_fail-3">[4]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.score_fail" class="options_textbox" style="width: 100px;" id='xowa_prop_3' value='0'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Case sensitive: <sup id="cite_ref-case_match_4-0" class="reference"><a href="#cite_note-case_match-4">[5]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.case_match" type="checkbox" class="options_checkbox" id='xowa_prop_4'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='options_row_label'>
|
|
Log enabled: <sup id="cite_ref-log_enabled_5-0" class="reference"><a href="#cite_note-log_enabled-5">[6]</a></sup>
|
|
</td>
|
|
<td>
|
|
<input xowa_prop="xowa.api.bldr.wiki.filter.dansguardian.log_enabled" type="checkbox" class="options_checkbox" id='xowa_prop_5' checked='checked'>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<br>
|
|
</p>
|
|
<h2>
|
|
<span class="mw-headline" id="Notes">Notes</span>
|
|
</h2>
|
|
<ol class="references">
|
|
<li id="cite_note-enabled-0">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-enabled_0-0">^</a></span> <span class="reference-text">Choose one of the following: (default is <code>unchecked</code>)</span>
|
|
<ul>
|
|
<li>
|
|
<span class="reference-text"><b>checked</b>: import filter system is enabled</span>
|
|
</li>
|
|
<li>
|
|
<span class="reference-text"><b>unchecked</b>: (default) import filter system is disabled</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li id="cite_note-root_dir-1">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-root_dir_1-0">^</a></span> <span class="reference-text">Enter the root directory where the filters are located. Note that dansguardian files must be placed within a folder named after wiki. For example, on a Windows system, a phraselist file for simple.wikipedia.org can be placed at <code>C:\xowa\bin\any\xowa\cfg\bldr\filter\simple.wikipedia.org\dansguardian\phraselist1.txt</code></span>
|
|
</li>
|
|
<li id="cite_note-score_init-2">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-score_init_2-0">^</a></span> <span class="reference-text">Enter the initial score of a page. (default is <code>0</code>)</span>
|
|
<ul>
|
|
<li>
|
|
<span class="reference-text">For building a wiki where pages matching the filter are removed, choose a score of 0.</span>
|
|
</li>
|
|
<li>
|
|
<span class="reference-text">For building a wiki where pages matching the filter are kept, choose a positive score like 100.</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li id="cite_note-score_fail-3">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-score_fail_3-0">^</a></span> <span class="reference-text">Enter the score which causes the page to be removed from the database. (default is <code>0</code>)</span>
|
|
<ul>
|
|
<li>
|
|
<span class="reference-text">Any page which has a score higher than the fail score will be removed from the database.</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li id="cite_note-case_match-4">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-case_match_4-0">^</a></span> <span class="reference-text">Choose if case sensitivity is enabled. (default is <code>unchecked</code>)</span>
|
|
<ul>
|
|
<li>
|
|
<span class="reference-text">If checked, words are matched by case-sensitivity. For example, "< earth >" will match "earth", but not "Earth".</span>
|
|
</li>
|
|
<li>
|
|
<span class="reference-text">If unchecked, words are matched regardless of case. For example, "< earth >" will match "earth" and "Earth". Note that this will slow the import process down by 5% - 10%</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li id="cite_note-log_enabled-5">
|
|
<span class="mw-cite-backlink"><a href="#cite_ref-log_enabled_5-0">^</a></span> <span class="reference-text">Choose if a log is enabled. (default is <code>checked</code>)</span>
|
|
<ul>
|
|
<li>
|
|
<span class="reference-text">If checked, a database called dansguardian_log.sqlite3 will be created at <code>/xowa/bin/any/xowa/cfg/bldr/filter/wiki_name/</code></span>
|
|
</li>
|
|
<li>
|
|
<span class="reference-text">If unchecked, no database will be created</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
</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/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/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/home/wiki/App/Setup/System_requirements.html" title='Get XOWA's system requirements'>Requirements</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/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/home/wiki/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/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
|
|
<li><a href="http://xowa.org/home/wiki/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/home/wiki/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> |