Open
Implement formula image → native Word object pipeline with Tkinter GUI#1
Conversation
Agent-Logs-Url: https://github.com/renderlex/formulas-in-word/sessions/f3095173-f3a0-4d34-88f4-1e438725a17d Co-authored-by: renderlex <32365170+renderlex@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add program for recognizing mathematical formulas in Word
Implement formula image → native Word object pipeline with Tkinter GUI
Apr 10, 2026
renderlex
marked this pull request as ready for review
April 13, 2026 08:38
renderlex
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps the project from an empty repo into a fully functional desktop app that OCR-recognizes math formulas from images and inserts them as native OMML objects (not pictures) into
.docxfiles.Pipeline
New files
formula_to_word.py— Tkinter GUI + all conversion logiclatex_to_omml(latex, xsl_path)— chains latex2mathml → lxml XSLT transforminsert_formula_into_doc(doc, latex, xsl_path)— appends OMML element directly toparagraph._elementMML2OMML.XSLacross Office 15/16 install paths; falls back to manual pickerrequirements.txt— pinned minimum versions:pix2tex>=0.1.2,latex2mathml>=3.22.0,python-docx>=1.1.0,lxml>=4.9.0,Pillow>=10.0.0,matplotlib>=3.7.0README.md— full setup, usage, batch mode, and XSL location guideOriginal prompt