Import_Dansguardian.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Options/Import Dansguardian - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Options/Import Dansguardian</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <div id='xocfg_body'>
  19. <!-- TEXT:err_msg -->
  20. <div id='xocfg_err'></div>
  21. <div>
  22. <!-- BTN:info -->
  23. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.cfg_edit.help__toggle_all()' title='toggle all help'>&nbsp;</span>
  24. <!-- COMBO:cfg_grps -->
  25. <select id='xocfg_nav_select' onchange='xo.cfg_edit.select__send(this);' onkeyup='xo.cfg_edit.select__by_keypress(event, this);' accesskey='l'>
  26. <option value='xowa.app.security' >App - Security</option>
  27. <option value='xowa.app.startup' >App - Startup</option>
  28. <option value='xowa.app.dbs' >App - Databases</option>
  29. <option value='xowa.app.update' >App - Update</option>
  30. <option value='xowa.gui.general' >Gui - General</option>
  31. <option value='xowa.gui.tabs' >Gui - Tabs</option>
  32. <option value='xowa.gui.url_bar' >Gui - Address bar</option>
  33. <option value='xowa.gui.menus' >Gui - Menus</option>
  34. <option value='xowa.gui.shortcuts' >Gui - Shortcuts</option>
  35. <option value='xowa.gui.nightmode' >Gui - Nightmode</option>
  36. <option value='xowa.wiki.hdumps' >Wiki - HTML Databases</option>
  37. <option value='xowa.wiki.edit' >Wiki - Editing</option>
  38. <option value='xowa.bldr.general' >Import - General</option>
  39. <option value='xowa.bldr.db' >Import - Database</option>
  40. <option value='xowa.bldr.page_sync' >Import - Page sync</option>
  41. <option value='xowa.bldr.dansguardian' selected='selected'>Import - Dansguardian</option>
  42. <option value='xowa.html.css' >HTML - CSS</option>
  43. <option value='xowa.html.page' >HTML - Page</option>
  44. <option value='xowa.html.tidy' >HTML - Tidy</option>
  45. <option value='xowa.html.scripting' >HTML - Scripting</option>
  46. <option value='xowa.files.general' >Files - General</option>
  47. <option value='xowa.files.apps' >Files - Apps</option>
  48. <option value='xowa.addon.search' >Addon - Search</option>
  49. <option value='xowa.addon.fulltext_search' >Addon - Full-text search</option>
  50. <option value='xowa.addon.category' >Addon - Category</option>
  51. <option value='xowa.addon.http_server' >Addon - HTTP Server</option>
  52. <option value='xowa.addon.scribunto' >Addon - Scribunto</option>
  53. <option value='xowa.addon.math' >Addon - Math</option>
  54. <option value='xowa.addon.score' >Addon - Score</option>
  55. <option value='xowa.addon.popups' >Addon - Popups</option>
  56. <option value='xowa.addon.wikibase' >Addon - Wikidata</option>
  57. <option value='xowa.dev.general' >Dev - General</option>
  58. <option value='xowa.app.settings' >App - Settings</option>
  59. </select>
  60. <!-- LINK:cfg_link -->
  61. <div style='float:right;margin:2px 7px;'>
  62. <a id='options_lnk'>options link</a>
  63. </div>
  64. </div>
  65. <div id='cfg_grps'>
  66. <!-- TEXT:page_help -->
  67. <div>
  68. <p id='page_help_para'><p>For more information, see <a href="/wiki/App/Xtn/Import/Dansguardian" id="xolnki_20" title="App/Xtn/Import/Dansguardian" tabindex="-1">App/Xtn/Import/Dansguardian</a>
  69. </p>
  70. </p>
  71. </div>
  72. <h2>Basic</h2>
  73. <div class="xocfg_row flex_div">
  74. <!-- BTN:help_item -->
  75. <div class='xocfg_itm_help'>
  76. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.enabled")' title='view more info'>&nbsp;</span>
  77. </div>
  78. <!-- TEXT:key -->
  79. <div id='xowa.bldr.dansguardian.enabled__name' class='xocfg_itm_name'>Enabled</div>
  80. <!-- BTN:undo -->
  81. <div id='xowa.bldr.dansguardian.enabled__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
  82. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.enabled")' title="reset to &quot;n&quot;">&nbsp;</span>
  83. </div>
  84. <!-- TEXT:val -->
  85. <div class='xocfg_itm_data'>
  86. <input id="xowa.bldr.dansguardian.enabled" data-xocfg-key="xowa.bldr.dansguardian.enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox"></input></div>
  87. <!-- HIDDEN:key,ctx -->
  88. <input type='hidden' id='xowa.bldr.dansguardian.enabled__key_box' value='xowa.bldr.dansguardian.enabled'></input>
  89. <input type='hidden' id='xowa.bldr.dansguardian.enabled__ctx_box' value='app'></input>
  90. </div>
  91. <!-- DIV:help -->
  92. <div id='xowa.bldr.dansguardian.enabled_help_div' class='xohelp_div'>
  93. <div id='xowa.bldr.dansguardian.enabled_help_msg' class='xohelp_msg'><p>Choose one of the following:
  94. </p>
  95. <ul>
  96. <li> <b>checked</b>: Import filter system is enabled
  97. </li>
  98. <li> <b>unchecked</b>: Import filter system is disabled
  99. </li>
  100. </ul>
  101. </div>
  102. </div>
  103. <div class="xocfg_row flex_div">
  104. <!-- BTN:help_item -->
  105. <div class='xocfg_itm_help'>
  106. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.root_dir")' title='view more info'>&nbsp;</span>
  107. </div>
  108. <!-- TEXT:key -->
  109. <div id='xowa.bldr.dansguardian.root_dir__name' class='xocfg_itm_name'>Root directory</div>
  110. <!-- BTN:undo -->
  111. <div id='xowa.bldr.dansguardian.root_dir__undo' data-xocfg-type='string' class='xocfg_itm_delete xocfg_itm_hide'>
  112. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.root_dir")' title="reset to &quot;C:\xowa_release\bin\any\xowa\cfg\bldr\filter\&quot;">&nbsp;</span>
  113. </div>
  114. <!-- TEXT:val -->
  115. <div class='xocfg_itm_data'>
  116. <input id="xowa.bldr.dansguardian.root_dir" data-xocfg-key="xowa.bldr.dansguardian.root_dir" data-xocfg-type="string" accesskey="d" class="xocfg_data__str" type="text" value="C:\xowa_release\bin\any\xowa\cfg\bldr\filter\"></input></div>
  117. <!-- HIDDEN:key,ctx -->
  118. <input type='hidden' id='xowa.bldr.dansguardian.root_dir__key_box' value='xowa.bldr.dansguardian.root_dir'></input>
  119. <input type='hidden' id='xowa.bldr.dansguardian.root_dir__ctx_box' value='app'></input>
  120. </div>
  121. <!-- DIV:help -->
  122. <div id='xowa.bldr.dansguardian.root_dir_help_div' class='xohelp_div'>
  123. <div id='xowa.bldr.dansguardian.root_dir_help_msg' class='xohelp_msg'><p>Enter the root directory where the filters are located.
  124. </p>
  125. <p>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>
  126. </p>
  127. </div>
  128. </div>
  129. <div class="xocfg_row flex_div">
  130. <!-- BTN:help_item -->
  131. <div class='xocfg_itm_help'>
  132. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.score_init")' title='view more info'>&nbsp;</span>
  133. </div>
  134. <!-- TEXT:key -->
  135. <div id='xowa.bldr.dansguardian.score_init__name' class='xocfg_itm_name'>Initial page score</div>
  136. <!-- BTN:undo -->
  137. <div id='xowa.bldr.dansguardian.score_init__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  138. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.score_init")' title="reset to &quot;0&quot;">&nbsp;</span>
  139. </div>
  140. <!-- TEXT:val -->
  141. <div class='xocfg_itm_data'>
  142. <input id="xowa.bldr.dansguardian.score_init" data-xocfg-key="xowa.bldr.dansguardian.score_init" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="0"></input></div>
  143. <!-- HIDDEN:key,ctx -->
  144. <input type='hidden' id='xowa.bldr.dansguardian.score_init__key_box' value='xowa.bldr.dansguardian.score_init'></input>
  145. <input type='hidden' id='xowa.bldr.dansguardian.score_init__ctx_box' value='app'></input>
  146. </div>
  147. <!-- DIV:help -->
  148. <div id='xowa.bldr.dansguardian.score_init_help_div' class='xohelp_div'>
  149. <div id='xowa.bldr.dansguardian.score_init_help_msg' class='xohelp_msg'><p>Enter the initial score of a page.
  150. </p>
  151. <ul>
  152. <li> For building a wiki where pages matching the filter are removed, choose a score of 0.
  153. </li>
  154. <li> For building a wiki where pages matching the filter are kept, choose a positive score like 100.
  155. </li>
  156. </ul>
  157. </div>
  158. </div>
  159. <div class="xocfg_row flex_div">
  160. <!-- BTN:help_item -->
  161. <div class='xocfg_itm_help'>
  162. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.score_fail")' title='view more info'>&nbsp;</span>
  163. </div>
  164. <!-- TEXT:key -->
  165. <div id='xowa.bldr.dansguardian.score_fail__name' class='xocfg_itm_name'>Filtered page score</div>
  166. <!-- BTN:undo -->
  167. <div id='xowa.bldr.dansguardian.score_fail__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  168. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.score_fail")' title="reset to &quot;0&quot;">&nbsp;</span>
  169. </div>
  170. <!-- TEXT:val -->
  171. <div class='xocfg_itm_data'>
  172. <input id="xowa.bldr.dansguardian.score_fail" data-xocfg-key="xowa.bldr.dansguardian.score_fail" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="0"></input></div>
  173. <!-- HIDDEN:key,ctx -->
  174. <input type='hidden' id='xowa.bldr.dansguardian.score_fail__key_box' value='xowa.bldr.dansguardian.score_fail'></input>
  175. <input type='hidden' id='xowa.bldr.dansguardian.score_fail__ctx_box' value='app'></input>
  176. </div>
  177. <!-- DIV:help -->
  178. <div id='xowa.bldr.dansguardian.score_fail_help_div' class='xohelp_div'>
  179. <div id='xowa.bldr.dansguardian.score_fail_help_msg' class='xohelp_msg'><p>Enter the score which causes the page to be removed from the database.
  180. </p>
  181. <ul>
  182. <li> Any page which has a score higher than the fail score will be removed from the database.
  183. </li>
  184. </ul>
  185. </div>
  186. </div>
  187. <div class="xocfg_row flex_div">
  188. <!-- BTN:help_item -->
  189. <div class='xocfg_itm_help'>
  190. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.case_match")' title='view more info'>&nbsp;</span>
  191. </div>
  192. <!-- TEXT:key -->
  193. <div id='xowa.bldr.dansguardian.case_match__name' class='xocfg_itm_name'>Case sensitive</div>
  194. <!-- BTN:undo -->
  195. <div id='xowa.bldr.dansguardian.case_match__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
  196. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.case_match")' title="reset to &quot;n&quot;">&nbsp;</span>
  197. </div>
  198. <!-- TEXT:val -->
  199. <div class='xocfg_itm_data'>
  200. <input id="xowa.bldr.dansguardian.case_match" data-xocfg-key="xowa.bldr.dansguardian.case_match" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox"></input></div>
  201. <!-- HIDDEN:key,ctx -->
  202. <input type='hidden' id='xowa.bldr.dansguardian.case_match__key_box' value='xowa.bldr.dansguardian.case_match'></input>
  203. <input type='hidden' id='xowa.bldr.dansguardian.case_match__ctx_box' value='app'></input>
  204. </div>
  205. <!-- DIV:help -->
  206. <div id='xowa.bldr.dansguardian.case_match_help_div' class='xohelp_div'>
  207. <div id='xowa.bldr.dansguardian.case_match_help_msg' class='xohelp_msg'><p>Choose if case sensitivity is enabled.
  208. </p>
  209. <ul>
  210. <li> If checked, words are matched by case-sensitivity. For example, &quot;&lt; earth &gt;&quot; will match &quot;earth&quot;, but not &quot;Earth&quot;.
  211. </li>
  212. <li> If unchecked, words are matched regardless of case. For example, &quot;&lt; earth &gt;&quot; will match &quot;earth&quot; and &quot;Earth&quot;. Note that this will slow the import process down by 5% - 10%
  213. </li>
  214. </ul>
  215. </div>
  216. </div>
  217. <div class="xocfg_row flex_div">
  218. <!-- BTN:help_item -->
  219. <div class='xocfg_itm_help'>
  220. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.bldr.dansguardian.log_enabled")' title='view more info'>&nbsp;</span>
  221. </div>
  222. <!-- TEXT:key -->
  223. <div id='xowa.bldr.dansguardian.log_enabled__name' class='xocfg_itm_name'>Log enabled</div>
  224. <!-- BTN:undo -->
  225. <div id='xowa.bldr.dansguardian.log_enabled__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
  226. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.bldr.dansguardian.log_enabled")' title="reset to &quot;y&quot;">&nbsp;</span>
  227. </div>
  228. <!-- TEXT:val -->
  229. <div class='xocfg_itm_data'>
  230. <input id="xowa.bldr.dansguardian.log_enabled" data-xocfg-key="xowa.bldr.dansguardian.log_enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox" checked="checked"></input></div>
  231. <!-- HIDDEN:key,ctx -->
  232. <input type='hidden' id='xowa.bldr.dansguardian.log_enabled__key_box' value='xowa.bldr.dansguardian.log_enabled'></input>
  233. <input type='hidden' id='xowa.bldr.dansguardian.log_enabled__ctx_box' value='app'></input>
  234. </div>
  235. <!-- DIV:help -->
  236. <div id='xowa.bldr.dansguardian.log_enabled_help_div' class='xohelp_div'>
  237. <div id='xowa.bldr.dansguardian.log_enabled_help_msg' class='xohelp_msg'><p>Choose if a log is enabled.
  238. </p>
  239. <ul>
  240. <li> If checked, a database called dansguardian_log.sqlite3 will be created at <code>/xowa/wiki/wiki_name/</code>
  241. </li>
  242. <li> If unchecked, no database will be created
  243. </li>
  244. </ul>
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. <div id="mw-head" class="noprint">
  253. <div id="left-navigation">
  254. <div id="p-namespaces" class="vectorTabs">
  255. <h3>Namespaces</h3>
  256. <ul>
  257. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  258. </ul>
  259. </div>
  260. </div>
  261. </div>
  262. <div id='mw-panel' class='noprint'>
  263. <div id='p-logo'>
  264. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  265. </div>
  266. <div class="portal" id='xowa-portal-home'>
  267. <h3>XOWA</h3>
  268. <div class="body">
  269. <ul>
  270. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  271. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  272. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  273. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  274. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  275. </ul>
  276. </div>
  277. </div>
  278. <div class="portal" id='xowa-portal-started'>
  279. <h3>Getting started</h3>
  280. <div class="body">
  281. <ul>
  282. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  283. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  284. <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>
  285. <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>
  286. <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>
  287. </ul>
  288. </div>
  289. </div>
  290. <div class="portal" id='xowa-portal-android'>
  291. <h3>Android</h3>
  292. <div class="body">
  293. <ul>
  294. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  295. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  296. </ul>
  297. </div>
  298. </div>
  299. <div class="portal" id='xowa-portal-help'>
  300. <h3>Help</h3>
  301. <div class="body">
  302. <ul>
  303. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  304. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  305. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  306. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  307. </ul>
  308. </div>
  309. </div>
  310. <div class="portal" id='xowa-portal-blog'>
  311. <h3>Blog</h3>
  312. <div class="body">
  313. <ul>
  314. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  315. </ul>
  316. </div>
  317. </div>
  318. <div class="portal" id='xowa-portal-links'>
  319. <h3>Links</h3>
  320. <div class="body">
  321. <ul>
  322. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  323. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  324. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  325. </ul>
  326. </div>
  327. </div>
  328. <div class="portal" id='xowa-portal-donate'>
  329. <h3>Donate</h3>
  330. <div class="body">
  331. <ul>
  332. <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/ -->
  333. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  334. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  335. </ul>
  336. </div>
  337. </div>
  338. </div>
  339. </body>
  340. </html>