![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2017
Device: mobile
|
Inline Math equation editing
Hello every, I am a IT staff of a tutorial centre. I wish to know are the any ways to type math equation and symbols without editing html. Thank you very much.
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Most equation editors (see LibreOffice, MSOffice,etc), allow someone to save an equation as mathml mark-up which can be cut and pasted as text into an xhtml page. I use the equation editor in LibreOffice. It works nicely.
You can also use Latex to generate equations and save them as mathml. Last edited by KevinH; 05-31-2017 at 08:56 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Most epub readers won't support mathml (at least for epub2). That said, if the goal is to let people not familiar with html write texts with math, maybe simple markdown with latex-math support would work. Take a look at pandoc. Pandocs markdown allows math equations and can be converted to html, epub, latex and pdf.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
As mentioned before, support for MathML is scarce. I usually convert the equation to SVG. That way it scales quite well. You can create the equation directly on the codecogs site. If the equations are in Word, you can use my add-in to convert them to SVG or PNG.
|
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Toxaris,
How do you convert MS math to an SVG or PNG? Can it be done on the fly? I have looked at a number of projects that try to convert mathml to svg but these are typically MathJax based javascript routines that are not easy to integrate into Sigil. Thanks, Kevin |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
The MathML to SVG code is based on SVGMath I believe it was, which is written in Python. I have converted it to C# for easier integration. However, the current version of my add-in uses a compiled version of SVGMath, but that is going away in the new version. Then I will use my library. |
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I'll have to dig up svgmath and see what its capabilities are.
Thanks! |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I was more thinking of a Preview mode fast inline mathml to svg conversion. Using MathJax can be quite slow (even with MathJax stripped down and condensed to one file as we use it). Since Preview gets constantly updated and reloaded with every change, speed to convert mathml to svg is important when previewing an epub with mathml.
So if a C-version (or python) of the routines in svgmath can be used, it would help prevent lag when using Sigil in Preview to see mathml. |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The python program is not particularly fast, but perhaps faster than MathJax.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing content.opf with clips; Editing visibility | varlog | Sigil | 45 | 04-24-2016 07:55 AM |
Free Book - The Henderson Equation (DF) | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-23-2012 10:37 AM |
Asus Eee Slate has pretty impressive HWR + Equation Editor | grumpy3b | General Discussions | 4 | 04-23-2011 08:55 AM |
Science Fiction Godwin, Tom: The Nothing Equation. v1. 29 Jan 09 | Dr. Drib | Kindle Books (offline) | 0 | 01-29-2009 01:55 PM |
Science Fiction Godwin, Tom: The Nothing Equation. v1. 29 Jan 09 | Dr. Drib | BBeB/LRF Books (offline) | 0 | 01-29-2009 01:50 PM |