uklatn


Nameuklatn JSON
Version 1.8.11 PyPI version JSON
download
home_pageNone
SummaryUkrainian Cyrillic transliteration to Latin script
upload_time2024-11-10 21:10:01
maintainerNone
docs_urlNone
authorPavlo Ivashkov
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Pavel Ivashkov https://github.com/paiv Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ukraine translit romanization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            uklatn
==
Ukrainian Cyrillic transliteration to Latin script.

Supported transliteration schemes:
- [DSTU 9112:2021](https://uk.wikipedia.org/wiki/ДСТУ_9112:2021)
- [KMU 55:2010](https://zakon.rada.gov.ua/laws/show/55-2010-п)


Usage:
```py
import uklatn
s = uklatn.encode("Доброго вечора!")
print(s)
t = uklatn.decode("Paljanycja")
print(t)
```

Select a transliteration scheme:
```py
s = uklatn.encode("Борщ", uklatn.DSTU_9112_A)
```

Notes
--
Input is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed fully.
If your data has mixed languages, do preprocessing to extract Ukrainian chunks.


Module command line
--
```sh
python -m uklatn 'Бери вершину'
```

```txt
usage: uklatn [-h] [-f FILE] [-t {DSTU_9112_A,DSTU_9112_B,KMU_55}] [-l] [-c] [text ...]

positional arguments:
  text                  text to transliterate

options:
  -h, --help            show this help message and exit
  -f, --file FILE       read text from file
  -t, --table {DSTU_9112_A,DSTU_9112_B,KMU_55}
                        transliteration system (default: DSTU_9112_A)
  -l, --latin, --lat    convert to Latin script (default)
  -c, --cyrillic, --cyr
                        convert to Cyrillic script
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "uklatn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "ukraine, translit, romanization",
    "author": "Pavlo Ivashkov",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d0/e5/7bd51d02b25c684c4f6aeb8c0f93dc4b08a8d8d96a66ef0a2312d9a23b08/uklatn-1.8.11.tar.gz",
    "platform": null,
    "description": "uklatn\n==\nUkrainian Cyrillic transliteration to Latin script.\n\nSupported transliteration schemes:\n- [DSTU 9112:2021](https://uk.wikipedia.org/wiki/\u0414\u0421\u0422\u0423_9112:2021)\n- [KMU 55:2010](https://zakon.rada.gov.ua/laws/show/55-2010-\u043f)\n\n\nUsage:\n```py\nimport uklatn\ns = uklatn.encode(\"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0435\u0447\u043e\u0440\u0430!\")\nprint(s)\nt = uklatn.decode(\"Paljanycja\")\nprint(t)\n```\n\nSelect a transliteration scheme:\n```py\ns = uklatn.encode(\"\u0411\u043e\u0440\u0449\", uklatn.DSTU_9112_A)\n```\n\nNotes\n--\nInput is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed fully.\nIf your data has mixed languages, do preprocessing to extract Ukrainian chunks.\n\n\nModule command line\n--\n```sh\npython -m uklatn '\u0411\u0435\u0440\u0438 \u0432\u0435\u0440\u0448\u0438\u043d\u0443'\n```\n\n```txt\nusage: uklatn [-h] [-f FILE] [-t {DSTU_9112_A,DSTU_9112_B,KMU_55}] [-l] [-c] [text ...]\n\npositional arguments:\n  text                  text to transliterate\n\noptions:\n  -h, --help            show this help message and exit\n  -f, --file FILE       read text from file\n  -t, --table {DSTU_9112_A,DSTU_9112_B,KMU_55}\n                        transliteration system (default: DSTU_9112_A)\n  -l, --latin, --lat    convert to Latin script (default)\n  -c, --cyrillic, --cyr\n                        convert to Cyrillic script\n```\n",
    "bugtrack_url": null,
    "license": "MIT License Copyright (c) 2024 Pavel Ivashkov https://github.com/paiv  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Ukrainian Cyrillic transliteration to Latin script",
    "version": "1.8.11",
    "project_urls": {
        "homepage": "https://github.com/paiv/uklatn",
        "source": "https://github.com/paiv/uklatn"
    },
    "split_keywords": [
        "ukraine",
        " translit",
        " romanization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e58dda9e37083212e7d77322e08fc6936bdf9abb0cfa596c0c04c3afe5ad830b",
                "md5": "43686a2d1a90bc9fa814d92f90085cbe",
                "sha256": "706270e3360d02887b351645fcb600ad093da59241a199c4f50f38a68c481ede"
            },
            "downloads": -1,
            "filename": "uklatn-1.8.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "43686a2d1a90bc9fa814d92f90085cbe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 9758,
            "upload_time": "2024-11-10T21:09:59",
            "upload_time_iso_8601": "2024-11-10T21:09:59.970174Z",
            "url": "https://files.pythonhosted.org/packages/e5/8d/da9e37083212e7d77322e08fc6936bdf9abb0cfa596c0c04c3afe5ad830b/uklatn-1.8.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0e57bd51d02b25c684c4f6aeb8c0f93dc4b08a8d8d96a66ef0a2312d9a23b08",
                "md5": "b5f1cda061c401d828f2667366cd1f64",
                "sha256": "77b384548d5e030ecc49f706eddf726334835e48034eb46b41155af04608962b"
            },
            "downloads": -1,
            "filename": "uklatn-1.8.11.tar.gz",
            "has_sig": false,
            "md5_digest": "b5f1cda061c401d828f2667366cd1f64",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 10264,
            "upload_time": "2024-11-10T21:10:01",
            "upload_time_iso_8601": "2024-11-10T21:10:01.521276Z",
            "url": "https://files.pythonhosted.org/packages/d0/e5/7bd51d02b25c684c4f6aeb8c0f93dc4b08a8d8d96a66ef0a2312d9a23b08/uklatn-1.8.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-10 21:10:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "paiv",
    "github_project": "uklatn",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "uklatn"
}
        
Elapsed time: 0.46756s