CN115686229A - Expression input method, expression input device and computer program storage medium - Google Patents

Expression input method, expression input device and computer program storage medium Download PDF

Info

Publication number
CN115686229A
CN115686229A CN202110865572.6A CN202110865572A CN115686229A CN 115686229 A CN115686229 A CN 115686229A CN 202110865572 A CN202110865572 A CN 202110865572A CN 115686229 A CN115686229 A CN 115686229A
Authority
CN
China
Prior art keywords
code point
expression
character
input
character code
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.)
Pending
Application number
CN202110865572.6A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110865572.6A priority Critical patent/CN115686229A/en
Publication of CN115686229A publication Critical patent/CN115686229A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an expression input method, an expression input device and a computer program storage medium. The method comprises the following steps: monitoring character input action in an application program, and intercepting a character code point transmitted into the application program by an input method used by input characters through the input action; if the character code points are identified as expression code points, adding the character code points into a code point queue; searching a target code point matched with the character code points contained in the code point queue based on the code point queue; the expression associated with the target code point is acquired, and the expression associated with the target code point is displayed in an input box of the application program, so that the problem that the input box of the application program displays messy codes can be improved to a certain extent.

Description

Expression input method, expression input device and computer program storage medium
Technical Field
The present application relates to the field of computer and communication technologies, and in particular, to an expression input method and apparatus, and a computer program storage medium.
Background
In the prior art, when an expression is input in an application program, an input method transparently transmits character code points corresponding to the expression to the application program, the character code points are displayed in an input frame of the application program, and in the process that the application program sends the character code points to a sending frame from the input frame, the application program converts the character code points into the expression and displays the expression in the sending frame.
However, a character is transmitted to a code point in an application program and displayed as an unrecognized character in an input box, the character code point may not be compatible with the application program and may not be converted to obtain an input expression, and fig. 1 schematically illustrates a display interface diagram of the input method according to an embodiment of the present application for directly transmitting the character code point to the application program.
Disclosure of Invention
The application aims to provide an expression input method, an expression input device and a computer program storage medium, which can solve the problem that the input box of an application program displays messy codes to a certain extent.
According to an aspect of an embodiment of the present application, there is provided an expression input method including: monitoring a character input action in an application program, and intercepting a character code point transmitted into the application program by an input method used for inputting the character through the input action; if the character code points are recognized to be expression code points, adding the character code points into a code point queue; searching a target code point matched with the character code points contained in the code point queue based on the code point queue; and acquiring the expression associated with the target code point, and displaying the expression associated with the target code point in an input box of the application program.
According to an aspect of an embodiment of the present application, there is provided an expression input device including: the intercepting module is configured to monitor character input actions in an application program, and intercept character code points transmitted to the application program by an input method used for inputting the characters through the input actions; the adding module is configured to add the character code points into a code point queue if the character code points are identified as expression code points; the determining module is configured to search a target code point matched with the character code points contained in the code point queue based on the code point queue; and the display module is configured to acquire the expression associated with the target code point and display the expression associated with the target code point in an input box of the application program.
In an embodiment of the present application, based on the foregoing solution, the display module is further configured to: and if the character code points are recognized to be non-expression code points, directly displaying the character code points in the input box.
In an embodiment of the present application, based on the foregoing solution, the display module is configured to: acquiring a picture associated with the target code point; constructing an embedded object corresponding to the picture; displaying the embedded object in the input box.
In an embodiment of the present application, based on the foregoing solution, the display module is configured to: storing the target picture in a picture storage area; and acquiring an interface pointer for accessing the picture storage area, and taking the interface pointer as the embedded object.
In an embodiment of the present application, based on the foregoing solution, the determining module is configured to: if the target code point cannot be found, the character code points are intercepted continuously and added into the code point queue until the target code point is found successfully.
In an embodiment of the application, based on the foregoing solution, the determining module is further configured to: and after the target code point matched with the character code point contained in the code point queue is found, emptying the code point queue.
In an embodiment of the present application, based on the foregoing solution, the determining module is configured to: searching a prepared code point containing the character code point in a set expression dictionary before searching a target code point matched with the character code point contained in the code point queue based on the code point queue; and if the prepared code point containing the character code point is found, adding the character code point into the code point queue.
In an embodiment of the present application, based on the foregoing solution, the display module is further configured to: and if the prepared code points containing the character code points are not found in the expression dictionary, directly displaying the character code points in the input box.
According to an aspect of the embodiments of the present application, there is provided a computer program storage medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method of any one of the above.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: a processor; a memory having computer readable instructions stored thereon which, when executed by the processor, implement the method of any of the above.
According to an aspect of an embodiment of the present application, there is provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative embodiments described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the technical scheme provided by some embodiments of the application, by monitoring character input actions in an application program, an input method for intercepting input characters is transmitted to character code points of the application program through the input actions; if the character code points are recognized to be the expression code points, adding the character code points into a code point queue; searching a target code point matched with the character code points contained in the code point queue based on the code point queue; the expression associated with the target code point is acquired, the expression associated with the target code point is displayed in an input box of the application program, and compared with the method depending on application program compatible conversion, the probability of successful expression character display can be increased, so that the problem that the input box of the application program displays messy codes can be improved to a certain extent.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram illustrating a display interface of an input method for directly transmitting character code points to an application program according to an embodiment of the present application;
FIG. 2 shows a schematic diagram of an exemplary system architecture to which aspects of embodiments of the present application may be applied;
FIG. 3 schematically shows a flow diagram of an expression input method according to an embodiment of the present application;
fig. 4 is a display interface diagram schematically illustrating an input method according to an embodiment of the present application converting an input emoji character into a picture format and sending the converted emoji character to an application;
FIG. 5 schematically shows a flow diagram of an expression input method according to an embodiment of the application;
fig. 6 schematically shows a display interface diagram for inputting an expression using the expression input method of the present application;
FIG. 7 schematically shows a block diagram of an expression input device according to an embodiment of the application;
FIG. 8 is a hardware diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 2 shows a schematic diagram of an exemplary system architecture 200 to which the technical solutions of the embodiments of the present application can be applied.
As shown in FIG. 2, system architecture 200 may include client 201, network 202, and server 203. Network 202 serves as a medium for providing communication links between clients 201 and server 203. Network 202 may include various types of connections, such as wired communication links, wireless communication links, and so forth, which are not limiting in this application.
It should be understood that the number of clients 201, networks 202, and servers 203 in fig. 2 is merely illustrative. There may be any number of clients 201, networks 202, and servers 203, as desired for an implementation. For example, the server 203 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The client 201 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like.
In an embodiment of the application, when the task execution time is reached, the server 203 intercepts an input method used by inputting characters and transmits the input method to a character code point of the application program through the input action by monitoring the character input action in the application program; if the character code points are recognized to be the expression code points, adding the character code points into a code point queue; searching a target code point matched with the character code points contained in the code point queue based on the code point queue; the expression associated with the target code point is obtained, the expression associated with the target code point is displayed in an input box of the application program, and compared with compatible conversion depending on the application program, the probability of successful display of the expression characters can be increased, so that the problem that the input box of the application program displays messy codes can be improved to a certain extent.
It should be noted that the expression input method provided in the embodiment of the present application is generally executed by the server 203, and accordingly, the expression input device is generally disposed in the server 203. However, in other embodiments of the present application, the client 201 may also have a similar function as the server 203, so as to execute the expression input method provided in the embodiments of the present application.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
fig. 3 schematically shows a flowchart of an expression input method according to an embodiment of the present application, where an execution subject of the expression input method may be a server, such as the server 203 shown in fig. 2.
Referring to fig. 3, the expression input method at least includes steps S310 to S340, which are described in detail as follows:
in step S310, a character input action in the application program is monitored, and an input method intercepting use of input characters is transmitted to a character code point of the application program through the input action.
In an embodiment of the application, a display page of an application may be monitored to monitor a character input action in the application, for example, when an input method display frame appears in the display page, a selected action in the input method display frame may be monitored as the character input action in the application, where the selected action may be implemented by clicking, touching, pressing, sliding, or the like on a screen or a key of a terminal where the application is located.
In one embodiment of the application, an action that can cause the characters in the input method display frame to be added can be used as the selected action in the input method display frame.
In one embodiment of the application, when an input box in a display page of an application program is clicked, a character input action in the application program is started to be monitored, so that the calculation resource consumed by monitoring is saved.
In one embodiment of the application, when characters are transmitted into an application program from an input method display frame, the characters prepared by an input method and transmitted into the application program are converted into character code points, and the character code points are intercepted before entering the application program.
In one embodiment of the application, the character code points can be intercepted before entering an input box of the application program, so that messy codes are prevented from being displayed.
In one embodiment of the present application, the characters may include text characters, emoji characters, control characters, and the like.
In one embodiment of the present application, a set character to character code point lookup table may be looked up based on an input character to convert the character into a character code point (Unicode).
In step S320, if the character code point is identified as an expression code point, the character code point is added to the code point queue.
In an embodiment of the application, the classification mark corresponding to each character in the input method may be obtained, the classification mark of each character is added to the character code point corresponding to the character, and whether the character code point is an expression code point is identified by identifying the classification mark of the character code point.
In an embodiment of the present application, the code point queue is a queue for storing code points, the added character code points may be arranged at the tail end of the queue, or the character code points in the code point queue may be arranged according to a set rule, and before the expression code point is identified for the first time, the code point queue may be empty.
In an embodiment of the application, if the character code point is identified as a non-expression code point, the character code point is directly displayed in the input box, and in the process that the character code point enters the sending box from the input box, the application program converts the character code point, so that the character code point which cannot be found out as the target code point is converted, and the possibility that the character code point is successfully converted into the character is increased.
In an embodiment of the present application, before searching for a target code point matching a character code point contained in a code point queue based on the code point queue, a prepared code point containing the character code point may be searched for in a set expression dictionary; if the prepared code point containing the character code point is found, the character code point is added into the code point queue, so that the character code point added into the code point queue subsequently and the character code point can form a combined code point together, and a target code point corresponding to the combined code point can be found.
In an embodiment of the application, all the expression code points supported by the application program may be collected, and a mapping relationship between the expression code points and a desired display style is constructed to set an expression dictionary, where the desired display style may be a custom style.
In step S330, a target code point matching the character code points included in the code point queue is searched based on the code point queue.
In one embodiment of the present application, a code point completely consistent with a character code point may be searched for as a target code point matching the character code point.
In an embodiment of the present application, if the target code point cannot be found, the character code point may be intercepted and added to the code point queue until the target code point is found successfully.
In an embodiment of the present application, before searching for a target code point matching a character code point contained in a code point queue based on the code point queue, a prepared code point containing the character code point may be searched for in a set expression dictionary; if the prepared code point containing the character code point is found, the character code point is added into the code point queue, and if the target code point matched with the character code point contained in the code point queue cannot be found, the character code point can be continuously intercepted and added into the code point queue until the target code point is successfully found.
In an embodiment of the present application, whether the character code points intercepted continuously are to be continuously added to the code point queue may be determined according to the prepared code points corresponding to the character code points in the existing code point queue, or the target code points cannot be found based on the character code points in the existing character code point queue, and the subsequently intercepted character code points are to be continuously added to the code point queue only when the subsequently intercepted character code points are also included in the prepared code points corresponding to the character code points in the existing character code point queue, so that the multiple input character code points are combined to obtain the combined code point, and the target code point corresponding to the combined code point is found. The position of the character code point intercepted continuously in the code point queue can be determined according to the position of the character code point in the preparation code point.
In an embodiment of the present application, there may be a plurality of code point queues, when a target code point cannot be found based on a character code point in an existing character code point queue and a subsequently intercepted character code point is not included in a preliminary code point corresponding to a character code point in the existing character code point queue, if the subsequently intercepted character code point is included in a preliminary code point other than the preliminary code point corresponding to the character code point in the existing character code point queue, the subsequently intercepted character code point may be stored in the code point queue corresponding to the preliminary code point other than the preliminary code point corresponding to the character code point in the existing character code point queue, if the code point queue corresponding to the preliminary code point other than the preliminary code point corresponding to the character code point in the existing character code point queue does not exist, the subsequently intercepted character code point may be stored in the code point queue whose value is empty, and the subsequently intercepted character code point may be added to the code point queue in which the subsequently intercepted character code point is stored until the target code point corresponding to the character code point in the subsequent intercepted character code point queue successfully stored.
In an embodiment of the application, if the prepared code point containing the character code point is not found in the expression dictionary, the character code point is directly displayed in the input box, and in the process that the character code point enters the sending box from the input box, the application program converts the character code point, so that the character code point is directly converted, and the possibility that the character code point is successfully converted into the character is increased.
In an embodiment of the present application, after finding a target code point that matches a character code point included in a code point queue, the code point queue is emptied, so that a subsequently intercepted character code point is added to the code point queue.
With continued reference to fig. 3, in step S340, the expression associated with the target code point is acquired, and the expression associated with the target code point is displayed in the input box of the application program.
In an embodiment of the present application, the association relationship between the code point and the expression may be preset.
In an embodiment of the present application, a picture associated with a target code point may be obtained; constructing an embedded object corresponding to the picture; the embedded object is displayed in the input box, compared with an input method that input expression characters are directly converted into pictures and sent to the application program, the expression displayed in the input box can be unified with the characters in the input box in terms of height, style and the like, the problem that the characters and the pictures cannot be displayed in the same message in the sending box is avoided, the expression and the characters in the sending box do not have height difference, the expression and the characters can be displayed in the sending box in a mixed mode in the same message with the characters, the semantics of the expression characters can be transmitted to the application program, and the application program can perform other processing by utilizing the semantics. Fig. 4 is a display interface diagram schematically illustrating an input method according to an embodiment of the present application converting an input emoji character into a picture format and sending the converted emoji character to an application.
In one embodiment of the present application, the embedded Object may be an Object Linking and Embedding (OLE) Object of the input expression.
In one embodiment of the present application, a target picture may be stored in a picture storage area; and acquiring an interface pointer for accessing the picture storage area, and taking the interface pointer as an embedded object.
In an embodiment of the application, the picture storage area may be established according to a target picture, or may be existing, the picture storage area may be located in a block chain, the picture storage area may be located in a cloud or locally, and when the picture storage area is located locally, the picture storage area may be located in a terminal or a server.
In the embodiment of fig. 3, by monitoring character input actions in an application program, an input method intercepting input characters is transmitted to character code points of the application program through the input actions; if the character code points are recognized to be the expression code points, adding the character code points into a code point queue; searching a target code point matched with the character code points contained in the code point queue based on the code point queue; the expression associated with the target code point is acquired, the expression associated with the target code point is displayed in an input box of the application program, and compared with the compatible conversion depending on the application program, the probability of the successful display of the expression character can be increased, so that the problem that the input box of the application program displays messy codes can be improved to a certain extent, and meanwhile, the semantics of the input character can be transmitted to the application program.
Fig. 5 schematically shows a flowchart of an expression input method according to an embodiment of the present application, and an execution subject of the expression input method may be a server, such as the server 203 shown in fig. 2.
Referring to fig. 5, the expression input method at least includes steps S510 to S5100, which are described in detail as follows:
in step S510, a character is input.
In step S520, the input codepoint is intercepted before the input box is displayed.
In one embodiment of the present application, the code point intercepted from inputting is a character code point corresponding to the input character.
In step S530, it is queried whether it is an emoticon point.
In an embodiment of the application, whether the code point intercepted to input is an expression code point or not can be inquired by inquiring an expression dictionary. If the code point intercepted for input is a part of the expression code point, the code point intercepted for input is determined to be the expression code point.
In this embodiment, the inventor finds that the ranges of code points of character codes (Unicode) used by expressions in each input method and application program are all in accordance with the Unicode standard, so that any code point falling in the expression dictionary necessarily belongs to a certain expression.
In step S530, if the current code point is not an expression code point, the method jumps to step S540, and the current code point in the queue is directly output to the input box.
In step S550, the code point queue is emptied.
In step S560, the process ends.
In step S530, if the expression code point is found, the process goes to step S570, and adds the expression code point queue.
In step S580, it is checked whether the codepoint queue can completely match a certain expression.
In step S580, if a certain expression cannot be completely matched, the process jumps to step S560 and ends.
In an embodiment of the present application, the code point intercepted from the input may be added to the expression code point queue, and a subsequent code point of the input stream is waited. The subsequent code points need to be checked in the same way and belong to the enqueue of the expression. And when the code point queue can be completely matched with a certain expression in the expression dictionary, jumping to the step S590, and acquiring an expression picture.
In step S580, if a certain expression can be completely matched, in step S590, an expression picture is acquired.
In step S5100, the input box inputs an Object Linking and Embedding (OLE) Object of an expression, and then jumps to step S550 again to empty the code point queue.
In an embodiment of the application, when the code point queue can be completely matched with a certain expression in the expression dictionary, an expression picture is acquired through the expression dictionary, an OLE object displaying the picture is constructed and is output to the input box.
The embodiment of fig. 5 shows a scheme in which the input and output of expressions are two completely inverse processes with respect to each other in the optimized input box. When an application program needs to acquire an input character, a code point combination composed of a plurality of code points stored in a code point queue can be obtained by reading a data structure of an OLE object.
In the embodiment, the problems of expression semantic transmission and expression display are solved, and expressions can be used as common characters and common texts on any application of any operating system. Fig. 6 schematically shows a display interface diagram for inputting an expression using the expression input method of the present application.
Embodiments of the apparatus of the present application are described below, which may be used to implement the expression input method in the above embodiments of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the expression input method described above in the present application.
FIG. 7 schematically shows a block diagram of an expression input device according to one embodiment of the application.
Referring to fig. 7, the expression input device 700 according to an embodiment of the present application includes an intercepting module 701, a joining module 702, a determining module 703, and a displaying module 704.
According to an aspect of the embodiment of the present application, based on the foregoing solution, the intercepting module 701 is configured to monitor a character input action in an application program, and an input method used for intercepting input characters is transmitted to a character code point of the application program through the input action; the adding module 702 is configured to add the character code point to the code point queue if the character code point is identified as the expression code point; the determining module 703 is configured to search for a target code point matching a character code point contained in the code point queue based on the code point queue; the display module 704 is configured to obtain the expression associated with the target code point, and display the expression associated with the target code point in an input box of the application program.
In an embodiment of the present application, based on the foregoing solution, the display module 704 is further configured to: and if the character code point is recognized as a non-expression code point, directly displaying the character code point in the input box.
In an embodiment of the present application, based on the foregoing solution, the display module 704 is configured to: acquiring a picture associated with the target code point; constructing an embedded object corresponding to the picture; the embedded object is displayed in the input box.
In an embodiment of the present application, based on the foregoing solution, the display module 704 is configured to: storing the target picture in a picture storage area; and acquiring an interface pointer for accessing the picture storage area, and taking the interface pointer as an embedded object.
In an embodiment of the present application, based on the foregoing solution, the determining module 703 is configured to: if the target code point cannot be found, the character code points are continuously intercepted and added into the code point queue until the target code point is successfully found.
In an embodiment of the present application, based on the foregoing scheme, the determining module 703 is further configured to: and emptying the code point queue after finding the target code point matched with the character code points contained in the code point queue.
In an embodiment of the present application, based on the foregoing scheme, the determining module 703 is configured to: before searching a target code point matched with the character code points contained in the code point queue based on the code point queue, searching a prepared code point containing the character code points in a set expression dictionary; if the prepared code point containing the character code point is found, the character code point is added into the code point queue.
In an embodiment of the present application, based on the foregoing solution, the display module 704 is further configured to: and if the prepared code points containing the character code points are not found in the expression dictionary, directly displaying the character code points in the input box.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 80 according to this embodiment of the present application is described below with reference to fig. 8. The electronic device 80 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the electronic device 80 is in the form of a general purpose computing device. The components of the electronic device 80 may include, but are not limited to: the at least one processing unit 81, the at least one memory unit 82, a bus 83 connecting different system components (including the memory unit 82 and the processing unit 81), and a display unit 84.
Wherein the storage unit stores program code, which may be executed by the processing unit 81, such that the processing unit 81 performs the steps according to various exemplary embodiments of the present application described in the section "example methods" above in this description.
The storage unit 82 may include readable media in the form of volatile storage units, such as a random access storage unit (RAM) 821 and/or a cache storage unit 822, and may further include a read only storage unit (ROM) 823.
The memory unit 82 may also include a program/utility 824 having a set (at least one) of program modules 825, such program modules 825 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 83 can be any bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 80 may also communicate with one or more external devices (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 80, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 80 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 85. Also, the electronic device 80 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 86. As shown, the network adapter 86 communicates with the other modules of the electronic device 80 over a bus 83. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 80, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present application.
There is also provided, in accordance with an embodiment of the present application, a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the present application may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present application described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
According to one embodiment of the present application, a program product for implementing the above method may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present application and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An expression input method, comprising:
monitoring a character input action in an application program, and intercepting a character code point transmitted to the application program by an input method used for inputting the character through the input action;
if the character code points are recognized to be expression code points, adding the character code points into a code point queue;
searching a target code point matched with the character code points contained in the code point queue based on the code point queue;
and acquiring the expression associated with the target code point, and displaying the expression associated with the target code point in an input box of the application program.
2. The expression input method according to claim 1, further comprising:
and if the character code point is identified to be a non-expression code point, directly displaying the character code point in the input box.
3. The method according to claim 1, wherein the obtaining the expression associated with the target code point includes:
acquiring a picture associated with the target code point;
constructing an embedded object corresponding to the picture;
displaying the embedded object in the input box.
4. The expression input method of claim 3, wherein the constructing of the embedded object corresponding to the picture comprises:
storing the target picture in a picture storage area;
and acquiring an interface pointer for accessing the picture storage area, and taking the interface pointer as the embedded object.
5. The method of claim 1, wherein the searching for a target code point matching a character code point included in the code point queue based on the code point queue comprises:
if the target code point cannot be found, the character code points are intercepted continuously and added into the code point queue until the target code point is found successfully.
6. The expression input method according to claim 1, characterized in that the method further comprises:
and after the target code point matched with the character code point contained in the code point queue is found, emptying the code point queue.
7. The method according to claim 1, wherein before searching for a target code point matching a character code point included in the code point queue based on the code point queue, the method comprises:
searching a prepared code point containing the character code point in a set expression dictionary;
and if the prepared code point containing the character code point is found, adding the character code point into the code point queue.
8. The expression input method according to claim 7, further comprising:
and if the prepared code points containing the character code points are not found in the expression dictionary, directly displaying the character code points in the input box.
9. An expression input device, comprising:
the intercepting module is configured to monitor character input actions in an application program, and intercept character code points transmitted to the application program by an input method used for inputting the characters through the input actions;
the adding module is configured to add the character code points into a code point queue if the character code points are identified to be expression code points;
the determining module is configured to search a target code point matched with the character code points contained in the code point queue based on the code point queue;
and the display module is configured to acquire the expression associated with the target code point and display the expression associated with the target code point in an input box of the application program.
10. A computer program storage medium having computer readable instructions stored thereon which, when executed by a processor of a computer, cause the computer to perform the method of any one of claims 1-8.
CN202110865572.6A 2021-07-29 2021-07-29 Expression input method, expression input device and computer program storage medium Pending CN115686229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110865572.6A CN115686229A (en) 2021-07-29 2021-07-29 Expression input method, expression input device and computer program storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110865572.6A CN115686229A (en) 2021-07-29 2021-07-29 Expression input method, expression input device and computer program storage medium

Publications (1)

Publication Number Publication Date
CN115686229A true CN115686229A (en) 2023-02-03

Family

ID=85058053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110865572.6A Pending CN115686229A (en) 2021-07-29 2021-07-29 Expression input method, expression input device and computer program storage medium

Country Status (1)

Country Link
CN (1) CN115686229A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116796705A (en) * 2023-08-09 2023-09-22 腾讯科技(深圳)有限公司 Method and device for detecting expression, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116796705A (en) * 2023-08-09 2023-09-22 腾讯科技(深圳)有限公司 Method and device for detecting expression, electronic equipment and storage medium
CN116796705B (en) * 2023-08-09 2024-03-12 腾讯科技(深圳)有限公司 Method and device for detecting expression, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
WO2020253389A1 (en) Page translation method and apparatus, medium, and electronic device
CN107491477B (en) Emotion symbol searching method and device
EP3929774B1 (en) Name label display method and apparatus
US8583743B1 (en) System and method for message gateway consolidation
TW201539322A (en) Compressed serialization of data for communication from a client-side application
US10693820B2 (en) Adding images to a text based electronic message
WO2018053594A1 (en) Emoji images in text messages
EP3961426A2 (en) Method and apparatus for recommending document, electronic device and medium
US10671686B2 (en) Processing webpage data
CN109039876A (en) Email processing method and device
CN111625308A (en) Information display method and device and electronic equipment
KR20220061926A (en) Method and apparatus for switching skin of mini-program page, and electronic device
CN108846098B (en) Information flow abstract generating and displaying method
CN115686229A (en) Expression input method, expression input device and computer program storage medium
JP2022093317A (en) Computer-implemented method, system and computer program product (recognition and restructuring of previously presented information)
CN112968828A (en) Chat message display method, device, equipment and storage medium
CN113393842A (en) Voice data processing method, device, equipment and medium
CN109947526B (en) Method and apparatus for outputting information
CN111555960A (en) Method for generating information
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN112487765B (en) Method and device for generating notification text
CN114239501A (en) Contract generation method, apparatus, device and medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
US9426173B2 (en) System and method for elimination of spam in a data stream according to information density

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination