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.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
'''
  1. ???
  2. Profit.

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.1.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.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: belarusianconverter-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5df98f8396f4ae462e7716fa01385f9092998a094767e86929e01ebb12c6b8a1
MD5 a4e19a050b629a0d58e561469a84067e
BLAKE2b-256 21672c3fb3d1504352ee4ddd68e6bd9a28e2738f77fe532cb2b21ca59c853d50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for belarusianconverter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 434c1ab39ff0d6f9db5c519919dd56b56c2e70db918fda8151a5242b3adbf1a3
MD5 22302f6ef5c6fe11d52e9ca25d856fc3
BLAKE2b-256 30ec9f8097cf5d7fac1ba264edd6344268186dc0f50b9a27053ae47312b97342

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