Disclosure of Invention
The embodiment of the invention provides an expression processing method and device in input method application, which are used for improving user input experience.
Therefore, the invention provides the following technical scheme:
An expression processing method in an input method application, the method comprising:
based on the input content, presenting expression candidates;
After receiving a modification instruction of a user to the expression candidate expression, providing a text editing interface for the user so as to enable the user to edit text information displayed on the expression;
after the text editing is completed, if a specific instruction of the user for the expression is received, the edited expression is sent or shared.
Optionally, the expression class candidates comprise candidate expressions or associated expressions displayed in a candidate bar or expressions after screen surfing.
Optionally, the providing a text editing interface for the user includes:
And popping up a suspension frame on the current interface, and displaying the text information displayed on the expression in the suspension frame.
Optionally, the method further comprises:
And after receiving a modification instruction of the user on the expression, popping up an expression preview frame on a current interface, and displaying the expression and the modified text displayed on the expression in real time in the expression preview frame.
Optionally, the method further comprises:
And after receiving clicking operation of the user on the expression in the expression preview frame, storing the modified expression.
Optionally, the user edits the text information displayed on the expression including modifying, deleting, and adding the text information displayed on the expression.
Optionally, the specific instruction and the modification instruction are the same or different operation instructions.
Optionally, the operation instruction comprises any one of long press operation and scribing operation.
Optionally, the method further comprises:
And after receiving clicking operation of the user on the expression, sending or sharing the expression.
Optionally, the method further comprises:
and receiving a specific instruction of the user on the expression, and sending or sharing the text corresponding to the expression and the edited expression together.
The expression processing device in the application of the input method comprises a display module, an instruction receiving module, a text editing module and an information sending module;
the display module is used for displaying expression candidates based on the input content;
The instruction receiving module is used for receiving a modification instruction of a user to the expression candidate expression;
The text editing module is used for providing a text editing interface for a user after the operation instruction receiving module receives a modification instruction of the user on the expression so as to enable the user to edit text information displayed on the expression;
the instruction receiving module is also used for receiving a specific instruction of the user on the expression after the text editing is completed;
The information sending module is used for sending or sharing the edited expression after the instruction receiving module receives the specific instruction of the user on the expression.
Optionally, the expression class candidates comprise candidate expressions or associated expressions displayed in a candidate bar or expressions after screen surfing.
Optionally, the text editing module is specifically configured to pop up a hover frame on a current interface after the instruction receiving module receives the user's instruction for modifying the expression, and display text information displayed on the expression in the hover frame.
Optionally, the apparatus further comprises:
And the preview module is used for popping up an expression preview frame on a current interface after the instruction receiving module receives a user modifying instruction of the expression, and displaying the expression and the modified text displayed on the expression in real time in the expression preview frame.
Optionally, the instruction receiving module is further configured to receive a click operation of the user on the expression in the expression preview box;
The apparatus further comprises:
And the storage module is used for storing the modified expression after the instruction receiving module receives the clicking operation of the user on the expression in the expression preview frame.
Optionally, the user edits the text information displayed on the expression including modifying, deleting, and adding the text information displayed on the expression.
Optionally, the specific instruction and the modification instruction are the same or different operation instructions.
Optionally, the operation instruction comprises any one of long press operation and scribing operation.
Optionally, the instruction receiving module is further configured to receive a click operation of the expression by the user;
the information sending module is further configured to send or share the expression after the instruction receiving module receives the click operation of the user on the expression.
Optionally, the information sending module is further configured to receive a specific instruction of the user on the expression, and send or share the text corresponding to the expression and the edited expression together.
A computer device includes one or more processors, memory;
The memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions to implement the methods described above.
A readable storage medium having stored thereon instructions that are executed to implement the method described previously.
According to the expression processing method and device in the input method application, aiming at the expression displayed based on the input content, the user can edit and modify the characters on the expression by providing the character editing interface for the user, so that the personalized requirements of the user on the characters displayed on the expression are met. And after the text editing is finished, if a specific instruction of the user for the expression is received, the edited expression is transmitted or shared, so that the transmission efficiency and the interestingness are improved.
Further, in the scheme of the invention, the edited expression and the text corresponding to the expression can be transmitted or shared together, or only the expression can be transmitted, for example, the user only needs to click the expression to be transmitted, and only the expression can be transmitted or shared, so that different transmission requirements of the user on the expression and the corresponding text are met.
Detailed Description
In order to make the solution of the embodiment of the present invention better understood by those skilled in the art, the embodiment of the present invention is further described in detail below with reference to the accompanying drawings and embodiments.
The embodiment of the invention provides an expression processing method and device in input method application, aiming at expressions displayed based on input contents, by providing a character editing interface for a user, the user can edit and modify characters on the expressions, so as to meet the personalized requirements of the user on the characters displayed on the expressions. And after the text editing is completed, if a specific instruction of the user for the expression is received, the edited expression is sent or shared.
As shown in fig. 1, a flowchart of an expression processing method in an input method application of the embodiment of the invention includes the following steps:
And step 101, based on the input content, presenting expression type candidates.
It should be noted that the input content may be a current input string, or an on-screen content, or a content that interacts with the peer in a chat scenario. Accordingly, the expression may be a candidate expression or an associated expression displayed in a candidate bar based on the current input content of the user, or an expression after screen-on. For example, as shown in fig. 2, the user inputs the word "happy with" on the dialogue interface on the mobile phone, and displays the expression corresponding to the "happy with" on-screen content in the candidate bar. Of course, the display position and display mode of the expression after the screen is displayed are not limited.
The method of the invention can be applied to various input scenes, such as dialogue scenes and the like. The user input may be any input means such as pinyin input, wubi input, voice input, handwriting input, gestures, and the like.
The expressions can be stored in a pre-established expression library, and further, words with corresponding expressions can be marked in the word library. For example, in the process of inputting the user, determining a candidate word, i.e. a word, to be displayed in a candidate bar based on the current input content of the user, searching whether the expression corresponding to the candidate word exists in an expression library or not respectively, if so, displaying the candidate word and the expression corresponding to the candidate word in the candidate bar, otherwise, displaying the candidate word in the candidate bar.
The displayed characters and expressions corresponding to the characters are determined by an input method according to information input by a user. The expression can be the expression of the input method, or can be a third-party expression loaded by a user when the input method is used, for example, the input method provides an expression loading inlet for the user, when the user has a demand, the user inputs the expression required or liked by the user through the expression loading inlet, and inputs the text corresponding to the expression, and the input method can store the text and the expression input by the user in the expression library, so that the expression in the expression library is richer, and the personalized demands of different users are met.
Step 102, after receiving a modification instruction of the user to the expression in the expression class candidates, providing a text editing interface for the user so as to enable the user to edit the text information displayed on the expression.
For example, a floating frame is popped up on the current interface, and the text information displayed on the expression is displayed in the floating frame. The user can modify, delete and the like the characters in the floating frame, and can add the characters on the expression without the characters. In addition, different fonts and the like can be provided for the user so as to meet different favorites of the user, and the characters displayed on the expression can be more vivid.
It should be noted that the text displayed on the expression may be displayed at any position of the expression image, for example, a middle position, a bottom position, and the like.
Further, an expression preview frame can be provided for the user, the expression and the modified text displayed on the expression image are displayed in the expression preview frame, and the text can be dragged on the touch screen to adjust the position of the text, so that the user can see the modified expression, namely the expression and the visual effect of the text displayed on the expression in real time. If the user is not satisfied with the effect of the currently modified expression, the text displayed on the expression can be modified continuously in the manner described above until the user is satisfied.
Further, after the user modifies the text displayed on the expression, the modified expression may be stored, for example, the user clicks the expression in the expression preview box, that is, the modified expression, that is, the current expression may be stored, specifically, the user modified expression may be stored in the expression library, or the user modified expression may be separately stored in another user personalized expression library.
And step 103, after the text editing is completed, if a specific instruction of the user for the expression is received, sending or sharing the edited expression.
In practical applications, the specific instruction and the modification instruction mentioned above may be the same or different operation instructions, for example, but not limited to, a long press operation, a scribing operation, etc.
According to the expression processing method in the input method application, aiming at the expression displayed based on the input content, the user can edit and modify the characters on the expression by providing the character editing interface for the user, so that the personalized requirement of the user on the characters displayed on the expression is met. And after the text editing is finished, if a specific instruction of the user for the expression is received, the edited expression is transmitted or shared, so that the transmission efficiency and the interestingness are improved.
Further, in the method of the invention, the edited expression and the text corresponding to the expression can be transmitted or shared together, and the function of transmitting only the expression can be provided for the user. For example, after receiving a specific instruction of a user to the expression, sending or sharing the edited expression and the text corresponding to the expression together, and after receiving a click operation of the user to the expression, sending or sharing only the expression, thereby meeting different sending requirements of the user to the expression and the corresponding text.
It should be noted that, for the expressions in the candidate bar, the clicking operation of the above-mentioned single sending expression may occur before modifying the text displayed on the expression, that is, after displaying the text candidate and the corresponding expression candidate in the candidate bar, for example, after the user clicks the expression candidate in the candidate bar, the single sending or sharing of the expression may also occur after modifying the text displayed on the expression, for example, after popping up the suspension frame, after receiving the clicking operation of the user clicking the expression candidate in the candidate bar, the modified expression may be sent or shared separately, and of course, if the user does not modify the text displayed on the expression, the sending is still the original expression.
The following takes expression candidate in the input process as an example, and further details the process of sending expressions to the opposite party in the chat application. Such as:
(1) When the user inputs 'kaixindian' by using the Pinyin input method, the candidate bar has character candidates of 'happy point' and expression candidates corresponding to the character candidates of 'happy point', and the characters are displayed on the expression candidates, for example, the displayed characters are 'happy';
(2) If the user clicks the expression candidate, the expression is sent to the opposite party, and the expression is displayed with happiness;
(3) If the user presses the expression candidate for a long time, a suspension frame is popped up, and the text "happy" is displayed in the suspension frame;
(4) At this time, if the user does not want to make any modification to the text displayed on the expression, long-pressing the expression, directly transmitting the text candidate "happy point" and the corresponding expression candidate to the other party;
(5) At this time, if the user wants to modify the displayed text on the expression, the original text is modified to the text desired by the user in the suspension, for example, the text "happy" displayed on the expression is modified to "hope you happy", after the modification is completed, the modified expression can be sent to the opposite party by clicking the expression in the candidate bar, and the modified expression and the corresponding text candidate "happy point" can be sent to the opposite party together by pressing the expression in the candidate bar for a long time.
Therefore, by utilizing the scheme of the invention, the user can conveniently modify the characters displayed on the expression, the personalized requirement of the user is met, and the expression can be independently sent according to the requirement of the user or the expression and the corresponding characters are sent together, so that vivid interesting experience and social experience can be brought to the user.
Correspondingly, the embodiment of the invention also provides an expression processing device in the application of the input method, as shown in fig. 3, which is a structural block diagram of the device.
In this embodiment, the device comprises a presentation module 201, an instruction receiving module 202, a text editing module 203 and an information sending module 204. Wherein:
The presenting module 201 is configured to present expression candidates based on the inputted content;
the instruction receiving module 202 is configured to receive a modification instruction of the expression candidate expression from a user;
the text editing module 203 is configured to provide a text editing interface for a user after the operation instruction receiving module 202 receives a modification instruction of the user on the expression, so that the user edits text information displayed on the expression;
the instruction receiving module 202 is further configured to receive a specific instruction of the user on the expression after the text editing is completed;
The information sending module 204 is configured to send or share the edited expression after the instruction receiving module 202 receives the specific instruction of the user for the expression.
It should be noted that the input content may be a current input string, or an on-screen content, or a content that interacts with the peer in a chat scenario. Accordingly, the expression may be a candidate expression or an associated expression displayed in a candidate bar based on the current input content of the user, or an expression after screen-on. The expressions can be stored in a pre-established expression library, and further, words with corresponding expressions can be marked in the word library. For example, in the process of inputting the user, determining a candidate word, i.e. a word, to be displayed in a candidate bar based on the current input content of the user, searching whether the expression corresponding to the candidate word exists in an expression library or not respectively, if so, displaying the candidate word and the expression corresponding to the candidate word in the candidate bar, otherwise, displaying the candidate word in the candidate bar.
The text editing module 203 may specifically pop up a hover frame on the current interface after the instruction receiving module 202 receives the user's instruction for modifying the expression, and display text information displayed on the expression in the hover frame. Accordingly, the user can modify, delete and the like the characters in the floating frame, and can add the characters on the expression without the characters. In addition, different fonts and the like can be provided for the user, so that different favorites of the user can be met, and the characters displayed on the expression can be more vivid. It should be noted that the text displayed on the expression may be displayed at any position of the expression image, for example, a middle position, a bottom position, and the like.
In practical applications, the specific instruction and the modification instruction mentioned above may be the same or different operation instructions, for example, but not limited to, a long press operation, a scribing operation, etc.
Further, in the apparatus of the present invention, the information sending module 204 may send or share the edited expression and the text corresponding to the expression together, or only send or share the expression according to the difference of the instruction receiving module 202 that receives the operation instruction of the user on the expression. For example, the information sending module 204 sends or shares the edited expression and the text corresponding to the expression after the instruction receiving module 202 receives the specific instruction of the user on the expression, and the information sending module 204 sends or shares only the expression after the instruction receiving module 202 receives the clicking operation of the user on the expression, so that different sending requirements of the user on the expression and the corresponding text can be better met.
According to the expression processing device in the input method application, aiming at the expression displayed based on the input content, the user can edit and modify the characters on the expression by providing the character editing interface for the user, so that the personalized requirement of the user on the characters displayed on the expression is met. And after the text editing is completed, if a specific instruction of the user for the expression is received, the edited expression is transmitted or shared, so that the transmission efficiency is improved. In addition, the expression can be sent independently according to the needs of the user, or the expression and the corresponding text can be sent together, so that vivid interesting experience and social experience can be brought to the user.
Fig. 4 is a block diagram of another embodiment of an expression processing apparatus in the application of the input method according to the present invention.
Unlike the embodiment shown in fig. 3, in this embodiment the apparatus further comprises a preview module 301.
The preview module 301 is configured to pop up an expression preview frame on a current interface after the instruction receiving module 202 receives a modification instruction of the user on the expression, and display the expression and the modified text displayed on the expression in real time in the expression preview frame, so that the user can see the modified expression, that is, the expression and the visual effect of the text displayed on the expression in real time. If the user is not satisfied with the effect of the currently modified expression, the text displayed on the expression can be modified continuously in the manner described above until the user is satisfied.
Further, as shown in FIG. 5, in another embodiment of the apparatus of the present invention, the apparatus further comprises a storage module 401.
In the embodiment shown in fig. 5, after the instruction receiving module 202 receives the user's modification instruction for the expression, the preview module 301 pops up an expression preview box on the current interface, and displays the expression and the modified text displayed on the expression in real time in the expression preview box.
The instruction receiving module 202 further receives a click operation of the expression in the expression preview box by the user.
Accordingly, the saving module 401 saves the modified expression after the instruction receiving module 202 receives the clicking operation of the user on the expression in the expression preview box. For example, the expression after the user modification may be stored in the expression library described above, or the expression after the user modification may be stored in the user personalized expression library alone, which is not limited to the embodiment of the present invention.
By using the expression processing device in the input method application provided by the embodiment of the invention, the user can conveniently modify the characters displayed on the expression, the personalized requirement of the user is met, and the expression can be independently sent according to the user requirement or the expression and the corresponding characters are sent together, so that vivid interesting experience and social experience can be brought to the user. In addition, the expression modified by the user can be stored, so that the user can use the expression conveniently.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
It should be noted that the expression processing method and device in the input method application of the embodiment of the invention can be applied to various terminal devices, such as mobile phones, computers, notebooks and other devices.
Fig. 6 is a block diagram illustrating an apparatus 800 for a form handling method in an input method application, according to an example embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to FIG. 6, the apparatus 800 may include one or more of a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, an activate button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or one component of the apparatus 800, the presence or absence of user contact with the apparatus 800, an orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication part 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described key-miss-touch error correction method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, when executed by a processor of a mobile terminal, causes the mobile terminal to perform a key false touch error correction method, the method comprising acquiring press information when each key is triggered during user input, determining a false trigger key according to the acquired press information, correcting errors of the false trigger key, and determining candidate words corresponding to an corrected complete input string.
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900 may vary considerably in configuration or performance and may include one or more central processing units (Central Processing Units, CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage mediums 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Wherein the memory 1932 and storage medium 1930 may be transitory or persistent. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, a central processor 1922 may be provided in communication with a storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
A non-transitory computer readable storage medium, which when executed by a processor of an apparatus, causes the apparatus to perform the above-described key-press error correction method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.