CN106021196A - Formula conversion method and system - Google Patents

Formula conversion method and system Download PDF

Info

Publication number
CN106021196A
CN106021196A CN201610293124.2A CN201610293124A CN106021196A CN 106021196 A CN106021196 A CN 106021196A CN 201610293124 A CN201610293124 A CN 201610293124A CN 106021196 A CN106021196 A CN 106021196A
Authority
CN
China
Prior art keywords
formula data
formula
chinese character
data
editable
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.)
Granted
Application number
CN201610293124.2A
Other languages
Chinese (zh)
Other versions
CN106021196B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201610293124.2A priority Critical patent/CN106021196B/en
Publication of CN106021196A publication Critical patent/CN106021196A/en
Application granted granted Critical
Publication of CN106021196B publication Critical patent/CN106021196B/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/103Formatting, i.e. changing of presentation of documents
    • G06F40/111Mathematical or scientific formatting; Subscripts; Superscripts

Landscapes

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

Abstract

The invention is suitable for the technical field of computers, and provides a formula conversion method and a formula conversion system, wherein the method comprises the following steps: converting the formula data in the FBD format into formula data in a text format; extracting formula data containing Chinese characters from the formula data in the text format; and calling a formula editor through a macro command to convert the formula data containing the Chinese characters into editable formula data. The invention converts the formula data in FBD format into the formula data in text format, and converts the formula data containing Chinese characters in the formula data in text format into editable formula data by calling the formula editor through the macro command, thereby effectively avoiding the condition that the formula data containing Chinese characters generates messy codes after conversion, simultaneously realizing the editing function of the formula data, facilitating the editing of users, improving the working efficiency and being simple and convenient to operate.

Description

