{"action":"created","issue":{"url":"https://api.github.com/repos/asciimath/asciimathml/issues/58","repository_url":"https://api.github.com/repos/asciimath/asciimathml","labels_url":"https://api.github.com/repos/asciimath/asciimathml/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/asciimath/asciimathml/issues/58/comments","events_url":"https://api.github.com/repos/asciimath/asciimathml/issues/58/events","html_url":"https://github.com/asciimath/asciimathml/issues/58","id":150567594,"number":58,"title":"Extension request: (:A:| Bra and ket |:B:) vector support with new space-less separator :| and |: and :|: (use << and >> for regular angle bracketing)","user":{"login":"frevds","id":5341447,"avatar_url":"https://avatars.githubusercontent.com/u/5341447?v=3","gravatar_id":"","url":"https://api.github.com/users/frevds","html_url":"https://github.com/frevds","followers_url":"https://api.github.com/users/frevds/followers","following_url":"https://api.github.com/users/frevds/following{/other_user}","gists_url":"https://api.github.com/users/frevds/gists{/gist_id}","starred_url":"https://api.github.com/users/frevds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frevds/subscriptions","organizations_url":"https://api.github.com/users/frevds/orgs","repos_url":"https://api.github.com/users/frevds/repos","events_url":"https://api.github.com/users/frevds/events{/privacy}","received_events_url":"https://api.github.com/users/frevds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-23T15:40:14Z","updated_at":"2016-04-25T21:49:10Z","closed_at":null,"body":"This looks fine: \r\n`|A:)(:A|`\r\n\r\nThis doesn't: \r\n\r\n`|A:)(:A| * 1/2`\r\n\r\nbecause the parser thinks the last (: opens a bracket that is not closed and includes all the rest in the sizing. \r\n\r\nHowever, you have both (: ... :) and << ... >> (undocumented) for the same angle bracketing: \r\n\r\n```\r\n{input:\"(:\", tag:\"mo\", output:\"\\u2329\", tex:\"langle\", ttype:LEFTBRACKET}, \r\n{input:\":)\", tag:\"mo\", output:\"\\u232A\", tex:\"rangle\", ttype:RIGHTBRACKET}, \r\n{input:\"<<\", tag:\"mo\", output:\"\\u2329\", tex:null, ttype:LEFTBRACKET}, \r\n{input:\">>\", tag:\"mo\", output:\"\\u232A\", tex:null, ttype:RIGHTBRACKET}, \r\n```\r\n\r\nI suggest you use \"(:\" and \":)\" together with a new \":|\", \"|:\" or \":|:\" for bra and ket vectors with no spacing, where a \"(:\" is closed by \":|\", while a \"|:\" is closed by \":)\" and keep \"<<\" and \">>\" for regular bracketing, like so: \r\n\r\n`(:A:|` (bra)\r\n`|:B:)` (ket)\r\n`(:A:|:B:)` (bra-ket)\r\n`(:A:|:B:|:C:)` (sandwich)\r\n\r\nThis notation is important for quantum physics. \r\n\r\nThe pipe | is currently treated as a matrix column separator, making it look very ugly when using it for bras and kets unless one modifies the stylesheet, which then tampers with the whole absolute positioning. The only way currently is to separate all expressions in order to reset the sizing. \r\n\r\nThanks for listening. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciimath/asciimathml/issues/comments/214537857","html_url":"https://github.com/asciimath/asciimathml/issues/58#issuecomment-214537857","issue_url":"https://api.github.com/repos/asciimath/asciimathml/issues/58","id":214537857,"user":{"login":"drlippman","id":190505,"avatar_url":"https://avatars.githubusercontent.com/u/190505?v=3","gravatar_id":"","url":"https://api.github.com/users/drlippman","html_url":"https://github.com/drlippman","followers_url":"https://api.github.com/users/drlippman/followers","following_url":"https://api.github.com/users/drlippman/following{/other_user}","gists_url":"https://api.github.com/users/drlippman/gists{/gist_id}","starred_url":"https://api.github.com/users/drlippman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drlippman/subscriptions","organizations_url":"https://api.github.com/users/drlippman/orgs","repos_url":"https://api.github.com/users/drlippman/repos","events_url":"https://api.github.com/users/drlippman/events{/privacy}","received_events_url":"https://api.github.com/users/drlippman/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T21:49:10Z","updated_at":"2016-04-25T21:49:10Z","body":"Interesting notion. Certainly is a way to remove the ambiguity with | as a bracket.\r\n"}}