MathML support in Adobe Digital Editons for EPUB - epub

I am using MathPlayer to render MathML in an XML file. I am creating an EPUB. The ebook reader which I am using is Adobe Digital Editions. But it is not rendering the mathematical equations properly. Does ADE support MathML? Is there a way to do it?

ADE doesn't support MathML. If you are dependent on using ADE, your best bet is to use PNG graphics in your EPUB. This will enable your EPUB + Math to work on many more readers, since MathML is not well supported either inside or outside the browsers.
Some EPUB readers have incorporated the MathJax javascript library into their implementations. You can see which readers have MathJax support here: http://www.mathjax.org/resources/epub-readers/
Hope this helps.
Best regards,
Jean K.

Related

Limitations of Mathjax: Which Latex features does Mathjax not support?

My question is, which Latex features aren't supported by Mathjax? For example, in Latex I can write $\today$ and it will return the current date. This is not possible in Mathjax.
In KaTeX, a Mathjax alternative, there seem to be more troublesome limitations such as \overrightarrow{AB} not working. I was wondering, what the current limitations of Mathjax are, in terms of latex rendering, before using it in a website instead of converting tex equations to png images and inserting those. I have noticed that Wikipedia uses the tex2png approach instead of Mathjax and was wondering whether they just did not want to depend on Mathjax, whether it's not fully supported by all browsers, whether it's too slow, whether the limited feature set of Mathjax is a problem or just legacy?
First and foremost, Mathjax, as its name suggest, supports mathematics typesetting for the web and is not a web-implementation of general-purpose Latex. Here's what this means most notably feature-wise:
No tables
No tikzpictures
No bibliographies
No support for units, e.g. \SI{10}{\hertz} is not possible (requiring the siunitx package in latex)
No special packages, for example no \uwave from package ulem
Within the math-world, Mathjax is covering almost everything. Here is a list of features that are not supported for mathematics typesetting:
Items that require the mathtools package, for example H \xrightharpoondown[under]{over} I\\.
The other question was, why Wikipedia isn't using Mathjax, but has chosen to convert Equations into a png. I think it's because they already had a working solution when Mathjax got popular and don't really have an incentive to switch to Mathjax. Mathjax especially shines, when you need an out of the box solution for rendering math on the web.

using LEADTOOLS to convert doc to pdf

I am playing around with Leadtools to see how it might benefit me but i am a little frustrated with their documentation regarding how the process works. I am creating a library with methods that take an input file, convert it to pdf, add a qrcode to the file and save it and then reading the qrcode again.
Does a pdf have to be converted to an image before leadtools is
able to read the qrcode?
Does leadtools allow converting from
doc to pdf and then adding the qrcode or do i have to convert it to
an image as well?
Is there anywhere I could look at code
samples of how I can go about doing what I talked about other than
the leadtools site itself?
I am sorry to hear that you are having difficulties, but I will do my best to get you pointed in the right direction.
To answer your questions:
A1.) Yes, the PDF will need to be rasterized before the LEADTOOLS barcode engine can be used. Our barcode engine will only work with raw image data. Once the file is decompressed into raw data, we will not access the file any further.
A2.) Yes, you can rasterize Microsoft Word documents using either our file I/O methods or with the LEADTOOLS Virtual Printer. Once you have the raw image data, you can pass it to the barcode engine to write the QR code into the data. Once the barcode is written, you can then compress the image into any supported format, including (raster) PDF. You can also create a searchable PDF by running the resultant image through an OCR engine & outputting to PDF.
A3.) The LEADTOOLS SDK has a main barcode demo that should illustrate the ability of the SDK to handle the features you describe here. There are also tutorials in the help file, and various projects on our support forums. We have also created a couple different CodeProject articles here:
Multi-Platform Barcode with LEADTOOLS 18
How to Read Barcodes from Images using LEADTOOLS
You haven't mentioned here what programming language you are developing with or what the specific problem are that you have encountered. Without knowing either of those, it's difficult to get more specific into any methods or other resources to check out. For a simple raster conversion of a Microsoft Word Doc to PDF and writing a barcode, I think this would probably take between 10-15 lines of code.
If you have not already, I would highly recommend sending an email to Support#leadtools.com or open a live chat with the LEADTOOLS Support team from LEADTOOLS.com. We can get into more specifics there and help you more directly with any issues you are encountering.
Walter Bates
LEADTOOLS Developer Support
I tried adding this as a comment, but it is apparently too long for that. So I have added it as another answer.
Even if you are building a DLL, I would suggest starting out building a simple demo with a view of the image so you can see what exactly is happening to the image. Once you are comfortable that the image is being modified the way you want, then implement that code in your own library.
Also, I would recommend testing out the toolkit with the provided main demos. The demos are there to illustrate the different options you have access to in the code. If you can accomplish what your application or library will need to do through the demos, then it would be worth your time to begin coding specifically what you need. You might even need to use multiple demos to verify the tools can accomplish the goals that you have. You have all the toolkit code for the demos, so you can take them apart and use the specific pieces that you need in your application.
If you are having trouble identifying which demos to try out or whether the toolkit has the specific functionality that you need, your best bet is to contact Tech Support directly to ask. We are here to help get you pointed in the right direction.
To get down to brass tacks, the source of the image data is not all that important from the perspective of the barcode engine. It needs a RasterImage handle (raw image data) to write the specified barcode. Whether the image data is created on the fly, read from file, or generated from a scanner, it does not make a whole lot of difference.
To find the main .NET barcode demo, I would start out by going to the LEADTOOLS shortcuts. To get there, go to the Start menu -> LEADTOOLS -> Help and Demos. The shortcuts are broken down by programming language, feature, and then the base toolkit. You should be able to find the WinForms .NET barcode demo here:..\Shortcuts.NET Class Libraries.NET Framework\01 Imaging\07 Barcode
Our toolkit example is a .NET WinForms project, but it will work in ASP.NET also.
Here are some links to tutorials if you want to dig right into the code:
Loading and Displaying an Image in WinForms
Reading Barcodes
HOW TO: Load and Display an Image with WebImageViewer
There was also this recent code tip posted illustrating how to read and write UTF-8 characters in a QR barcode.
We provide both .NET 2.0 and .NET 4.0 DLLs for our barcode engine. Both of these work within Visual Studio 2012.

