-
Python 3.6
-
Packages
pip install -r requirements.txt
-
Double click the
main.py
, or run this command in terminal:python main.py
-
Follow the navigation in the GUI: load a PDF file, convert it, then copy to clipboard
-
Copy
.env.example
, rename it to.env
-
Run this command in terminal:
-
Production
python api_entrypoint.py
-
Development
uvicorn api_entrypoint:liturgi_format_converter_api --host=0.0.0.0 --port=1234 --reload
-
-
Access the webpage from
http://HOST:PORT
. By default it'shttp://localhost:1234
-
Put liturgi files (
.pdf
only) insideinput/
-
Open the
.bat
files (run_convert.bat
orrun_convert_short.bat
orrun_convert_long.bat
)
As this script automatically separate too long lines into several lines.run_convert_short.bat
will separate the too-long-line into shorter lines, so is its long-version (run_convert_long.bat
).OR run this command in terminal:
python parse_pdf.py
-
Resulting files will be inside
output/
Run this command in terminal:
python parse_pdf.py -h
This will show all available arguments:
usage: parse_pdf.py [-h] [-id INPUT_DIR] [-od OUTPUT_DIR] [-d]
[-m MAX_CHAR_PER_LINE]
optional arguments:
-h, --help show this help message and exit
-id INPUT_DIR, --input_dir INPUT_DIR
-od OUTPUT_DIR, --output_dir OUTPUT_DIR
-d, --debug
-m MAX_CHAR_PER_LINE, --max_char_per_line MAX_CHAR_PER_LINE
Ferdiant Joshua Muis