Skip to content

daxida/poly2mono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poly2mono

Converts polytonic to monotonic.

Uses tkinter for the interface. If you don't need it, just run poly2mono in poly2mono.py directly onto your text.

Setup

Requires tkinter so you may have to pip install tk.

Run

  • python3 main.py for the window interface, as shown in the picture.
  • python3 test.py for the unittests.
  • python3 utils/create_dictionary.py to update the current dictionary.

Logic

The whole program is nothing but a chained replacement of key value pairs dumped in dictionary.json.

The building process is based on the insertion order of the final dictionary:

  1. Treat special cases that require spirits
  2. Remove spirits
  3. Remove accents from monosyllables (lots of case by case)

By the end, the final dictionary is of the form:

  • Regex: intended substitution. Ex: '\bΣτής\b': 'Στης'

Links

  • Translatum has a converter but it has a character limitation and quite some mistakes. It may still be a good option if you don't care about the mistakes and don't plan to use it on big texts.
  • There is also this perl module by Father Chrysostomos (I haven't tried it yet).

Releases

No releases published

Packages

 
 
 

Languages