gnosygnu / xowa

xowa offline wiki application
Other
379 stars 40 forks source link

Search, disc space #852

Open yss11 opened 3 years ago

yss11 commented 3 years ago

Hello everyone

I wonder if anyone can help me I am using a windows 10 and have xowa from a zip: xowa_app_windows_64_v4.6.15.2101 and I am a very basic computer user and I don’t know anything about programming or codes etc. I recently downloaded some xowa zips from archive.org and I got most of them to work the way I need them to, and I still have trouble with a few little things. The wikis I downloaded are all the English ones and all the German ones. I have interrupted internet connection and there is a filter installed at my end, which doesn’t let me connect to archive.org. I managed to lift the filter for 48 hours and downloaded all these zips (including the images) in that time. Below is the list as it appears in E:\xowa\wiki: de.wikibooks.org de.wikinews.org de.wikipedia.org de.wikiquote.org de.wikisource.org de.wikiversity.org de.wikivoyage.org de.wiktionary.org en.wikibooks.org en.wikinews.org en.wikipedia.org (2020-08) en.wikiquote.org en.wikisource.org en.wikiversity.org en.wikivoyage.org en.wiktionary.org simple.wikipedia.org simple.wiktionary.org species.wikimedia.org

During these 48 hours I managed to download simple wiki through download central in the xowa app, and I noticed there is an option to search page context with it (I think its called “special search”. I noticed there was an additional folder in the wiki folder and noticed some files in there. The path was: E:\xowa\wiki\simple.wikipedia.org\data\search\java7-v1, and I noticed CFS, CFE and SI files in there, as well as a file named Segments. So I tried doing the same to the other wikis. I copied the folders data\search\java7-v1 in to other wiki folders and put in there all the CFS, CFE and SI files I saw in the unzipped folders I had downloaded. This worked for most of them, and I got the option to search contents of a page. However, it didn’t work on some of them, and I wonder if anyone could shed some light and direct me how to get it to work. Here is a list of the ones it didn’t work with. de.wikipedia.org de.wikisource.org de.wiktionary.org en.wikipedia.org en.wikisource.org en.wiktionary.org species.wikimedia.org

Would any of you be able to tell me how to get it to work.

I have another 3 questions: The way I did it was unzipping the zip folders from archive.org and then I put the .xowa files in to the wiki folder. For example, E:\xowa\wiki\ en.wikipedia.org, and in here I copied all the .xowa files. My questions are as follows: Is there another way of doing it, a way which will use less disc space? If yes, could you please tell me how, if its not too advanced, because I am very basic in computers. Do I need the HTML files if I use it just basic for Search and read? How do I get xowa to show me something in a different wiki? It will be quite hard for me to get on to archive.org again. But if that’s the only option I will give it a try.

Any help will be very much appreciated, and I thank whoever took the time to read what I wrote.

catmaps commented 3 years ago

Hello, The full search feature was optimized with Java 7 on an earlier version of Xowa. I suggest sticking with the full search zip that is listed with a particular wiki on archive.org. You can also turn off the full-search and fall back to title search--see #844. 844 also gives ideas how to save disk space--for instance, you can omit the image files or you can omit image files of odd namespaces. You can use either text files or html files--do not need both. Html is pre-made and so it loads faster for slow devices such as handhelds. Do you mean switching between wikis? Or to search multiple wikis at once?? Searching this forum as well as searching Xowa's internal help can give a lot of help. . . .If setting up or accessing archive is not a good option, are you wishing for custom-made on portable hard drive?

yss11 commented 3 years ago

Hello catmaps and thank you for your reply. I have been offline for a few days and now I hope to be back. I am sorry but I don’t understand what you wrote about the java because unfortunately I don’t understand computers well enough to understand it. I did understand though to take the files from a certain fulltext search zip, so this is what I did. I unzipped Xowa_enwiki_2020-08_xtn.fulltext_search.001 and placed all the containing files in E:\xowa\wiki\en.wikipedia.org\data\search\java7-v1, but it still doesn’t work. Maybe I am doing something wrong, having it in the wrong location, wrong folder name, I wouldn’t know. Maybe you will know. Your answer in regards to the text and html files is very clear and understood. Want to try it in the near future. Thank you. My original question was how to switch between wikis, for example to be in Wikipedia and select the word “America” and ask xowa to show me America in wikivoyage, but your idea of searching multiple wikis is actually a brilliant idea, so how do I do both of them? Thank you again for taking the time to help me.

catmaps commented 3 years ago

To switch between wikis, see the red arrow on the screenshot. Simply click on the wiki you wish to browse in. Untitled 2

To search across several wikis, insert this into your Xowa address bar: home/wiki/App/Full-text_search That page will show you various search tips. The current version does not support full-text search without some technical workarounds. Hopefully a newer Xowa release will fix that bug. I suggest the title search is fine for most purposes. However, if you need that full search capability, you could try installing an older version of Xowa (before April 2020) and probably should have Java 7 installed on your computer.

yss11 commented 3 years ago

Hello again and thank you for your answer I tried the search across multiple wikis and it worked. Thank you for that. Regarding an earlier version of xowa for the fulltext search, I have downloaded xowa_app_windows_64_v4.6.6.2003, unzipped it, and copied the unzipped files and folders in to E:\xowa, inserted another folder named: “wiki” in to it, and copied the wikipadia folders in to there. For example, now I have E:\xowa\wiki\en.wikipedia.org with all the .xowa files in there. When I tried running the application it opened up an error window with the following text:

Sorry! XOWA failed to run!

Please check the TROUBLESHOOTING section in the readme.txt for known issues.

You can also open an issue or send an email with the data below.

Thanks!


OS: windows Java: 1.8.0_281 (64 bit) Java path: 1.8.0_281 XOWA: 4.6.5.1911 XOWA path: E:\xowa\xowa_windows_64.jar

Error: org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-xulrunner-win32-4629 in java.library.path no swt-xulrunner-win32 in java.library.path C:\Users\User.swt\lib\win32\x86_64\swt-xulrunner-win32-4629.dll: Can't find dependent libraries Can't load library: C:\Users\User.swt\lib\win32\x86_64\swt-xulrunner-win32.dll ) Stack: org.eclipse.swt.SWT.error(Unknown Source) org.eclipse.swt.SWT.error(Unknown Source) org.eclipse.swt.browser.Mozilla.initXULRunner(Unknown Source) org.eclipse.swt.browser.Mozilla.create(Unknown Source) org.eclipse.swt.browser.Browser.(Unknown Source) gplx.gfui.kits.swts.Swt_html.(Unknown Source) gplx.gfui.kits.core.Swt_kit.New_html(Unknown Source) gplx.xowa.guis.views.Xog_tab_itm.Make_html_box(Unknown Source) gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new(Unknown Source) gplx.xowa.guis.views.Xog_tab_mgr.Tabs_new_init(Unknown Source) gplx.xowa.guis.views.Xog_launcher_tabs.Launch_tab(Unknown Source) gplx.xowa.guis.views.Xog_launcher_tabs.Restore_tab_failover(Unknown Source) gplx.xowa.guis.views.Xog_launcher_tabs.Launch(Unknown Source) gplx.xowa.guis.views.Xog_tab_itm_read_mgr.Launch(Unknown Source) gplx.xowa.guis.Xoa_gui_mgr.Run(Unknown Source) gplx.xowa.apps.boots.Xoa_boot_mgr.Run_app(Unknown Source) gplx.xowa.apps.boots.Xoa_boot_mgr.Run(Unknown Source) gplx.xowa.Xoaapp.Run(Unknown Source) gplx.xowa.Xowa_main.main(Unknown Source)