A kind of formula conversion method and system
Technical field
The invention belongs to field of computer technology, particularly relate to a kind of formula conversion method and system.
Background technology
It is currently undertaken by the audio-visual education programme product content in electron trade, is required for the galley will bought from publishing house Data carry out secondary operations and are converted to the electronic data of required use, it is common that be converted to the literary composition of FBD form Part, and the formula data of FBD form cannot be directly changed into editable formula data, can only pass through in the later stage Picture inserts or is manually entered the method for formula and solves, and the galley data particularly with natural sciences class exist big The formula data of amount, the method being inserted or being manually entered formula by picture makes inefficiency, and later stage Revise the most relatively difficult.
Summary of the invention
It is an object of the invention to provide a kind of formula conversion method and system, it is intended to solve due to prior art In the formula data of FBD form cannot be converted to editable formula data, cause the later stage pass through picture insert Enter or be manually entered the mode of formula to edit, cause work efficiency low, the problem that operation is loaded down with trivial details.
On the one hand, the invention provides a kind of formula conversion method, described method comprises the steps:
The formula data of FBD form is converted to the formula data of text formatting;
In the formula data of described text formatting, extract the formula data comprising Chinese character;
Call formula editors by macros, the described formula data comprising Chinese character is converted into and can compile The formula data collected.
On the other hand, the invention provides a kind of formula converting system, described system includes:
Formula data the first converting unit, for being converted to the public affairs of text formatting by the formula data of FBD form Formula data;
Chinese character extraction unit, in the formula data of described text formatting, extracts and comprises middle word The formula data of symbol;And
Formula data the second converting unit, for calling formula editors by macros, by described comprising The formula data of Chinese character is converted into editable formula data.
In embodiments of the present invention, the formula data of FBD form is converted to the formula data of text formatting, Formula volume is called by macros for the formula data of text formatting contains the formula data of Chinese character Collect device and be converted into editable formula data, efficiently avoid the formula data containing Chinese character and turning There is the situation of mess code after changing, be simultaneously achieved the editting function of formula data, it is simple to user edits, Improve work efficiency, operate the most simple and convenient.
Accompanying drawing explanation
Fig. 1 is the flowchart of the formula conversion method that the embodiment of the present invention one provides;
Fig. 2 is the flowchart of the formula conversion method that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the formula converting system that the embodiment of the present invention three provides;And
Fig. 4 is the structural representation of the formula converting system that the embodiment of the present invention four provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein Only in order to explain the present invention, it is not intended to limit the present invention.
Below in conjunction with specific embodiment the present invention implemented and is described in detail:
Embodiment one:
Fig. 1 shows the flowchart of the formula conversion method that the embodiment of the present invention one provides, for the ease of Illustrating, illustrate only the part relevant to the embodiment of the present invention, details are as follows:
In step S101, the formula data of FBD form is converted to the formula data of text formatting.
In embodiments of the present invention, the extension of sample file is entitled " FBD ", and sample file is the master made Body, the full content in galley data is all in sample file, and the formula data in sample file needs to turn It is changed to the formula data of text formatting, it is simple to formula data is edited.
In step s 102, in the formula data of text formatting, extract the formula data comprising Chinese character.
In embodiments of the present invention, if owing to the formula data of text formatting comprising Chinese character, then existed Easily produce mess code after conversion, cause None-identified to go out the character in formula data, therefore, in order to avoid going out Existing mess code, needs to change the formula data comprising Chinese character further.
Specifically, it is judged that whether the formula data of text formatting comprises Chinese character;If comprising Chinese character, Then extract the formula data comprising Chinese character;If not comprising Chinese character, then being converted into by macros can The formula data of editor.There is not conversion owing to not comprising the formula data of Chinese character the situation of mess code occur, Therefore, it can directly be converted into editable formula data by macros, it is not necessary to call formula editors and enter Row conversion.
In step s 103, call formula editors by macros, the formula data of Chinese character will be comprised It is converted into editable formula data.
In embodiments of the present invention, by enumerating all windows, search formula editors;Middle word will be comprised The formula data input formula editors of symbol, obtains editable formula data.Owing to comprising Chinese character Formula data directly invokes macros to carry out changing the situation that there will be mess code, it is therefore desirable to adjusted by macros With formula editors, macros calls formula editors particular by enumerating all windows, searches formula and compiles Collect device, then the formula data that will comprise Chinese character inputs formula editors, obtains editable formula data.
In embodiments of the present invention, for the formula data of text formatting contains the formula number of Chinese character It is converted into editable formula data according to calling formula editors by macros, efficiently avoid and contain There is the situation of mess code in the formula data of Chinese character, is simultaneously achieved editor's merit of formula data after conversion Can, it is simple to user edits, improve work efficiency, operate the most simple and convenient.
Embodiment two:
Fig. 2 shows the flowchart of the formula conversion method that the embodiment of the present invention two provides, for the ease of Illustrating, illustrate only the part relevant to the embodiment of the present invention, details are as follows:
In step s 201, according to the preset range in document, the formula data of FBD form is searched.
In embodiments of the present invention, user can preset range in a document, facilitating self-defined needs conversion In the scope of formula data, such as document a certain section or the full content in document, it is possible to reduce need not The converted contents wanted, it is also possible to realize full text shelves are carried out Batch conversion, improve conversion efficiency further.
In step S202, the formula data of FBD form is converted to the formula data of text formatting.
In step S203, in the formula data of text formatting, extract the formula data comprising Chinese character.
In step S204, call formula editors by macros, the formula data of Chinese character will be comprised It is converted into editable formula data.
In step S205, according to default time interval, preserve editable formula data.
In embodiments of the present invention, automatically editable formula data is protected by default time interval Deposit, prevent power-off loss of data, facilitate user to carry out edit-modify, increase the experience sense of user.
In embodiments of the present invention, the embodiment of step S202 S204 can be corresponding with reference to previous embodiment In one, the description of step S101 S103, does not repeats them here.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is Can instruct relevant hardware by program to complete, described program can be stored in a computer-readable Taking in storage medium, described storage medium, such as ROM/RAM, disk, CD etc..
Embodiment three:
Fig. 3 shows the structural representation of the formula converting system that the embodiment of the present invention three provides, for the ease of Illustrate, illustrate only the part relevant to the embodiment of the present invention.In embodiments of the present invention, formula conversion system System includes: formula data the first converting unit 31, Chinese character extraction unit 32 and formula data second Converting unit 33, wherein:
Formula data the first converting unit 31, for being converted to text formatting by the formula data of FBD form Formula data.
In embodiments of the present invention, the extension of sample file is entitled " FBD ", and sample file is the master made Body, the full content in galley data is all in sample file, and the formula data in sample file needs to turn It is changed to the formula data of text formatting, it is simple to formula data is edited.
Chinese character extraction unit 32, in the formula data of text formatting, extracts and comprises Chinese character Formula data.
In embodiments of the present invention, if owing to the formula data of text formatting comprising Chinese character, then existed Easily produce mess code after conversion, cause None-identified to go out the character in formula data, therefore, in order to avoid going out Existing mess code, needs to change the formula data comprising Chinese character further.
In embodiments of the present invention, Chinese character extraction unit 32 specifically for: judge the formula of text formatting Whether data comprise Chinese character;If comprising Chinese character, then extract the formula data comprising Chinese character; If not comprising Chinese character, then it is converted into editable formula data by macros.Owing to not comprising Chinese There is not conversion and the situation of mess code occur in the formula data of character, therefore, it can directly be changed by macros Become editable formula data, it is not necessary to call formula editors and change.
Formula data the second converting unit 33, for calling formula editors by macros, will comprise Chinese The formula data of character is converted into editable formula data.
This formula data second converting unit 33 includes: formula editors searches unit 331 and conversion is single Unit 332, wherein:
Formula editors searches unit 331, for by enumerating all windows, searches formula editors.
Conversion subelement 332, for the formula data comprising Chinese character is inputted described formula editors, Obtain editable formula data.
In embodiments of the present invention, by enumerating all windows, search formula editors;Middle word will be comprised The formula data input formula editors of symbol, obtains editable formula data.Owing to comprising Chinese character Formula data directly invokes macros to carry out changing the situation that there will be mess code, it is therefore desirable to adjusted by macros With formula editors, macros calls formula editors particular by enumerating all windows, searches formula and compiles Collect device, then the formula data that will comprise Chinese character inputs formula editors, obtains editable formula data.
In embodiments of the present invention, each unit of formula converting system can be real by corresponding hardware or software unit Existing, each unit can be independent soft and hardware unit, it is also possible to be integrated into a soft and hardware unit, This is not in order to limit the present invention.The embodiment of this system each unit specifically refers to retouching of previous embodiment one State, do not repeat them here.
Embodiment four:
Fig. 4 shows the structural representation of the formula converting system that the embodiment of the present invention four provides, for the ease of Illustrate, illustrate only the part relevant to the embodiment of the present invention.
In embodiments of the present invention, formula converting system includes: FBD form searches unit 41, formula data First converting unit 42, Chinese character extraction unit 43, formula data the second converting unit 44 and preservation Unit 45, wherein:
FBD form searches unit 41, for according to the preset range in document, searching the public affairs of FBD form Formula data.
In embodiments of the present invention, user can preset range in a document, facilitating self-defined needs conversion In the scope of formula data, such as document a certain section or the full content in document, it is possible to reduce need not The converted contents wanted, it is also possible to realize full text shelves are carried out Batch conversion, improve conversion efficiency further.
Formula data the first converting unit 42, for being converted to text formatting by the formula data of FBD form Formula data.
Chinese character extraction unit 43, in the formula data of text formatting, extracts and comprises Chinese character Formula data.
Formula data the second converting unit 44, for calling formula editors by macros, will comprise Chinese The formula data of character is converted into editable formula data.
Storage unit 45, for according to the time interval preset, preserving editable formula data.
In embodiments of the present invention, automatically editable formula data is protected by default time interval Deposit, prevent power-off loss of data, facilitate user to carry out edit-modify, increase the experience sense of user.
In embodiments of the present invention, each unit of formula converting system can be real by corresponding hardware or software unit Existing, each unit can be independent soft and hardware unit, it is also possible to be integrated into a soft and hardware unit, This is not in order to limit the present invention.The embodiment of this system each unit specifically refers to retouching of previous embodiment one State, do not repeat them here.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention Protection domain within.

Claims (10)

1. a formula conversion method, it is characterised in that described method comprises the steps:
The formula data of FBD form is converted to the formula data of text formatting;
In the formula data of described text formatting, extract the formula data comprising Chinese character;
Call formula editors by macros, the described formula data comprising Chinese character is converted into and can compile The formula data collected.
2. the method for claim 1, it is characterised in that the formula data of FBD form is changed Before the step of the formula data of text formatting, including:
According to the preset range in document, search the formula data of described FBD form.
3. the method for claim 1, it is characterised in that in the formula data of described text formatting, Extract the step of the formula data comprising Chinese character, including:
Judge whether the formula data of described text formatting comprises Chinese character;
If comprising Chinese character, then extract the formula data comprising Chinese character;
If not comprising Chinese character, then it is converted into editable formula data by macros.
4. the method for claim 1, it is characterised in that call formula editors by macros, The described formula data comprising Chinese character is converted into the step of editable formula data, including:
By enumerating all windows, search described formula editors;
The described formula data comprising Chinese character is inputted described formula editors, obtains described editable Formula data.
5. the method for claim 1, it is characterised in that described method also includes:
According to default time interval, preserve described editable formula data.
6. a formula converting system, it is characterised in that described system includes:
Formula data the first converting unit, for being converted to the public affairs of text formatting by the formula data of FBD form Formula data;
Chinese character extraction unit, in the formula data of described text formatting, extracts and comprises middle word The formula data of symbol;And
Formula data the second converting unit, for calling formula editors by macros, by described comprising The formula data of Chinese character is converted into editable formula data.
7. system as claimed in claim 6, it is characterised in that described system also includes:
FBD form searches unit, for according to the preset range in document, searches described FBD form Formula data.
8. system as claimed in claim 6, it is characterised in that described Chinese character extraction unit is specifically used In:
Judge whether the formula data of described text formatting comprises Chinese character;
If comprising Chinese character, then extract the formula data comprising Chinese character;
If not comprising Chinese character, then it is converted into editable formula data by macros.
9. system as claimed in claim 6, it is characterised in that described formula data the second converting unit bag Include:
Formula editors searches unit, for by enumerating all windows, searches described formula editors;With And
Conversion subelement, for the described formula data comprising Chinese character is inputted described formula editors, Obtain described editable formula data.
10. system as claimed in claim 6, it is characterised in that described system also includes:
Storage unit, for according to the time interval preset, preserving described editable formula data.
CN201610293124.2A 2016-05-05 2016-05-05 Formula conversion method and system Active CN106021196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610293124.2A CN106021196B (en) 2016-05-05 2016-05-05 Formula conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610293124.2A CN106021196B (en) 2016-05-05 2016-05-05 Formula conversion method and system

