{"action":"created","comment":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/28644591","id":28644591,"diff_hunk":"@@ -0,0 +1,451 @@\n+﻿#pragma once\n+\n+/*\n+*      Copyright (C) 2005-2013 Team XBMC\n+*      http://xbmc.org\n+*\n+*  This Program is free software; you can redistribute it and/or modify\n+*  it under the terms of the GNU General Public License as published by\n+*  the Free Software Foundation; either version 2, or (at your option)\n+*  any later version.\n+*\n+*  This Program is distributed in the hope that it will be useful,\n+*  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+*  GNU General Public License for more details.\n+*\n+*  You should have received a copy of the GNU General Public License\n+*  along with XBMC; see the file COPYING.  If not, see\n+*  <http://www.gnu.org/licenses/>.\n+*\n+*/\n+\n+#include \"InputCodingTable.h\"\n+#include <map>\n+\n+class CInputCodingTableBasePY : public IInputCodingTable\n+{\n+public:\n+  CInputCodingTableBasePY();\n+  virtual ~CInputCodingTableBasePY() {}\n+\n+  virtual bool GetWordListPage(const std::string& strCode, bool isFirstPage);\n+  virtual std::vector<std::wstring> GetResponse(int response);","path":"xbmc/input/InputCodingTableBasePY.h","position":33,"original_position":33,"commit_id":"af94e6e06bae9908ce627c40483b907462509e01","original_commit_id":"af94e6e06bae9908ce627c40483b907462509e01","user":{"login":"Paxxi","id":874927,"avatar_url":"https://avatars.githubusercontent.com/u/874927?v=3","gravatar_id":"","url":"https://api.github.com/users/Paxxi","html_url":"https://github.com/Paxxi","followers_url":"https://api.github.com/users/Paxxi/followers","following_url":"https://api.github.com/users/Paxxi/following{/other_user}","gists_url":"https://api.github.com/users/Paxxi/gists{/gist_id}","starred_url":"https://api.github.com/users/Paxxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paxxi/subscriptions","organizations_url":"https://api.github.com/users/Paxxi/orgs","repos_url":"https://api.github.com/users/Paxxi/repos","events_url":"https://api.github.com/users/Paxxi/events{/privacy}","received_events_url":"https://api.github.com/users/Paxxi/received_events","type":"User","site_admin":false},"body":"you can remove response here so it's GetResponse(int) to avoid warnings about unused variables, same for .cpp file","created_at":"2015-04-18T14:49:22Z","updated_at":"2015-04-18T14:49:22Z","html_url":"https://github.com/xbmc/xbmc/pull/5326#discussion_r28644591","pull_request_url":"https://api.github.com/repos/xbmc/xbmc/pulls/5326","_links":{"self":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/28644591"},"html":{"href":"https://github.com/xbmc/xbmc/pull/5326#discussion_r28644591"},"pull_request":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/5326"}}},"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/5326","id":20809153,"html_url":"https://github.com/xbmc/xbmc/pull/5326","diff_url":"https://github.com/xbmc/xbmc/pull/5326.diff","patch_url":"https://github.com/xbmc/xbmc/pull/5326.patch","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/5326","number":5326,"state":"open","locked":false,"title":"[keyboard] support coding input method for chinese","user":{"login":"taxigps","id":102434,"avatar_url":"https://avatars.githubusercontent.com/u/102434?v=3","gravatar_id":"","url":"https://api.github.com/users/taxigps","html_url":"https://github.com/taxigps","followers_url":"https://api.github.com/users/taxigps/followers","following_url":"https://api.github.com/users/taxigps/following{/other_user}","gists_url":"https://api.github.com/users/taxigps/gists{/gist_id}","starred_url":"https://api.github.com/users/taxigps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxigps/subscriptions","organizations_url":"https://api.github.com/users/taxigps/orgs","repos_url":"https://api.github.com/users/taxigps/repos","events_url":"https://api.github.com/users/taxigps/events{/privacy}","received_events_url":"https://api.github.com/users/taxigps/received_events","type":"User","site_admin":false},"body":"There are thousands of characters in chinese, so can't input all the characters driect from keys on keyboard. the method is use ascii keys to input a coding string, and search the code in a coding table to get the chinese character or words want to input. one code will return many results, so show them in a list to choose.\r\n\r\nthe BaiduPY coding table is a cloud service from Baidu.\r\n\r\na sample screenshot here:\r\n![screenshot087_1](https://cloud.githubusercontent.com/assets/102434/4178245/dfcf7a42-3686-11e4-9a3f-f2ac4459c7b3.jpg)\r\n","created_at":"2014-09-05T13:56:06Z","updated_at":"2015-04-18T14:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1f76c18444b6afa0ec3da2faa01538357edb18e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xbmc/xbmc/pulls/5326/commits","review_comments_url":"https://api.github.com/repos/xbmc/xbmc/pulls/5326/comments","review_comment_url":"https://api.github.com/repos/xbmc/xbmc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/5326/comments","statuses_url":"https://api.github.com/repos/xbmc/xbmc/statuses/af94e6e06bae9908ce627c40483b907462509e01","head":{"label":"taxigps:keyboard_layouts","ref":"keyboard_layouts","sha":"af94e6e06bae9908ce627c40483b907462509e01","user":{"login":"taxigps","id":102434,"avatar_url":"https://avatars.githubusercontent.com/u/102434?v=3","gravatar_id":"","url":"https://api.github.com/users/taxigps","html_url":"https://github.com/taxigps","followers_url":"https://api.github.com/users/taxigps/followers","following_url":"https://api.github.com/users/taxigps/following{/other_user}","gists_url":"https://api.github.com/users/taxigps/gists{/gist_id}","starred_url":"https://api.github.com/users/taxigps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxigps/subscriptions","organizations_url":"https://api.github.com/users/taxigps/orgs","repos_url":"https://api.github.com/users/taxigps/repos","events_url":"https://api.github.com/users/taxigps/events{/privacy}","received_events_url":"https://api.github.com/users/taxigps/received_events","type":"User","site_admin":false},"repo":{"id":3945528,"name":"xbmc","full_name":"taxigps/xbmc","owner":{"login":"taxigps","id":102434,"avatar_url":"https://avatars.githubusercontent.com/u/102434?v=3","gravatar_id":"","url":"https://api.github.com/users/taxigps","html_url":"https://github.com/taxigps","followers_url":"https://api.github.com/users/taxigps/followers","following_url":"https://api.github.com/users/taxigps/following{/other_user}","gists_url":"https://api.github.com/users/taxigps/gists{/gist_id}","starred_url":"https://api.github.com/users/taxigps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taxigps/subscriptions","organizations_url":"https://api.github.com/users/taxigps/orgs","repos_url":"https://api.github.com/users/taxigps/repos","events_url":"https://api.github.com/users/taxigps/events{/privacy}","received_events_url":"https://api.github.com/users/taxigps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taxigps/xbmc","description":"XBMC Main Repository","fork":true,"url":"https://api.github.com/repos/taxigps/xbmc","forks_url":"https://api.github.com/repos/taxigps/xbmc/forks","keys_url":"https://api.github.com/repos/taxigps/xbmc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taxigps/xbmc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taxigps/xbmc/teams","hooks_url":"https://api.github.com/repos/taxigps/xbmc/hooks","issue_events_url":"https://api.github.com/repos/taxigps/xbmc/issues/events{/number}","events_url":"https://api.github.com/repos/taxigps/xbmc/events","assignees_url":"https://api.github.com/repos/taxigps/xbmc/assignees{/user}","branches_url":"https://api.github.com/repos/taxigps/xbmc/branches{/branch}","tags_url":"https://api.github.com/repos/taxigps/xbmc/tags","blobs_url":"https://api.github.com/repos/taxigps/xbmc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taxigps/xbmc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taxigps/xbmc/git/refs{/sha}","trees_url":"https://api.github.com/repos/taxigps/xbmc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taxigps/xbmc/statuses/{sha}","languages_url":"https://api.github.com/repos/taxigps/xbmc/languages","stargazers_url":"https://api.github.com/repos/taxigps/xbmc/stargazers","contributors_url":"https://api.github.com/repos/taxigps/xbmc/contributors","subscribers_url":"https://api.github.com/repos/taxigps/xbmc/subscribers","subscription_url":"https://api.github.com/repos/taxigps/xbmc/subscription","commits_url":"https://api.github.com/repos/taxigps/xbmc/commits{/sha}","git_commits_url":"https://api.github.com/repos/taxigps/xbmc/git/commits{/sha}","comments_url":"https://api.github.com/repos/taxigps/xbmc/comments{/number}","issue_comment_url":"https://api.github.com/repos/taxigps/xbmc/issues/comments{/number}","contents_url":"https://api.github.com/repos/taxigps/xbmc/contents/{+path}","compare_url":"https://api.github.com/repos/taxigps/xbmc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taxigps/xbmc/merges","archive_url":"https://api.github.com/repos/taxigps/xbmc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taxigps/xbmc/downloads","issues_url":"https://api.github.com/repos/taxigps/xbmc/issues{/number}","pulls_url":"https://api.github.com/repos/taxigps/xbmc/pulls{/number}","milestones_url":"https://api.github.com/repos/taxigps/xbmc/milestones{/number}","notifications_url":"https://api.github.com/repos/taxigps/xbmc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taxigps/xbmc/labels{/name}","releases_url":"https://api.github.com/repos/taxigps/xbmc/releases{/id}","created_at":"2012-04-06T00:37:12Z","updated_at":"2014-07-11T12:58:39Z","pushed_at":"2015-04-17T14:02:10Z","git_url":"git://github.com/taxigps/xbmc.git","ssh_url":"git@github.com:taxigps/xbmc.git","clone_url":"https://github.com/taxigps/xbmc.git","svn_url":"https://github.com/taxigps/xbmc","homepage":"http://xbmc.org","size":506806,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"xbmc:master","ref":"master","sha":"0a5a394898b02b1f31b3aa23b0d1a92e1fbb1ad3","user":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"repo":{"id":1217614,"name":"xbmc","full_name":"xbmc/xbmc","owner":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xbmc/xbmc","description":"Kodi Main Repository - By using this code you agree with our policy and will follow the GPLv2 license as included","fork":false,"url":"https://api.github.com/repos/xbmc/xbmc","forks_url":"https://api.github.com/repos/xbmc/xbmc/forks","keys_url":"https://api.github.com/repos/xbmc/xbmc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xbmc/xbmc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xbmc/xbmc/teams","hooks_url":"https://api.github.com/repos/xbmc/xbmc/hooks","issue_events_url":"https://api.github.com/repos/xbmc/xbmc/issues/events{/number}","events_url":"https://api.github.com/repos/xbmc/xbmc/events","assignees_url":"https://api.github.com/repos/xbmc/xbmc/assignees{/user}","branches_url":"https://api.github.com/repos/xbmc/xbmc/branches{/branch}","tags_url":"https://api.github.com/repos/xbmc/xbmc/tags","blobs_url":"https://api.github.com/repos/xbmc/xbmc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xbmc/xbmc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xbmc/xbmc/git/refs{/sha}","trees_url":"https://api.github.com/repos/xbmc/xbmc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xbmc/xbmc/statuses/{sha}","languages_url":"https://api.github.com/repos/xbmc/xbmc/languages","stargazers_url":"https://api.github.com/repos/xbmc/xbmc/stargazers","contributors_url":"https://api.github.com/repos/xbmc/xbmc/contributors","subscribers_url":"https://api.github.com/repos/xbmc/xbmc/subscribers","subscription_url":"https://api.github.com/repos/xbmc/xbmc/subscription","commits_url":"https://api.github.com/repos/xbmc/xbmc/commits{/sha}","git_commits_url":"https://api.github.com/repos/xbmc/xbmc/git/commits{/sha}","comments_url":"https://api.github.com/repos/xbmc/xbmc/comments{/number}","issue_comment_url":"https://api.github.com/repos/xbmc/xbmc/issues/comments{/number}","contents_url":"https://api.github.com/repos/xbmc/xbmc/contents/{+path}","compare_url":"https://api.github.com/repos/xbmc/xbmc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xbmc/xbmc/merges","archive_url":"https://api.github.com/repos/xbmc/xbmc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xbmc/xbmc/downloads","issues_url":"https://api.github.com/repos/xbmc/xbmc/issues{/number}","pulls_url":"https://api.github.com/repos/xbmc/xbmc/pulls{/number}","milestones_url":"https://api.github.com/repos/xbmc/xbmc/milestones{/number}","notifications_url":"https://api.github.com/repos/xbmc/xbmc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xbmc/xbmc/labels{/name}","releases_url":"https://api.github.com/repos/xbmc/xbmc/releases{/id}","created_at":"2011-01-03T21:18:51Z","updated_at":"2015-04-18T13:31:50Z","pushed_at":"2015-04-18T13:07:15Z","git_url":"git://github.com/xbmc/xbmc.git","ssh_url":"git@github.com:xbmc/xbmc.git","clone_url":"https://github.com/xbmc/xbmc.git","svn_url":"https://github.com/xbmc/xbmc","homepage":"http://kodi.wiki/view/Official:Trademark_Policy","size":1857581,"stargazers_count":3843,"watchers_count":3843,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2799,"mirror_url":null,"open_issues_count":235,"forks":2799,"open_issues":235,"watchers":3843,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/5326"},"html":{"href":"https://github.com/xbmc/xbmc/pull/5326"},"issue":{"href":"https://api.github.com/repos/xbmc/xbmc/issues/5326"},"comments":{"href":"https://api.github.com/repos/xbmc/xbmc/issues/5326/comments"},"review_comments":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/5326/comments"},"review_comment":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/5326/commits"},"statuses":{"href":"https://api.github.com/repos/xbmc/xbmc/statuses/af94e6e06bae9908ce627c40483b907462509e01"}}}}