#######
srtools
#######
.. image:: https://gitlab.com/andrejr/srtools/badges/master/pipeline.svg
:alt: pipeline status
:target: https://gitlab.com/andrejr/srtools/pipelines
.. image:: https://gitlab.com/andrejr/srtools/badges/master/coverage.svg
:alt: coverage report
:target: https://andrejr.gitlab.io/srtools/coverage/index.html
Srtools provides a CLI utility (``srts``) and a Python 3 (``^3.7``) package
that helps you transliterate Serbian texts between Cyrillic and Latin.
Here's a demonstration of the CLI utility:
.. code-block:: console
$ echo "Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara." | srts --lc
Ђаче, уштеду плаћај жаљењем због џиновских цифара.
$ echo "Ђаче, уштеду плаћај жаљењем због џиновских цифара." | srts --cl
Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara.
Here's how you use the Python package:
.. code-block:: python
from srtools import cyrillic_to_latin, latin_to_cyrillic
assert (
latin_to_cyrillic("Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara.")
== "Ђаче, уштеду плаћај жаљењем због џиновских цифара."
)
assert (
cyrillic_to_latin("Ђаче, уштеду плаћај жаљењем због џиновских цифара.")
== "Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara."
)
Motivation
==========
I needed a simple commandline utility I can use to pipe in some text and change
its script.
I also use this tool to transliterate strings in Serbian LaTeX localization
packages. That way I don't have to maintain individual sets of localization
strings for Cyrillic and Latin.
Documentation
=============
Documentation (Sphinx) can be viewed on
`GitLab pages for this package <https://andrejr.gitlab.io/srtools/>`_.
Changelog
=========
The changelog can be found within the documentation,
`here <https://andrejr.gitlab.io/srtools/changes.html>`_.
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/andrejr/srtools",
"name": "srtools",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "serbian,latin,cyrillic,transliteration,transliterate",
"author": "Andrej Radovi\u0107",
"author_email": "r.andrej@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ab/13/755904d2088f7b8129d9a6426f2e4b4e065f7e41071adcbc6e0faadb8bc5/srtools-0.1.13.tar.gz",
"platform": null,
"description": "#######\nsrtools\n#######\n\n.. image:: https://gitlab.com/andrejr/srtools/badges/master/pipeline.svg\n :alt: pipeline status\n :target: https://gitlab.com/andrejr/srtools/pipelines\n.. image:: https://gitlab.com/andrejr/srtools/badges/master/coverage.svg\n :alt: coverage report\n :target: https://andrejr.gitlab.io/srtools/coverage/index.html\n\nSrtools provides a CLI utility (``srts``) and a Python 3 (``^3.7``) package \nthat helps you transliterate Serbian texts between Cyrillic and Latin.\n\nHere's a demonstration of the CLI utility:\n\n.. code-block:: console\n\n $ echo \"\u0110a\u010de, u\u0161tedu pla\u0107aj \u017ealjenjem zbog d\u017einovskih cifara.\" | srts --lc\n \u0402\u0430\u0447\u0435, \u0443\u0448\u0442\u0435\u0434\u0443 \u043f\u043b\u0430\u045b\u0430\u0458 \u0436\u0430\u0459\u0435\u045a\u0435\u043c \u0437\u0431\u043e\u0433 \u045f\u0438\u043d\u043e\u0432\u0441\u043a\u0438\u0445 \u0446\u0438\u0444\u0430\u0440\u0430.\n $ echo \"\u0402\u0430\u0447\u0435, \u0443\u0448\u0442\u0435\u0434\u0443 \u043f\u043b\u0430\u045b\u0430\u0458 \u0436\u0430\u0459\u0435\u045a\u0435\u043c \u0437\u0431\u043e\u0433 \u045f\u0438\u043d\u043e\u0432\u0441\u043a\u0438\u0445 \u0446\u0438\u0444\u0430\u0440\u0430.\" | srts --cl\n \u0110a\u010de, u\u0161tedu pla\u0107aj \u017ealjenjem zbog d\u017einovskih cifara.\n\nHere's how you use the Python package:\n\n.. code-block:: python\n\n from srtools import cyrillic_to_latin, latin_to_cyrillic\n\n assert (\n latin_to_cyrillic(\"\u0110a\u010de, u\u0161tedu pla\u0107aj \u017ealjenjem zbog d\u017einovskih cifara.\")\n == \"\u0402\u0430\u0447\u0435, \u0443\u0448\u0442\u0435\u0434\u0443 \u043f\u043b\u0430\u045b\u0430\u0458 \u0436\u0430\u0459\u0435\u045a\u0435\u043c \u0437\u0431\u043e\u0433 \u045f\u0438\u043d\u043e\u0432\u0441\u043a\u0438\u0445 \u0446\u0438\u0444\u0430\u0440\u0430.\"\n )\n\n assert (\n cyrillic_to_latin(\"\u0402\u0430\u0447\u0435, \u0443\u0448\u0442\u0435\u0434\u0443 \u043f\u043b\u0430\u045b\u0430\u0458 \u0436\u0430\u0459\u0435\u045a\u0435\u043c \u0437\u0431\u043e\u0433 \u045f\u0438\u043d\u043e\u0432\u0441\u043a\u0438\u0445 \u0446\u0438\u0444\u0430\u0440\u0430.\")\n == \"\u0110a\u010de, u\u0161tedu pla\u0107aj \u017ealjenjem zbog d\u017einovskih cifara.\"\n )\n\n\nMotivation\n==========\n\nI needed a simple commandline utility I can use to pipe in some text and change\nits script.\n\nI also use this tool to transliterate strings in Serbian LaTeX localization \npackages. That way I don't have to maintain individual sets of localization \nstrings for Cyrillic and Latin.\n\nDocumentation\n=============\n\nDocumentation (Sphinx) can be viewed on\n`GitLab pages for this package <https://andrejr.gitlab.io/srtools/>`_.\n\nChangelog\n=========\n\nThe changelog can be found within the documentation, \n`here <https://andrejr.gitlab.io/srtools/changes.html>`_.\n",
"bugtrack_url": null,
"license": "GPLv3+",
"summary": "Serbian language Cyrillic \u2194 Latin transliteration tools",
"version": "0.1.13",
"project_urls": {
"Documentation": "https://andrejr.gitlab.io/srtools/",
"Homepage": "https://gitlab.com/andrejr/srtools",
"Repository": "https://gitlab.com/andrejr/srtools"
},
"split_keywords": [
"serbian",
"latin",
"cyrillic",
"transliteration",
"transliterate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "513b9cee0a8aa867b55fa36c86016161be6ee00d438f796ed732862529926c10",
"md5": "9cfdea6940cff875c554bffaaffcea8e",
"sha256": "87c4ae316249a686063be3547242641fffaf93814aa494b25dea332adb4cd661"
},
"downloads": -1,
"filename": "srtools-0.1.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9cfdea6940cff875c554bffaaffcea8e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 44209,
"upload_time": "2022-09-06T20:23:24",
"upload_time_iso_8601": "2022-09-06T20:23:24.373715Z",
"url": "https://files.pythonhosted.org/packages/51/3b/9cee0a8aa867b55fa36c86016161be6ee00d438f796ed732862529926c10/srtools-0.1.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ab13755904d2088f7b8129d9a6426f2e4b4e065f7e41071adcbc6e0faadb8bc5",
"md5": "da04fae5f0941f33bdaf9944812be666",
"sha256": "6f9b51ab64e1d8a5609b12a1bdea7d6b1908f2269210ed85f0097b0200aa4a69"
},
"downloads": -1,
"filename": "srtools-0.1.13.tar.gz",
"has_sig": false,
"md5_digest": "da04fae5f0941f33bdaf9944812be666",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 30200,
"upload_time": "2022-09-06T20:23:25",
"upload_time_iso_8601": "2022-09-06T20:23:25.910215Z",
"url": "https://files.pythonhosted.org/packages/ab/13/755904d2088f7b8129d9a6426f2e4b4e065f7e41071adcbc6e0faadb8bc5/srtools-0.1.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-09-06 20:23:25",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "andrejr",
"gitlab_project": "srtools",
"lcname": "srtools"
}