Skip to main content

Library for convertation Belarusian texts from Cyrillic to other Belarusian alphabets

Project description

BelarusianConverter

Library for convertation Belarusian texts from Cyrillic to other Belarusian alphabets

Quick Start

$ pip install belarusianconverter

Code Example

# test.py
from BelarusianConverter import BelarusianConverter



if __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
'''

Links

About Belarusian Latin: Wikipedia
About Belarusian Arabic: Wikipedia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

belarusianconverter-0.0.5.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

belarusianconverter-0.0.5-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file belarusianconverter-0.0.5.tar.gz.

File metadata

  • Download URL: belarusianconverter-0.0.5.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.13.0

File hashes

Hashes for belarusianconverter-0.0.5.tar.gz
Algorithm Hash digest
SHA256 16bcc7c16ce7ce14f4fcc9278fa7044186681a4ac0ac4bdcf5bb55d58ca076a8
MD5 5e4f1f614a870f3fcc3f1b25fe009df6
BLAKE2b-256 656ad2fc3217aad5aee1cfa2e131e851e813fd4ca40eeb27f046ee03d9991f91

See more details on using hashes here.

File details

Details for the file belarusianconverter-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for belarusianconverter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 933c3fbb26464c92c3782b77812642c33a0a53f5357623a592a0d4863d39df41
MD5 50b4054a3ccfb33286718c31671abadd
BLAKE2b-256 54c77458a019cd592f8e8810815eb0803d46cc28a1857a4de4f99836470dae48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page