{"id":19108997,"url":"https://github.com/hanleyweng/cantojpmin","last_synced_at":"2026-04-01T21:50:16.800Z","repository":{"id":78371314,"uuid":"314192607","full_name":"hanleyweng/CantoJpMin","owner":"hanleyweng","description":"Cantonese Jyutping Minified. – Convert Cantonese (廣東話/粵語) to Jyutping (粵拼) without needing a backend server.","archived":false,"fork":false,"pushed_at":"2022-01-31T00:32:50.000Z","size":720,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T13:44:14.070Z","etag":null,"topics":["cantonese","cantonese-dictionary","chinese","dictionary","javascript","jyutping","language","romanization","transliteration"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanleyweng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-11-19T09:06:08.000Z","updated_at":"2026-01-25T05:35:44.000Z","dependencies_parsed_at":"2023-05-26T17:45:15.856Z","dependency_job_id":null,"html_url":"https://github.com/hanleyweng/CantoJpMin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hanleyweng/CantoJpMin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanleyweng%2FCantoJpMin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanleyweng%2FCantoJpMin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanleyweng%2FCantoJpMin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanleyweng%2FCantoJpMin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanleyweng","download_url":"https://codeload.github.com/hanleyweng/CantoJpMin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanleyweng%2FCantoJpMin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31046899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T09:35:52.079Z","status":"ssl_error","status_checked_at":"2026-03-27T09:35:20.916Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cantonese","cantonese-dictionary","chinese","dictionary","javascript","jyutping","language","romanization","transliteration"],"created_at":"2024-11-09T04:18:27.369Z","updated_at":"2026-04-01T21:50:16.792Z","avatar_url":"https://github.com/hanleyweng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CantoJpMin (廣東話/粵語 - 粵拼 - 縮細)\nCantonese Jyutping Minified\n\nThis is a small script to enable Cantonese to Jyutping conversions (also known as 'Cantonese Transliteration' or 'Cantonese Romanization'). The script is optimized for small web apps and static web pages. It does does not require a backend server.\n\n\n## Info\n**All code can be run on the Frontend. No backend servers required.**\n\n- File size: 442 KB\n- Unique Characters Covered: 29,144\n- Character-Jyutping Pairs: 38,502\n\n## Examples\n\nFor a simpistic Cantonese to Jyutping transliteration, use **'toJyutping(…)'**:\n\n_(This uses the first jyutping option for each character)_\n```\nconsole.log( CantoJpMin.toJyutping('食咗飯未呀?🍚') );\n\n/* Result =\u003e sik6 zo2 faan6 mei6 aa1 ?🍚 */\n```\n\nTo see more jyutping options, run **'toJyutpingArray(…)'**:\n```\nconsole.log( CantoJpMin.toJyutpingArray('食咗飯未呀?🍚') );\n\n/* Result =\u003e \n[{\"original\":\"食\",\"jyutpings\":[\"sik6\",\"sik2\",\"zi6\",\"ji6\"]},\n {\"original\":\"咗\",\"jyutpings\":[\"zo2\"]},\n {\"original\":\"飯\",\"jyutpings\":[\"faan6\",\"faan2\"]},\n {\"original\":\"未\",\"jyutpings\":[\"mei6\"]},\n {\"original\":\"呀\",\"jyutpings\":[\"aa1\",\"ngaa1\",\"aa3\",\"ngaa3\"]},\n {\"original\":\"?\"},\n {\"original\":\"\\ud83c\"},\n {\"original\":\"\\udf5a\"}] */\n```\n\n\n## Instructions\n\n1. Add the two CantoJpMin js files to your project\n```\n\u003cscript src=\"scripts/cantojpmin_data.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"scripts/cantojpmin_functions.js\"\u003e\u003c/script\u003e\n```\n\n2. Run CantoJpMin\n```\nconsole.log( CantoJpMin.toJyutping('食咗飯未呀?🍚') );\n```\n\n3. Done ✅\n\n\n## References\n\nThe dictionary data comes from the Linguistic Society of Hong Kong (LSHK) (香港語言學學會)'s ['Cantonese Pronunciation List of the Characters for Computers (電腦用漢字粵語拼音表)'](https://github.com/lshk-org/jyutping-table) (accessed on 2020.11.19, last updated 2019.12.28). \n\nThe LSHK list is released under [CC 4.0 License](https://creativecommons.org/licenses/by/4.0/deed.en). All of this code is released under the same license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanleyweng%2Fcantojpmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanleyweng%2Fcantojpmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanleyweng%2Fcantojpmin/lists"}