This repository was archived by the owner on Sep 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.install
39 lines (30 loc) · 1.46 KB
/
README.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#### Announcement ####
As of 2018-09-15, Lace has been written to be 100% an eXist-db application. This version, called Lace2, is available in its
Github [repository](https://github.com/brobertson/Lace2).
### Archived information follows ###
sudo apt-get install libmysqlclient-dev python-pip python-dev sqlite3 libxml-dev libxslt-dev libxml2-dev
sudo pip install Flask
sudo pip install Flask-SQLAlchemy
sudo pip install Flask-Markdown
sudo pip install MySQL-python
sudo pip install flask_httpauth
sudo pip install pillow
sudo pip install lxml
cd Lace
cp example_local_settings.py local_settings.py
vim local_settings.py
#change to your local database uri: use sqlite3 for temporary use
#Now install a text resource into the filestructure under static/Texts and
#put its metadata in the database
python ./import_to_lace_from_tar.py samples/robertson_2016-04-03-16-14_alciphronisrhet01schegoog_teubner-serif-2013-12-16-11-26-00067000.pyrnn.gz_full.tar.gz-processed
#Note that, for convenience, the corresponding images are already stored
#in Lace/static/Images/Color
python ./lace.py
#open Chrome at localhost:5000
#Click on 'Texts', there should be one, click on it, and on 'selected_hocr_output'
#Both text and image should appear
#Clicking on text should cause a popup with word image to appear
#### Editing ####
#For editing, install eXist-db 2.2 or higher, and upload to it the resources
at Lace/eXist-db/db
#set exist_db_uri variable in Lace/local_settings.py appropriately