Tradeoff between LaTex, MathML, and XHTMLMathML in an iOS app?

I plan to use Xcode to make an app for the iPhone that displays math equations that high school and college students often use. I do all my math with Mathematica, and it allows me to save such equations in three relevant formats. (1) LaTex (.tex); (2) MathML (.mml); (3) XHTMLMathML.
The Mathemactica documentation says the third format is XHTML with embedded MathML. I found some of the examples at this browser test don't look so good on my iPhone. So I will propbably not rely completly on MathML.
I am a total beginner with Xcode and the three file formats that I mention above, but I have some experience with OOP in C++. Assuming Mathematica can do a good job writing the required LaTeX, MathML, XHHTMLMathML needed for whatever equation, what are the tradeoffs between the three file formats? Can I mix the formats in the same app?
I would suggest to use HTML. The "right" way to include mathematical content is MathML -- which is part of HTML5 (but see below for using TeX).
iOS's UIwebview is webkit based and therefore has the same partial MathML support (though on iOS5 it's significantly worse due to a font bug) so I would also suggest to use MathJax (disclaimer: I'm part of MathJax).
MathJax is an open source javascript library which understands TeX and Asciimath input, converts either one to MathML and renders MathML as HTML-CSS or SVG (in any modern browser).
MathJax has no problem mixing these input formats. Additionally, it has better MathML support than webkit (and you can always configure MathJax to use the native MathML support if you want -- say when you know your content should render fine in webkits native support).
To get you started, you can take a look at this open source app to see how MathJax can be integrated in an iOS app.

how to develop DICOM Editor in asp.net

i wanted to develop a DICOM Image editor in Asp.net
are there any library available for that.
or can i do something like
create an Jpeg from DICOM editor. edit the same image with lines or shapes and convert it back to DICOM Image file is that possible? if yes how?
i am new to DICOM. hence please help me to understand the DICOM.
There are a number of DICOM libraries for .NET. Refer to this question for more info.
UPDATED: another one
As far as an ASP.NET viewer - what do you want this viewer to do. In other words, what is the target audience? Is it mobile users? Then silverlight, wcf and flash are out - the most used web-based larger-screen mobile device is the iPad, which supports none of those technologies. Is it desktop users? Flash could be the answer then, the install-base is quite high, and Flash has good support for a variety of image formats.
Do you need this viewer to be diagnostic-grade? In other words, do you need 16 bit window/level? cine loop for ultrasounds at the correct frequency? If yes, then you'll need to figure out some of this yourself. Existing mobile tools aren't so great at some of the above (specifically 16 bit grayscale).
HTML5 has some of the above capabilities, and is mobile-friendly. Anyway, start with the intended use for this tool, and that will lead you into a specific direction based on the requirements you come up with!
Here's a good place to get started:
Medical Image Format FAQ - DICOM Information Sources
An open-source library that could be suitable for ASP.NET development is mdcm that allows you to develop Silverlight assemblies that could be used from your web application.
There is also a successor to mdcm denoted fo-dicom, however I am not sure whether fo-dicom currently is applicable to Silverlight.

How can I parse, manipulate, and save Adobe Photoshop files?

How can I write a script or program to manipulate Adobe Photoshop files? I'd like to be able to do something like read a Adobe PSD file, rename the layers, and save it back to a PSD format.
The files look to be saved with a combination of XML and serialized data. I looked at the file's code and see that it has <x:xmpmeta near the start, did some google searching to find the wikipedia article about xmp - Extensible Metadata Platform, but I'm unclear if that is the format for the entire file or just for the metadata portion.
I saw that there is a PSD parser class for PHP available, and not a bad article about how to use it, although it seems like it is just for reading / converting and not for writing / saving.
But I'd like to know:
What format are these files stored in?
Where are the guidelines for interfacing with that format?
Are there some classes / tools available for manipulating that file format? Any language would be fine for a start.
I'm happy to do more research on my own but I'm hoping for some guidance to know what I should be looking for.
I'm not familiar with it myself, but there is an official SDK for Photoshop available that should let you do all that and more with .psd files.
There are not so many options. The general advice would be to look into buying Adobe InDesign Server. In some cases it can be cost prohibitive and you might be interested in 3-party SDKs. Unfortunately there are a few options in the market. One of them is Graphics Mill image processing SDK (http://www.graphicsmill.com/photoshop-psd).
Disclaimer: I work for Aurigma which runs Graphics Mill project.

Resources