Skip to content

Commit

Permalink
Supported EDelimited in OMML.
Browse files Browse the repository at this point in the history
  • Loading branch information
John MacFarlane committed Jan 7, 2012
1 parent 75499a5 commit d04db6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Text/TeXMath/OMML.hs
Expand Up @@ -121,6 +121,14 @@ showExp e =
case e of
ENumber x -> [str [] x]
EGrouped xs -> concatMap showExp xs
EDelimited start end xs ->
[mnode "d" [ mnode "dPr"
[ mnodeAttr "begChr" [("val",start)] ()
, mnodeAttr "endChr" [("val",end)] ()
, mnode "grow" () ]
, mnode "e" $ concatMap showExp xs
] ]

EIdentifier x -> [str [] x]
EMathOperator x -> [str [] x]
EStretchy x -> showExp x -- no support for stretchy in OMML
Expand Down

0 comments on commit d04db6d

Please sign in to comment.