CN106021196B - Formula conversion method and system - Google Patents

Formula conversion method and system Download PDF

Info

Publication number
CN106021196B
CN106021196B CN201610293124.2A CN201610293124A CN106021196B CN 106021196 B CN106021196 B CN 106021196B CN 201610293124 A CN201610293124 A CN 201610293124A CN 106021196 B CN106021196 B CN 106021196B
Authority
CN
China
Prior art keywords
formula
formula data
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.)
Active
Application number
CN201610293124.2A
Other languages
Chinese (zh)
Other versions
CN106021196A (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 more particularly to a kind of formula conversion methods and system.
Background technique
Be currently undertaken by the audio-visual education programme product content in electronics industry, require by from publishing house's purchase come galley data into The electronic data that uses needed for row secondary operation is converted to, is usually converted into the file of FBD format, and the public affairs of FBD format Formula data can not be directly changed into editable formula data, can only be inserted into or be manually entered the side of formula the later period by picture Method solves, particularly with natural sciences class galley data there are a large amount of formula data, be inserted into or be manually entered by picture The method of formula makes inefficiency, and later period modification is also relatively difficult.
Summary of the invention
The purpose of the present invention is to provide a kind of formula conversion method and systems, it is intended to solve due in the prior art can not The formula data of FBD format is converted into editable formula data, the later period is caused to be inserted into or be manually entered public affairs by picture The mode of formula is edited, and causes working efficiency low, the cumbersome problem of operation.
On the one hand, the present invention provides a kind of formula conversion method, the method includes the following steps:
The formula data of FBD format is converted to the formula data of text formatting;
In the formula data of the text formatting, the formula data comprising Chinese character is extracted;
Formula editors are called by macros, the formula data comprising Chinese character is converted into editable public affairs Formula data.
On the other hand, the present invention provides a kind of formula converting system, the system comprises:
The first converting unit of formula data, for the formula data of FBD format to be converted to the formula data of text formatting;
Chinese character extraction unit, for extracting the public affairs comprising Chinese character in the formula data of the text formatting Formula data;And
The second converting unit of formula data will described include Chinese character for calling formula editors by macros Formula data be converted into editable formula data.
In embodiments of the present invention, the formula data that the formula data of FBD format is converted to text formatting, for text The formula data that Chinese character is contained in the formula data of format calls formula editors to be converted into editable by macros Formula data, efficiently avoid containing the formula data of Chinese character after conversion there is a situation where messy code, while real The editting function for having showed formula data, is edited convenient for user, improves working efficiency, and operation very simple is convenient.
Detailed description of the invention
Fig. 1 is the implementation flow chart for the formula conversion method that the embodiment of the present invention one provides;
Fig. 2 is the implementation flow chart of formula conversion method provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram for the formula converting system that the embodiment of the present invention three provides;And
Fig. 4 is the structural schematic diagram for the formula converting system that the embodiment of the present invention four provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Specific implementation of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one:
Fig. 1 shows the implementation flow chart of the formula conversion method of the offer of the embodiment of the present invention one, for ease of description, only Part related to the embodiment of the present invention is shown, details are as follows:
In step s101, the formula data of FBD format 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 main body of production, galley For full content in data all in sample file, the formula data in sample file needs to be converted to the formula number of text formatting According to convenient for being edited for formula data.
In step s 102, in the formula data of text formatting, the formula data comprising Chinese character is extracted.
In embodiments of the present invention, due in the formula data of text formatting if comprising Chinese character, after conversion Be easy to produce messy code, lead to not identify the character in formula data, therefore, in order to avoid there is messy code, need to comprising The formula data of Chinese character is further converted.
Specifically, whether judge in the formula data of text formatting comprising Chinese character;If being extracted comprising Chinese character Formula data comprising Chinese character;If not including Chinese character, editable formula data is converted by macros.By In the formula data for not including Chinese character there is no converting the case where messy code occur, therefore, it can directly pass through macros and turn Editable formula data is changed into, without calling formula editors to be converted.
In step s 103, formula editors are called by macros, the formula data comprising Chinese character is converted into Editable formula data.
In embodiments of the present invention, by enumerating all windows, formula editors are searched;By the formula comprising Chinese character Data input formula editors, obtain editable formula data.Due to the formula data comprising Chinese character call directly it is macro Order carries out the case where conversion will appear messy code, it is therefore desirable to call formula editors by macros, macros calls formula Editing machine searches formula editors particular by all windows are enumerated, then the formula data comprising Chinese character is inputted public affairs Formula editing machine obtains editable formula data.
In embodiments of the present invention, pass through for containing the formula data of Chinese character in the formula data of text formatting Macros calls formula editors to be converted into editable formula data, efficiently avoids the formula number for containing Chinese character According to there is a situation where messy codes after conversion, while the editting function of formula data is realized, edited convenient for user, improves work Make efficiency, operation very simple is convenient.
Embodiment two:
Fig. 2 shows the implementation flow charts of formula conversion method provided by Embodiment 2 of the present invention, for ease of description, only Part related to the embodiment of the present invention is shown, details are as follows:
In step s 201, according to the preset range in document, the formula data of FBD format is searched.
In embodiments of the present invention, user can preset range in a document, facilitate and customized need conversion formula number According to range, such as a certain section in document or the full content in document, it is possible to reduce unnecessary converted contents, can also Batch conversion is carried out to full text shelves to realize, further improves transfer efficiency.
In step S202, the formula data of FBD format is converted to the formula data of text formatting.
In step S203, in the formula data of text formatting, the formula data comprising Chinese character is extracted.
In step S204, formula editors are called by macros, the formula data comprising Chinese character is converted into Editable formula data.
In step S205, according to preset time interval, editable formula data is saved.
In embodiments of the present invention, editable formula data is saved automatically by preset time interval, is prevented Loss of data is only powered off, facilitates user to carry out edit-modify, increases the experience sense of user.
In embodiments of the present invention, the embodiment of step S202-S204 can be corresponded to reference to step in previous embodiment one The description of S101-S103, details are not described herein.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can be stored in a computer readable storage medium, The storage medium, such as ROM/RAM, disk, CD.
Embodiment three:
Fig. 3 shows the structural schematic diagram of the formula converting system of the offer of the embodiment of the present invention three, for ease of description, only Show part related to the embodiment of the present invention.In embodiments of the present invention, formula converting system includes: formula data first Converting unit 31, Chinese character extraction unit 32 and the second converting unit of formula data 33, in which:
The first converting unit of formula data 31, for the formula data of FBD format to be converted to the formula number of text formatting According to.
In embodiments of the present invention, the extension of sample file is entitled " FBD ", and sample file is the main body of production, galley For full content in data all in sample file, the formula data in sample file needs to be converted to the formula number of text formatting According to convenient for being edited for formula data.
Chinese character extraction unit 32, for extracting the formula comprising Chinese character in the formula data of text formatting Data.
In embodiments of the present invention, due in the formula data of text formatting if comprising Chinese character, after conversion Be easy to produce messy code, lead to not identify the character in formula data, therefore, in order to avoid there is messy code, need to comprising The formula data of Chinese character is further converted.
In embodiments of the present invention, Chinese character extraction unit 32 is specifically used for: judging in the formula data of text formatting It whether include Chinese character;If extracting the formula data comprising Chinese character comprising Chinese character;If not including middle text Symbol, then be converted into editable formula data by macros.Conversion is not present in formula data due to not including Chinese character There is the case where messy code, therefore, editable formula data directly can be converted by macros, without calling equation editing Device is converted.
The second converting unit of formula data 33 will include Chinese character for calling formula editors by macros Formula data is converted into editable formula data.
Second converting unit of formula data 33 includes: formula editors searching unit 331 and conversion subunit 332, Wherein:
Formula editors searching unit 331, for searching formula editors by enumerating all windows.
Conversion subunit 332, the formula data for that will include Chinese character input the formula editors, obtain to compile The formula data collected.
In embodiments of the present invention, by enumerating all windows, formula editors are searched;By the formula comprising Chinese character Data input formula editors, obtain editable formula data.Due to the formula data comprising Chinese character call directly it is macro Order carries out the case where conversion will appear messy code, it is therefore desirable to call formula editors by macros, macros calls formula Editing machine searches formula editors particular by all windows are enumerated, then the formula data comprising Chinese character is inputted public affairs Formula editing machine obtains editable formula data.
In embodiments of the present invention, each unit of formula converting system can be realized by corresponding hardware or software unit, respectively Unit can be independent soft and hardware unit, also can integrate as a soft and hardware unit, herein not to limit the present invention. The embodiment of the system each unit specifically refers to the description of previous embodiment one, and details are not described herein.
Example IV:
Fig. 4 shows the structural schematic diagram of the formula converting system of the offer of the embodiment of the present invention four, for ease of description, only Show part related to the embodiment of the present invention.
In embodiments of the present invention, formula converting system includes: FBD format searching unit 41, the conversion of formula data first Unit 42, Chinese character extraction unit 43, the second converting unit of formula data 44 and storage unit 45, in which:
FBD format searching unit 41, for searching the formula data of FBD format according to the preset range in document.
In embodiments of the present invention, user can preset range in a document, facilitate and customized need conversion formula number According to range, such as a certain section in document or the full content in document, it is possible to reduce unnecessary converted contents, can also Batch conversion is carried out to full text shelves to realize, further improves transfer efficiency.
The first converting unit of formula data 42, for the formula data of FBD format to be converted to the formula number of text formatting According to.
Chinese character extraction unit 43, for extracting the formula comprising Chinese character in the formula data of text formatting Data.
The second converting unit of formula data 44 will include Chinese character for calling formula editors by macros Formula data is converted into editable formula data.
Storage unit 45, for saving editable formula data according to preset time interval.
In embodiments of the present invention, editable formula data is saved automatically by preset time interval, is prevented Loss of data is only powered off, facilitates user to carry out edit-modify, increases the experience sense of user.
In embodiments of the present invention, each unit of formula converting system can be realized by corresponding hardware or software unit, respectively Unit can be independent soft and hardware unit, also can integrate as a soft and hardware unit, herein not to limit the present invention. The embodiment of the system each unit specifically refers to the description of previous embodiment one, and details are not described herein.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (8)

1. a kind of formula conversion method, which is characterized in that the method includes the following steps:
The formula data of FBD format is converted to the formula data of text formatting;
In the formula data of the text formatting, the formula data comprising Chinese character is extracted;
Formula editors are called by macros, the formula data comprising Chinese character is converted into editable formula number According to,
In the formula data of the text formatting, extraction the step of including the formula data of Chinese character, comprising:
Whether judge in the formula data of the text formatting comprising Chinese character;
If extracting the formula data comprising Chinese character comprising Chinese character;
If not including Chinese character, editable formula data is converted by macros.
2. the method as described in claim 1, which is characterized in that the formula data of FBD format is converted to the public affairs of text formatting Before the step of formula data, comprising:
According to the preset range in document, the formula data of the FBD format is searched.
3. the method as described in claim 1, which is characterized in that in including by macros calling formula editors, described in general The step of formula data of Chinese character is converted into editable formula data, comprising:
By enumerating all windows, the formula editors are searched;
The formula data comprising Chinese character is inputted into the formula editors, obtains the editable formula data.
4. the method as described in claim 1, which is characterized in that the method also includes:
According to preset time interval, the editable formula data is saved.
5. a kind of formula converting system, which is characterized in that the system comprises:
The first converting unit of formula data, for the formula data of FBD format to be converted to the formula data of text formatting;
Chinese character extraction unit, for extracting the formula number comprising Chinese character in the formula data of the text formatting According to;And
The second converting unit of formula data, for calling formula editors by macros, by the public affairs comprising Chinese character Formula data conversion at editable formula data,
The Chinese character extraction unit is specifically used for:
Whether judge in the formula data of the text formatting comprising Chinese character;
If extracting the formula data comprising Chinese character comprising Chinese character;
If not including Chinese character, editable formula data is converted by macros.
6. system as claimed in claim 5, which is characterized in that the system also includes:
FBD format searching unit, for searching the formula data of the FBD format according to the preset range in document.
7. system as claimed in claim 5, which is characterized in that second converting unit of formula data includes:
Formula editors searching unit, for searching the formula editors by enumerating all windows;And
Conversion subunit, for the formula data comprising Chinese character to be inputted the formula editors, obtain it is described can The formula data of editor.
8. system as claimed in claim 5, which is characterized in that the system also includes: storage unit, for according to preset Time interval saves the 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 CN106021196A (en) 2016-10-12
CN106021196B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897256B (en) * 2017-02-23 2020-03-17 广东小天才科技有限公司 Method and device for converting Office software edited formula into MathML formula
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
含公式Word文件到方正书版文件的实用转换方案;毛善锋;《中国科技期刊研究》;20091231;第20卷(第6期);参见摘要,第1-3节、图3-7
方正书版排版Word公式的转换方法;王昌栋 等;《科技与出版》;20081231(第3期);第38-40页
方正经典1.5Word格式转换系统;北京北大方正电子有限公司;《方正经典1.5Word格式转换系统使用说明书》;20100831;参见第1章

Also Published As

Publication number Publication date
CN106021196A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN107491477B (en) Emotion symbol searching method and device
CN106021196B (en) Formula conversion method and system
US10699712B2 (en) Processing method and electronic device for determining logic boundaries between speech information using information input in a different collection manner
CN104424180B (en) Text entry method and equipment
CN104765750A (en) Input language switch method and device for input method application
CN110083580B (en) Method and system for converting Word document into PowerPoint document
CN102402432A (en) Method for creating a multi-lingual web page
CN102609500A (en) Question push method, question answering system using same and search engine
CN106326194A (en) Directory generation method and apparatus applied to file format conversion scene
CN104866308A (en) Scenario image generation method and apparatus
CN101430684A (en) Method and apparatus for mutual conversion between Chinese work office software document and documents with other format
CN110942763A (en) Voice recognition method and device
CN102033614B (en) Intelligently combined formula input method and system
CN107741931A (en) Interpretation method, mobile terminal and the storage device of operating system framework
KR102075382B1 (en) Apparatus for providing content for visually impaired people and method for providing the content using the same
JP7309811B2 (en) Data annotation method, apparatus, electronics and storage medium
CN102035931A (en) Mobile phone with rapid message-editing function and method
CN102314314A (en) Method and system for converting cursor when in document reading
WO2021211300A1 (en) System and method for summerization of customer interaction
KR20130099327A (en) Apparatus for extracting information from open domains and method for the same
CN108959343A (en) A kind of method and device of text modification
CN109213776A (en) A kind of report form showing method and device
CN104731766A (en) Alphabetic writing lexicon establishing method, alphabetic writing lexicon establishing device, inputting method and inputting system
CN102723067B (en) A kind of character display method and device
CN106156314B (en) A kind of data manipulation method and device, data search method and device

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