WO2019047119A1 - Chat interface-based calculator use method and device and storage medium - Google Patents

Chat interface-based calculator use method and device and storage medium Download PDF

Info

Publication number
WO2019047119A1
WO2019047119A1 PCT/CN2017/100944 CN2017100944W WO2019047119A1 WO 2019047119 A1 WO2019047119 A1 WO 2019047119A1 CN 2017100944 W CN2017100944 W CN 2017100944W WO 2019047119 A1 WO2019047119 A1 WO 2019047119A1
Authority
WO
WIPO (PCT)
Prior art keywords
calculator
interface
chat
user
calculation formula
Prior art date
Application number
PCT/CN2017/100944
Other languages
French (fr)
Chinese (zh)
Inventor
黄文菲
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/100944 priority Critical patent/WO2019047119A1/en
Publication of WO2019047119A1 publication Critical patent/WO2019047119A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Abstract

The invention discloses a method, a device and a storage medium for using a calculator based on a chat interface, the method comprising: when displaying a chat interface of an application, the mobile terminal receives a trigger instruction input by the user in the chat interface, according to The triggering instruction acquires a calling interface of the calculator control; determining an area to be displayed in the chat interface according to the triggering instruction; calling the calling interface according to the to-be-displayed area, so that the calculator control is displayed on the waiting In the display area. Since the user can directly call the calculator control through a simple trigger instruction in the chat interface, there is no need to switch back and forth between the calculator application and the chat application for calculation, and the operation is convenient and the user experience is improved.

Description

 Method, device and storage medium for using calculator based on chat interface

The present invention relates to the field of chat interface processing technologies, and in particular, to a method, a device and a storage medium for using a calculator based on a chat interface.

Background technique

With the development of technology, people are all about efficiency, so the calculator was born. Because the calculator is fast and accurate, and almost all mobile phones come with a calculator software, it brings great convenience. For those who do not have strong oral calculation skills, the calculator is an essential weapon. When many scenes in life (such as shopping budget, need to count some data, etc.) encounter difficult values, use the phone to open the calculator software anytime, anywhere, you can enter values, arithmetic symbols, and output accurate results.

Most people now have the habit of using social software to chat, such as using Tencent QQ, WeChat and so on. During the chat process, I often talk about the content related to numerical calculations. Although the calculator that comes with the mobile phone is convenient to use, it is also inconvenient. For example, when using WeChat interface chat or WeChat group chat, when chatting with the chat object and the customer, the money or other numbers need to calculate the result in real time, the following cumbersome steps occur:

1. Exit WeChat and hang WeChat in the background;

2. Find the calculator application on the desktop;

3. After calculating the result, pull up the WeChat chat interface and send the message to the chat object.

During the above operation, perhaps the user has missed a lot of chat content. Especially when calculating according to part of the chat content, the user needs to switch back and forth between the calculator and the chat interface several times because the data cannot be remembered, which increases the trouble and the user experience is poor.

Therefore, the outstanding drawback in the prior art is that the operation steps are cumbersome and the calculator cannot be used in the chat interface.

Summary of the invention

The main purpose of the present invention is to provide a method, a device and a storage medium for using a calculator based on a chat interface, aiming at solving the technical problem that the calculator cannot be used in the chat interface in the prior art.

To achieve the above object, the present invention provides a method for using a calculator based on a chat interface, the method comprising the following steps:

When displaying the chat interface of the application, the mobile terminal receives a trigger instruction input by the user in the chat interface, and acquires a call interface of the calculator control according to the trigger instruction;

Determining an area to be displayed in the chat interface according to the triggering instruction;

And calling the call interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed.

Preferably, after the displaying the calculator control in the area to be displayed, the method further includes:

Obtaining a trigger position corresponding to the triggering instruction, determining whether the triggering location belongs to a chat content area, and acquiring the character information in the chat content area when the triggering location belongs to the chat content area;

Semanticly identifying the character information;

A calculation formula is obtained based on the recognition result, and the calculation formula is added to the calculator control.

Preferably, the semantically identifying the character information includes:

Determining whether the character information includes a lowercase digit, and when the lowercase digit is included, acquiring an operation value including the lowercase digit in the character information, and performing semantic recognition on an operation relationship corresponding to the operation value.

Preferably, before the determining whether the character information includes a lowercase digit, the method further includes:

Obtaining an uppercase number in the character information, converting the uppercase number to a lowercase number.

Preferably, the formula is obtained according to the recognition result, and the calculation formula is added to the calculator control, which specifically includes:

When the recognition result is that the recognition is successful, the first formula is generated according to the operation value and the operation relationship, and the first formula is added to the calculator control as the calculation formula.

Preferably, after the adding the first formula as the calculation formula to the calculator control, the method further includes:

Receiving a modification instruction input by the user, modifying the calculation formula in the calculator control.

Preferably, after the semantically identifying the character information, the method further includes:

When the recognition result is recognition failure, adding the operation value to the calculator control;

The formula editing instruction input by the user is received, and the corresponding calculation formula is edited according to the operation value.

Preferably, after the adding the calculation formula to the calculator control, the method further includes:

Receiving a confirmation calculation instruction input by the user, calculating a calculation formula in the calculator control, and adding the calculation result to the calculator control.

In addition, in order to achieve the above object, the present invention also provides a calculator interface-based calculator using device, the device comprising: a memory, a processor, and a chat based on the memory and operable on the processor The calculator of the interface uses a program that implements the steps of the chat interface-based calculator usage method when the chat interface-based calculator is executed by the processor.

In addition, in order to achieve the above object, the present invention further provides a storage medium on which a calculator interface usage program based on a chat interface is stored, and the chat interface-based calculator usage program is implemented by a processor to implement the The steps of the method of using the calculator based on the chat interface.

In the present invention, when the mobile terminal displays the chat interface of the application, receiving a trigger instruction input by the user in the chat interface, acquiring a call interface of the calculator control according to the trigger instruction; and chatting according to the trigger instruction Determining an area to be displayed in the interface; calling the calling interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed. Since the user can directly call the calculator control through a simple trigger instruction in the chat interface, there is no need to switch back and forth between the calculator application and the chat application for calculation, and the operation is convenient and the user experience is improved.

DRAWINGS

1 is a schematic structural diagram of a device for using a chat interface based on a hardware operating environment according to an embodiment of the present invention;

2 is a schematic flowchart of a first embodiment of a method for using a chat interface based calculator according to the present invention;

3 is a schematic flowchart of a second embodiment of a method for using a chat interface based calculator according to the present invention;

4 is a schematic flow chart of a third embodiment of a method for using a chat interface based calculator according to the present invention.

The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.

Detailed ways

It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

1 is a schematic structural diagram of a device for using a chat interface based on a hardware operating environment according to an embodiment of the present invention.

As shown in FIG. 1, the chat interface-based calculator using device may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a chat interface-based calculator usage device that is independent of the processor 1001 described above.

The chat interface based calculator usage device can be a server or other physical device connected to the network.

It will be understood by those skilled in the art that the structure shown in FIG. 1 does not constitute a limitation of the chat interface-based calculator using device, and may include more or less components than those illustrated, or may combine certain components. Or different parts arrangement.

As shown in FIG. 1, a memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a chat interface-based calculator usage program.

In the chat interface-based calculator usage device shown in FIG. 1 , the network interface 1004 is mainly used to connect to other servers for data communication with the other servers; the user interface 1003 is mainly used to connect the user's terminal and perform data with the terminal. The communication interface-based calculator usage device invokes the chat interface-based calculator usage program stored in the memory 1005 through the processor 1001, and performs the following operations:

When displaying the chat interface of the application, the mobile terminal receives a trigger instruction input by the user in the chat interface, and acquires a call interface of the calculator control according to the trigger instruction;

Determining an area to be displayed in the chat interface according to the triggering instruction;

And calling the call interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

Obtaining a trigger position corresponding to the triggering instruction, determining whether the triggering location belongs to a chat content area, and acquiring the character information in the chat content area when the triggering location belongs to the chat content area;

Semanticly identifying the character information;

A calculation formula is obtained based on the recognition result, and the calculation formula is added to the calculator control.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

Determining whether the character information includes a lowercase digit, and when the lowercase digit is included, acquiring an operation value including the lowercase digit in the character information, and performing semantic recognition on an operation relationship corresponding to the operation value.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

Obtaining an uppercase number in the character information, converting the uppercase number to a lowercase number.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

When the recognition result is that the recognition is successful, the first formula is generated according to the operation value and the operation relationship, and the first formula is added to the calculator control as the calculation formula.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

Receiving a modification instruction input by the user, modifying the calculation formula in the calculator control.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

When the recognition result is recognition failure, adding the operation value to the calculator control;

The formula editing instruction input by the user is received, and the corresponding calculation formula is edited according to the operation value.

Further, the processor 1001 may call the chat interface-based calculator usage program stored in the memory 1005, and further perform the following operations:

Receiving a confirmation calculation instruction input by the user, calculating a calculation formula in the calculator control, and adding the calculation result to the calculator control.

In this embodiment, when the mobile terminal displays the chat interface of the application, receiving a trigger instruction input by the user in the chat interface, acquiring a call interface of the calculator control according to the trigger instruction; Determining an area to be displayed in the chat interface; calling the calling interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed. Since the user can directly call the calculator control through a simple trigger instruction in the chat interface, there is no need to switch back and forth between the calculator application and the chat application for calculation, and the operation is convenient and the user experience is improved.

Based on the above hardware structure, an embodiment of a method for using a calculator based on a chat interface of the present invention is proposed.

Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for using a chat interface based calculator according to the present invention.

In the first embodiment, the chat interface-based calculator usage method includes the following steps:

Step S10: When displaying the chat interface of the application, the mobile terminal receives a trigger instruction input by the user in the chat interface, and acquires a call interface of the calculator control according to the trigger instruction;

It should be noted that when the user uses the mobile terminal to chat with the chat object in the chat interface of the application, the mobile terminal includes a mobile smart device such as a mobile phone or a tablet computer, which is not limited in this embodiment. Including chat applications such as Tencent QQ and WeChat, this embodiment does not limit this. When the user talks with the chat object that the money or other digits need to calculate the result in real time, in the prior art, it is generally required to exit the chat interface, enter the calculator application configured by the mobile terminal, and input the operation value and the operation symbol. Waiting for outputting the calculation result, exiting the calculator application, and then entering the chat interface. If the calculation value calculated by the user is derived from the chat content in the chat interface, the user needs to calculate in the data because the user cannot remember the data. The application and the chat interface can be switched back and forth several times in order to send the calculation results to the chat object. The calculation process is too cumbersome, and the present embodiment directly performs calculations on the chat interface, the process is simple, the calculation efficiency is improved, and the user experience is also improved.

It should be understood that, in order to invoke the calculator control in the chat interface, the calculator control is pre-configured in the application, and a call interface corresponding to the calculator control is set, through the call interface. The calculator control can be invoked to the chat interface. The triggering instruction corresponds to the calling interface of the calculator control. When the triggering instruction is received, the calculator control may be invoked by searching for a calling interface corresponding to the triggering instruction according to the triggering instruction.

It can be understood that, when the user needs to perform calculation, the triggering instruction may be issued, and the triggering instruction may be long pressing a piece of chat content, or preset a calculator shortcut key, and clicking the calculator shortcut key as the user The triggering instruction can set various types of triggering instructions, which is not limited in this embodiment.

Step S20: determining an area to be displayed in the chat interface according to the triggering instruction;

It should be noted that, after obtaining the calling interface corresponding to the calculator control, in order to display the calculator control in the chat interface, a field to be displayed is selected in advance to display the calculator control. The area to be displayed is determined according to the triggering instruction, and the blank area in the chat interface is generally used as the to-be-displayed area. Of course, the area to be displayed may also be selected in other areas in the chat interface. This embodiment does not limit this.

Step S30: Calling the calling interface according to the to-be-displayed area, so that the calculator control is displayed in the to-be-displayed area.

It can be understood that, after determining the area to be displayed of the calculator control, calling the calculator control through the calling interface, and displaying the calculator control in the area to be displayed, calling the At the same time as the calculator control, the calculator application can be launched through the calculator control.

In this embodiment, when the mobile terminal displays the chat interface of the application, receiving a trigger instruction input by the user in the chat interface, acquiring a call interface of the calculator control according to the trigger instruction; Determining an area to be displayed in the chat interface; calling the calling interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed. Since the user can directly call the calculator control through a simple trigger instruction in the chat interface, there is no need to switch back and forth between the calculator application and the chat application for calculation, and the operation is convenient and the user experience is improved.

Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a second embodiment of a method for using a chat interface based calculator according to the present invention. Based on the embodiment shown in FIG. 2, a second implementation of a method for using a chat interface based calculator of the present invention is proposed. example.

In the second embodiment, after the step S30, the method further includes:

Step S40: Acquire a trigger position corresponding to the trigger instruction, and determine whether the trigger position belongs to a chat content area, and when the trigger position belongs to the chat content area, acquire character information in the chat content area;

It can be understood that the triggering instruction may be any position on the screen of the mobile terminal. In this embodiment, different calculation modes are provided for the user according to the trigger position corresponding to the triggering instruction. After acquiring the trigger position corresponding to the trigger instruction, determining whether the trigger position belongs to the chat content area. The chat interface includes a chat content area and a non-chat content area, where the chat content area is an area containing character information in the chat interface. When the user performs the calculation on the chat interface, the content that needs to be calculated may be sent to the chat object, and a trigger instruction may be sent in the area corresponding to the chat content, and the chat content may be identified, thereby automatically recognizing the calculation formula without the user. Manually enter calculations to improve the user experience. If the user does not send the content to be calculated to the chat object, the identification cannot be performed, and the user needs to manually input the calculation formula.

It should be noted that when the trigger location belongs to the chat content area, it indicates that the chat content is directly recognized, and the calculation formula is obtained, and the calculation formula can be automatically obtained, without the user manually inputting the operation value and the operation symbol. Improve user experience.

Step S50: Perform semantic recognition on the character information.

It should be noted that, after the character information is acquired, since the character information may include content that the user needs to calculate, for example, the character information is: 1689 table tennis balls are bought today, each 3.4 yuan, and 8 characters are played. Fold, how much is the total cost? The character information is semantically recognized, and the calculation formula included in the character information is analyzed. For example, the calculation formula is listed for the character information: 1689×3.4×0.8.

Further, the step of performing semantic recognition on the character information includes:

Step S501: determining whether the character information includes a lowercase digit, and when the lowercase digit is included, acquiring an operation value including the lowercase digit in the character information, and performing semantic recognition on an operation relationship corresponding to the operation value.

It can be understood that the calculation formula can be obtained from the character information only when the character information includes a number. When the character information does not include a number, it is not necessary to calculate the character information, thereby eliminating the need for Semantic recognition of it. In order to uniformly judge whether the character information contains a number, a lowercase number is used as a judgment standard.

It should be understood that when there is a lowercase number in the character information, since the user inputs a trigger instruction at the lowercase number, it is highly probable that the user needs to calculate the content in the character information, in determining the character information. After the lowercase number is included, the operation value including the lowercase number in the character information is obtained, and the operation value is data used for participating in the calculation, and the operation relationship corresponding to the operation value is performed. Semantic recognition, the operation relationship refers to an operation relationship such as addition, subtraction, multiplication, division and division. For example, the character information is: 168 table tennis balls are purchased, and each is 2 yuan. Then, it can be determined that the character information includes the numbers 1, 2, 6, and 8, and the operation values 168 and 2 including the lowercase digits in the character information are obtained, and the operation relationship corresponding to the operation values 168 and 2 is semantically performed. Identification, when the recognition is successful, it is found that the operation relationship between 168 and 2 is multiplication.

Further, before the step S501, the method further includes:

Step S500: Acquire an uppercase number in the character information, and convert the uppercase number into a lowercase number.

It should be noted that when some users input the character information, they will input uppercase numbers or input uppercase and lowercase numbers. At this time, the uppercase digits input by the user will be converted into lowercase digits to unify the data. The format facilitates semantic recognition of the character information. Of course, when the uppercase number is not included in the character information, no conversion is performed.

Step S60: Calculate a calculation formula according to the recognition result, and add the calculation formula to the calculator control.

It can be understood that after the character information is semantically recognized and the calculation formula is obtained, the calculation formula is added to the calculator control for the user to view and confirm whether the calculation formula is correct.

Step S70: Receive a confirmation calculation instruction input by the user, calculate a calculation formula in the calculator control, and add the calculation result to the calculator control.

It can be understood that after adding the calculation formula to the calculator control, the user can see the calculation formula displayed in the calculator control in the chat interface, and the user can view the calculation formula and determine When the calculation formula is correct, the user inputs a confirmation calculation instruction, calculates the calculation formula, and adds the calculation result to the calculator control, so that the user obtains the calculation result.

In this embodiment, by determining whether the trigger position corresponding to the trigger instruction belongs to a chat content area, when the trigger position belongs to the chat content area, acquiring character information in the chat content area; The information is semantically identified, a calculation formula is derived based on the recognition result, and the calculation formula is added to the calculator control. Since it is determined that the trigger position is the chat content area, the calculation formula is automatically generated by semantic recognition, and the user does not need to manually input the operation value and the operation symbol, thereby improving the user experience.

Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of a third embodiment of a method for using a chat interface based calculator according to the present invention. Based on the embodiment shown in FIG. 2, a third implementation of a method for using a chat interface based calculator of the present invention is proposed. example.

In the third embodiment, the step S60 includes:

Step S601: When the recognition result is that the recognition is successful, generate a first formula according to the operation value and the operation relationship, and add the first formula as the calculation formula to the calculator control.

It should be noted that, after semantically identifying the operation relationship in the character information, a recognition result is obtained, where the recognition result includes recognition success and recognition failure, and when the recognition result is successful recognition, the recognition result is recognized. When the operation relationship is performed, the operation value and the recognized operation relationship are integrated to obtain a first calculation formula, and the first calculation formula is used as the calculation formula, and the calculation formula is added to the calculator control. .

Step S602: Receive a modification instruction input by the user, and modify a calculation formula in the calculator control.

It can be understood that after the first formula is displayed in the calculator control, the user finds that the first formula is incorrect, and is not a calculation formula expected by the user, and the user can input a modification instruction. Errors in the calculator control are modified and generally modified by manual input, including handwriting input and/or keyboard input. Among them, handwriting input is more convenient than keyboard input.

Step S603: When the recognition result is that the recognition fails, the operation value is added to the calculator control;

It should be noted that, because the character information input by the user is not comprehensive, the semantic recognition of the character information may fail, and the user inputs a trigger instruction at the character information, although the recognition fails, the character information The calculation value in the middle is very likely to contain the value required by the user calculation. When the recognition fails, the operation value is added to the calculator control for the user to use, and the user only needs to manually input the operation symbol to complete Enter the calculation formula to reduce the number of manual input by the user.

Step S604: Receive a formula editing instruction input by the user, and edit a corresponding calculation formula according to the operation value.

It should be understood that, after the operation value is added to the calculator control, in order to construct a complete calculation formula, a formula editing instruction input by a user is received, and the operation value is added according to the formula editing instruction. The operation conforms to the calculator control, generates a second formula according to the operation value and the operation, and uses the second formula as the calculation formula. The user simply inputs the operands without having to enter the operands, which increases the computational efficiency. For example, when the character information is “1689 table tennis balls purchased”, when the recognition result is that the recognition fails, the operation value 1689 is added to the calculator control, and the formula editing instruction input by the user is received. According to the formula editing instruction, "x2" is added after 1689, and the second formula is "1689×2".

Further, after the step S40, the method further includes:

Receiving a keyboard signal or a handwritten signal input by the user when the trigger position does not belong to the chat content area;

Identifying a third algorithm in the keyboard signal or the handwritten signal and adding the third formula to the calculator control.

It can be understood that when the trigger position does not belong to the chat content area, the calculation formula cannot be generated by semantic recognition, and the keyboard signal or the handwritten signal input by the user is received, and the keyboard signal or the handwritten signal is recognized. The third formula is added to the calculator control.

In this embodiment, for the different results of the identification, the corresponding calculation formula or operation value is displayed in the calculator control, and the user judges and selects the calculation formula or the operation value to generate a correct calculation that finally meets the user's requirement. And display it in the calculator control. For each situation, the corresponding input mode is set, which reduces the number of manual input by the user and improves the user experience.

In addition, the embodiment of the present invention further provides a storage medium, where the storage interface is based on a calculator interface-based calculator usage program, and the chat interface-based calculator usage program is executed by the processor to:

When displaying the chat interface of the application, the mobile terminal receives a trigger instruction input by the user in the chat interface, and acquires a call interface of the calculator control according to the trigger instruction;

Determining an area to be displayed in the chat interface according to the triggering instruction;

And calling the call interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

Obtaining a trigger position corresponding to the triggering instruction, determining whether the triggering location belongs to a chat content area, and acquiring the character information in the chat content area when the triggering location belongs to the chat content area;

Semanticly identifying the character information;

A calculation formula is obtained based on the recognition result, and the calculation formula is added to the calculator control.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

Determining whether the character information includes a lowercase digit, and when the lowercase digit is included, acquiring an operation value including the lowercase digit in the character information, and performing semantic recognition on an operation relationship corresponding to the operation value.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

Obtaining an uppercase number in the character information, converting the uppercase number to a lowercase number.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

When the recognition result is that the recognition is successful, the first formula is generated according to the operation value and the operation relationship, and the first formula is added to the calculator control as the calculation formula.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

Receiving a modification instruction input by the user, modifying the calculation formula in the calculator control.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

When the recognition result is recognition failure, adding the operation value to the calculator control;

The formula editing instruction input by the user is received, and the corresponding calculation formula is edited according to the operation value.

Further, when the chat interface-based calculator is executed by the processor, the following operations are also implemented:

Receiving a confirmation calculation instruction input by the user, calculating a calculation formula in the calculator control, and adding the calculation result to the calculator control.

In this embodiment, when the mobile terminal displays the chat interface of the application, receiving a trigger instruction input by the user in the chat interface, acquiring a call interface of the calculator control according to the trigger instruction; Determining an area to be displayed in the chat interface; calling the calling interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed. Since the user can directly call the calculator control through a simple trigger instruction in the chat interface, there is no need to switch back and forth between the calculator application and the chat application for calculation, and the operation is convenient and the user experience is improved.

It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.

The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.

The use of the words first, second, third, etc. does not denote any order, and these words can be interpreted as names.

Those skilled in the art can clearly understand the above by the description of the above embodiments. The embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course Hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention may be in the form of a software product in essence or in part contributing to the prior art. It is now found that the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), and includes a plurality of instructions for making a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device). Etc.) Performing the methods described in various embodiments of the invention.

The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (10)

  1.  A method for using a calculator based on a chat interface, characterized in that the method comprises the following steps:
    When displaying the chat interface of the application, the mobile terminal receives a trigger instruction input by the user in the chat interface, and acquires a call interface of the calculator control according to the trigger instruction;
    Determining an area to be displayed in the chat interface according to the triggering instruction;
    And calling the call interface according to the area to be displayed, so that the calculator control is displayed in the area to be displayed.
  2. The method of claim 1, wherein after the displaying the calculator control in the area to be displayed, the method further comprises:
    Obtaining a trigger position corresponding to the triggering instruction, determining whether the triggering location belongs to a chat content area, and acquiring the character information in the chat content area when the triggering location belongs to the chat content area;
    Semanticly identifying the character information;
    A calculation formula is obtained based on the recognition result, and the calculation formula is added to the calculator control.
  3. The method of claim 2, wherein the semantically identifying the character information comprises:
    Determining whether the character information includes a lowercase digit, and when the lowercase digit is included, acquiring an operation value including the lowercase digit in the character information, and performing semantic recognition on an operation relationship corresponding to the operation value.
  4. The method of claim 3, wherein the method further comprises: before determining whether the character information contains a lowercase number, the method further comprising:
    Obtaining an uppercase number in the character information, converting the uppercase number to a lowercase number.
  5. The method according to claim 2, wherein the calculating a calculation formula according to the recognition result and adding the calculation formula to the calculator control comprises:
    When the recognition result is that the recognition is successful, the first formula is generated according to the operation value and the operation relationship, and the first formula is added to the calculator control as the calculation formula.
  6. The method according to claim 5, wherein after the adding the first formula as the calculation formula to the calculator control, the method further comprises:
    Receiving a modification instruction input by the user, modifying the calculation formula in the calculator control.
  7. The method of claim 6, wherein after the semantically identifying the character information, the method further comprises:
    When the recognition result is recognition failure, adding the operation value to the calculator control;
    The formula editing instruction input by the user is received, and the corresponding calculation formula is edited according to the operation value.
  8. The method of claim 2, wherein after the adding the calculation formula to the calculator control, the method further comprises:
    Receiving a confirmation calculation instruction input by the user, calculating a calculation formula in the calculator control, and adding the calculation result to the calculator control.
  9. A calculator interface-based calculator using device, the device comprising: a memory, a processor, and a chat interface-based calculator using the program stored on the memory and operable on the processor, The step of the chat interface-based calculator usage method of claim 1 is implemented when the chat interface-based calculator is executed by the processor.
  10. A storage medium, characterized in that a storage interface based calculator usage program is stored on the storage medium, and the chat interface based calculator usage program is executed by a processor to implement the chat based on claim 1 The steps of the interface's calculator usage method.
PCT/CN2017/100944 2017-09-07 2017-09-07 Chat interface-based calculator use method and device and storage medium WO2019047119A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100944 WO2019047119A1 (en) 2017-09-07 2017-09-07 Chat interface-based calculator use method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100944 WO2019047119A1 (en) 2017-09-07 2017-09-07 Chat interface-based calculator use method and device and storage medium

Publications (1)

Publication Number Publication Date
WO2019047119A1 true WO2019047119A1 (en) 2019-03-14

Family

ID=65634627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100944 WO2019047119A1 (en) 2017-09-07 2017-09-07 Chat interface-based calculator use method and device and storage medium

Country Status (1)

Country Link
WO (1) WO2019047119A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379013A (en) * 2012-04-12 2013-10-30 腾讯科技(深圳)有限公司 Geographic information providing method and system based on instant messaging
CN104135564A (en) * 2014-07-14 2014-11-05 掌赢信息科技(上海)有限公司 A switching method, a displaying interface and a switching device for multimode input of an instant messaging program
CN105183276A (en) * 2015-08-19 2015-12-23 小米科技有限责任公司 Method and apparatus for realizing game in chat interface, and and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379013A (en) * 2012-04-12 2013-10-30 腾讯科技(深圳)有限公司 Geographic information providing method and system based on instant messaging
CN104135564A (en) * 2014-07-14 2014-11-05 掌赢信息科技(上海)有限公司 A switching method, a displaying interface and a switching device for multimode input of an instant messaging program
CN105183276A (en) * 2015-08-19 2015-12-23 小米科技有限责任公司 Method and apparatus for realizing game in chat interface, and and terminal device

Similar Documents

Publication Publication Date Title
WO2015083969A1 (en) Mobile terminal and method for controlling the same
WO2014157897A1 (en) Method and device for switching tasks
WO2017078361A1 (en) Electronic device and method for recognizing speech
WO2014088355A1 (en) User terminal apparatus and method of controlling the same
WO2013009092A2 (en) Method and apparatus for controlling content using graphical object
WO2014058144A1 (en) Method and system for displaying fast-scrolling content and scroll bar
WO2015163674A1 (en) Method of providing user interaction with a wearable device and wearable device thereof
WO2014030902A1 (en) Input method and apparatus of portable device
WO2014157846A1 (en) Portable terminal, hearing aid, and method of indicating positions of sound sources in the portable terminal
WO2014182112A1 (en) Display apparatus and control method thereof
WO2015005606A1 (en) Method for controlling chat window and electronic device implementing the same
WO2015009128A1 (en) Flexible device, method for controlling device, and method and apparatus for displaying object by flexible device
WO2013115558A1 (en) Method of operating multi-touch panel and terminal supporting the same
WO2015111845A1 (en) Electronic device and voice recognition method thereof
WO2014112804A1 (en) Mobile device and method for displaying information
WO2012018212A2 (en) Touch-sensitive device and touch-based folder control method thereof
WO2011046345A2 (en) Method for controlling portable device, display device, and video system
EP2774317A1 (en) Apparatus and method for controlling controllable device in portable terminal
WO2015119480A1 (en) User terminal device and displaying method thereof
WO2014017790A1 (en) Display device and control method thereof
WO2014046493A1 (en) User terminal device and display method thereof
WO2016195291A1 (en) User terminal apparatus and method of controlling the same
WO2010011007A1 (en) Method of managing content and electronic apparatus using the same
WO2016018039A1 (en) Apparatus and method for providing information
WO2016032288A1 (en) Scrapped information providing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17924747

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE