Skip to content

Support math #20

Description

@dwhly

Apparently MathJAX support not available in EPUBjs yet. (Hearsay from @kathi-fletcher). Need example.

Activity

  1. fchasen commented on Nov 17, 2013

    @fchasen
    Contributor

    Should be working in the reader
    This is a basic examples of the stress test (slow to load):
    http://futurepress.github.io/epub.js/examples/mathml.html

  2. kathi-fletcher commented on Nov 19, 2013

    @kathi-fletcher

    I noticed that there is an update to epub.js about mathjax. Does that still
    need to make it over to epubjs-reader?

    On Sun, Nov 17, 2013 at 2:08 AM, Fred Chasen notifications@github.comwrote:

    Should be working in the reader
    This is a basic examples of the stress test (slow to load):
    http://futurepress.github.io/epub.js/examples/mathml.html

    —
    Reply to this email directly or view it on GitHubhttps://github.com/futurepress/epubjs-reader/issues/20#issuecomment-28644551
    .

    Katherine Fletcher, kathi.fletcher@gmail.com
    kathi.fletcher@gmail.com
    Twitter: kefletcher http://www.twitter.com/kefletcher Blog:
    kefletcher.blogspot.com
    kathi.fletcher@gmail.com

  3. fchasen commented on Nov 19, 2013

    @fchasen
    Contributor

    It is working in the latest version of epubjs-reader - let me know if you run into any issues.

  4. kathi-fletcher commented on Nov 22, 2013

    @kathi-fletcher

    Sorry to be so slow here, but I can't figure out how to get mathml to work
    in reader. The example was helpful, but inside the reader repo, I can't
    find the hooks/default/mathml.js that mathml.html seems to be including. I
    am trying to do this by pattern matching, not any kind of real
    understanding of how epub.js works inside reader and how all the js files
    are constructed and referenced.

    Do you have an example inside reader? If you throw math into Moby Dick is
    it going to work as is? If so, then I must just still have things
    misconfigured.

    Cheers,
    Kathi

    On Mon, Nov 18, 2013 at 8:03 PM, Fred Chasen notifications@github.comwrote:

    It is working in the latest version of epubjs-reader - let me know if you
    run into any issues.

    —
    Reply to this email directly or view it on GitHubhttps://github.com/futurepress/epubjs-reader/issues/20#issuecomment-28759258
    .

    Katherine Fletcher, kathi.fletcher@gmail.com
    kathi.fletcher@gmail.com
    Twitter: kefletcher http://www.twitter.com/kefletcher Blog:
    kefletcher.blogspot.com
    kathi.fletcher@gmail.com

  5. fchasen commented on Nov 22, 2013

    @fchasen
    Contributor

    Sorry for the confusion with that example. In the epub.js demo you have to add each hook, but with the reader all the default ones are packaged in src/scripts/libs/epubjs/hooks.min.js which is already included.

    The reader should just work with a book with mathml it. Though chapters in the manifest must have properties="mathml"

    Something like:

    <manifest>
         <item id="c3" href="xhtml/ch1.html" properties="mathml scripted"/>
    </manifest>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions