{"action":"created","issue":{"url":"https://api.github.com/repos/KWARC/LaTeXML/issues/1","labels_url":"https://api.github.com/repos/KWARC/LaTeXML/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/KWARC/LaTeXML/issues/1/comments","events_url":"https://api.github.com/repos/KWARC/LaTeXML/issues/1/events","html_url":"https://github.com/KWARC/LaTeXML/issues/1","id":56394289,"number":1,"title":"use OMFOREIGN instead of OMSTR for mixed markup (\\text{...})","user":{"login":"kohlhase","id":4037538,"avatar_url":"https://avatars.githubusercontent.com/u/4037538?v=3","gravatar_id":"","url":"https://api.github.com/users/kohlhase","html_url":"https://github.com/kohlhase","followers_url":"https://api.github.com/users/kohlhase/followers","following_url":"https://api.github.com/users/kohlhase/following{/other_user}","gists_url":"https://api.github.com/users/kohlhase/gists{/gist_id}","starred_url":"https://api.github.com/users/kohlhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohlhase/subscriptions","organizations_url":"https://api.github.com/users/kohlhase/orgs","repos_url":"https://api.github.com/users/kohlhase/repos","events_url":"https://api.github.com/users/kohlhase/events{/privacy}","received_events_url":"https://api.github.com/users/kohlhase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"angerhang","id":7655454,"avatar_url":"https://avatars.githubusercontent.com/u/7655454?v=3","gravatar_id":"","url":"https://api.github.com/users/angerhang","html_url":"https://github.com/angerhang","followers_url":"https://api.github.com/users/angerhang/followers","following_url":"https://api.github.com/users/angerhang/following{/other_user}","gists_url":"https://api.github.com/users/angerhang/gists{/gist_id}","starred_url":"https://api.github.com/users/angerhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angerhang/subscriptions","organizations_url":"https://api.github.com/users/angerhang/orgs","repos_url":"https://api.github.com/users/angerhang/repos","events_url":"https://api.github.com/users/angerhang/events{/privacy}","received_events_url":"https://api.github.com/users/angerhang/received_events","type":"User","site_admin":false},"milestone":null,"comments":25,"created_at":"2015-02-03T15:44:07Z","updated_at":"2015-04-17T03:04:34Z","closed_at":null,"body":"It is great that we have a good treatment of embedded text (amstext-style) for OpenMath now. But it uses the wrong encoding. If I convert \r\n```LaTeX\r\n\\documentclass{article}\r\n\\usepackage{amstext}\r\n\\begin{document}\r\n$\\{\\text{$\\phi$ and $\\psi$}\\}$\r\n\\end{document}\r\n```\r\nI get \r\n```XML\r\n      <om:OMOBJ>\r\n\t<om:OMA>\r\n\t  <om:OMS cd=\"latexml\" name=\"set\"/>\r\n\t  <om:OMSTR xml:id=\"XM1\">\r\n\t    <om:OMV name=\"ϕ\" xml:id=\"XM1a\"/> and <om:OMV name=\"ψ\" xml:id=\"XM1b\"/>\r\n\t  </om:OMSTR>\r\n\t</om:OMA>\r\n      </om:OMOBJ>\r\n```\r\nBut according to the OpenMath 2 standard OMSTR is for strings, not for recursing into other content. for that we need OMFOREIGN (which is only allowed in OMATTR). So I would like to have instead:\r\n```XML\r\n      <om:OMOBJ>\r\n\t<om:OMA>\r\n\t  <om:OMS cd=\"latexml\" name=\"set\"/>\r\n\t  <om:OMATTR>\r\n\t    <om:OMATP>\r\n\t      <om:OMS cd=\"OMDoc\" name=\"verbalizes\"/>\r\n\t      <om:FOREIGN encoding=\"mtext\" xml:id=\"XM1\">\r\n\t\t<om:OMV name=\"ϕ\" xml:id=\"XM1a\"/> and <om:OMV name=\"ψ\" xml:id=\"XM1b\"/>\r\n\t      </om:FOREIGN>\r\n\t    </om:OMATP>\r\n\t    <om:OMS cd=\"OMDoc\" name=\"infObj\"/>\r\n\t  </om:OMATTR>\r\n\t</om:OMA>\r\n      </om:OMOBJ>\r\n ```\r\n@m-iancu:fyi\r\n"},"comment":{"url":"https://api.github.com/repos/KWARC/LaTeXML/issues/comments/93883552","html_url":"https://github.com/KWARC/LaTeXML/issues/1#issuecomment-93883552","issue_url":"https://api.github.com/repos/KWARC/LaTeXML/issues/1","id":93883552,"user":{"login":"kohlhase","id":4037538,"avatar_url":"https://avatars.githubusercontent.com/u/4037538?v=3","gravatar_id":"","url":"https://api.github.com/users/kohlhase","html_url":"https://github.com/kohlhase","followers_url":"https://api.github.com/users/kohlhase/followers","following_url":"https://api.github.com/users/kohlhase/following{/other_user}","gists_url":"https://api.github.com/users/kohlhase/gists{/gist_id}","starred_url":"https://api.github.com/users/kohlhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohlhase/subscriptions","organizations_url":"https://api.github.com/users/kohlhase/orgs","repos_url":"https://api.github.com/users/kohlhase/repos","events_url":"https://api.github.com/users/kohlhase/events{/privacy}","received_events_url":"https://api.github.com/users/kohlhase/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T03:04:34Z","updated_at":"2015-04-17T03:04:34Z","body":"I am not sure I understand the perl-level comments here, but let me say that I indeed want to have the containing OMOBJ in there. It just seems more correct.  I also think that the MathML you are generating should have <math> elements around the math, which (I think) it currently does not. So in summary, I think that the correct output for our example should be \r\n```XML\r\n     <om:OMOBJ>\r\n    <om:OMA>\r\n      <om:OMS cd=\"latexml\" name=\"set\"/>\r\n      <om:OMATTR>\r\n        <om:OMATP>\r\n          <om:OMS cd=\"OMDoc\" name=\"verbalizes\"/>\r\n          <om:FOREIGN encoding=\"mtext\" xml:id=\"XM1\">\r\n            <om:OMOBJ>\r\n               <om:OMV name=\"ϕ\" xml:id=\"XM1a\"/>\r\n             </om:OMOBJ>\r\n             and \r\n             <om:OMOBJ>\r\n                 <om:OMV name=\"ψ\" xml:id=\"XM1b\"/>\r\n             </om:OMOBJ>\r\n          </om:FOREIGN>\r\n        </om:OMATP>\r\n        <om:OMS cd=\"OMDoc\" name=\"infObj\"/>\r\n      </om:OMATTR>\r\n    </om:OMA>\r\n      </om:OMOBJ>\r\n```\r\nand correspondingly for the MathML. \r\n"}}