Go to file
2020-11-23 17:57:14 +01:00
app Finished fourth Pensum A 2020-11-23 09:11:13 +01:00
.env.sample Introduced Docker 2020-11-23 17:57:14 +01:00
.gitignore Introduced Docker 2020-11-23 17:57:14 +01:00
Dockerfile Introduced Docker 2020-11-23 17:57:14 +01:00
entrypoint.sh Introduced Docker 2020-11-23 17:57:14 +01:00
latin.sqlite Introduced docker 2020-10-15 23:47:29 +02:00
Pipfile Introduced Docker 2020-11-23 17:57:14 +01:00
Pipfile.lock Introduced Docker 2020-11-23 17:57:14 +01:00
README.md Introduced text2pensum.py, html templates for pensa, .env to initialize environmental variables while using pipenv and many more 2020-11-23 01:15:19 +01:00
requirements.txt Introduced docker 2020-10-15 23:47:29 +02:00
text2pensum.py Adjusting input size to data-expected length 2020-11-23 01:41:22 +01:00

About

As I've started learning Latin from Lingua Latina Per Se Illustrata I've encourtered the urge for Duolingo-like interface allowing me to :

  1. check given words in the wiktionairy, so I could see IPA, meaning, declinations etc. next to the text,
  2. perform the Pensa so that I could see the mistakes I've made.

Parsers

Text to Pensum

text2pensum.py takes text file as an input and generates HTML form from it. Marking is as follows:

  • all vowel-dash-vowel combinations (i-i) are transformed into a long vowel marked with macron (ī)
  • underscore-string-underscore combinations (_us_) are transformed intorequiered html text input field with string between underscores as a value of data-expected atribute (<input type="text" data-expected="us" required>).

TODO

  • text to html parser to swiftly migrate the cloze Pensa
  • dictionairy interface

Development

To run the app on your own machine:

  1. pipenv shell
  2. export FLASK_APP=main.py
  3. export FLASK_ENV=development
  4. flask run