CN104881288A - Automatic computing method and system in text mode - Google Patents

Automatic computing method and system in text mode Download PDF

Info

Publication number
CN104881288A
CN104881288A CN201510292768.5A CN201510292768A CN104881288A CN 104881288 A CN104881288 A CN 104881288A CN 201510292768 A CN201510292768 A CN 201510292768A CN 104881288 A CN104881288 A CN 104881288A
Authority
CN
China
Prior art keywords
operation result
calculating formula
text
end identifier
automatic
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
CN201510292768.5A
Other languages
Chinese (zh)
Other versions
CN104881288B (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 Lingdu Intelligent Technology Development Co.,Ltd.
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201510292768.5A priority Critical patent/CN104881288B/en
Publication of CN104881288A publication Critical patent/CN104881288A/en
Application granted granted Critical
Publication of CN104881288B publication Critical patent/CN104881288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses an automatic computing method and system in a text mode. The method comprises the following steps: inputting a computing formula in the text mode; identifying the ending identifier of the computing formula; acquiring a computing formula before the ending identifier; calling a computer interface for automatically operating the computing formula; returning the operation result and displaying the operation result in a text. By adopting the method and system, frequent switching between the text mode and a computing mode is avoided, the demands of user text input and computing formula automatic calculation are met, the operation logic is simplified, the operation steps and operation time are reduced for a user, and the user experience is improved.

Description

Automatic calculating method under Text Mode and system
Technical field
The present invention relates to a kind of automatic calculating method, the automatic calculating method particularly under a kind of Text Mode and system.
Background technology
Along with popularizing of intelligent artifact, information content form of communication is also more and more diversified, the man-machine interaction business such as Web bank, mobile phone payment, mobile-phone payment, mobile phone speculation in stocks, TV payment are also at development, and often need to use computing function in these business, people realize real-time computing function in information input and editing process has become a kind of general demand.
But, existing Text Mode interface is all separated with computing module usually, such as, in the text edit mode of SMS, when relating to calculating in input text process, usually first to be switched to counter interface and carry out computing, and then the operation result of counter is copied turn back in corresponding text, complex operation, if when relating to many calculating in text, frequently to switch in text and counter, Consumer's Experience is poor.
Summary of the invention
The present invention is for solving the problem, provide the automatic calculating method under a kind of Text Mode and system, by identifying calculative calculating formula in Text Mode, realize the automatic computing of calculating formula and operation result is back in text, solving the problem switched between Text Mode and computation schema loaded down with trivial detailsly.
For achieving the above object, the technical solution used in the present invention is:
An automatic calculating method under Text Mode, is characterized in that, comprises the following steps:
10. input calculating formula in the text mode;
The end identifier of the described calculating formula of 20. identification;
Described calculating formula before end identifier described in 30. acquisitions;
40. call calculator interface carries out automatic computing to described calculating formula, and is returned by operation result and show in the text.
Preferably, described end identifier is "=", " altogether ", " equaling ", " total ", " amounting to " or its synonym.
Preferably, in described step 30, after the described calculating formula before the end identifier described in acquisition, the calculating formula that further highlighted display obtains.
Preferably, in described step 30, described calculating formula before end identifier described in acquisition, mainly by detect in Text Entry and whether the character judging current input is end identifier, if, then straight line from this end identifier, until the character running into first nonnumeric NOR-operation symbol, and the character field obtained between the character of this first nonnumeric NOR-operation symbol and described end identifier is as described calculating formula.
Preferably, in described step 40, call calculator interface and automatic computing is carried out to described calculating formula, mainly described calculating formula is sent to calculator modules by described calculator interface, calculator modules carries out Data Analysis and automatic computing according to described calculating formula, obtains operation result.
Preferably, in described step 40, operation result is returned and shows in the text, after mainly described operation result being back to described end identifier, and the operation result described in highlighted display.
Preferably, when user does not need described operation result, then continue input text and operation result described in covering, or operation result described in deleting continue input text; User need revise described in operation result time, then cursor is navigated in the middle of operation result and cancels highlighted display and operation result of modifying; When user accepts described operation result, then cancel the highlighted display of operation result after cursor being moved to described operation result.
In addition, present invention also offers the Automatic computing system under a kind of Text Mode, it is characterized in that, it comprises:
Load module, for inputting calculating formula in the text mode;
End identifier identification module, for identifying the end identifier of described calculating formula;
Calculating formula acquisition module, for obtaining the described calculating formula before described end identifier;
Computing module, carries out automatic computing for calling calculator interface to described calculating formula, and is returned by operation result and show in the text.
The invention has the beneficial effects as follows:
Automatic calculating method under a kind of Text Mode of the present invention and system, it is by inputting calculating formula in the text mode, and identify the end identifier of described calculating formula, described calculating formula before end identifier described in acquisition, then call calculator interface and automatic computing is carried out to described calculating formula, and operation result is returned and shows in the text; Thus without the need to frequently switching between Text Mode and computation schema, carrying out the demand of automatic computing after achieving user version input calculating formula, simplifying operation logic, for user decreases operation steps and running time, pointed out the experience of user.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the automatic calculating method under a kind of Text Mode of the present invention;
Fig. 2 is the structural representation of the Automatic computing system under a kind of Text Mode of the present invention;
Fig. 3 is the text interface schematic diagram after the input calculating formula of the present invention one specific embodiment;
Fig. 4 is the text interface schematic diagram returned after operation result of the present invention one specific embodiment.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, the automatic calculating method under a kind of Text Mode of the present invention, it comprises the following steps:
10. input calculating formula (as shown in Figure 3) in the text mode;
The end identifier of the described calculating formula of 20. identification;
Described calculating formula before end identifier described in 30. acquisitions;
40. call calculator interface carries out automatic computing to described calculating formula, and is returned by operation result and show (as shown in Figure 4) in the text.
In the present embodiment, described end identifier is "=", " altogether ", " equaling ", " total ", " amounting to " or its synonym, whether it is end identifier or its synonym to carry out intelligent decision by the character inputted each, if then further straight line numeral or operational symbol, if do not search numeral or operational symbol, stop automatic computing, if search numeral or operational symbol, then continue the calculating formula described in obtaining.
In described step 30, after described calculating formula before end identifier described in acquisition, the calculating formula that further highlighted display obtains, the operation result that user can be allowed to get information about automatically demonstrate carries out computing to which calculating formula and drawn, and whether its calculating formula obtained is complete or correct to make user to judge intuitively, thus can judge that whether the operation result obtained based on this calculating formula is correct intuitively; In described step 30, described calculating formula before end identifier described in acquisition, mainly by detect in Text Entry and whether the character judging current input is end identifier, if, then straight line from this end identifier, until run into the character of first nonnumeric NOR-operation symbol, and the character field obtained between the character of this first nonnumeric NOR-operation symbol and described end identifier is as described calculating formula.
In described step 40, call calculator interface and automatic computing is carried out to described calculating formula, mainly described calculating formula is sent to calculator modules by described calculator interface, calculator modules carries out Data Analysis and automatic computing according to described calculating formula, obtains operation result; In described step 40, operation result is returned and shows in the text, after mainly described operation result being back to described end identifier, and the operation result described in highlighted display; When user does not need described operation result, then continue input text and operation result described in covering, or operation result described in deleting continue input text; User need revise described in operation result time, then cursor is navigated in the middle of operation result and cancels highlighted display and operation result of modifying; When user accepts described operation result, then cancel the highlighted display of operation result after cursor being moved to described operation result.
As shown in Figure 2, present invention also offers the Automatic computing system under a kind of Text Mode, it comprises:
Load module A, for inputting calculating formula in the text mode;
End identifier identification module B, for identifying the end identifier of described calculating formula;
Calculating formula acquisition module C, for obtaining the described calculating formula before described end identifier;
Computing module D, carries out automatic computing for calling calculator interface to described calculating formula, and is returned by operation result and show in the text.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
And, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.In addition, one of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (8)

1. the automatic calculating method under Text Mode, is characterized in that, comprises the following steps:
10. input calculating formula in the text mode;
The end identifier of the described calculating formula of 20. identification;
Described calculating formula before end identifier described in 30. acquisitions;
40. call calculator interface carries out automatic computing to described calculating formula, and is returned by operation result and show in the text.
2. the automatic calculating method under a kind of Text Mode according to claim 1, is characterized in that: described end identifier is "=", " altogether ", " equaling ", " total ", " amounting to " or its synonym.
3. the automatic calculating method under a kind of Text Mode according to claim 1, is characterized in that: in described step 30, after the described calculating formula before the end identifier described in acquisition, and the calculating formula that further highlighted display obtains.
4. the automatic calculating method under a kind of Text Mode according to claim 1 or 3, it is characterized in that: in described step 30, described calculating formula before end identifier described in acquisition, mainly by detect in Text Entry and whether the character judging current input is end identifier, if, then straight line from this end identifier, until run into the character of first nonnumeric NOR-operation symbol, and the character field obtained between the character of this first nonnumeric NOR-operation symbol and described end identifier is as described calculating formula.
5. the automatic calculating method under a kind of Text Mode according to claim 4, it is characterized in that: in described step 40, call calculator interface and automatic computing is carried out to described calculating formula, mainly described calculating formula is sent to calculator modules by described calculator interface, calculator modules carries out Data Analysis and automatic computing according to described calculating formula, obtains operation result.
6. the automatic calculating method under a kind of Text Mode according to claim 3, it is characterized in that: in described step 40, operation result is returned and shows in the text, after mainly described operation result being back to described end identifier, and the operation result described in highlighted display.
7. the automatic calculating method under a kind of Text Mode according to claim 6, it is characterized in that: when user does not need described operation result, then continue input text and cover described in operation result, or delete described in operation result and continue input text; User need revise described in operation result time, then cursor is navigated in the middle of operation result and cancels highlighted display and operation result of modifying; When user accepts described operation result, then cancel the highlighted display of operation result after cursor being moved to described operation result.
8. the Automatic computing system under Text Mode, is characterized in that, it comprises:
Load module, for inputting calculating formula in the text mode;
End identifier identification module, for identifying the end identifier of described calculating formula;
Calculating formula acquisition module, for obtaining the described calculating formula before described end identifier;
Computing module, carries out automatic computing for calling calculator interface to described calculating formula, and is returned by operation result and show in the text.
CN201510292768.5A 2015-06-01 2015-06-01 Automatic calculating method under Text Mode and system Active CN104881288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510292768.5A CN104881288B (en) 2015-06-01 2015-06-01 Automatic calculating method under Text Mode and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510292768.5A CN104881288B (en) 2015-06-01 2015-06-01 Automatic calculating method under Text Mode and system

Publications (2)

Publication Number Publication Date
CN104881288A true CN104881288A (en) 2015-09-02
CN104881288B CN104881288B (en) 2018-09-21

Family

ID=53948795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510292768.5A Active CN104881288B (en) 2015-06-01 2015-06-01 Automatic calculating method under Text Mode and system

Country Status (1)

Country Link
CN (1) CN104881288B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677438A (en) * 2016-01-07 2016-06-15 南京邮电大学 Method for automatically calculating calculation formula in file through compiler
CN106066850A (en) * 2016-05-30 2016-11-02 乐视控股(北京)有限公司 A kind of content processing method and device
CN106775580A (en) * 2016-11-28 2017-05-31 珠海市魅族科技有限公司 A kind of text input control method, mobile terminal and hand-held mobile terminal
CN109582630A (en) * 2018-10-26 2019-04-05 深圳点猫科技有限公司 The method calculated by search box, electronic equipment are realized based on educational system
CN110383244A (en) * 2017-12-29 2019-10-25 华为技术有限公司 A kind of operation method and terminal of calculator

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201470A (en) * 2016-06-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 The progress control method of computer program, operating control device and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040054701A1 (en) * 2002-03-01 2004-03-18 Garst Peter F. Modeless gesture driven editor for handwritten mathematical expressions
US20080115056A1 (en) * 2006-11-14 2008-05-15 Microsoft Corporation Providing calculations within a text editor
CN102033752A (en) * 2010-12-27 2011-04-27 畅捷通软件有限公司 Method and device for automatically calculating numerical value
CN102520846A (en) * 2011-11-24 2012-06-27 青岛海信移动通信技术股份有限公司 Mobile communication terminal input method and mobile communication terminal
CN104536817A (en) * 2014-12-24 2015-04-22 小米科技有限责任公司 Computing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040054701A1 (en) * 2002-03-01 2004-03-18 Garst Peter F. Modeless gesture driven editor for handwritten mathematical expressions
US20080115056A1 (en) * 2006-11-14 2008-05-15 Microsoft Corporation Providing calculations within a text editor
CN102033752A (en) * 2010-12-27 2011-04-27 畅捷通软件有限公司 Method and device for automatically calculating numerical value
CN102520846A (en) * 2011-11-24 2012-06-27 青岛海信移动通信技术股份有限公司 Mobile communication terminal input method and mobile communication terminal
CN104536817A (en) * 2014-12-24 2015-04-22 小米科技有限责任公司 Computing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677438A (en) * 2016-01-07 2016-06-15 南京邮电大学 Method for automatically calculating calculation formula in file through compiler
CN106066850A (en) * 2016-05-30 2016-11-02 乐视控股(北京)有限公司 A kind of content processing method and device
CN106775580A (en) * 2016-11-28 2017-05-31 珠海市魅族科技有限公司 A kind of text input control method, mobile terminal and hand-held mobile terminal
CN110383244A (en) * 2017-12-29 2019-10-25 华为技术有限公司 A kind of operation method and terminal of calculator
CN109582630A (en) * 2018-10-26 2019-04-05 深圳点猫科技有限公司 The method calculated by search box, electronic equipment are realized based on educational system

Also Published As

Publication number Publication date
CN104881288B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN104881288A (en) Automatic computing method and system in text mode
US10095389B2 (en) Gesture-based on-chart data filtering
CN105706040B (en) A kind of method, system and computer program product handling electronic document
US20170344895A1 (en) Intelligent Workspace
CN105991394A (en) Group chat method and device
US20170193992A1 (en) Voice control method and apparatus
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
CN103106005A (en) Method and device for arranging status bar icons of mobile appliance
CN113126838A (en) Application icon sorting method and device and electronic equipment
CN104820683A (en) Terminal
US20140089841A1 (en) Device and method for providing application interface based on writing input
CN106095261A (en) A kind of method and apparatus adding notes on an electronic device
US10521499B2 (en) Method and device for editing data
CN112099684A (en) Search display method and device and electronic equipment
US20160378743A1 (en) Method and apparatus for insertion of text in an electronic device
CN106302915A (en) The intelligent dialing method of a kind of self-assisted voice service and terminal
CN105812552A (en) Application icon prompt message elimination method and terminal
CN104834687A (en) Picture display method
CN105959474A (en) Short message editing method and terminal
CN108196675A (en) For the exchange method, device and touch control terminal of touch control terminal
CN104834715A (en) Website generating method and system based on components and container
CN108089812B (en) Interactive method, system, equipment and storage medium for batch approval operation
CN113986425A (en) Information processing method and device, electronic equipment and readable storage medium
US20160299880A1 (en) Method and device for updating web page
CN107272989A (en) Using startup method, device and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220516

Address after: 363207 No. 151, Zhuwei, Weizi village, qianting Town, Zhangpu County, Zhangzhou City, Fujian Province

Patentee after: Huang Junsheng

Address before: 361008 112a, entrepreneurship building, entrepreneurship Park, torch high tech Zone, Xiamen, Fujian

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220901

Address after: 510000 No. 601, 6th floor, building A3, No. 2399, Chuangye Avenue, Huangpu District, Guangzhou, Guangdong Province (office only)

Patentee after: Lingdu (Guangdong) Intelligent Technology Development Co.,Ltd.

Address before: 363207 No. 151, Zhuwei, Weizi village, qianting Town, Zhangpu County, Zhangzhou City, Fujian Province

Patentee before: Huang Junsheng

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 88 Yonglong Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Guangdong Lingdu Intelligent Technology Development Co.,Ltd.

Country or region after: China

Address before: No. 601, 6th Floor, Building A3, No. 2399 Kaichuang Avenue, Huangpu District, Guangzhou City, Guangdong Province (for office use only)

Patentee before: Lingdu (Guangdong) Intelligent Technology Development Co.,Ltd.

Country or region before: China