{"action":"opened","issue":{"url":"https://api.github.com/repos/Khan/KaTeX/issues/260","labels_url":"https://api.github.com/repos/Khan/KaTeX/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/Khan/KaTeX/issues/260/comments","events_url":"https://api.github.com/repos/Khan/KaTeX/issues/260/events","html_url":"https://github.com/Khan/KaTeX/issues/260","id":89784433,"number":260,"title":"Accept unicode from mathematical alphabets on input","user":{"login":"gagern","id":190759,"avatar_url":"https://avatars.githubusercontent.com/u/190759?v=3","gravatar_id":"","url":"https://api.github.com/users/gagern","html_url":"https://github.com/gagern","followers_url":"https://api.github.com/users/gagern/followers","following_url":"https://api.github.com/users/gagern/following{/other_user}","gists_url":"https://api.github.com/users/gagern/gists{/gist_id}","starred_url":"https://api.github.com/users/gagern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagern/subscriptions","organizations_url":"https://api.github.com/users/gagern/orgs","repos_url":"https://api.github.com/users/gagern/repos","events_url":"https://api.github.com/users/gagern/events{/privacy}","received_events_url":"https://api.github.com/users/gagern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-20T15:43:39Z","updated_at":"2015-06-20T15:43:39Z","closed_at":null,"body":"While #243 is discussing ways of accepting unicode characters as input for those situations where the output is using the same unicode symbol, we don't use special symbols on output for the fonts #132 is woking on, but instead use regular latin letters with a special font. Nevertheless it would be nice if we could still accept these special unicode symbols on input.\r\n\r\n#51 already gave some translation tables, but in my eyes it essentially boils down to these sets:\r\n\r\n* 𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ𝕜\r\n* 𝔄𝔅ℭ𝔇𝔈𝔉𝔊ℌℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜ℨ𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷\r\n* 𝒜ℬ𝒞𝒟ℰℱ𝒢ℋℐ𝒥𝒦ℒℳ𝒩𝒪𝒫𝒬ℛ𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵\r\n* 𝓐𝓑𝓒𝓓𝓔𝓕𝓖𝓗𝓘𝓙𝓚𝓛𝓜𝓝𝓞𝓟𝓠𝓡𝓢𝓣𝓤𝓥𝓦𝓧𝓨𝓩\r\n\r\nThe first two of these sets should be fairly non-controversial. For the latter two, I'm less sure. Unicode doesn't distinguish between script and caligraphic, so we could map the third to either `\\mathscr` or `\\mathcal`. The last set is obviously bold, and we only have a bold version of KaTeX_Caligraphic, so perhaps we should map everything to `\\mathcal` and add some boldification (see #259) to the latter.\r\n\r\nWhen working with string literals for these beasts, keep in mind that many of these letters are outside of the BMP, so they are encoded using two UTF-16 code units in JavaScript. A simple `charAt` won't always suffice for these cases. I believe that a conforming JavaScript RegExp engine should be able to deal with non-BMP codepoints."}}