/csl_accent

Primary LanguagePythonMIT LicenseMIT

csl_accent

This is a tool for putting stress marks in Church Slavonic texts in grazhdanitsa encoding

Installation

pip install git+https://github.com/pantlmn/csl_accent.git@main

Usage example

To put stress marks in text

>>> from csl_accent import accent_line
>>> accent_line('О богоблаженне и приснопамятне отче наш Данииле!')
О богоблаже́нне и приснопа́мятне о́тче наш Дании́ле!

To put stress marks in files

>>> csl_accent.write_file(['my_file_1.txt'])

This will return new file called "my_file.accented.txt" with the same text where stress marks are put