Code Monkey home page Code Monkey logo

Comments (6)

worden-lee avatar worden-lee commented on July 3, 2024

sorry, wrong entity there - that would be for \mathrsfs, not \cal

from latexml.

brucemiller avatar brucemiller commented on July 3, 2024

Actually both \mathcal & \mathscr map to mathvariant="script",
unfortunately. (RSFS is sorta halfway between script & fraktur,
but MathML doesn't give an intermediate)

At any rate, this one has been bugging me. I was surprised
that FF supports plane 1 now; Does MathPlayer? Is this safe
for other things, like Opera?

Doing the mapping would be annoying, but if it works and
is safe to use now, maybe that's a good thing.
Other tools like MathML indexers will have to be updated
(but will be eventually, anyway).

from latexml.

worden-lee avatar worden-lee commented on July 3, 2024

Replying to comment 2 @brucemiller:

Actually both \mathcal & \mathscr map to mathvariant="script",
unfortunately. (RSFS is sorta halfway between script & fraktur,
but MathML doesn't give an intermediate)

Yep, unfortunate.

At any rate, this one has been bugging me. I was surprised
that FF supports plane 1 now; Does MathPlayer? Is this safe
for other things, like Opera?

I'm afraid I don't know...

from latexml.

brucemiller avatar brucemiller commented on July 3, 2024

I just checked in a patch to the MathML generation, and a new
option to latexmlpost.

If you use the option --plane1 it will convert all the convertible
pairs of tokens & mathvariant to plane1, w/o the mathvariant.

It's all a bit of a mixed bag, as not all combinations that you
would expect are there, but between the two of them it seems to
work on Firefox. Apparently, some future release of MathPlayer
will support plane1, but no idea about when. I would think Opera
would be more inclined to support plane1 than mathvariant, but
currently (version 10) doesn't support all these codepoints.

So, in summary, using this option doesn't currently generate
very portable files, but it's there to experiment with.
A more restrictive option that only converted (say) script,fraktur and
double-struck might me more useful, but I hate introducing temporary
hacks...

So, let's pretend this one is closed -- for now :>

from latexml.

worden-lee avatar worden-lee commented on July 3, 2024

Thanks! My letters look great!

Unfortunately, it looks like I might have to work up a way to generate different pages for FF vs IE and Opera — well, I'm already doing html and xhtml+mathml versions of the pages...

from latexml.

brucemiller avatar brucemiller commented on July 3, 2024

I guess necessity overcame the ugliness...

I've added another option --hackplane1 to latexmlpost
which causes only the mathvariants script, fraktur and doublestruck
to be converted to plane1. This generates mathml
that works with current firefox and mathplayer,
and displays "correctly", providing the appropriate fonts are installed.

Hopefully, it won't be needed for long, but there it is.

from latexml.

Related Issues (20)

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.