CN104881288B - Automatic calculating method under Text Mode and system - Google Patents

Automatic calculating method under Text Mode and system Download PDF

Info

Publication number
CN104881288B
CN104881288B CN201510292768.5A CN201510292768A CN104881288B CN 104881288 B CN104881288 B CN 104881288B CN 201510292768 A CN201510292768 A CN 201510292768A CN 104881288 B CN104881288 B CN 104881288B
Authority
CN
China
Prior art keywords
calculating formula
operation result
end identifier
text
calculating
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
CN201510292768.5A
Other languages
Chinese (zh)
Other versions
CN104881288A (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 the automatic calculating methods and system under a kind of Text Mode, it by inputting calculating formula in the text mode, and identify the end identifier of the calculating formula, obtain the calculating formula before the end identifier, then it calls calculator interface to carry out automatic operation to the calculating formula, and operation result is returned and is shown in the text;Without the frequent switching between Text Mode and calculating pattern, the demand that user version input calculating formula calculates automatically is realized, operation logic is simplified, reduces operating procedure and operating time for user, has prompted the experience of user.

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 under especially a kind of Text Mode and system.
Background technology
With the promotion and popularization of intellectual product, information content form of communication is also more and more diversified, Web bank, mobile phone The man-machine interactive services such as payment, mobile-phone payment, mobile phone speculation in stocks, TV payment are also evolving, and are frequently necessary in these industry Computing function, people is used to realize that real-time computing function has become a kind of universal need in information input and editing process in business It asks.
But text editing of the existing Text Mode interface usually all with computing module phase separation, such as SMS In pattern, when being related to calculating during inputting text, usually to first switch to calculator interface and carry out operation, then again The operation result of calculator is replicated back in corresponding text, it is cumbersome, if arriving more meter involved in text It then frequently to be switched in text and calculator when calculation, user experience is poor.
Invention content
The present invention to solve the above problems, the automatic calculating method under providing a kind of Text Mode and system, by Calculative calculating formula is identified in Text Mode, realizes the automatic operation of calculating formula and operation result is back in text, It solves the problems, such as to switch between Text Mode and calculating pattern cumbersomely.
To achieve the above object, the technical solution adopted by the present invention is:
Automatic calculating method under a kind of Text Mode, which is characterized in that include the following steps:
10. inputting calculating formula in the text mode;
20. the end identifier of the identification calculating formula;
30. obtaining the calculating formula before the end identifier;
40. calculator interface is called to carry out automatic operation to the calculating formula, and operation result is returned and include In text.
Preferably, the end identifier is "=", " in total ", " being equal to ", " total ", " total " or its is synonymous Word.
Preferably, further high after obtaining the calculating formula before the end identifier in the step 30 Calculating formula acquired in bright display.
Preferably, in the step 30, the calculating formula before the end identifier is obtained, is mainly passed through It is detected in Text Entry and judges whether the character currently inputted is end identifier, if so, from the end identifier Start to search for forward, until encountering the character of first nonnumeric or non-operation symbol, and obtain this first it is nonnumeric or Character field between the character and the end identifier of inverse symbol is as the calculating formula.
Preferably, in the step 40, calculator interface is called to carry out automatic operation to the calculating formula, mainly The calculating formula is sent to calculator modules by the calculator interface, calculator modules are according to the calculating formula Data parsing and automatic operation are carried out, operation result is obtained.
Preferably, in the step 40, operation result is returned and is shown in the text, mainly by the operation As a result it is back to after the end identifier, and is highlighted the operation result.
Preferably, when user does not need the operation result, then continue to input text and cover the operation result, Or it deletes the operation result and continues to input text;When user needs to change the operation result, then cursor is determined Position is highlighted to cancellation in operation result and operation result of modifying;When user receives the operation result, then will Cursor is moved to after the operation result and cancels being highlighted for operation result.
In addition, the present invention also provides the Automatic computing systems under a kind of Text Mode, which is characterized in that it includes:
Input module, for inputting calculating formula in the text mode;
End identifier identification module, for identification end identifier of the calculating formula;
Calculating formula acquisition module, for obtaining the calculating formula before the end identifier;
Computing module for calling calculator interface to carry out automatic operation to the calculating formula, and operation result is returned It returns and shows in the text.
The beneficial effects of the invention are as follows:
Automatic calculating method under a kind of Text Mode of the present invention and system, by inputting calculating in the text mode Formula, and identify the end identifier of the calculating formula, the calculating formula before the end identifier is obtained, is then called Calculator interface carries out automatic operation to the calculating formula, and operation result is returned and is shown in the text;Without The frequent switching between Text Mode and calculating pattern carries out the need of automatic operation after realizing user version input calculating formula It asks, simplifies operation logic, reduce operating procedure and operating time for user, prompted the experience of user.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining 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 schematic diagram 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 a specific embodiment of the invention;
Fig. 4 is the text interface schematic diagram of a specific embodiment of the invention returned after operation result.
Specific implementation mode
In order to keep technical problems, technical solutions and advantages to be solved clearer, clear, tie below Closing accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is 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 comprising following steps:
10. input calculating formula (as shown in Figure 3) in the text mode;
20. the end identifier of the identification calculating formula;
30. obtaining the calculating formula before the end identifier;
40. calculator interface is called to carry out automatic operation to the calculating formula, and operation result is returned and include In text (as shown in Figure 4).
In the present embodiment, the end identifier be "=", " in total ", " being equal to ", " total ", " total " or its together Adopted word, carrying out intelligent decision by the character inputted to each, whether it is end identifier or its synonym, if then Search number or operator further along, stop automatic operation, if there is searching if not searching number or operator Rope then continues to obtain the calculating formula to number or operator.
In the step 30, after obtaining the calculating formula before the end identifier, further it is highlighted Acquired calculating formula, user can be allowed, which to get information about the operation result shown automatically, to be carried out to which calculating formula What operation was obtained, and allow users to intuitively judge whether the calculating formula that it is obtained complete or correct, so as to straight Whether the judgement of sight is based on the obtained operation result of the calculating formula correct;In the step 30, the end mark is obtained The calculating formula before symbol is known, mainly by detecting and judging whether the character currently inputted is knot in Text Entry Beam identification accords with, if so, being searched for forward since the end identifier, the word until encountering first nonnumeric or non-operation symbol Until symbol, and obtain the character field conduct between the character and the end identifier of this first nonnumeric or non-operation symbol The calculating formula.
In the step 40, calculator interface is called to carry out automatic operation to the calculating formula, it mainly will be described Calculating formula calculator modules are sent to by the calculator interface, calculator modules are according to the calculating formula into line number According to parsing and automatic operation, operation result is obtained;In the step 40, operation result is returned and is shown in the text, it is main If the operation result is back to after the end identifier, and it is highlighted the operation result;With When family does not need the operation result, then continues to input text and cover the operation result, or delete the fortune It calculates result and continues to input text;When user needs to change the operation result, then cursor is navigated in operation result Cancellation is highlighted and operation result of modifying;When user receives the operation result, then cursor is moved to described After operation result and cancel being highlighted for operation result.
As shown in Fig. 2, the present invention also provides the Automatic computing systems under a kind of Text Mode comprising:
Input module A, for inputting calculating formula in the text mode;
End identifier identification module B, for identification end identifier of the calculating formula;
Calculating formula acquisition module C, for obtaining the calculating formula before the end identifier;
Computing module D for calling calculator interface to carry out automatic operation to the calculating formula, and operation result is returned It returns and shows in the text.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. For system class embodiment, since it is basically similar to the method embodiment, so description is fairly simple, related place ginseng See the part explanation of embodiment of the method.
Also, herein, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.In addition, those of ordinary skill in the art can manage Solution realizes that all or part of step of above-described embodiment can be completed by hardware, can also be instructed by program relevant Hardware is completed, and the program can be stored in a kind of computer readable storage medium, and storage medium mentioned above can be with It is read-only memory, disk or CD etc..
The preferred embodiment of the present invention has shown and described in above description, it should be understood that the present invention is not limited to this paper institutes The form of disclosure is not to be taken as excluding other embodiments, and can be used for other combinations, modifications, and environments, and energy Enough in this paper invented the scope of the idea, modifications can be made through the above teachings or related fields of technology or knowledge.And people from this field The modifications and changes that member is carried out do not depart from the spirit and scope of the present invention, then all should be in the protection of appended claims of the present invention In range.

Claims (7)

1. the automatic calculating method under a kind of Text Mode, which is characterized in that include the following steps:
10. inputting calculating formula in the text mode;
20. the end identifier of the identification calculating formula;
30. obtaining the calculating formula before the end identifier;
40. calculator interface is called to carry out automatic operation to the calculating formula, and operation result is returned and includes in text In;
Wherein, in the step 30, the calculating formula before the end identifier is obtained, is by text input It is detected in frame and judges whether the character currently inputted is end identifier, if so, being searched forward since the end identifier Rope, until encountering that first nonnumeric and the character of inverse symbol, and obtain this first it is nonnumeric and inverse symbol Character field between character and the end identifier is as the calculating formula.
2. the automatic calculating method under a kind of Text Mode according to claim 1, it is characterised in that:The end mark It is "=", " in total ", " being equal to ", " total ", " total " or its synonym to know symbol.
3. the automatic calculating method under a kind of Text Mode according to claim 1, it is characterised in that:The step 30 In, after obtaining the calculating formula before the end identifier, further it is highlighted acquired calculating formula.
4. the automatic calculating method under a kind of Text Mode according to claim 1, it is characterised in that:The step 40 In, it calls calculator interface to carry out automatic operation to the calculating formula, is that the calculating formula is passed through into the calculator Interface is sent to calculator modules, and calculator modules carry out data parsing and automatic operation according to the calculating formula, transported Calculate result.
5. the automatic calculating method under a kind of Text Mode according to claim 1, it is characterised in that:The step 40 In, operation result is returned and is shown is back to the operation result after the end identifier in the text, And it is highlighted the operation result.
6. the automatic calculating method under a kind of Text Mode according to claim 5, it is characterised in that:User does not need institute When the operation result stated, then continue to input text and cover the operation result, or delete the operation result and after Continuous input text;When user needs to change the operation result, then it is highlighted aobvious cursor to be navigated into cancellation in operation result Show and operation result of modifying;When user receives the operation result, then by cursor be moved to the operation result it Afterwards and cancel being highlighted for operation result.
7. the Automatic computing system under a kind of Text Mode, which is characterized in that it includes:
Input module, for inputting calculating formula in the text mode;
End identifier identification module, for identification end identifier of the calculating formula;
Calculating formula acquisition module, for obtaining the calculating formula before the end identifier;
Computing module returns simultaneously for calling calculator interface to carry out automatic operation to the calculating formula, and by operation result Display is in the text;
Wherein, in the calculating formula acquisition module, obtain the calculating formula before the end identifier, be by It is detected in Text Entry and judges whether the character currently inputted is end identifier, if so, being opened from the end identifier Beginning searches for forward, until encountering that first nonnumeric and the character of inverse symbol, and obtain this first it is nonnumeric and non- Character field between the character of operator and the end identifier is as the calculating formula.
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 CN104881288A (en) 2015-09-02
CN104881288B true 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 (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

Families Citing this family (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
CN110383244B (en) * 2017-12-29 2021-02-12 华为技术有限公司 Calculator operation method and terminal
CN109582630B (en) * 2018-10-26 2023-07-07 深圳点猫科技有限公司 Method and electronic equipment for realizing calculation through search box based on education system

Citations (3)

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

Family Cites Families (2)

* 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

Patent Citations (3)

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

Also Published As

Publication number Publication date
CN104881288A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104881288B (en) Automatic calculating method under Text Mode and system
CN103106027B (en) Touch inputting method in portable device and device
CN111639168B (en) Multi-round dialogue processing method and device, electronic equipment and storage medium
CN106664320A (en) Mechanisms to support service chain graphs in a communication network
CN103488481B (en) Application program control method, terminal equipment and remote control system
CN107122179A (en) The function control method and device of voice
CN104216600B (en) A kind of method and intelligent touch screen terminal equipment of the function that application program is provided
CN105989084B (en) A kind of method and apparatus of reply problem
EP2858044A1 (en) Contactless payment method, device and system
CN110088751A (en) With the search result of dialog interaction service interface integration
CN103891242A (en) System and method for profile based filtering of outgoing information in a mobile environment
CN106528613A (en) Intelligent question-answer (Q&A) method and device
CN104660688B (en) A kind of method and apparatus obtaining log-on message
CN102780653A (en) Method, client and system for fast communication in instant messaging
CN104540108B (en) According to the method and device of user's dialing numbers recommendation information
CN107256509A (en) Price comparing method and device, terminal, server and storage medium
CN106603465A (en) Service account number association method, apparatus, system and terminal equipment
CN109472656B (en) Virtual article display method and device and storage medium
CN106844343A (en) Instruction results screening plant
CN103235923B (en) Method and device for acquiring verification identifier
CN102663055A (en) Method, device and browser for realizing browser navigation
CN107608583A (en) Using an exchange method, device, mobile terminal and computer-readable recording medium
CN107992523A (en) The function choosing-item lookup method and terminal device of mobile application
CN107203265A (en) Information interacting method and device
CN108829686A (en) Translation information display methods, device, equipment and storage medium

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