{"id":23058066,"url":"https://github.com/samwhelp/util-cns11643-to-cin-php","last_synced_at":"2025-04-03T06:16:07.840Z","repository":{"id":90412193,"uuid":"69214363","full_name":"samwhelp/util-cns11643-to-cin-php","owner":"samwhelp","description":"prototype-cns11643-to-cin-php","archived":false,"fork":false,"pushed_at":"2019-08-26T11:00:24.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T20:12:24.595Z","etag":null,"topics":["cin","cns11643"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/samwhelp.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}},"created_at":"2016-09-26T04:59:44.000Z","updated_at":"2019-08-26T11:00:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"8da75a67-b132-4645-96e7-3a7c8f96cf97","html_url":"https://github.com/samwhelp/util-cns11643-to-cin-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Futil-cns11643-to-cin-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Futil-cns11643-to-cin-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Futil-cns11643-to-cin-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwhelp%2Futil-cns11643-to-cin-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samwhelp","download_url":"https://codeload.github.com/samwhelp/util-cns11643-to-cin-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944385,"owners_count":20858772,"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":["cin","cns11643"],"created_at":"2024-12-16T02:14:19.631Z","updated_at":"2025-04-03T06:16:07.820Z","avatar_url":"https://github.com/samwhelp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# util-cns11643-to-cin-php\n\n\n## 操作步驟\n\n請依照下面順序操作。\n\n### 下載資源檔\n\n執行下面指令，下載資源檔。\n\n``` sh\n$ make asset\n```\n\n或是執行\n\n``` sh\n$ composer cin-asset\n```\n\n或是執行\n\n\n``` sh\n$ bin/asset.sh\n```\n\n會下載[檔案](http://www.cns11643.gov.tw/AIDB/Open_Data.zip)\n\n* asset/Open_Data.zip\n\n然後解開\n\n* asset/Open_Data\n\n主要會產生\n\n* asset/data/CNS_phonetic.txt\n* asset/data/CNS2UNICODE_Unicode_2.txt\n* asset/data/CNS2UNICODE_Unicode_15.txt\n* asset/data/CNS2UNICODE_Unicode_BMP.txt\n\n註：原本就有存在下面這個檔\n\n* data/CNS_phonetic.txt\n\n### 轉檔\n\n執行下面指令，會執行轉檔的動作。\n\n``` sh\n$ make cin\n```\n\n或是執行\n\n``` sh\n$ composer cin\n```\n\n或是執行\n\n``` sh\n$ bin/cin.php\n```\n\n執行完畢後，會產生幾個檔案\n\n* var/CnsPhonetic.cin (cin檔)\n* var/CnsPhonetic.csv (對照cin檔，除錯用，有多餘的相關資訊)\n* var/InvalidPhonetic.csv (非合法注音列表)\n* var/CollisionList.csv (重複的「phonetic - unicode」)\n\n\n### 觀看「CnsPhonetic.cin」\n\n\n執行下面指令，觀看「CnsPhonetic.cin」這個檔的內容\n\n``` sh\n$ less var/CnsPhonetic.cin\n```\n\n也可以執行下面指令，計算「CnsPhonetic.cin」這個檔的行數。\n\n``` sh\n$ wc -l var/CnsPhonetic.cin\n```\n\n\n## 相關專案\n\n* [CinConvert](https://github.com/samwhelp/CinConvert)\n* [util-cns11643-to-cin-nodejs](https://github.com/samwhelp/util-cns11643-to-cin-nodejs)\n* [util-cns11643-to-cin-gjs](https://github.com/samwhelp/util-cns11643-to-cin-gjs)\n* [prototype-cns11643-to-cin](https://github.com/samwhelp/prototype-cns11643-to-cin)\n\n\n## 相關討論\n\n* [https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=354760#forumpost354760](https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=354760#forumpost354760)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Futil-cns11643-to-cin-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamwhelp%2Futil-cns11643-to-cin-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwhelp%2Futil-cns11643-to-cin-php/lists"}