futurepress / epubjs-angular-reader

ePub.js Reader
Other
122 stars 37 forks source link

Support math #20

Open dwhly opened 10 years ago

dwhly commented 10 years ago

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

fchasen commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

kathi-fletcher commented 10 years ago

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 commented 10 years ago

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>