{"action":"created","comment":{"url":"https://api.github.com/repos/mathquill/mathquill/pulls/comments/59754966","id":59754966,"diff_hunk":"@@ -491,3 +422,88 @@ LatexCmds['÷'] = LatexCmds.div = LatexCmds.divide = LatexCmds.divides =\n   bind(BinaryOperator,'\\\\div ','&divide;', '[/]');\n \n CharCmds['~'] = LatexCmds.sim = bind(BinaryOperator, '\\\\sim ', '~', '~');\n+\n+\n+\n+var NON_SYMBOLA_SYMBOL = [\n+// Basic LaTeX\n+'ldots:2026', 'cdots:22EF', 'vdots:22ee', 'ddots:22f1',\n+\n+// amsmath (recommended)\n+'dotsb:22ef', 'dotsc:2026', 'dotsi:22ef', 'dotsm:2026', 'dotso:2026',\n+'dots:2026',    // TODO: dots is supposed to take into account the \n+// surrounding elements and render appropriately (i.e. baseline, midline, etc...)\n+\n+// Punctuation\n+'ldotp:002e', 'cdotp:22c5',  'ddots:22f1', 'vdots:22ee',\n+\n+// AMS Hebrew\n+'aleph:2135', 'beth:2136', 'daleth:2138', 'gimel:2137',\n+\n+// Greek constants look better upright\n+'pi:03c0', 'lambda:03bb',   \n+];\n+\n+var BASIC_VANILLA_SYMBOLS = [\n+'Gamma:0393', 'Delta:0394', 'Theta:0398', 'Lambda:039b', \n+'Xi:039e', 'Pi:03a0', 'Sigma:03a3', 'Upsilon:03a5',\n+'Phi:03a6', 'Psi:03a8', 'Omega:03a9',\n+'Upsi/Upsilon:03a5',\n+\n+'neg:00ac', 'lnot:00ac', \n+'top:22a4', 'bot:22a5'\n+];\n+\n+var VARIABLE_SYMBOLS = [\n+// Greek letters\n+'alpha:03b1', 'beta:03b2','gamma:03b3', 'delta:03b4', 'epsilon:03f5', \n+'zeta:03b6', 'eta:03b7', 'theta:03b8', 'iota:03b9', 'kappa:03ba',  \n+'mu:03bc', 'nu:03bd', 'xi:03be', 'omicron:03bf', 'rho:03c1', \n+'sigma:03c3', 'tau:03c4', 'upsilon:03c5', 'phi:03d5','chi:03c7', \n+'psi:03c8', 'omega:03c9',\n+\n+// Greek variants\n+'varepsilon:03b5', 'vartheta:03d1', 'varpi:03d6', 'varrho:03f1', \n+'varsigma:03c2', 'varphi:03c6',\n+\n+// AMS Greek\n+'digamma:03dd', 'varkappa:03f0',\n+\n+// Synonyms. format: \"textinput/latex:unicode\"\n+'sigmaf/varsigma:03c2', 'epsiv/varepsilon:03b5', \n+'Gammad/digamma:03dd', 'gammad/digamma:03dd',\n+'kappav/varkappa:03f0', 'phiv/varphi:03c6', 'piv/varpi:03d6',\n+'rhov/varrho:03f1', 'sigmav:03c2', 'thetav/vartheta:03d1',\n+'upsi/upsilon:03c5', 'thetasym/vartheta:03d1',\n+\n+// Other variables\n+'hbar:210f', 'ell:2113', \n+'imath:0131', 'jmath:0237',\n+];\n+\n+var i = 0, m = [];\n+\n+for (i = 0; i < NON_SYMBOLA_SYMBOL.length; i++) {\n+    m = NON_SYMBOLA_SYMBOL[i].match(/([a-zA-Z]+)\\/?([a-zA-Z]*):(\\w+)/);\n+    LatexCmds[m[1]] = bind(NonSymbolaSymbol, '\\\\' + (m[2] && m[2].length > 0 ? m[2] : m[1]) + ' ', '&#x' + m[3] +';');\n+}\n+\n+for (i = 0; i < VARIABLE_SYMBOLS.length; i++) {\n+    m = VARIABLE_SYMBOLS[i].match(/([a-zA-Z]+)\\/?([a-zA-Z]*):(\\w+)/);\n+    LatexCmds[m[1]] = bind(Variable, '\\\\' + (m[2] && m[2].length > 0 ? m[2] : m[1]) + ' ', '&#x' + m[3] +';');\n+}\n+\n+for (i = 0; i < BASIC_VANILLA_SYMBOLS.length; i++) {\n+    m = BASIC_VANILLA_SYMBOLS[i].match(/([a-zA-Z]+)\\/?([a-zA-Z]*):(\\w+)/);\n+    LatexCmds[m[1]] = bind(VanillaSymbol, '\\\\' + (m[2] && m[2].length > 0 ? m[2] : m[1]) + ' ', '&#x' + m[3] +';');\n+}\n+\n+LatexCmds['#'] = bind(VanillaSymbol, '\\\\# ', '#');\n+LatexCmds['_'] = bind(VanillaSymbol, '\\\\_ ', '_');","path":"src/commands/math/basicSymbols.js","position":256,"original_position":253,"commit_id":"34df9c2668a08d28604f781994f94d450a78c825","original_commit_id":"9398c4e4baff2e31b4a30528eeb0bdd1d58251ea","user":{"login":"arnog","id":760798,"avatar_url":"https://avatars.githubusercontent.com/u/760798?v=3","gravatar_id":"","url":"https://api.github.com/users/arnog","html_url":"https://github.com/arnog","followers_url":"https://api.github.com/users/arnog/followers","following_url":"https://api.github.com/users/arnog/following{/other_user}","gists_url":"https://api.github.com/users/arnog/gists{/gist_id}","starred_url":"https://api.github.com/users/arnog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnog/subscriptions","organizations_url":"https://api.github.com/users/arnog/orgs","repos_url":"https://api.github.com/users/arnog/repos","events_url":"https://api.github.com/users/arnog/events{/privacy}","received_events_url":"https://api.github.com/users/arnog/received_events","type":"User","site_admin":false},"body":"```\\#``` seems to work (trying it out in demo.htm) but you're right for \\_. I'll comment it out.","created_at":"2016-04-14T17:13:20Z","updated_at":"2016-04-14T17:13:20Z","html_url":"https://github.com/mathquill/mathquill/pull/615#discussion_r59754966","pull_request_url":"https://api.github.com/repos/mathquill/mathquill/pulls/615","_links":{"self":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/comments/59754966"},"html":{"href":"https://github.com/mathquill/mathquill/pull/615#discussion_r59754966"},"pull_request":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/615"}}},"pull_request":{"url":"https://api.github.com/repos/mathquill/mathquill/pulls/615","id":65928910,"html_url":"https://github.com/mathquill/mathquill/pull/615","diff_url":"https://github.com/mathquill/mathquill/pull/615.diff","patch_url":"https://github.com/mathquill/mathquill/pull/615.patch","issue_url":"https://api.github.com/repos/mathquill/mathquill/issues/615","number":615,"state":"open","locked":false,"title":"Add support for all amsmath symbols and test/reference.html for validation","user":{"login":"arnog","id":760798,"avatar_url":"https://avatars.githubusercontent.com/u/760798?v=3","gravatar_id":"","url":"https://api.github.com/users/arnog","html_url":"https://github.com/arnog","followers_url":"https://api.github.com/users/arnog/followers","following_url":"https://api.github.com/users/arnog/following{/other_user}","gists_url":"https://api.github.com/users/arnog/gists{/gist_id}","starred_url":"https://api.github.com/users/arnog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnog/subscriptions","organizations_url":"https://api.github.com/users/arnog/orgs","repos_url":"https://api.github.com/users/arnog/repos","events_url":"https://api.github.com/users/arnog/events{/privacy}","received_events_url":"https://api.github.com/users/arnog/received_events","type":"User","site_admin":false},"body":"This test files includes the symbols and commands from the AMS short-math-guide (ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf) as they are displayed by MathQuill and LaTeX (via codecogs) for reference.","created_at":"2016-04-11T00:36:36Z","updated_at":"2016-04-14T17:13:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5ec1daa1b351a187d769998bd447de0d9c496c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mathquill/mathquill/pulls/615/commits","review_comments_url":"https://api.github.com/repos/mathquill/mathquill/pulls/615/comments","review_comment_url":"https://api.github.com/repos/mathquill/mathquill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mathquill/mathquill/issues/615/comments","statuses_url":"https://api.github.com/repos/mathquill/mathquill/statuses/34df9c2668a08d28604f781994f94d450a78c825","head":{"label":"arnog:master","ref":"master","sha":"34df9c2668a08d28604f781994f94d450a78c825","user":{"login":"arnog","id":760798,"avatar_url":"https://avatars.githubusercontent.com/u/760798?v=3","gravatar_id":"","url":"https://api.github.com/users/arnog","html_url":"https://github.com/arnog","followers_url":"https://api.github.com/users/arnog/followers","following_url":"https://api.github.com/users/arnog/following{/other_user}","gists_url":"https://api.github.com/users/arnog/gists{/gist_id}","starred_url":"https://api.github.com/users/arnog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnog/subscriptions","organizations_url":"https://api.github.com/users/arnog/orgs","repos_url":"https://api.github.com/users/arnog/repos","events_url":"https://api.github.com/users/arnog/events{/privacy}","received_events_url":"https://api.github.com/users/arnog/received_events","type":"User","site_admin":false},"repo":{"id":55799050,"name":"mathquill","full_name":"arnog/mathquill","owner":{"login":"arnog","id":760798,"avatar_url":"https://avatars.githubusercontent.com/u/760798?v=3","gravatar_id":"","url":"https://api.github.com/users/arnog","html_url":"https://github.com/arnog","followers_url":"https://api.github.com/users/arnog/followers","following_url":"https://api.github.com/users/arnog/following{/other_user}","gists_url":"https://api.github.com/users/arnog/gists{/gist_id}","starred_url":"https://api.github.com/users/arnog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnog/subscriptions","organizations_url":"https://api.github.com/users/arnog/orgs","repos_url":"https://api.github.com/users/arnog/repos","events_url":"https://api.github.com/users/arnog/events{/privacy}","received_events_url":"https://api.github.com/users/arnog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arnog/mathquill","description":"Easily type math in your webapp","fork":true,"url":"https://api.github.com/repos/arnog/mathquill","forks_url":"https://api.github.com/repos/arnog/mathquill/forks","keys_url":"https://api.github.com/repos/arnog/mathquill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arnog/mathquill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arnog/mathquill/teams","hooks_url":"https://api.github.com/repos/arnog/mathquill/hooks","issue_events_url":"https://api.github.com/repos/arnog/mathquill/issues/events{/number}","events_url":"https://api.github.com/repos/arnog/mathquill/events","assignees_url":"https://api.github.com/repos/arnog/mathquill/assignees{/user}","branches_url":"https://api.github.com/repos/arnog/mathquill/branches{/branch}","tags_url":"https://api.github.com/repos/arnog/mathquill/tags","blobs_url":"https://api.github.com/repos/arnog/mathquill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arnog/mathquill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arnog/mathquill/git/refs{/sha}","trees_url":"https://api.github.com/repos/arnog/mathquill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arnog/mathquill/statuses/{sha}","languages_url":"https://api.github.com/repos/arnog/mathquill/languages","stargazers_url":"https://api.github.com/repos/arnog/mathquill/stargazers","contributors_url":"https://api.github.com/repos/arnog/mathquill/contributors","subscribers_url":"https://api.github.com/repos/arnog/mathquill/subscribers","subscription_url":"https://api.github.com/repos/arnog/mathquill/subscription","commits_url":"https://api.github.com/repos/arnog/mathquill/commits{/sha}","git_commits_url":"https://api.github.com/repos/arnog/mathquill/git/commits{/sha}","comments_url":"https://api.github.com/repos/arnog/mathquill/comments{/number}","issue_comment_url":"https://api.github.com/repos/arnog/mathquill/issues/comments{/number}","contents_url":"https://api.github.com/repos/arnog/mathquill/contents/{+path}","compare_url":"https://api.github.com/repos/arnog/mathquill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arnog/mathquill/merges","archive_url":"https://api.github.com/repos/arnog/mathquill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arnog/mathquill/downloads","issues_url":"https://api.github.com/repos/arnog/mathquill/issues{/number}","pulls_url":"https://api.github.com/repos/arnog/mathquill/pulls{/number}","milestones_url":"https://api.github.com/repos/arnog/mathquill/milestones{/number}","notifications_url":"https://api.github.com/repos/arnog/mathquill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arnog/mathquill/labels{/name}","releases_url":"https://api.github.com/repos/arnog/mathquill/releases{/id}","deployments_url":"https://api.github.com/repos/arnog/mathquill/deployments","created_at":"2016-04-08T17:57:42Z","updated_at":"2016-04-08T17:57:43Z","pushed_at":"2016-04-13T05:59:45Z","git_url":"git://github.com/arnog/mathquill.git","ssh_url":"git@github.com:arnog/mathquill.git","clone_url":"https://github.com/arnog/mathquill.git","svn_url":"https://github.com/arnog/mathquill","homepage":"http://mathquill.com","size":14976,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mathquill:master","ref":"master","sha":"52d1b264c16886429bd88118dd59a407235635c8","user":{"login":"mathquill","id":897444,"avatar_url":"https://avatars.githubusercontent.com/u/897444?v=3","gravatar_id":"","url":"https://api.github.com/users/mathquill","html_url":"https://github.com/mathquill","followers_url":"https://api.github.com/users/mathquill/followers","following_url":"https://api.github.com/users/mathquill/following{/other_user}","gists_url":"https://api.github.com/users/mathquill/gists{/gist_id}","starred_url":"https://api.github.com/users/mathquill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathquill/subscriptions","organizations_url":"https://api.github.com/users/mathquill/orgs","repos_url":"https://api.github.com/users/mathquill/repos","events_url":"https://api.github.com/users/mathquill/events{/privacy}","received_events_url":"https://api.github.com/users/mathquill/received_events","type":"Organization","site_admin":false},"repo":{"id":598343,"name":"mathquill","full_name":"mathquill/mathquill","owner":{"login":"mathquill","id":897444,"avatar_url":"https://avatars.githubusercontent.com/u/897444?v=3","gravatar_id":"","url":"https://api.github.com/users/mathquill","html_url":"https://github.com/mathquill","followers_url":"https://api.github.com/users/mathquill/followers","following_url":"https://api.github.com/users/mathquill/following{/other_user}","gists_url":"https://api.github.com/users/mathquill/gists{/gist_id}","starred_url":"https://api.github.com/users/mathquill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathquill/subscriptions","organizations_url":"https://api.github.com/users/mathquill/orgs","repos_url":"https://api.github.com/users/mathquill/repos","events_url":"https://api.github.com/users/mathquill/events{/privacy}","received_events_url":"https://api.github.com/users/mathquill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mathquill/mathquill","description":"Easily type math in your webapp","fork":false,"url":"https://api.github.com/repos/mathquill/mathquill","forks_url":"https://api.github.com/repos/mathquill/mathquill/forks","keys_url":"https://api.github.com/repos/mathquill/mathquill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathquill/mathquill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathquill/mathquill/teams","hooks_url":"https://api.github.com/repos/mathquill/mathquill/hooks","issue_events_url":"https://api.github.com/repos/mathquill/mathquill/issues/events{/number}","events_url":"https://api.github.com/repos/mathquill/mathquill/events","assignees_url":"https://api.github.com/repos/mathquill/mathquill/assignees{/user}","branches_url":"https://api.github.com/repos/mathquill/mathquill/branches{/branch}","tags_url":"https://api.github.com/repos/mathquill/mathquill/tags","blobs_url":"https://api.github.com/repos/mathquill/mathquill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathquill/mathquill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathquill/mathquill/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathquill/mathquill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathquill/mathquill/statuses/{sha}","languages_url":"https://api.github.com/repos/mathquill/mathquill/languages","stargazers_url":"https://api.github.com/repos/mathquill/mathquill/stargazers","contributors_url":"https://api.github.com/repos/mathquill/mathquill/contributors","subscribers_url":"https://api.github.com/repos/mathquill/mathquill/subscribers","subscription_url":"https://api.github.com/repos/mathquill/mathquill/subscription","commits_url":"https://api.github.com/repos/mathquill/mathquill/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathquill/mathquill/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathquill/mathquill/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathquill/mathquill/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathquill/mathquill/contents/{+path}","compare_url":"https://api.github.com/repos/mathquill/mathquill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathquill/mathquill/merges","archive_url":"https://api.github.com/repos/mathquill/mathquill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathquill/mathquill/downloads","issues_url":"https://api.github.com/repos/mathquill/mathquill/issues{/number}","pulls_url":"https://api.github.com/repos/mathquill/mathquill/pulls{/number}","milestones_url":"https://api.github.com/repos/mathquill/mathquill/milestones{/number}","notifications_url":"https://api.github.com/repos/mathquill/mathquill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathquill/mathquill/labels{/name}","releases_url":"https://api.github.com/repos/mathquill/mathquill/releases{/id}","deployments_url":"https://api.github.com/repos/mathquill/mathquill/deployments","created_at":"2010-04-07T04:48:45Z","updated_at":"2016-04-14T13:47:59Z","pushed_at":"2016-04-13T05:59:46Z","git_url":"git://github.com/mathquill/mathquill.git","ssh_url":"git@github.com:mathquill/mathquill.git","clone_url":"https://github.com/mathquill/mathquill.git","svn_url":"https://github.com/mathquill/mathquill","homepage":"http://mathquill.com","size":15477,"stargazers_count":781,"watchers_count":781,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":279,"mirror_url":null,"open_issues_count":198,"forks":279,"open_issues":198,"watchers":781,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/615"},"html":{"href":"https://github.com/mathquill/mathquill/pull/615"},"issue":{"href":"https://api.github.com/repos/mathquill/mathquill/issues/615"},"comments":{"href":"https://api.github.com/repos/mathquill/mathquill/issues/615/comments"},"review_comments":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/615/comments"},"review_comment":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mathquill/mathquill/pulls/615/commits"},"statuses":{"href":"https://api.github.com/repos/mathquill/mathquill/statuses/34df9c2668a08d28604f781994f94d450a78c825"}}}}