epubjs-angular-reader icon indicating copy to clipboard operation
epubjs-angular-reader copied to clipboard

Support math

Open dwhly opened this issue 12 years ago • 5 comments

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

dwhly avatar Nov 12 '13 18:11 dwhly

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

fchasen avatar Nov 17 '13 08:11 fchasen

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 [email protected]:

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, [email protected] [email protected] Twitter: kefletcher http://www.twitter.com/kefletcher Blog: kefletcher.blogspot.com [email protected]

kathi-fletcher avatar Nov 19 '13 01:11 kathi-fletcher

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

fchasen avatar Nov 19 '13 02:11 fchasen

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 [email protected]:

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, [email protected] [email protected] Twitter: kefletcher http://www.twitter.com/kefletcher Blog: kefletcher.blogspot.com [email protected]

kathi-fletcher avatar Nov 22 '13 03:11 kathi-fletcher

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>

fchasen avatar Nov 22 '13 19:11 fchasen