From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s8SKEQGi000017 for ; Sun, 28 Sep 2014 16:14:26 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s8SKEKIt017255; Sun, 28 Sep 2014 16:14:20 -0400 (EDT) Date: Sun, 28 Sep 2014 16:14:20 -0400 (EDT) Message-Id: <201409282014.s8SKEKIt017255@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Change "to" and "from" commands to use munder, mover, and X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Change "to" and "from" commands to use munder, mover, and munderover. Modified Files: -------------- mdocml: eqn_html.c html.c html.h Revision Data ------------- Index: html.h =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.h,v retrieving revision 1.63 retrieving revision 1.64 diff -Lhtml.h -Lhtml.h -u -p -r1.63 -r1.64 --- html.h +++ html.h @@ -63,6 +63,9 @@ enum htmltag { TAG_MTABLE, TAG_MTR, TAG_MTD, + TAG_MUNDEROVER, + TAG_MUNDER, + TAG_MOVER, TAG_MAX }; Index: html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v retrieving revision 1.173 retrieving revision 1.174 diff -Lhtml.c -Lhtml.c -u -p -r1.173 -r1.174 --- html.c +++ html.c @@ -87,6 +87,9 @@ static const struct htmldata htmltags[TA {"mtable", 0}, /* TAG_MTABLE */ {"mtr", 0}, /* TAG_MTR */ {"mtd", 0}, /* TAG_MTD */ + {"munderover", 0}, /* TAG_MUNDEROVER */ + {"munder", 0}, /* TAG_MUNDER*/ + {"mover", 0}, /* TAG_MOVER*/ }; static const char *const htmlattrs[ATTR_MAX] = { Index: eqn_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/eqn_html.c,v retrieving revision 1.6 retrieving revision 1.7 diff -Leqn_html.c -Leqn_html.c -u -p -r1.6 -r1.7 --- eqn_html.c +++ eqn_html.c @@ -113,12 +113,14 @@ eqn_box(struct html *p, const struct eqn */ switch (bp->pos) { case (EQNPOS_TO): - /* FALLTHROUGH */ + post = print_otag(p, TAG_MOVER, 0, NULL); + break; case (EQNPOS_SUP): post = print_otag(p, TAG_MSUP, 0, NULL); break; case (EQNPOS_FROM): - /* FALLTHROUGH */ + post = print_otag(p, TAG_MUNDER, 0, NULL); + break; case (EQNPOS_SUB): post = print_otag(p, TAG_MSUB, 0, NULL); break; @@ -126,9 +128,10 @@ eqn_box(struct html *p, const struct eqn post = print_otag(p, TAG_MFRAC, 0, NULL); break; case (EQNPOS_FROMTO): - /* FALLTHROUGH */ + post = print_otag(p, TAG_MUNDEROVER, 0, NULL); + skiptwo = 1; + break; case (EQNPOS_SUBSUP): - /* This requires two elements. */ post = print_otag(p, TAG_MSUBSUP, 0, NULL); skiptwo = 1; break; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv