CN104536817A - Computing method and device - Google Patents

Computing method and device Download PDF

Info

Publication number
CN104536817A
CN104536817A CN201410815431.3A CN201410815431A CN104536817A CN 104536817 A CN104536817 A CN 104536817A CN 201410815431 A CN201410815431 A CN 201410815431A CN 104536817 A CN104536817 A CN 104536817A
Authority
CN
China
Prior art keywords
algorithm
text
target text
user
calculation
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
CN201410815431.3A
Other languages
Chinese (zh)
Other versions
CN104536817B (en
Inventor
韩伟
王文林
杨亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410815431.3A priority Critical patent/CN104536817B/en
Publication of CN104536817A publication Critical patent/CN104536817A/en
Application granted granted Critical
Publication of CN104536817B publication Critical patent/CN104536817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a computing method and device and belongs to the field of interface interaction. The computing method comprises the steps of obtaining a target text selected by a user in a current interface, detecting whether the target text is an arithmetic expression or not, computing the arithmetic expression if a detection result is that the target text is the arithmetic expression, and displaying a computing result obtained through the arithmetic expression. According to the computing method, the target text selected by the user in the current interface is obtained, the arithmetic expression is computed if the target text is the arithmetic expression, and the computing result obtained through the arithmetic expression is displayed, so that the problem that the user needs to quit the current interface and open a calculator to perform computation when encountering a computing scene in the correlated art and accordingly the operating process of the user is complicated is solved, the operation of the user is simplified, and the user experience effect is improved.

Description

Computing method and device
Technical field
The disclosure relates to interface alternation field, particularly a kind of computing method and device.
Background technology
Along with the development of electronic technology, the portable intelligent device such as smart mobile phone are just more and more universal, and the function of smart machine is also lived by more and more abundanter.
For smart mobile phone; user is in the process using smart mobile phone; often can run into the scene needing to carry out simple mathematical computations, such as, after user's supermarket shopping; in the notebook application of smart mobile phone during record shopping cost; if the commodity bought are more, be not easy to mental arithmetic, then user can exit notebook interface; after the counter opened in smart mobile phone calculates and obtains result, then turn back to input results in notebook interface.
In the related, whenever running into calculating scene, need user to exit current interface, open counter and calculate, cause user operation process numerous and diverse, Consumer's Experience is lower.
Summary of the invention
In order to solve in correlation technique whenever run into calculate scene time, need user to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, present disclose provides a kind of computing method and device.Described technical scheme is as follows:
First aspect, provides a kind of computing method, and described method comprises:
Obtain the target text that user selects in current interface;
Whether detect described target text is algorithm;
If testing result is described target text is algorithm, then described algorithm is calculated;
Display calculates the result of calculation that described algorithm obtains.
Optionally, the target text that described acquisition user selects, comprising:
When the circle word operation of user being detected, the content of text that described circle word operation is chosen is retrieved as described target text.
Optionally, the content of text that described acquisition user selects, comprising:
Detect user and whether selection operation is carried out to the operable area pre-set;
When detecting that user operates the selection of the operable area pre-set, the content of text comprised in described operable area is retrieved as described target text.
Optionally, described method also comprises:
Before the content of text comprised in described operable area is retrieved as described target text, detect the combination whether text shown in current interface comprises numeral and mathematical operator;
If testing result is the combination that the text packets shown in current interface accords with containing numeral and mathematical computations, then the viewing area that described numeral is corresponding with the combination of mathematical operator is set to described operable area.
Optionally, whether the described target text of described detection is algorithm, comprising:
Whether detect described target text by the mathematical operation storehouse of calculator application is algorithm.
Optionally, described display calculates the result of calculation that described algorithm obtains, and comprising:
Described target text is replaced and is shown as described result of calculation.
Second aspect, provides a kind of calculation element, and described device comprises:
Text acquisition module, for obtaining the target text that user selects in current interface;
Whether formula detection module is algorithm for detecting described target text;
Computing module, if being described target text for the testing result of described formula detection module is algorithm, then calculates described algorithm;
Display module, for showing the result of calculation calculating described algorithm and obtain.
Optionally, described text acquisition module, comprising:
First obtains submodule, for when the circle word operation of user being detected, the content of text that described circle word operation is chosen is retrieved as described target text.
Optionally, described text acquisition module, comprising:
Second obtains submodule, for when detecting that user operates the selection of the operable area pre-set, the content of text comprised in described operable area is retrieved as described target text.
Optionally, described device also comprises:
Combine detection module, before the content of text comprised in described operable area being retrieved as described target text at described second acquisition submodule, detects the combination whether text shown in current interface comprises numeral and mathematical operator;
Region arranges module, if the testing result for described combine detection module is the text packets shown in current interface contain numeral and the combination of mathematical operator, then the viewing area that described numeral is corresponding with the combination of mathematical operator is set to described operable area.
Optionally, whether described formula detection module is algorithm for being detected described target text by the mathematical operation storehouse of calculator application.
Optionally, described display module, is shown as described result of calculation for being replaced by described target text.
The third aspect, provides a kind of calculation element, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the target text that user selects in current interface;
Whether detect described target text is algorithm;
If testing result is described target text is algorithm, then described algorithm is calculated;
Display calculates the result of calculation that described algorithm obtains.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of computing method according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of computing method according to another exemplary embodiment;
Fig. 3 is the operation chart of the circle word operation according to another exemplary embodiment;
Fig. 4 is the result of calculation option schematic diagram according to another exemplary embodiment;
Fig. 5 is the process flow diagram of a kind of computing method according to another exemplary embodiment;
Fig. 6 is the operation chart of the selection operation according to another exemplary embodiment;
Fig. 7 is the result of calculation option schematic diagram according to another exemplary embodiment;
Fig. 8 is the block diagram of a kind of calculation element according to an exemplary embodiment;
Fig. 9 is the block diagram of a kind of calculation element according to another exemplary embodiment;
Figure 10 is the block diagram of a kind of calculation element according to an exemplary embodiment.
Embodiment
Here will perform explanation to exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of a kind of computing method according to an exemplary embodiment.These computing method are used in smart machine, and this smart machine can be smart mobile phone, panel computer and E-book reader etc.As shown in Figure 1, these computing method can comprise the following steps.
In a step 102, the target text that user selects in current interface is obtained.
At step 104, whether detect this target text is algorithm.
In step 106, if testing result is algorithm for this target text, then this algorithm is calculated.
In step 108, display calculates the result of calculation that this algorithm obtains.
Such as, when user uses the notebook application recorded information in smart mobile phone, if run into the situation of mathematical computations, simple algorithm can be inputted in the interface of notebook, such as add, subtract, the formula such as multiplication and division, and the algorithm choosing oneself to input, now, smart mobile phone is after detecting that content that user chooses is algorithm, automatically calculate this algorithm and show result of calculation, user does not need to perform manually to exit current interface and open the operation such as calculator application and namely can complete mathematical computations, thus simplifies the operation steps of user.
In sum, in the computing method that disclosure embodiment provides, by obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Fig. 2 is the process flow diagram of a kind of computing method according to another exemplary embodiment.These computing method are used in smart machine, and this smart machine can be smart mobile phone, panel computer and E-book reader etc.As shown in Figure 2, these computing method can comprise the following steps.
In step 202., when the circle word operation of user being detected, the content of text that this circle word operation is chosen is retrieved as target text.
User in the process using smart machine, at manual inputting mathematical formula, or, when finding the algorithm that can carry out directly calculating, the content of text of this algorithm can be chosen by the mode of circle word operation.Such as, the notebook recorded information in smart mobile phone is being used for user, user have purchased a kettle, four water tumblers and a box tealeaves, wherein, 50.00 yuan, kettle, water tumbler 12.50 yuan, tealeaves 88.00 yuan, when user uses notebook record to buy the total cost of these commodity, in the editing interface of notebook application, directly can input the sum formula " 50+12.5*4+88 " of the price of each commodity, and choose this sum formula by circle word operation.Wherein, please refer to the operation chart of the circle word operation shown in Fig. 3, user is when performing circle word operation, can grow by the formula position in screen, there are two slide blocks that can drag 320, content between these two slide blocks 320 is the content of text that user chooses, and user can choose this sum formula by the position dragging two slide blocks.
In step 204, whether detect this target text is algorithm.
Counter is one of modal application in the smart machines such as smart mobile phone, and in the scheme that disclosure embodiment provides, whether this target text is detected in the mathematical operation storehouse that calculator application can be utilized to provide is algorithm.
Such as, after the target text that smart mobile phone acquisition user chooses, target text being sent to the mathematical operation storehouse of calculator application, whether be algorithm, and return testing result if detecting this target text by mathematical operation storehouse.
In step 206, if testing result is algorithm for this target text, then this algorithm is calculated.
Result of calculation option schematic diagram as shown in Figure 4, if the mathematical operation storehouse of calculator application returns results show that this target text is algorithm, in the text menu that this algorithm is corresponding, then add the option 340 of " result of calculation ", when user clicks this option, smart mobile phone calculates this algorithm.
In a step 208, display calculates the result of calculation that this algorithm obtains.
Optionally, this target text can be replaced the result of calculation being shown as step 206 and obtaining by smart machine.
As shown in Figure 4, wherein, sum formula is " 50+12.5*4+88 ", and its result of calculation is 188.00, and sum formula " 50+12.5*4+88 " is replaced with numeral " 188.00 " by smart mobile phone.
It should be noted that, disclosure embodiment such scheme is described for user's inputting mathematical formula in notebook, in actual applications, scheme shown in disclosure embodiment can also be applied in can carry out arbitrarily in the scene of text selecting, and the algorithm calculated not necessarily needs user to input, such as comprise in the webpage of algorithm at certain, if user wants the result of calculation knowing this algorithm, namely circle word operation can be carried out to this algorithm, to obtain and to check this result of calculation.In addition, when showing result of calculation, also can not replace algorithm, assigned address display result of calculation directly in screen, such as, comprise in the webpage of algorithm at certain, user chooses this algorithm and seletion calculation by circle word operation, and smart mobile phone shows the result of calculation of this algorithm near algorithm with the form of floating frame.For the mode of display result of calculation, disclosure embodiment does not limit.
In sum, in the computing method that disclosure embodiment provides, by obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Fig. 5 is the process flow diagram of a kind of computing method according to another exemplary embodiment.These computing method are used in smart machine, and this smart machine can be smart mobile phone, panel computer and E-book reader etc.As shown in Figure 5, these computing method can comprise the following steps.
In step 502, when detecting that user operates the selection of the operable area pre-set, the content of text comprised in this operable area is retrieved as this target text.
Smart machine can detect user and whether carry out selection operation to the operable area pre-set; If so, the content of text then comprised in this operable area is retrieved as this target text.
Optionally, smart machine, before the content of text comprised in this operable area is retrieved as this target text, detects the combination whether text shown in current interface comprises numeral and mathematical operator; If testing result is the combination that the text packets shown in current interface accords with containing numeral and mathematical computations, then the viewing area that this numeral is corresponding with the combination of mathematical operator is set to this operable area by smart machine.
Such as, the notebook recorded information in smart mobile phone is being used for user, user have purchased a kettle, four water tumblers and a box tealeaves, wherein, 50.00 yuan, kettle, water tumbler 12.50 yuan one, tealeaves 88.00 yuan, please refer to the operation chart of the selection operation shown in Fig. 6, wherein, when user uses notebook record to buy the total cost of these commodity, the sum formula " 50+12.5*4+88 " of the price of each commodity directly can be inputted in the editing interface of notebook application, now, smart mobile phone detects in this sum formula " 50+12.5*4+88 " in this editing interface and both comprised numeral, also mathematical operator is comprised, this sum formula can be defined as the combination that numeral accords with mathematical computations, the region at this sum formula place is set to operable area 620 simultaneously, when user clicks this region 620, namely the content of text that user selects this sum formula and comprises is thought.Wherein, for the ease of user operation, operable area can be arranged obvious mark, such as, underscore be added to the content of text in operable area 620.
In step 504, whether detect this target text is algorithm.
Counter is one of modal application in the smart machines such as smart mobile phone, and in the scheme that disclosure embodiment provides, the mathematical operation storehouse utilizing calculator application to provide detects whether target text is algorithm.
Such as, after the target text that smart mobile phone acquisition user chooses, target text being sent to the mathematical operation storehouse of calculator application, whether be algorithm, and return testing result if detecting this target text by mathematical operation storehouse.
In step 506, if testing result is algorithm for this target text, then this algorithm is calculated.
Result of calculation option schematic diagram as shown in Figure 7, if the mathematical operation storehouse of calculator application returns results show that this target text is algorithm, in the text menu that this algorithm ejected is corresponding, then add the option 640 of " result of calculation ", when user clicks this option 640, smart mobile phone calculates this algorithm.
In step 508, display calculates the result of calculation that this algorithm obtains.
Optionally, this target text can be replaced the result of calculation being shown as step 506 and obtaining by smart machine.
As shown in Figure 7, wherein, sum formula is " 50+12.5*4+88 ", and its result of calculation is 188.00, and sum formula " 50+12.5*4+88 " is replaced with numeral " 188.00 " by smart mobile phone.
It should be noted that, disclosure embodiment such scheme is described for user's inputting mathematical formula in notebook, in actual applications, scheme shown in disclosure embodiment can also be applied in can carry out arbitrarily in the scene of text selecting, and the algorithm calculated not necessarily needs user to input, such as comprise in the webpage of algorithm at certain, if user wants the result of calculation knowing this algorithm, namely circle word operation can be carried out to this algorithm, to obtain and to check this result of calculation.In addition, when showing result of calculation, also can not replace algorithm, assigned address display result of calculation directly in screen, such as, comprise in the webpage of algorithm at certain, user chooses this algorithm and seletion calculation by the operable area clicking this algorithm corresponding, and smart mobile phone shows the result of calculation of this algorithm near algorithm with the form of floating frame.For the mode of display result of calculation, disclosure embodiment does not limit.
In sum, in the computing method that disclosure embodiment provides, by obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.For the details do not disclosed in disclosure device embodiment, please refer to disclosure embodiment of the method.
Fig. 8 is the block diagram of a kind of calculation element according to an exemplary embodiment, and as shown in Figure 8, this calculation element includes but not limited to: text acquisition module 801, formula detection module 802, computing module 803 and display module 804;
Described text acquisition module 801 is set to the target text selected in current interface for obtaining user;
Whether described formula detection module 802 is set to for detecting described target text is algorithm;
If it be described target text is algorithm that described computing module 803 is set to for the testing result of described formula detection module 802, then described algorithm is calculated;
Described display module 804 is set to for showing the result of calculation calculating described algorithm and obtain.
In sum, at the calculation element that disclosure embodiment provides, by obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Fig. 9 is the block diagram of a kind of calculation element according to another exemplary embodiment, and as shown in Figure 9, this calculation element includes but not limited to: text acquisition module 801, formula detection module 802, computing module 803 and display module 804;
Described text acquisition module 801 is set to the target text selected in current interface for obtaining user;
Whether described formula detection module 802 is set to for detecting described target text is algorithm;
If it be described target text is algorithm that described computing module 803 is set to for the testing result of described formula detection module 802, then described algorithm is calculated;
Described display module 804 is set to for showing the result of calculation calculating described algorithm and obtain.
Optionally, described text acquisition module 801, comprising: first obtains submodule 801a;
Described first obtains submodule 801a is set to, for when the circle word operation of user being detected, the content of text that described circle word operation is chosen is retrieved as described target text.
Optionally, described text acquisition module 801, comprising: second obtains submodule 801b;
Described second obtains submodule 801b is set to, for when detecting that user operates the selection of the operable area pre-set, the content of text comprised in described operable area is retrieved as described target text.
Optionally, described device also comprises: combine detection module 805 and region arrange module 806;
Described combine detection module 805 is arranged in use in described second and obtains before the content of text comprised in described operable area is retrieved as described target text by submodule 801b, detects the combination whether text shown in current interface comprises numeral and mathematical operator;
If described region arranges module 806 and is set to for the testing result of described combine detection module 805 be that the text packets shown in current interface contains numeral and the combination of mathematical operator, then the viewing area that described numeral is corresponding with the combination of mathematical operator is set to described operable area.
Optionally, whether described formula detection module 802 is set to for being detected described target text by the mathematical operation storehouse of calculator application is algorithm.
Optionally, described display module 804 is set to be shown as described result of calculation for being replaced by described target text.
In sum, at the calculation element that disclosure embodiment provides, by obtaining the target text that user selects in current interface, if detect, this target text is algorithm, then this algorithm is calculated, display calculates the result of calculation that this algorithm obtains, user only needs in current interface, select algorithm namely can complete calculating, do not need to perform and manually exit current interface and open the operations such as calculator application, solve in correlation technique whenever run into calculate scene time, user is needed to exit current interface, open counter and calculate, cause the problem that user operation process is numerous and diverse, reach simplification user operation, improve the effect of Consumer's Experience.
Figure 10 is the block diagram of a kind of application interface display device 1000 according to an exemplary embodiment.Such as, device 1000 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, storer 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor module 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1018 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Storer 1004 is configured to store various types of data to be supported in the operation of device 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.Also store one or more module in storer 1004, this one or more module is configured to be performed by this one or more processor 1020, to complete all or part of step of above-mentioned Fig. 1,2 or 5 arbitrary shown methods.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between described device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loudspeaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1014 comprises one or more sensor, for providing the state estimation of various aspects for device 1000.Such as, sensor module 1014 can detect the opening/closing state of device 1000, the relative positioning of assembly, such as described assembly is display and the keypad of device 1000, the position of all right pick-up unit 1000 of sensor module 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 1000, the temperature variation of device 1000 orientation or acceleration/deceleration and device 1000.Sensor module 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other-end element.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1004 of instruction, above-mentioned instruction can perform said method by the processor 1018 of device 1000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations performs detailed description in about the embodiment of the method, will not elaborate explanation herein.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can perform various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. computing method, is characterized in that, described method comprises:
Obtain the target text that user selects in current interface;
Whether detect described target text is algorithm;
If testing result is described target text is algorithm, then described algorithm is calculated;
Display calculates the result of calculation that described algorithm obtains.
2. method according to claim 1, is characterized in that, the target text that described acquisition user selects, and comprising:
When the circle word operation of user being detected, the content of text that described circle word operation is chosen is retrieved as described target text.
3. method according to claim 1, is characterized in that, the content of text that described acquisition user selects, and comprising:
Detect user and whether selection operation is carried out to the operable area pre-set;
When detecting that user operates the selection of the operable area pre-set, the content of text comprised in described operable area is retrieved as described target text.
4. method according to claim 3, is characterized in that, described method also comprises:
Before the content of text comprised in described operable area is retrieved as described target text, detect the combination whether text shown in current interface comprises numeral and mathematical operator;
If testing result is the combination that the text packets shown in current interface accords with containing numeral and mathematical computations, then the viewing area that described numeral is corresponding with the combination of mathematical operator is set to described operable area.
5. method according to claim 1, is characterized in that, whether the described target text of described detection is algorithm, comprising:
Whether detect described target text by the mathematical operation storehouse of calculator application is algorithm.
6. method according to claim 1, is characterized in that, described display calculates the result of calculation that described algorithm obtains, and comprising:
Described target text is replaced and is shown as described result of calculation.
7. a calculation element, is characterized in that, described device comprises:
Text acquisition module, for obtaining the target text that user selects in current interface;
Whether formula detection module is algorithm for detecting described target text;
Computing module, if being described target text for the testing result of described formula detection module is algorithm, then calculates described algorithm;
Display module, for showing the result of calculation calculating described algorithm and obtain.
8. device according to claim 7, is characterized in that, described text acquisition module, comprising:
First obtains submodule, for when the circle word operation of user being detected, the content of text that described circle word operation is chosen is retrieved as described target text.
9. device according to claim 7, is characterized in that, described text acquisition module, comprising:
Second obtains submodule, for when detecting that user operates the selection of the operable area pre-set, the content of text comprised in described operable area is retrieved as described target text.
10. device according to claim 9, is characterized in that, described device also comprises:
Combine detection module, before the content of text comprised in described operable area being retrieved as described target text at described second acquisition submodule, detects the combination whether text shown in current interface comprises numeral and mathematical operator;
Region arranges module, if the testing result for described combine detection module is the text packets shown in current interface contain numeral and the combination of mathematical operator, then the viewing area that described numeral is corresponding with the combination of mathematical operator is set to described operable area.
11. devices according to claim 7, is characterized in that,
Whether described formula detection module is algorithm for being detected described target text by the mathematical operation storehouse of calculator application.
12. methods according to claim 7, is characterized in that,
Described display module, is shown as described result of calculation for being replaced by described target text.
13. 1 kinds of calculation elements, is characterized in that, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the target text that user selects in current interface;
Whether detect described target text is algorithm;
If testing result is described target text is algorithm, then described algorithm is calculated;
Display calculates the result of calculation that described algorithm obtains.
CN201410815431.3A 2014-12-24 2014-12-24 Calculation method and device Active CN104536817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410815431.3A CN104536817B (en) 2014-12-24 2014-12-24 Calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410815431.3A CN104536817B (en) 2014-12-24 2014-12-24 Calculation method and device

Publications (2)

Publication Number Publication Date
CN104536817A true CN104536817A (en) 2015-04-22
CN104536817B CN104536817B (en) 2019-03-15

Family

ID=52852349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410815431.3A Active CN104536817B (en) 2014-12-24 2014-12-24 Calculation method and device

Country Status (1)

Country Link
CN (1) CN104536817B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881288A (en) * 2015-06-01 2015-09-02 厦门美图移动科技有限公司 Automatic computing method and system in text mode
CN105630481A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Data processing method, data processing device and terminal
CN105700845A (en) * 2016-02-26 2016-06-22 努比亚技术有限公司 Method and device for displaying digit arithmetic result in document
CN105843537A (en) * 2016-03-21 2016-08-10 乐视网信息技术(北京)股份有限公司 Method and apparatus for previewing calculation process by terminal
CN107329844A (en) * 2017-06-30 2017-11-07 广东欧珀移动通信有限公司 A kind of method for message interaction, device, storage medium and terminal
CN107566648A (en) * 2017-09-06 2018-01-09 广东欧珀移动通信有限公司 Using the method, apparatus and terminal of dialing keyboard
CN107632849A (en) * 2016-07-14 2018-01-26 广州市动景计算机科技有限公司 Client and page data resolver and method
CN107844245A (en) * 2017-11-20 2018-03-27 珠海市魅族科技有限公司 Computation processing method, device, terminal device and computer-readable recording medium
CN107943391A (en) * 2017-11-15 2018-04-20 宁波麦博韦尔移动电话有限公司 A kind of long-press quick calculation method and system
WO2019127439A1 (en) * 2017-12-29 2019-07-04 华为技术有限公司 Calculator operation method and terminal
WO2020093300A1 (en) * 2018-11-08 2020-05-14 深圳市欢太科技有限公司 Data displaying method for terminal device and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115056A1 (en) * 2006-11-14 2008-05-15 Microsoft Corporation Providing calculations within a text editor
CN102221971A (en) * 2010-06-09 2011-10-19 微软公司 Free form mathematic calculation
CN103902051A (en) * 2014-04-10 2014-07-02 天津三星通信技术研究有限公司 Input method and system for implementing same
CN104063063A (en) * 2014-06-05 2014-09-24 北京搜狗科技发展有限公司 Mathematical calculation input method of input method and input method system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115056A1 (en) * 2006-11-14 2008-05-15 Microsoft Corporation Providing calculations within a text editor
CN102221971A (en) * 2010-06-09 2011-10-19 微软公司 Free form mathematic calculation
CN103902051A (en) * 2014-04-10 2014-07-02 天津三星通信技术研究有限公司 Input method and system for implementing same
CN104063063A (en) * 2014-06-05 2014-09-24 北京搜狗科技发展有限公司 Mathematical calculation input method of input method and input method system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630481A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Data processing method, data processing device and terminal
CN104881288A (en) * 2015-06-01 2015-09-02 厦门美图移动科技有限公司 Automatic computing method and system in text mode
CN104881288B (en) * 2015-06-01 2018-09-21 厦门美图移动科技有限公司 Automatic calculating method under Text Mode and system
CN105700845A (en) * 2016-02-26 2016-06-22 努比亚技术有限公司 Method and device for displaying digit arithmetic result in document
CN105843537A (en) * 2016-03-21 2016-08-10 乐视网信息技术(北京)股份有限公司 Method and apparatus for previewing calculation process by terminal
CN107632849A (en) * 2016-07-14 2018-01-26 广州市动景计算机科技有限公司 Client and page data resolver and method
CN107329844A (en) * 2017-06-30 2017-11-07 广东欧珀移动通信有限公司 A kind of method for message interaction, device, storage medium and terminal
CN107566648A (en) * 2017-09-06 2018-01-09 广东欧珀移动通信有限公司 Using the method, apparatus and terminal of dialing keyboard
CN107943391A (en) * 2017-11-15 2018-04-20 宁波麦博韦尔移动电话有限公司 A kind of long-press quick calculation method and system
CN107844245A (en) * 2017-11-20 2018-03-27 珠海市魅族科技有限公司 Computation processing method, device, terminal device and computer-readable recording medium
WO2019127439A1 (en) * 2017-12-29 2019-07-04 华为技术有限公司 Calculator operation method and terminal
WO2020093300A1 (en) * 2018-11-08 2020-05-14 深圳市欢太科技有限公司 Data displaying method for terminal device and terminal device

Also Published As

Publication number Publication date
CN104536817B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN104536817A (en) Computing method and device
CN104731688B (en) Point out the method and device of reading progress
CN105512909A (en) Commodity recommendation method apparatus
CN104238911B (en) Load icon display method and device
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN105138259A (en) Operation execution method and operation execution device
CN104238875A (en) Application corner mark addition method and device
CN104965704A (en) Information display method and apparatus
CN104133623B (en) Page zoom-in and zoom-out method and apparatus
CN104679599A (en) Application program duplicating method and device
CN104166689A (en) Presentation method and device for electronic book
CN105487805A (en) Object operating method and device
CN104049864B (en) object control method and device
CN104462418A (en) Page displaying method and device and electronic device
CN104517222A (en) Method and device for setting intelligent hardware commodities on tops and displaying intelligent hardware commodities
CN104461282A (en) Key processing method, key processing device and key processing equipment
CN104536659B (en) Object information processing method and device
CN104536660A (en) Interface displaying method and device
CN104238890A (en) Text display method and device
CN104461348A (en) Method and device for selecting information
CN104216973A (en) Data search method and data search device
CN106789551A (en) Conversation message methods of exhibiting and device
CN105511777A (en) Session display method and device of touch display screen
CN104516951A (en) Page display method and apparatus and electronic device
CN105468281A (en) Setup interface display method and device

Legal Events

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