Comments (4)
Hi,
Thanks for the link to the Unicode Technical Note, I did not know about this! This is a really nice idea and it feels like the perfect logical consequence of this filter.
I fear it is a little out of scope at the moment though, mostly for technical reasons. This filter currently only uses a very simple implementation that reads exactly one character at a time (no further context!), looks it up in a translation table and if found replaces it by the corresponding Latex command. Implementing UnicodeMath as specified in the Tech Note would instead require a real parser that is capable of handling more complex syntactic constructs like (2+3)/5
.
I'm not saying I won't think about it (because I probably will) but you should not expect anything close to a working solution anytime soon ... Sorry.
Best,
Martin
from pandoc-unicode-math.
It occurs to me that pandoc already has parsers for the Microsoft Office implementation of UnicodeMath (labeled as readOMML and writeOMML). Do you know if it is possible to call those functions from a filter?
from pandoc-unicode-math.
Yeah, that should be possible by importing the texmath library (GitHub/API docs) in which these functions are implemented in a Pandoc filter.
I fear though that this is not really what you are looking for. OMML is not the same as UnicodeMath, but an XML dialect (remotely similar to MathML) that is used by Microsoft Word for the definition of math structures. From a slightly more recent version of the Unicode Technical Note, page 3:
In Word, the structures are defined in OMML (Office MathML) and built up by Word, while for the other apps, the structures are defined in UnicodeMath and built up by RichEdit.
I guess that means while you can enter UnicodeMath in Word (you can, right? I don't know) it is stored as OMML internally. That's why Pandoc does not need to read/write UnicodeMath but "only" OMML to process Word documents.
from pandoc-unicode-math.
Ah, got it. The writings of the UnicodeMath author about this are somewhat hard to follow regarding exactly what everything is.
from pandoc-unicode-math.
Related Issues (9)
- Installation? + Replace symbols in regular strings (outside math environments) HOT 14
- Expand symbols.hs by this list HOT 1
- Confusing documentation: '$$' sequence needed to make this work HOT 1
- Add ≈ sign
- Increase readability of existing markdown documents with latex maths HOT 4
- MacOS binaries? HOT 17
- Enhancement: add whitespace HOT 2
- Confusion around Ω and Ω HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-unicode-math.