Typesetting method of online mathematical fraction

A mathematical and fractional technology, applied in electrical digital data processing, natural language data processing, instruments, etc., can solve problems such as low rendering efficiency, low efficiency when zooming, and high learning threshold of MathML, achieving high efficiency and convenient editing.

Pending Publication Date: 2020-05-08
SICHUAN WINSHARE EDUCATION SCI & TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing mathematical formulas are described in laTex or MathML language, and the current implementation of the two uses the addition of The numerator and denominator use a complex positioning method, which results in complex calculations and low rendering efficiency, while MathML has a high learning threshold and many browsers are not compatible
[0004] In addition, there is another general rendering method that uses pictures and converts mathematical fractions into images for display.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Typesetting method of online mathematical fraction
  • Typesetting method of online mathematical fraction
  • Typesetting method of online mathematical fraction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described below in conjunction with accompanying drawing:

[0034] Such as figure 1 As shown, the typesetting method of the online mathematical fraction of the present invention is used to rearrange a certain mathematical fraction in the HTML document, comprising the following steps:

[0035] Step 1, parsing the DOM elements of the HTML document;

[0036] Step 2. Identify the mathematical fraction: find out the identifier of the mathematical fraction, and analyze the content of the mathematical fraction;

[0037] Step 3. Molecule identification: find out the molecular identifier of the mathematical fraction, and analyze the molecular content;

[0038] Step 4. Identify the denominator: find out the denominator identifier of the mathematical fraction, and analyze the content of the denominator;

[0039] Step 5. Convert fraction: add to the content of the mathematical fraction after parsing the numerator and denomi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a typesetting method of an online mathematical fraction. The typesetting method comprises the following steps: analyzing DOM elements of a document; identifying a mathematicalfraction; recognizing a molecule; identifying denominators; converting fractions; a conversion molecule; adding a fractional line effect; converting denominators; calculating the sum of the number ofmolecules and the number of the denominators, and recording as N; and adding line content: adding the line content before the fraction and adding the line content after the fractions, and finishing the re-typesetting of the mathematical fractions. A identifier is added into the HTML document, and the display position of the mathematical fraction is calculated in the script; the content of the rowwhere the mathematical fraction is located is calculated, the content of the molecules and the denominators in the row is updated, the mathematical fraction is described in a table mode, the effect ofcorrectly displaying the mathematical fraction in most browsers is achieved through the typesetting characteristic of the table, secondary editing can be conveniently carried out, the whole process is rapid, and efficiency is high.

Description

technical field [0001] The invention relates to a typesetting method for online mathematical fractions, in particular to an online typesetting method for mathematical fractions that can be correctly displayed in most browsers and can realize secondary editing. Background technique [0002] With the advent of the WEB Internet era, more and more mathematical formulas need to be presented on web pages. A mathematical fraction is a common mathematical formula, that is, a mathematical formula including a numerator, a denominator, and a fraction line. [0003] The existing mathematical formulas are described in laTex or MathML language, and the current implementation of the two uses the addition of <span style=″border-bottom-width:0.04em;″> The numerator and denominator use a complex positioning method, which results in complex calculations and low rendering efficiency, while MathML has a high learning threshold and is not compatible with many browsers. [0004] In addition, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F40/111G06F40/166
Inventor 连接力李禹江
Owner SICHUAN WINSHARE EDUCATION SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products