Hi Pat, I add that I'd rather that we use specialized TeX renderers rather than handle it ourselves.
I agree. A couple days ago, I took a few minutes to try to see if there were any decent TeX math parsers in Perl that we could reuse. Unfortunately, it did not seem so. Everything I could find seemed to have a different purpose or did not really work. I don't know. Speaking as one of the purported maintainers of tex4ht, I can say that I don't think making it a dependency of Texinfo is a good idea. Anyway, we're not going to solve the whole math problem right now. As far as ^_ vs. @sup/@sub goes, should I infer from your reply that you do not want to implement ^_ in texi2any? Fine, if so. In that case, @sup/@sub inside @math would clearly just stay in math. The remaining question would be about @sup/@sub outside of math -- go into math by default, or stay in text? I would be inclined toward the latter (which is also what texi2any does now). Thanks, K