Files.html 14 KB

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