to me this is all gibberish. I don’t understand what it means. Would you be able to tell me what I need to do for it to work? Thank you

catmaps commented 3 years ago

Something appears mismatched. It is okay to move the Xowa/wiki/ folder of wikis around from Xowa version to Xowa version. But be careful to not mix or match most other subfolders when unzipping a different Xowa version. Also I noticed in issue #694 someone is successfully using Xowa v4.6.6.2005 and Java 8.0.1010.13 to do full search. Make sure prior copies of Java are uninstalled before installing a different version of Java. I suggest try this as a fresh approach.

yss11 commented 3 years ago

Hello and thank you again for your reply. Its really nice of you to take the time to help me. I downloaded and unzipped v4.6.6.2005 and copied the Xowa/wiki/ folder in (only this one, as I did it till now. The bin and user folder I used the one which came with the version of xowa I unzipped which was now v4.6.6.2005) and I got a similar response or error message. When I asked my computer what version of java I have (under programs/java/about java, the answer was version 8 update 281. Maybe that’s the problem, I wouldn’t know. I don’t even know what java is. I do know though that every time I turn on my pc, there is a pop up coming up that there is a new update of java available. Should I update, if yes could you tell me how, or point me in a direction which would show me how?

Thank you

catmaps commented 3 years ago

Sorry to hear of the trouble. Java is the middleware software that Xowa uses to run and be compatible with different operating systems. Perhaps the java installation corrupted. So try saying yes to update and it should do automatically. If that doesn't, lets try inserting a portable java version right into Xowa. That makes Xowa grab this precise java version before looking for a Java installation elsewhere on your computer: Go to https://www.azul.com/downloads/?version=java-8-lts&os=windows&architecture=x86-64-bit&package=jre&show-old-builds=true Wait a few moments and scroll down to the older Java 8 versions. I suggest start with this one and download it: https://cdn.azul.com/zulu/bin/zulu8.40.0.25-ca-jre8.0.222-win_x64.zip Unzip into this location in Xowa: Screen4

Restart Xowa. If works, fine. If the full search doesn't work like it should, you can delete this jre folder and try another version of java.

I assume your computer is 64bit windows. (If confirmed, always stick with 64 bit java versions for windows 64.)

yss11 commented 3 years ago

Hello again Sorry for the late response was again offline for a while. I tried doing it the way you told me to. I updated java on the computer, which didn’t do much. Inserting the portable java version you told me to into Xowa worked so much that I should be able to launch xowa, but it didn’t solve the full text search. I still couldn’t do full text search on Wikipedia. The java files I got from the zip were less than the ones you had on your screenshot. Screenshot (8) Is this the reason? Do I need to add something to it? Thank you again for taking the time

catmaps commented 3 years ago

Nothing needs to be added--mine included more simply because I have the JDK developers rather than the basic JRE. Updating to newest java is making some problems because the newer java versions are depreciating some things that Xowa still needs. But I am glad to hear that the older portable zulu java at least got Xowa running. Now we simply need to find an older Java version that supports the full search. Delete the portable Java and lets replace with another one that might allow the full search. I think we will need to use one of Oracle's older Java versions. I recall that someone in this forum was using full search with 8.0.1010. So go to https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u101-b13/jre-8u101-windows-x64.tar.gz and unzip it. Place it where you had the other portable java. Restart Xowa and let me know the results.... Or feel free to experiment / replace with other old versions of Java.

catmaps commented 3 years ago

I edited/corrected the link above.

yss11 commented 3 years ago

Hello

I cant get to the link because oracle is asking me to log in and i don't have an account with them. is there an other way of getting to it.

Thank you

catmaps commented 3 years ago

An oracle account is easy/simple to setup--I just made one for occasional java download for testing. . . . Are you able to download zip files from a linked to Google Drive?

yss11 commented 3 years ago

Yes. I think i can download from google drive.

yss11 commented 3 years ago

Hello again I followed you advice and registered at oracle, and downloaded jre-8u101-windows-x64.tar.gz, inserted it in to the path, but it still doesn't work. Can it be that its because I have it on an external hard drive. I see that when I work on the drive the power light on it flashes different to when its in the laptop on standby. Can it be that because the search takes longer it sort of goes in to a sleeping mode and the search stops working?

catmaps commented 3 years ago

I suggest go into Power & Sleep settings and turn off or postpone the sleep mode. Have you been able to use the full text search at an earlier time since you started using Xowa?