CN108280053B - A kind of method and device of the formula typesetting based on Mathtype - Google Patents

A kind of method and device of the formula typesetting based on Mathtype Download PDF

Info

Publication number
CN108280053B
CN108280053B CN201810090082.1A CN201810090082A CN108280053B CN 108280053 B CN108280053 B CN 108280053B CN 201810090082 A CN201810090082 A CN 201810090082A CN 108280053 B CN108280053 B CN 108280053B
Authority
CN
China
Prior art keywords
formula
mathtype
wmf
content
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810090082.1A
Other languages
Chinese (zh)
Other versions
CN108280053A (en
Inventor
周祖胜
王盛华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Renhe Huizhi Information Technology Co Ltd
Original Assignee
Beijing Renhe Huizhi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Renhe Huizhi Information Technology Co Ltd filed Critical Beijing Renhe Huizhi Information Technology Co Ltd
Priority to CN201810090082.1A priority Critical patent/CN108280053B/en
Publication of CN108280053A publication Critical patent/CN108280053A/en
Application granted granted Critical
Publication of CN108280053B publication Critical patent/CN108280053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/111Mathematical or scientific formatting; Subscripts; Superscripts

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Algebra (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The method and device for the formula typesetting based on Mathtype that the present invention provides a kind of, wherein method includes: to be embedded in MathML mathml and wmf picture in expandable mark language XML in advance;It calls formula editors Mathtype to carry out equation editing, and saves equation editing result;The equation editing result is exported into the PDF format file for being inserted into formula.The present invention is realizing editor and typesetting to formula from the composing system that XML file generates pdf document, has simple, efficient good effect compared in the prior art.

Description

A kind of method and device of the formula typesetting based on Mathtype
Technical field
The present invention relates to slot man technical fields, in particular to a kind of formula typesetting based on Mathtype Method and device.
Background technique
From the composing system that XML file generates pdf document, typesetting personnel are public sometimes for insertion mathematics in the content Formula;Problems faced is shared in the operating process: how to indicate these formula in xml, how to edit these formula, how from XML generates last formula in PDF.In the prior art, typically by retaining a representation formula in XML file XML tag, content are Latex formats, and user is raw in typesetting by using the part Latex in text editor XML XML is first pre-processed when at pdf document, all Latex codes are extracted, calls latex to generate formula, is then closed when typesetting And these formula are finally inserted the corresponding position of PDF into pdf document;The program the problem is that: system effectiveness compared with Low, occupying system resources are excessively high when typesetting.And these Latex codes of none good method editor, due to answering for Latex Polygamy occurs also being not easy debug when Latex mistake;It thus needs user to have good Latex and uses technical ability, it is right User's is more demanding.
Summary of the invention
In view of this, the method for the purpose of the present invention is to provide a kind of formula typesetting based on Mathtype, to improve To the efficiency of equation editing and typesetting in the composing system from XML file generation pdf document.
In a first aspect, the method for the embodiment of the invention provides a kind of formula typesetting based on Mathtype, comprising:
MathML mathml and wmf picture are embedded in expandable mark language XML;
It calls formula editors Mathtype to carry out equation editing, and saves equation editing result;
The equation editing result is exported into the PDF format file for being inserted into formula.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute It states and is embedded in MathML mathml and wmf picture in expandable mark language XML, comprising:
The label of representation formula is defined in xml, and the content of the label includes: mathml format content and wmf picture Format content;
By the Software Development Kit SDK of Mathtype, by the object connection of Mathtype and insertion OLE formatted data It is inserted in the wmf picture of the formula as annotations.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first The possible embodiment of second of aspect, wherein the calling formula editors Mathtype carries out equation editing, and saves Equation editing result, comprising:
In response to the operational order of user, the content of the label of definition is obtained, the content of the label is transferred to Mathtype edits assistant;
Assistant is edited by the Mathtype to handle the formula content in the tag identifier formula, is made described Formula content is in editable state;
The operation for saving formula in Mathtype in response to user edits assistant by Mathtype and calls Mathtype Software open kit SDK, the formula is converted into numeral mark language, and generate the wmf format text comprising OLE data The wmf formatted file is returned to XML publishing system, updates corresponding XML tag by part.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first The third possible embodiment of aspect, wherein the equation editing result includes: wmf picture file;
The output equation editing result is into PDF format file, comprising:
The wmf picture file is parsed, formula size data is extracted;
Pre-typesetting goes out size area consistent with the formula size data in the pdf document for being inserted into formula Domain;
Each the WMF drawing for order for the wmf picture file will be parsed obtaining is converted into PDF drawing for order, executes institute PDF drawing for order is stated, the formula label in XML tag is drawn over the region as required;
Png file is generated according to PDF drawing for order, is provided for feeding back to user interface for diagram function;And then it is convenient for The understanding and operation of user.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein described that assistant is edited in the formula in the tag identifier formula by the Mathtype Appearance is handled, and the formula content is made to be in editable state, comprising:
Assistant is edited by Mathtype and checks the label data received, judges to whether there is in the wmf picture file OLE annotation;
If there are OLE annotations in wmf picture file, these annotations are just extracted, Mathtype is called to open formula;
If there is no OLE to annotate in wmf picture file, Mathtype is called to open formula using mathml.
Second aspect, the device for the formula typesetting based on Mathtype that the embodiment of the invention also provides a kind of, comprising:
It is embedded in module, for being embedded in MathML mathml and wmf picture in expandable mark language XML;
Editor module for calling formula editors Mathtype to carry out equation editing, and saves equation editing result;
Output module, for exporting the equation editing result into the PDF format file for being inserted into formula.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute State insertion module, comprising:
Definition unit, for defining the label of representation formula in xml, the content of the label includes: mathml format Content and wmf picture format content;
Be inserted into unit, for by the Software Development Kit SDK of Mathtype, by the object connection of Mathtype with it is embedding Enter OLE formatted data to be inserted in as annotations in the wmf picture of the formula.
In conjunction with the possible embodiment of the first of second aspect or second aspect, the embodiment of the invention provides second The possible embodiment of second of aspect, wherein the editor module, comprising:
Transfer unit obtains the content of the label of definition for the operational order in response to user, will be in the label Appearance is transferred to Mathtype and edits assistant;
Processing unit, for by the Mathtype edit assistant to the formula content in the tag identifier formula into Row processing, makes the formula content be in editable state;
Converting unit is edited by Mathtype and is helped for saving the operation of formula in Mathtype in response to user Hand adjustment opens kit SDK with the software of Mathtype, and the formula is converted into numeral mark language, and generating includes OLE number According to wmf formatted file, the wmf formatted file is returned into XML publishing system, updates corresponding XML tag.
In conjunction with the possible embodiment of the first of second aspect or second aspect, the embodiment of the invention provides second The third possible embodiment of aspect, wherein the equation editing result includes: wmf picture file;
The output module, comprising:
Resolution unit extracts formula size data for parsing the wmf picture file;
Pre-typesetting unit, in the pdf document for being inserted into formula pre-typesetting go out a size and the formula size The consistent region of data;
Drawing unit, each the WMF drawing for order obtained for that will parse the wmf picture file, is converted into PDF and draws Figure instruction, executes the PDF drawing for order, the formula label in XML tag is drawn over the region as required,
Generation unit is provided for feeding back to user interface for diagram for generating png file according to PDF drawing for order Function;And then it is convenient for the understanding and operation of user.
In conjunction with second of possible embodiment of second aspect, the embodiment of the invention also provides the 4th of second aspect the The possible embodiment of kind, wherein the processing unit is specifically used for:
Assistant is edited by Mathtype and checks the label data received, judges to whether there is in the wmf picture file OLE annotation;
If there are OLE annotations in wmf picture file, these annotations are just extracted, Mathtype is called to open formula;
If there is no OLE to annotate in wmf picture file, Mathtype is called to open formula using mathml.
The method and device of a kind of formula typesetting based on Mathtype provided in an embodiment of the present invention, using Mathtype Equation editing is carried out, the formula of editor is exported into the file of PDF format, in the typesetting system for generating pdf document from XML file The editor to formula and typesetting are realized in system, and there is simple, efficient good effect compared in the prior art.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of stream of the method for the formula typesetting based on Mathtype provided by one embodiment of the invention Journey schematic diagram;
Fig. 2 shows a kind of formula editors Mathtype provided by one embodiment of the invention to carry out equation editing Method flow schematic diagram;
It is literary to PDF format that Fig. 3 shows a kind of output equation editing result provided by one embodiment of the invention The flow diagram of the method for part;
Fig. 4 shows a kind of device of the formula typesetting based on Mathtype provided by another embodiment of the present invention Structural schematic diagram;
Fig. 5 shows the structural schematic diagram of output module provided by another embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention Middle attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, of the invention to what is provided in the accompanying drawings below The detailed description of embodiment is not intended to limit the range of claimed invention, but is merely representative of selected reality of the invention Apply example.Based on the embodiment of the present invention, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall within the protection scope of the present invention.
Formula is carried out in view of in the prior art, being frequently encountered in the composing system by XML file to pdf document Editing and composing, lower using Latex progress equation editing efficiency, error-prone, interface is unfriendly, and to the Latex of user profession Skill requirement is higher.And Mathematics Editing device Mathtype is a using very universal, threshold requirement is lower and very square Just equation editing tool;Based on this, the method for the formula typesetting based on Mathtype that the embodiment of the invention provides a kind of and Device is described below by embodiment.
Embodiment shown in referring to Fig.1 provides a kind of method of formula typesetting based on Mathtype in the present embodiment, This method comprises the following steps:
S101, composing system are embedded in MathML mathml and wmf picture in expandable mark language XML;
Specifically, defining the label of representation formula in expandable mark language XML first, the content of the label includes: Mathml format content and wmf picture format content;
By the Software Development Kit SDK of Mathtype, the OLE formatted data of Mathtype is inserted as annotations Enter in the wmf picture of the formula;System allows for user to be edited formula again by editing picture in this way.
Illustratively, process defined above can be realized by following XML fragment:
<disp-formula id=" E1 ">
<label>(1)</label>
<mml:math id="E1">...</mml:math>
< graphic xmlns:xlink=" http://www.w3.org/1999/xlink " xlink:href=" E1.wmf"/>
</disp-formula>
Wherein, the label of the part lable representation formula, the mathml format content of Math representation formula, graphic are indicated The picture format content of formula.The picture of wmf format is the formula picture that Mathtype is generated, is inserted into the picture The notes content of the OLE formatted data of Mathtype.
S102, it calls formula editors Mathtype to carry out equation editing, and saves equation editing result;
Specifically, above-mentioned calling formula editors Mathtype carries out equation editing, and saves formula referring to shown in Fig. 2 Edited result includes the following steps:
S1021, extraction simultaneously parse XML tag content, while parsing the notes content in wmf picture, and content split is gone out The OLE data of Mathtype;
S1022, start Mathtype and transmit OLE data for rendering;
S1023, when being saved after user normally modify, OLE data back is resolved into wmf annotation, and generates number Label language language mathml and latex is learned, XML tag is write back to.
In XML publishing system, when user clicks the disp-formula of XML tag, system obtains complete under this label Portion's content, the Mathtype of middle extra setup edits assistant through the invention, which is a program segment, will be under the label Full content be transferred to Mathtype and edit assistant, assistant is edited in the tag identifier formula by the Mathtype Formula content handled, so that the formula content is in editable state, specifically, Mathtype edit assistant obtain this After full content under label, whether Mathtype edits assistant and further judges in the wmf picture to include OLE format number According to if so, then extracting the OLE formatted data, calling Mathtype opens formula;If not including in the wmf picture has OLE Formatted data, then system calls Mathtype to open formula by using mathml;After formula is opened, user can be to the public affairs Formula is edited, and after editor completes, when user needs to save formula in Mathtype, the Mathtype of system, which is edited, to be helped When hand captures the preservation operation of user, Mathtype, which edits assistant, can call the software of Mathtype to hold kit SDK, will edit The formula of completion is converted into numeral mark language, and generates the wmf picture format file comprising OLE data, by the wmf picture Formatted file returns to XML publishing system, updates corresponding XML tag.
S103, the output equation editing result are into the PDF format file for being inserted into formula.
Above-mentioned formula edited result includes: wmf picture file;
Referring to shown in Fig. 3, the above-mentioned output equation editing result specifically comprises the following steps: into PDF format file
S201, the parsing wmf picture file, extract formula size data;
It has been inserted into OLE formatted data in above-mentioned wmf picture file, has included formula size in the OLE formatted data Data;
S202, to go out a size consistent with the formula size data for pre-typesetting in the pdf document for being inserted into formula Reservation region;
S203, each the WMF drawing for order that will be parsed the wmf picture file and obtain, are converted into PDF drawing for order, The PDF drawing for order is executed, the formula label in XML tag is plotted in as required on the reservation region.
S204, png file (image file storage format) is generated according to PDF drawing for order, for feeding back to user interface It provides for illustrating function;And then it is convenient for the understanding and operation of user.
A kind of method of the formula typesetting based on Mathtype provided by the embodiment of the present invention, in the row by XML to PDF In edition system, using formula editors Mathtype carry out formula editor and typesetting, have it is high-efficient, easy to use and to The operative skill at family requires lower good effect.
In another embodiment of the invention, a kind of device of formula typesetting based on Mathtype is provided, referring to Fig. 4 Shown, which includes:
It is embedded in module 301, for being embedded in MathML mathml and wmf picture in expandable mark language XML;
Editor module 302 for calling formula editors Mathtype to carry out equation editing, and saves equation editing knot Fruit;
Output module 303, for exporting the equation editing result into the PDF format file for being inserted into formula.
Above-mentioned insertion module, comprising:
Definition unit, for defining the label of representation formula in xml, the content of the label includes: mathml format Content and wmf picture format content;
Be inserted into unit, for by the Software Development Kit SDK of Mathtype, by the object connection of Mathtype with it is embedding Enter OLE formatted data to be inserted in as annotations in the wmf picture of the formula.
Above-mentioned editor module, comprising:
Transfer unit obtains the content of the label of definition for the operational order in response to user, will be in the label Appearance is transferred to Mathtype and edits assistant;
Processing unit, for by the Mathtype edit assistant to the formula content in the tag identifier formula into Row processing, makes the formula content be in editable state;
Converting unit is edited by Mathtype and is helped for saving the operation of formula in Mathtype in response to user Hand adjustment opens kit SDK with the software of Mathtype, and the formula is converted into numeral mark language, and generating includes OLE number According to wmf formatted file, the wmf formatted file is returned into XML publishing system, updates corresponding XML tag.
In the present embodiment, the equation editing result includes: wmf picture file;
Referring to Figure 5, above-mentioned output module, comprising:
Resolution unit 401 extracts formula size data for parsing the wmf picture file;
Pre-typesetting unit 402, for pre-typesetting to go out a size in the pdf document for being inserted into formula and the formula is big The consistent region of small data;
Drawing unit 403, each the WMF drawing for order obtained for that will parse the wmf picture file, is converted into PDF drawing for order executes the PDF drawing for order, the formula label in XML tag is drawn over the region as required;
Generation unit 404 is provided for feeding back to user interface for figure for generating png file according to PDF drawing for order Show function;And then it is convenient for the understanding and operation of user.
Above-mentioned processing unit, is specifically used for:
Assistant is edited by Mathtype and checks the label data received, judges to whether there is in the wmf picture file OLE annotation;
If there are OLE annotations in wmf picture file, these annotations are just extracted, Mathtype is called to open formula;
If there is no OLE to annotate in wmf picture file, Mathtype is called to open formula using mathml
The computer program product of the method for the formula typesetting based on Mathtype is carried out provided by the embodiment of the present invention, Computer readable storage medium including storing program code, the instruction that said program code includes can be used for executing front side Method method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
A kind of device of the formula typesetting based on Mathtype provided by the embodiment of the present invention can be the spy in equipment Determine hardware or the software being installed in equipment or firmware etc..Device provided by the embodiment of the present invention, realization principle and production Raw technical effect is identical with preceding method embodiment, and to briefly describe, Installation practice part does not refer to place, before can refer to State corresponding contents in embodiment of the method.It is apparent to those skilled in the art that for convenience and simplicity of description, System, the specific work process of device and unit of foregoing description, the corresponding process during reference can be made to the above method embodiment, Details are not described herein.
In embodiment provided by the present invention, it should be understood that disclosed device and method, it can be by others side Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled Function division is collected, there may be another division manner in actual implementation, in another example, multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiment provided by the invention can integrate in one processing unit, it can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing, in addition, term " the One ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention.Should all it cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. a kind of method of the formula typesetting based on Mathtype characterized by comprising
The label of representation formula is defined in expandable mark language XML, the content of the label includes: mathml format content With wmf picture format content;
By the Software Development Kit SDK of formula editors Mathtype, by the object connection and insertion of the Mathtype OLE formatted data is inserted in as annotations in the wmf picture of the formula;
In response to the operational order of user, the content of the label of definition is obtained, the content of the label is transferred to Mathtype Editor assistant;
Assistant is edited by the Mathtype to handle the formula content in the tag identifier formula, makes the formula Content is in editable state;
The operation for saving formula in Mathtype in response to user is edited described in assistant's calling by the Mathtype The formula is converted into numeral mark language, and generated comprising OLE data by the Software Development Kit SDK of Mathtype The wmf picture format file is returned to XML publishing system, updates corresponding XML tag by wmf picture format file;
Equation editing result is exported into the PDF format file for being inserted into formula, the equation editing result includes: wmf picture Formatted file.
2. the method according to claim 1, wherein the output equation editing result is to being inserted into formula In PDF format file, comprising:
The wmf picture format file is parsed, formula size data is extracted;
Pre-typesetting goes out the reservation consistent with the formula size data of a size in the PDF format file for being inserted into formula Region;
Each the WMF drawing for order for the wmf picture format file will be parsed obtaining is converted into PDF drawing for order, executes institute PDF drawing for order is stated, the formula label in XML tag is plotted in as required on the reservation region;
Png file is generated according to the PDF drawing for order, is provided for feeding back to user interface for diagram function;And then it is convenient for The understanding and operation of user.
3. the method according to claim 1, wherein described edit assistant to the mark by the Mathtype Formula content in label mark formula is handled, and the formula content is made to be in editable state, comprising:
Assistant is edited by Mathtype and checks the label data received, judges to infuse in the wmf picture file with the presence or absence of OLE It releases;
If there are OLE annotations in wmf picture file, these annotations are just extracted, mathpe is called to open formula;
If there is no OLE to annotate in wmf picture file, Mathtype is called to open formula using mathml.
4. a kind of device of the formula typesetting based on Mathtype characterized by comprising
It is embedded in module, for defining the label of representation formula in expandable mark language XML, the content of the label includes: Mathml format content and wmf picture format content;
By the Software Development Kit SDK of formula editors Mathtype, by the object connection and insertion of the Mathtype OLE formatted data is inserted in as annotations in the wmf picture of the formula;
Editor module obtains the content of the label of definition for the operational order in response to user, and the content of the label is passed It is handed to Mathtype and edits assistant;
Assistant is edited by the Mathtype to handle the formula content in the tag identifier formula, makes the formula Content is in editable state;
The operation for saving formula in the Mathtype in response to user is edited described in assistant's calling by the Mathtype The software of Mathtype opens kit SDK, the formula is converted into numeral mark language, and generate the wmf comprising OLE data The wmf picture format file is returned to XML publishing system, updates corresponding XML tag by picture format file;
Output module, for exporting equation editing result into the PDF format file for being inserted into formula, the equation editing result It include: wmf picture format file.
5. device according to claim 4, which is characterized in that the output module, comprising:
Resolution unit extracts formula size data for parsing the wmf picture format file;
Pre-typesetting unit, in the PDF format file for being inserted into formula pre-typesetting go out a size and the formula size The consistent region of data;
Drawing unit, each the WMF drawing for order obtained for that will parse the wmf picture format file, is converted into PDF and draws Figure instruction, executes the PDF drawing for order, the formula label in XML tag is drawn over the region as required;
Generation unit is provided for feeding back to user interface for diagram function for generating png file according to PDF drawing for order; And then it is convenient for the understanding and operation of user.
6. device according to claim 4, which is characterized in that in the editor module, edited by the Mathtype Assistant handles the formula content in the tag identifier formula, so that the formula content is in editable state, specifically For:
Assistant is edited by Mathtype and checks the label data received, judges to infuse in the wmf picture file with the presence or absence of OLE It releases;
If there are OLE annotations in wmf picture file, these annotations are just extracted, Mathtype is called to open formula;
If there is no OLE to annotate in wmf picture file, Mathtype is called to open formula using mathml.
CN201810090082.1A 2018-01-30 2018-01-30 A kind of method and device of the formula typesetting based on Mathtype Active CN108280053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810090082.1A CN108280053B (en) 2018-01-30 2018-01-30 A kind of method and device of the formula typesetting based on Mathtype

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810090082.1A CN108280053B (en) 2018-01-30 2018-01-30 A kind of method and device of the formula typesetting based on Mathtype

Publications (2)

Publication Number Publication Date
CN108280053A CN108280053A (en) 2018-07-13
CN108280053B true CN108280053B (en) 2019-05-14

Family

ID=62805840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810090082.1A Active CN108280053B (en) 2018-01-30 2018-01-30 A kind of method and device of the formula typesetting based on Mathtype

Country Status (1)

Country Link
CN (1) CN108280053B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144071B (en) * 2019-12-25 2024-06-11 小船出海教育科技(北京)有限公司 Cross-platform MathType formula conversion method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779118A (en) * 2012-07-17 2012-11-14 周广超 Paper typesetting method and system
CN104679726A (en) * 2013-12-03 2015-06-03 北大方正集团有限公司 Type setting method and device of word files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334775A (en) * 2007-06-29 2008-12-31 高等教育出版社 Formalization representation method based on XML book content structure
CN102033858A (en) * 2009-09-30 2011-04-27 北大方正集团有限公司 Method and system for typesetting and outputting formula

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779118A (en) * 2012-07-17 2012-11-14 周广超 Paper typesetting method and system
CN104679726A (en) * 2013-12-03 2015-06-03 北大方正集团有限公司 Type setting method and device of word files

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MathType在高等代数试题库实现中的应用研究;任治斌;《信息技术》;20120221;第2011年卷(第9期);第45-47页
基于XML的科技期刊排版技术探究;陈肖玉 等;《编辑学报》;20121231;第24卷(第S2期);第57-58页

Also Published As

Publication number Publication date
CN108280053A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
US8155945B2 (en) Image processing apparatus, image processing method, computer-readable medium and computer data signal
CN110244921B (en) Label printing method and device, electronic equipment and system
CN105005568B (en) Web page front end processing device and method based on template
CN110990010B (en) Method and device for generating software interface code
CN111753717A (en) Method, apparatus, device and medium for extracting structured information of text
CN109445794B (en) Page construction method and device
CN105550165A (en) Plug-in and method capable of importing webpage article into webpage text editor
CN108038093A (en) PDF text extraction methods and device
CN108280053B (en) A kind of method and device of the formula typesetting based on Mathtype
CN113867694A (en) Method and system for intelligently generating front-end code
CN104951749A (en) Image content recognition device and image content recognition method
CN109815451B (en) PDF (Portable document Format) generation method, device and equipment
JP7309811B2 (en) Data annotation method, apparatus, electronics and storage medium
CN104794106A (en) Annotating method and device
CN108399156B (en) The composition method and device of formula in a kind of pdf document
CN106815181A (en) Method and device for converting Indesign typesetted ind files into Office files
CN106021196B (en) Formula conversion method and system
CN104536947A (en) Layout document processing method and device
CN113297425B (en) Document conversion method, device, server and storage medium
CN116052195A (en) Document parsing method, device, terminal equipment and computer readable storage medium
CN105718846A (en) Bill information input method and apparatus
CN104424619A (en) Information processing apparatus and information processing method
CN115688774A (en) Language data processing method and device, storage medium and electronic equipment
CN112800078A (en) Lightweight text labeling method, system, equipment and storage medium based on javascript
CN109684417A (en) Method for exhibiting data and device, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant