{"id":16417512,"url":"https://github.com/koebi/potypo","last_synced_at":"2025-05-02T16:31:54.014Z","repository":{"id":57454396,"uuid":"125033869","full_name":"koebi/potypo","owner":"koebi","description":"spellchecking for .po-files","archived":false,"fork":false,"pushed_at":"2018-06-05T13:56:45.000Z","size":28,"stargazers_count":12,"open_issues_count":7,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T22:17:06.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koebi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-13T10:28:13.000Z","updated_at":"2022-04-22T05:38:18.000Z","dependencies_parsed_at":"2022-09-05T05:40:22.115Z","dependency_job_id":null,"html_url":"https://github.com/koebi/potypo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koebi%2Fpotypo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koebi%2Fpotypo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koebi%2Fpotypo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koebi%2Fpotypo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koebi","download_url":"https://codeload.github.com/koebi/potypo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252071885,"owners_count":21690110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:11:33.125Z","updated_at":"2025-05-02T16:31:52.838Z","avatar_url":"https://github.com/koebi.png","language":"Python","readme":"potypo\n======\n\nSpellchecking for translation using .po-files. This is currently work-in-progress.\nThis project is specifically tailored to be used with django-applications, but\nmay be used in any project that uses .po-files for translation.\n\nInstallation\n------------\n\npotypo is available via ``pip3 install potypo``\nNote that this is not considered stable and might be subject to massive\nchanges. Please do use it, and report any problems encountered :)\n\nConfiguration\n-------------\n\nConfiguration is done in a configuration file called ``setup.cfg``. It follows\nthe configuration file format used in most of the python world, thus it can be\neasily used with similar files that are used for other projects, i.e.\n``flake8``, ``isort`` or others.\n\nThis is an example configuration for potypo.\n\n::\n\n    [potypo]\n    # This is the default language of the application, and the language that is\n    # translated from. It follows the locale tag naming scheme.\n    default_language = en_US\n\n    # This is the directory that contains the .po-files.\n    # It follows the structure \u003clang\u003e/LC_MESSAGES/django{js}.po where \u003clang\u003e is the\n    # language that is translated into.\n    locales_dir = /path/to/my/projects/locales\n\n    # This is the directory containing word lists with words that are not included\n    # in the corresponding language dictionary, since they are application-specific,\n    # uncommon inflections or otherwise special.\n    # The wordlists only need to contain uncapitalized words.\n    # They should be named according to the language they belong to in the format\n    # \u003clang\u003e.txt, i.e. for the language \"en_US\", the file should be named\n    # \"en_US.txt\".\n    # They can also be placed in the language- or .po-file-directory\n    wl_dir = /path/to/my/projects/wordlists\n\n    # For easy CI-Integration, potypo will issue an exit(1) if any errors have been encountered.\n    # If there are languages for which this is not wanted, they should be added to this list.\n    no_fail =\n        fr\n        pt_BR\n\n    # Because of how the spell-checking work, some words might be output as \"wrong\",\n    # even though they are correctly spelled. This will for example happen to\n    # hyphenated words where a part is not a correct word on its own, abbreviations\n    # containing numbers, webpages, …\n    # This is a list containing those words, so that they can be filtered.\n    edgecase_words =\n        add-ons\n        MT940\n        pre-selected\n        myblog.org\n        myproject.org-Blog\n        myproject.org-Server\n        4th\n\n    # Similar to the above edgecase words, there might be complete phrases that are used\n    # in a language although not being from that language, i.e. the phrase \"powered\n    # by\" being used in a german text.\n    # This is a list containing these phrases, so that they can be filtered.\n    phrases =\n        powered by\n\n    # This is a list of filters and chunkers to be used by the spell checking\n    # process.\n    chunkers = enchant.tokenize.HTMLChunker\n    filters = PythonFormatFilter,enchant.tokenize.URLFilter,HTMLFilter\n\nRunning the tests\n-------------\n\n::\n\n    pip install pytest\n    python setup.py install\n\n    pytest\n\n\nCurrent Work:\n-------------\n* enhance README\n* find .po-files recursively?\n* move this list to issues\n* finish setting up testsetup\n\n  * change .po-files\n  * set up setup.cfg\n  * find out how to start potypo correctly\n\n* prioritizing the best dict per language\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoebi%2Fpotypo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoebi%2Fpotypo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoebi%2Fpotypo/lists"}