Publications (2)

Publication Number Publication Date
CN106021196A true CN106021196A (en) 2016-10-12
CN106021196B CN106021196B (en) 2019-09-17

Family

ID=57081793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610293124.2A Active CN106021196B (en) 2016-05-05 2016-05-05 Formula conversion method and system

Country Status (1)

Country Link
CN (1) CN106021196B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897256A (en) * 2017-02-23 2017-06-27 广东小天才科技有限公司 Method and device for converting Office software edited formula into MathML formula
CN107741990A (en) * 2017-11-01 2018-02-27 深圳汇生通科技股份有限公司 Data cleansing integration method and system
CN111079385A (en) * 2019-12-25 2020-04-28 小船出海教育科技(北京)有限公司 Method and device for converting scientific formula format
CN113742475A (en) * 2021-09-10 2021-12-03 绿盟科技集团股份有限公司 Office document detection method, apparatus, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259456A (en) * 1998-03-12 1999-09-24 Toshiba Corp Document preparing device, formula converting method and storage medium
CN102033858A (en) * 2009-09-30 2011-04-27 北大方正集团有限公司 Method and system for typesetting and outputting formula
CN104679726A (en) * 2013-12-03 2015-06-03 北大方正集团有限公司 Type setting method and device of word files

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11259456A (en) * 1998-03-12 1999-09-24 Toshiba Corp Document preparing device, formula converting method and storage medium
CN102033858A (en) * 2009-09-30 2011-04-27 北大方正集团有限公司 Method and system for typesetting and outputting formula
CN104679726A (en) * 2013-12-03 2015-06-03 北大方正集团有限公司 Type setting method and device of word files

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
北京北大方正电子有限公司: "方正经典1.5Word格式转换系统", 《方正经典1.5WORD格式转换系统使用说明书》 *
毛善锋: "含公式Word文件到方正书版文件的实用转换方案", 《中国科技期刊研究》 *
王昌栋 等: "方正书版排版Word公式的转换方法", 《科技与出版》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897256A (en) * 2017-02-23 2017-06-27 广东小天才科技有限公司 Method and device for converting Office software edited formula into MathML formula
CN106897256B (en) * 2017-02-23 2020-03-17 广东小天才科技有限公司 Method and device for converting Office software edited formula into MathML formula
CN107741990A (en) * 2017-11-01 2018-02-27 深圳汇生通科技股份有限公司 Data cleansing integration method and system
CN107741990B (en) * 2017-11-01 2023-05-16 深圳汇生通科技股份有限公司 Data cleaning integration method and system
CN111079385A (en) * 2019-12-25 2020-04-28 小船出海教育科技(北京)有限公司 Method and device for converting scientific formula format
CN113742475A (en) * 2021-09-10 2021-12-03 绿盟科技集团股份有限公司 Office document detection method, apparatus, device and medium

