This repository has been archived by the owner. It is now read-only.
HOCR visualization and editing webapp made with Python Flask
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cron.hourly
eXist-db
samples
static
templates
.gitignore
README.install
authentication.py
example_local_settings.py
import_to_lace_db.sh
import_to_lace_from_tar.py
lace.py
lace.wsgi
populate_db.py
remove_from_lace_arch_id.py
restricted_volumes.py
settings.py
users.py

README.install

#### 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