Greeker is a script designed for biblical scholars that converts UTF-8 Greek and Old Slavonic (all Slavonic languages) text into Markdown with proper HTML entities for special characters. The script also has an optional feature to convert the Markdown file into a PDF.
- Converts Greek, Cyrillic, and common historical Slavonic letters to their respective HTML entities.
- Option to convert the output Markdown file to a PDF.
- Easy to use with a simple command-line interface.
Ensure you have the dependencies installed on your system. On Ubuntu- or Debian-based systems, you can install these with:
sudo apt-get install sed pandoc texlive-xetex fonts-freefont-ttf -y- sed: Stream editor for filtering and transforming text.
- pandoc: Universal document converter.
- texlive-xetex: A TeX Live distribution with support for XeLaTeX.
- fonts-freefont-ttf: FreeSerif font that includes extensive Unicode coverage.
chmod +x greeker.shbash greeker.sh input_file [output_file]
bash greeker.sh input.txt output.mdbash greeker.sh input.txt output.md --pdfВъ нача́ле бѣ́ слово, и сло́во бѣ́ къ Бо́гу, и бо́гъ бѣ́ сло́во.
Alpha: Α, alpha: α
Beta: Β, beta: β
---
title: "Example Text"
author: "Your Name"
date: "2024-07-27"
---
Въ нача́ле бѣ́ слово, и сло́во бѣ́ къ Бо́гу, и бо́гъ бѣ́ сло́во.
Alpha: Α, alpha: α
Beta: Β, beta: βTo convert the Markdown file to a PDF, use the --pdf flag:
bash greeker.sh input.txt output.md --pdfThis will generate a output.pdf file with the properly formatted text.
This project is licensed under the MIT License. See the LICENSE file for more details.
example_input.txt: Sample input file with Greek and Old Slavonic text.example_output.md: Example output file after conversion.LICENSE: License file for the project.
By following this README, users should be able to set up and use the Greeker script effectively.