Also Published As

Publication number Publication date
CN106021196B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
MX2007015438A (en) Collocation translation from monolingual and available bilingual corpora.
CN101667118A (en) Method and device for multi-language version development and replacement
CN104424180B (en) Text entry method and equipment
CN106021196A (en) Formula conversion method and system
CN103150294A (en) Method and system for correcting based on voice identification results
CN102609500A (en) Question push method, question answering system using same and search engine
US20100228538A1 (en) Computational linguistic systems and methods
CN104994404A (en) Method and device for obtaining keywords for video
KR20220042317A (en) search and replacement database and database execution in word processor
CN106815181B (en) Method and device for converting Indesign typesetted ind files into Office files
CN107066438A (en) A kind of method for editing text and device, electronic equipment
CN101866331A (en) Conversion method and device of XML (Extensible Markup Language) documents of different languages
US20210319481A1 (en) System and method for summerization of customer interaction
CN104657524B (en) DWG drawing voice annotation function
KR20130099327A (en) Apparatus for extracting information from open domains and method for the same
CN113127105A (en) Excel automatic voice tool calling method
CN113836947A8 (en) Method, device, equipment and storage medium for translating terms after machine translation
CN105718441B (en) The method and apparatus of the similar UI components of function between a kind of lookup different platform
CN102402372A (en) Text translation method and system
CN104391831A (en) Method and system for commenting file contents
CN106156314B (en) A kind of data manipulation method and device, data search method and device
CN104704487A (en) Translation processing device and program
CN109543300A (en) A kind of method of pixel device in extraction domain
CN112784527B (en) Document merging method and device and electronic equipment
CN114970543A (en) Semantic analysis method for crowdsourced design resources

Legal Events

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