This handy tool is used to quickly crawl through all the Shadowrun rulebooks you gathered over the years and give you that single pesky rule you just can't find.
At the initial startup an search index is built. This can take quite some time, especially on older systems. Afterwards the search is very fast.
Textextraction can only be done on Linux. Follow this guide https://github.com/deanmalmgren/textract/blob/master/docs/installation.rst to set up textract and build your .txt files. Move those to Windows.
Currently the text extraction from the pdfs does not work with the built files. You need to run the source to extract the pdfs to text, then you can use the one-file solutions.
First install al the dependencies defined in requirements.txt using pip. Its tested for Python 3.6.1 After the nltk has been downloaded open the python interpreter and download the models : averaged_perceptron_tagger, makent_ne_chunker, punkt
import nltk nltk.download()
Using http://whoosh.readthedocs.io/en/latest/quickstart.html for fuzzy search.
To build the project with pyinstaller make sure to use the dev branch. PyInstaller currently does not support Python 3.6 on stable. Furthermore read through pyinstaller/pyinstaller#1566 and make sure you have done the following if on Windows:
The following solved the problem for me (on Win10 v1607 - PyQt5 App):
Add the directory of the required dlls to system Path. My application uses PyQt5 which is dependent on api-ms-win dlls.
For PyQt5 add this directory: %WHERE EVER YOU INSTALLED PYTHON%\Lib\site-packages\PyQt5\Qt\bin
For api-ms-win dlls you need Visual Studio 2015 OR Windows SDK (download here):
Directory if you have Visual Studio: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\x64
Directory if you have Windows SDK: C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64
After you add the required paths, pyinstaller can find the files.
Build using pyinstaller -F gui.py