Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support math #20

Open
dwhly opened this issue Nov 12, 2013 · 5 comments
Open

Support math #20

dwhly opened this issue Nov 12, 2013 · 5 comments

Comments

@dwhly
Copy link

dwhly commented Nov 12, 2013

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

@fchasen
Copy link
Contributor

fchasen commented Nov 17, 2013

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

@kathi-fletcher
Copy link

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

@fchasen
Copy link
Contributor

fchasen commented Nov 19, 2013

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

@kathi-fletcher
Copy link

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

@fchasen
Copy link
Contributor

fchasen commented Nov 22, 2013

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants