{"id":27331539,"url":"https://github.com/vedrane/betacode-parser","last_synced_at":"2025-04-12T13:12:40.253Z","repository":{"id":285807109,"uuid":"959310197","full_name":"vedrane/betacode-parser","owner":"vedrane","description":"A fully implemented Beta Code parser","archived":false,"fork":false,"pushed_at":"2025-04-10T00:01:23.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T13:12:34.111Z","etag":null,"topics":["ancient-greek","archaeology","betacode","ccat","coptic","digital-humanities","greek","hebrew","humanities","python","thesaurus-linguae-graecae","tlg","transcription"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/betacode-parser/","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/vedrane.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-02T15:28:33.000Z","updated_at":"2025-04-09T23:58:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"10988d0f-9e42-456f-810d-fcb7ec2f6088","html_url":"https://github.com/vedrane/betacode-parser","commit_stats":null,"previous_names":["vedrane/betacode-parser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedrane%2Fbetacode-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedrane%2Fbetacode-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedrane%2Fbetacode-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedrane%2Fbetacode-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedrane","download_url":"https://codeload.github.com/vedrane/betacode-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571875,"owners_count":21126522,"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":["ancient-greek","archaeology","betacode","ccat","coptic","digital-humanities","greek","hebrew","humanities","python","thesaurus-linguae-graecae","tlg","transcription"],"created_at":"2025-04-12T13:12:39.745Z","updated_at":"2025-04-12T13:12:40.233Z","avatar_url":"https://github.com/vedrane.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# betacode-parser\n### Introduction\nbetacode-parser is a Python package that allows one to convert to and from Beta Code for Greek, Coptic, and Hebrew. It is implemented according to the standard of *Thesaurus Linguae Graecae* (TLG) as seen in [this manual](https://stephanus.tlg.uci.edu/encoding/BCM.pdf). In addition, the Hebrew conversion also supports the older CCAT (Center for Computer Analysis of Text, University of Pennsylvania) standard as seen on [this webpage](https://ccat.sas.upenn.edu/beta/key.html). This project is inspired by the PyPI package [`betacode`](https://pypi.org/project/betacode/), which only implemented conversion for Greek.\n### Installation\nTo install, run `pip install betacode-parser`. Import in projects like this:\n```python\nfrom betacode_parser import *\n```\nAlternatively, you can import the following functions separately: `beta_to_coptic`, `coptic_to_beta`, `beta_to_greek`, `greek_to_beta`, `beta_to_hebrew`, and `hebrew_to_beta`.\n### Usage\n```python\n# Greek\nprint(beta_to_greek(\"*A)RIS1TOTE/LHS\")) # Ἀριστοτέλης\nprint(greek_to_beta(\"Ἀριστοτέλης\")) # *A)RIS1TOTE/LHS2\n\n# Coptic\nprint(beta_to_coptic(\"*PTOLEMAIOS\")) # Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ\nprint(coptic_to_beta(\"Ⲡⲧⲟⲗⲉⲙⲁⲓⲟⲥ\")) # *PTOLEMAIOS\n\n# Hebrew\n# Modern (TLG) Standard\nprint(beta_to_hebrew(\"ysrAl\")) # ישראל\nprint(hebrew_to_beta(\"ישראל\")) # ysrAl\n# Old (CCAT) Standard\nprint(beta_to_hebrew(\"Y\u0026R)L\", True)) # ישׂראל\nprint(hebrew_to_beta(\"ישראל\", True)) # Y#R)L\n```\nYou can see how to transcribe to and from Beta Code manually in the TLG manual and CCAT webpage.\n### Development\nContributions are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedrane%2Fbetacode-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedrane%2Fbetacode-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedrane%2Fbetacode-parser/lists"}