{"action":"created","issue":{"url":"https://api.github.com/repos/BYVoid/OpenCC/issues/198","repository_url":"https://api.github.com/repos/BYVoid/OpenCC","labels_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/198/comments","events_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/198/events","html_url":"https://github.com/BYVoid/OpenCC/issues/198","id":174199426,"number":198,"title":"请问怎么添加新的转化词？","user":{"login":"czly","id":17497420,"avatar_url":"https://avatars.githubusercontent.com/u/17497420?v=3","gravatar_id":"","url":"https://api.github.com/users/czly","html_url":"https://github.com/czly","followers_url":"https://api.github.com/users/czly/followers","following_url":"https://api.github.com/users/czly/following{/other_user}","gists_url":"https://api.github.com/users/czly/gists{/gist_id}","starred_url":"https://api.github.com/users/czly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czly/subscriptions","organizations_url":"https://api.github.com/users/czly/orgs","repos_url":"https://api.github.com/users/czly/repos","events_url":"https://api.github.com/users/czly/events{/privacy}","received_events_url":"https://api.github.com/users/czly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-31T07:02:52Z","updated_at":"2017-02-02T06:40:06Z","closed_at":null,"body":"比如繁体转化成简体是阿公，但是通常都应该转化成爷爷\n"},"comment":{"url":"https://api.github.com/repos/BYVoid/OpenCC/issues/comments/276880744","html_url":"https://github.com/BYVoid/OpenCC/issues/198#issuecomment-276880744","issue_url":"https://api.github.com/repos/BYVoid/OpenCC/issues/198","id":276880744,"user":{"login":"iblis17","id":761623,"avatar_url":"https://avatars.githubusercontent.com/u/761623?v=3","gravatar_id":"","url":"https://api.github.com/users/iblis17","html_url":"https://github.com/iblis17","followers_url":"https://api.github.com/users/iblis17/followers","following_url":"https://api.github.com/users/iblis17/following{/other_user}","gists_url":"https://api.github.com/users/iblis17/gists{/gist_id}","starred_url":"https://api.github.com/users/iblis17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iblis17/subscriptions","organizations_url":"https://api.github.com/users/iblis17/orgs","repos_url":"https://api.github.com/users/iblis17/repos","events_url":"https://api.github.com/users/iblis17/events{/privacy}","received_events_url":"https://api.github.com/users/iblis17/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T06:40:06Z","updated_at":"2017-02-02T06:40:06Z","body":"用法很簡單：\r\n1. 準備設定檔，以 `config/s2t.json` 為範例\r\n```shell\r\n$ cp config/s2t.json demo.json\r\n$ diff -u demo.json config/s2t.json\r\n--- demo.json   2017-02-02 14:33:51.538004653 +0800\r\n+++ config/s2t.json     2017-02-02 14:27:50.587766778 +0800\r\n@@ -16,10 +16,6 @@\r\n       }, {\r\n         \"type\": \"ocd\",\r\n         \"file\": \"STCharacters.ocd\"\r\n-      },\r\n-      {\r\n-        \"type\": \"text\",\r\n-        \"file\": \"./magic.txt\"\r\n       }]\r\n     }\r\n   }]\r\n```\r\n\r\n2. 新增一個 `magic.txt`\r\n注意此處 *一定* 要用 `tab` 作為分割字元（註：github 貼上後變成空白，請見諒\r\n```shell\r\n$ cat magic.txt\r\n雲端  屁股\r\n```\r\n\r\n3. 準備需要被轉換的文件\r\n```shell\r\n$ cat test.txt \r\n雲端大數據\r\n```\r\n\r\n4.\r\n```shell\r\n$ opencc -c demo.json -i test.txt\r\n屁股大數據\r\n```\r\n🎉 "}}
{"actor":{"display_login":"iblis17"}}