Giter Club home page Giter Club logo

Comments (4)

marhop avatar marhop commented on July 2, 2024

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.

bwiernik avatar bwiernik commented on July 2, 2024

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.

marhop avatar marhop commented on July 2, 2024

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.

bwiernik avatar bwiernik commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.