https://github.com/alelisicyna/BelarusianConverter
Script who convert some Belarusian texts from Cyrillic to other Belarusian alphabets
https://github.com/alelisicyna/BelarusianConverter
Last synced: 7 months ago
JSON representation
Script who convert some Belarusian texts from Cyrillic to other Belarusian alphabets
- Host: GitHub
- URL: https://github.com/alelisicyna/BelarusianConverter
- Owner: alelisicyna
- License: agpl-3.0
- Created: 2024-11-08T22:24:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-22T16:03:44.000Z (7 months ago)
- Last Synced: 2024-11-22T17:18:47.987Z (7 months ago)
- Language: Python
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BelarusianConverter
Script who convert some Belarusian texts from Cyrillic to other Belarusian alphabets
Programming Language: Python 3
## How to use it?
1. Download the repository
2. Add the directory to your project
3. Code example:
```py
# test.py
from BelarusianConverter.BelarusianConverter import BelarusianConverterif __name__ == '__main__':
BelarusianConverter = BelarusianConverter()
text = BelarusianConverter.convert(0, 'А хто там ідзе?') # example
print(text) # Return: "A chto tam idzie?"'''
BelarusianConverter.convert(alphabet: int, text: str, plosive_g = False, assimilation = False, iotation = False)
alphabet:
0 - LatinMuzyckajaPrauda (K. Kalinoŭski)
1 - Latin1929 (B. Taraškievič)
2 - Latin1962 (Ja. Stankievič)
3 - LatinUnitedNations
4 - Romanization2023
5 - Arabic (Belarusian Tatars)
plosive_g:
True: H -> G in some words
False: keep the original text
assimilation:
True: add a soft assimilation
False: keep the original text
iotation:
True: I -> Ji/J after vowels
False: keep the original text
'''```
4. ???
5. Profit.## Other
About Belarusian Latin: [Wikipedia](https://en.wikipedia.org/wiki/Belarusian_Latin_alphabet)
About Belarusian Arabic: [Wikipedia](https://en.wikipedia.org/wiki/Belarusian_Arabic_alphabet)