Files.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>App/Basics/Files - 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. <style>
  9. .console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
  10. .code
  11. ,.path
  12. ,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
  13. .bold {font-weight: 900;}
  14. </style>
  15. <style>
  16. .console {font-family: monospace; color: #EEEEEE ; background-color: black ; border: medium solid black;}
  17. .code
  18. ,.path
  19. ,.url {font-family: monospace; color: black ; background-color: #f9f9f9 ; border: medium solid #f9f9f9;}
  20. .bold {font-weight: 900;}
  21. </style>
  22. </head>
  23. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  24. <div id="mw-page-base" class="noprint"></div>
  25. <div id="mw-head-base" class="noprint"></div>
  26. <div id="content" class="mw-body">
  27. <h1 id="firstHeading" class="firstHeading"><span>App/Basics/Files</span></h1>
  28. <div id="bodyContent" class="mw-body-content">
  29. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  30. <div id="contentSub"></div>
  31. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  32. <p>
  33. XOWA can display images for a page by either downloading them directly from the Wikimedia servers or retrieving them from XOWA image databases
  34. </p>
  35. <div id="toc" class="toc">
  36. <div id="toctitle">
  37. <h2>
  38. Contents
  39. </h2>
  40. </div>
  41. <ul>
  42. <li class="toclevel-1 tocsection-1">
  43. <a href="#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a>
  44. </li>
  45. <li class="toclevel-1 tocsection-2">
  46. <a href="#Images"><span class="tocnumber">2</span> <span class="toctext">Images</span></a>
  47. <ul>
  48. <li class="toclevel-2 tocsection-3">
  49. <a href="#Left-click"><span class="tocnumber">2.1</span> <span class="toctext">Left-click</span></a>
  50. </li>
  51. <li class="toclevel-2 tocsection-4">
  52. <a href="#Right-click"><span class="tocnumber">2.2</span> <span class="toctext">Right-click</span></a>
  53. </li>
  54. </ul>
  55. </li>
  56. <li class="toclevel-1 tocsection-5">
  57. <a href="#.5B.5BFile.5D.5D_page"><span class="tocnumber">3</span> <span class="toctext">[[File]] page</span></a>
  58. </li>
  59. <li class="toclevel-1 tocsection-6">
  60. <a href="#Cache"><span class="tocnumber">4</span> <span class="toctext">Cache</span></a>
  61. </li>
  62. <li class="toclevel-1 tocsection-7">
  63. <a href="#ImageMagick_and_Inkscape"><span class="tocnumber">5</span> <span class="toctext">ImageMagick and Inkscape</span></a>
  64. </li>
  65. <li class="toclevel-1 tocsection-8">
  66. <a href="#File_databases:_v1.2C_v2a_and_v2b"><span class="tocnumber">6</span> <span class="toctext">File databases: v1, v2a and v2b</span></a>
  67. </li>
  68. </ul>
  69. </div>
  70. <h2>
  71. <span class="mw-headline" id="Overview">Overview</span>
  72. </h2>
  73. <p>
  74. XOWA displays images for a page by using images from one of two sources: Wikimedia servers or XOWA image databases.
  75. </p>
  76. <p>
  77. The process is as follows (assuming simple.wikipedia.org):
  78. </p>
  79. <ul>
  80. <li>
  81. XOWA sees a [[File]] link on a page.
  82. </li>
  83. <li>
  84. If image dbs are available, XOWA checks them to see if the image exists. To download an image db, see <a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" id="xolnki_2" title="Dashboard/Image databases" class="xowa-visited">Dashboard/Image_databases</a>
  85. </li>
  86. <li>
  87. If image dbs are not available, or if the image is not in the image dbs, XOWA checks the Wikimedia servers
  88. </li>
  89. <li>
  90. If an image is found, XOWA downloads a temporary version of the file to <code>C:\xowa\file\simple.wikipedia.org\...</code>
  91. </li>
  92. <li>
  93. As of v2.5.4.1, XOWA also saves Wikimedia files to <code>C:\xowa\wiki\simple.wikipedia.org\simple.wikipedia.org-file-user.xowa</code>. This ensures that the file is still available even if the temporary version is deleted. Note that the cache on <a href="http://xowa.org/home/wiki/Options/Files.html" id="xolnki_3" title="Options/Files" class="xowa-visited">Options/Files</a> will periodically delete temporary versions
  94. </li>
  95. <li>
  96. The HTML is updated to use the temporary version of the file.
  97. </li>
  98. </ul>
  99. <h2>
  100. <span class="mw-headline" id="Images">Images</span>
  101. </h2>
  102. <p>
  103. An image on a page can either be left-clicked or right-clicked
  104. </p>
  105. <h3>
  106. <span class="mw-headline" id="Left-click">Left-click</span>
  107. </h3>
  108. <p>
  109. If left-clicked, XOWA will open up a [[File]] page for the link
  110. </p>
  111. <ul>
  112. <li>
  113. If you have the disk space (20 GB), you should download commons.wikimedia.org. This will allow XOWA to generate an accurate version of the [[File]] page just like the online version. Note that most files reside in commons.wikimedia.org.
  114. </li>
  115. <li>
  116. As of v2.5.4.1, XOWA still opens up a [[File]] page even if commons.wikimedia.org is not available. This allows the user to download a larger resolution of the file, or to download the original
  117. </li>
  118. </ul>
  119. <h3>
  120. <span class="mw-headline" id="Right-click">Right-click</span>
  121. </h3>
  122. <p>
  123. If right-clicked, XOWA offers a "Save File As" to allow the user to save the file to another location.
  124. </p>
  125. <p>
  126. Note that you can also click "View HTML" and get the file location directly from the HTML (in the appropriate &lt;img&gt;'s src value)
  127. </p>
  128. <h2>
  129. <span class="mw-headline" id=".5B.5BFile.5D.5D_page">[[File]] page</span>
  130. </h2>
  131. <p>
  132. The [[File]] page offers three functions:
  133. </p>
  134. <ul>
  135. <li>
  136. Shows a larger view of the image (something closest to 800 pixels wide and 600 pixels high)
  137. </li>
  138. <li>
  139. Download the original file by either clicking on the file, or by clicking "Original resolution"
  140. </li>
  141. <li>
  142. Shows more metadata on the file. Note that commons.wikimedia.org must be set up.
  143. </li>
  144. </ul>
  145. <h2>
  146. <span class="mw-headline" id="Cache">Cache</span>
  147. </h2>
  148. <p>
  149. The cache periodically goes through the temporary files and deletes them once they reach a certain threshold (currently 100 MB).
  150. </p>
  151. <ul>
  152. <li>
  153. You can configure the cache at <a href="http://xowa.org/home/wiki/Options/Files.html" id="xolnki_4" title="Options/Files" class="xowa-visited">Options/Files</a>
  154. </li>
  155. <li>
  156. You can view the cache in <code>C:\xowa\user\xowa.user.anonymous.sqlite3</code>. The table name is <code>file_cache</code>
  157. </li>
  158. </ul>
  159. <h2>
  160. <span class="mw-headline" id="ImageMagick_and_Inkscape">ImageMagick and Inkscape</span>
  161. </h2>
  162. <p>
  163. As of v2.5.4 ImageMagick and Inkscape are no longer needed for online image downloads.
  164. </p>
  165. <p>
  166. ImageMagick and Inkscape are still used for some functions, such as building image databases. If you want to setup these programs, see the following links:
  167. </p>
  168. <ul>
  169. <li>
  170. <a href="http://xowa.org/home/wiki/Dev/File/Setup/Windows.html" id="xolnki_5" title="Dev/File/Setup/Windows" class="xowa-visited">Set up images (Windows)</a>
  171. </li>
  172. <li>
  173. <a href="http://xowa.org/home/wiki/Dev/File/Setup/Linux.html" id="xolnki_6" title="Dev/File/Setup/Linux" class="xowa-visited">Set up images (Linux)</a>
  174. </li>
  175. <li>
  176. <a href="http://xowa.org/home/wiki/Dev/File/Setup/Mac_OS_X.html" id="xolnki_7" title="Dev/File/Setup/Mac OS X">Set up images (Mac OS X)</a>
  177. </li>
  178. </ul>
  179. <h2>
  180. <span class="mw-headline" id="File_databases:_v1.2C_v2a_and_v2b">File databases: v1, v2a and v2b</span>
  181. </h2>
  182. <p>
  183. XOWA has 3 different types of database sets for English Wikipedia. These are named v1, v2a and v2b. All 3 sets work with the latest version of XOWA, but they have notable differences. See the table below for details.
  184. </p>
  185. <p>
  186. Currently, v2b is the recommended set. These files were uploaded in 2015-07 and are the current listed files at <a href="https://archive.org/details/Xowa_enwiki_latest" rel="nofollow" class="external free">https://archive.org/details/Xowa_enwiki_latest</a> . v2b is the only set that will work on Android.
  187. </p>
  188. <p>
  189. If you downloaded an image set before 2015-07, I strongly recommend that you download v2b. I'll continue to release monthly updates for v1 and v2a for a year or so, but they are obsolete.
  190. </p>
  191. <table class='wikitable'>
  192. <tr>
  193. <th>
  194. Name
  195. </th>
  196. <th>
  197. Release date
  198. </th>
  199. <th>
  200. File extension
  201. </th>
  202. <th>
  203. File size
  204. </th>
  205. <th>
  206. Location
  207. </th>
  208. <th>
  209. Works on Android
  210. </th>
  211. </tr>
  212. <tr>
  213. <td>
  214. v1
  215. </td>
  216. <td>
  217. 2013-11 and 2014-07
  218. </td>
  219. <td>
  220. .sqlite3
  221. </td>
  222. <td>
  223. 1 GB
  224. </td>
  225. <td>
  226. C:\xowa\file\en.wikipedia.org
  227. </td>
  228. <td>
  229. No
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>
  234. v2a
  235. </td>
  236. <td>
  237. 2015-04
  238. </td>
  239. <td>
  240. .xowa
  241. </td>
  242. <td>
  243. 3 GB
  244. </td>
  245. <td>
  246. C:\xowa\wiki\en.wikipedia.org
  247. </td>
  248. <td>
  249. No
  250. </td>
  251. </tr>
  252. <tr>
  253. <td>
  254. v2b
  255. </td>
  256. <td>
  257. 2015-06
  258. </td>
  259. <td>
  260. .xowa
  261. </td>
  262. <td>
  263. 1.5 GB
  264. </td>
  265. <td>
  266. C:\xowa\wiki\en.wikipedia.org
  267. </td>
  268. <td>
  269. Yes
  270. </td>
  271. </tr>
  272. </table>
  273. <p>
  274. <sup id="cite_ref-images_are_thumbnails_0-0" class="reference"><a href="#cite_note-images_are_thumbnails-0">[1]</a></sup>
  275. </p>
  276. </div>
  277. </div>
  278. </div>
  279. <div id="mw-head" class="noprint">
  280. <div id="left-navigation">
  281. <div id="p-namespaces" class="vectorTabs">
  282. <h3>Namespaces</h3>
  283. <ul>
  284. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  285. </ul>
  286. </div>
  287. </div>
  288. </div>
  289. <div id='mw-panel' class='noprint'>
  290. <div id='p-logo'>
  291. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  292. </div>
  293. <div class="portal" id='xowa-portal-home'>
  294. <h3>XOWA</h3>
  295. <div class="body">
  296. <ul>
  297. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  298. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  299. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  300. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  301. </ul>
  302. </div>
  303. </div>
  304. <div class="portal" id='xowa-portal-started'>
  305. <h3>Getting started</h3>
  306. <div class="body">
  307. <ul>
  308. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  309. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  310. <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>
  311. <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>
  312. <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>
  313. </ul>
  314. </div>
  315. </div>
  316. <div class="portal" id='xowa-portal-android'>
  317. <h3>Android</h3>
  318. <div class="body">
  319. <ul>
  320. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  321. </ul>
  322. </div>
  323. </div>
  324. <div class="portal" id='xowa-portal-help'>
  325. <h3>Help</h3>
  326. <div class="body">
  327. <ul>
  328. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  329. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  330. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  331. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  332. </ul>
  333. </div>
  334. </div>
  335. <div class="portal" id='xowa-portal-blog'>
  336. <h3>Blog</h3>
  337. <div class="body">
  338. <ul>
  339. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  340. </ul>
  341. </div>
  342. </div>
  343. <div class="portal" id='xowa-portal-links'>
  344. <h3>Links</h3>
  345. <div class="body">
  346. <ul>
  347. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  348. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  349. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  350. </ul>
  351. </div>
  352. </div>
  353. <div class="portal" id='xowa-portal-donate'>
  354. <h3>Donate</h3>
  355. <div class="body">
  356. <ul>
  357. <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/ -->
  358. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  359. <!-- <li><a href="" title="Support XOWA! (but only after you've supported archive.org and Wikipedia)">XOWA</a></li> -->
  360. </ul>
  361. </div>
  362. </div>
  363. <div class="portal" id='xowa-portal-image'>
  364. <br/>
  365. <a href="https://play.google.com/store/apps/details?id=org.xowa" class="image">
  366. <img width='140px' src="https://gnosygnu.github.io/xowa/en-play-badge.png" />
  367. </a>
  368. </div>
  369. </div>
  370. </body>
  371. </html>