Library of Congress script transliterator.
scossu 97f471fe5f Add dummy email address for startup. | il y a 1 an | |
---|---|---|
doc | il y a 1 an | |
ext | il y a 2 ans | |
legacy | il y a 1 an | |
scriptshifter | il y a 1 an | |
tests | il y a 1 an | |
.gitignore | il y a 2 ans | |
.gitmodules | il y a 2 ans | |
Dockerfile | il y a 1 an | |
LICENSE | il y a 2 ans | |
NOTES.md | il y a 2 ans | |
README.md | il y a 1 an | |
TODO.md | il y a 2 ans | |
entrypoint.sh | il y a 2 ans | |
requirements.txt | il y a 2 ans | |
uwsgi.ini | il y a 2 ans | |
wsgi.py | il y a 2 ans |
REST API service to convert non-Latin scripts to Latin, and vice versa.
Build container in current dir:
docker build -t scriptshifter:latest .
Start container:
docker run -e TXL_FLASK_SECRET=changeme -p 8000:8000 scriptshifter:latest
For running in development mode, add -e FLASK_ENV=development
to the options.
The following environment variables are available for modification:
TXL_EMAIL_FROM
: Email address sending the feedback form on behalf of users.
TXL_EMAIL_TO
: Recipients of the feedback form.
TXL_FLASK_SECRET
: Seed for web server security. Set to a random-generated
string in a production environment.
TXL_LOGLEVEL
: Logging level. Use Python notation. The default is WARN
.
TXL_SMTP_HOST
: SMTP host to send feedback messages through. Defaults to
localhost
.
TXL_SMTP_PORT
: Port of the SMTP server. Defaults to 1025
.
/
renders a simple HTML form to test the transliteration service.
See the contributing guide.
See the doc
folder for additional documentation.