如何将数学符号保存到mysql或mssql数据库? [英] How to save mathematical signs to mysql or mssql database?

查看:538
本文介绍了如何将数学符号保存到mysql或mssql数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我们正在一个asp.net项目上.我们如何将数学符号保存到mysql或mssql数据库并在asp.net页面中以这种图像显示
(http://www.w3.org/Math/XSL/snapshot2.png).

谢谢.

Hi all

We are working on a asp.net project. How we can save mathematical signs to mysql or mssql database and display like this image in asp.net page
(http://www.w3.org/Math/XSL/snapshot2.png).

Thank you.

推荐答案

为此,您需要在某个时候将数学公式呈现为图像的软件.这是执行此操作的几种方法.

1.为公式创建图像,并将图像存储在数据库中. (我认为这是您要执行的操作):我不知道有任何软件/库可以做到这一点.

2.以文本格式存储公式(例如 MathML [
To do this, you need a software that renders mathematical formula as images at some point. Here''s few ways of doing it.

1. Create images for the formula and store the image in the database. (I think this is what you are going to do): I do not know of any software/library that can do this.

2. Store the formula in a textual format (e.g. MathML[^]), and render the image as you send the webpage to the client: But this also needs the same software in point 1, and point 1 seems to be more efficient if the formula are unchanged for a long time.

3. Store the formula in textual format (say MathML), and let the client''s web browser render it: Some web browsers can render embedded MathML. But its SOME web browsers after all. Not every one of the can do that. You can find information about browser support on MathML Wikipedia page.


这篇关于如何将数学符号保存到mysql或mssql数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