Method, device, medium and electronic device for processing messages in instant messaging
By providing a style editing interface and message description file processing methods in instant messaging applications, the problems of information display style customization and platform adaptability are solved, efficient message display and interactivity are achieved, and cost is reduced.
Patent Information
- Application Number
- CN202011255586.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-11-11
AI Technical Summary
Existing instant messaging application software is difficult to meet the customization needs of information display styles, and its adaptability on different platforms is insufficient, resulting in higher costs.
Provide a method for processing messages in instant messaging, receive style information through the display style editing interface, generate message description files, and draw and display based on the platform information of the target terminal, ensuring the adaptability and interactivity of messages on different platforms. .
It realizes user custom editing of message display styles, meets the adaptability of different platforms, improves message interactivity and information acquisition efficiency, and reduces development and maintenance costs.
Smart Images

Figure CN114489635B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer and communication technology, and in particular to a method, device, medium and electronic device for processing messages in instant messaging. Background Art
[0002] The purpose of instant messaging application software is to complete information exchange instantly and effectively. The sources and types of this information can be diverse. In the current technical solutions, the display style of information generally adopts a fixed style. If the display style of information needs to be modified, the application software needs to be configured accordingly and adapted to different platforms, which is costly. Therefore, how to meet the customized needs for the display style of information and ensure adaptability to different platforms has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a method, device, medium and electronic device for processing messages in instant messaging, which can at least to a certain extent meet the customized requirements for the display style of information and ensure adaptability to different platforms.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for processing messages in an instant messaging is provided, the method comprising:
[0006] If a style editing request for a message is received, a style editing interface is displayed;
[0007] Generate a message description file corresponding to the message according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information;
[0008] Sending the message description file to a target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in an instant messaging interface;
[0009] Feedback information sent by the target terminal is received, where the feedback information is generated based on the interaction with the message.
[0010] According to one aspect of an embodiment of the present application, a method for processing messages in an instant messaging is provided, the method comprising:
[0011] Receiving a message description file sent by another terminal, wherein the message description file is used to describe style information of the message;
[0012] According to the platform information of the current terminal, the message description file is drawn to obtain the message to be displayed corresponding to the message description file;
[0013] Displaying the message to be displayed in the instant messaging interface, and obtaining feedback information generated by interacting with the message to be displayed;
[0014] Sending the feedback information to the other terminal.
[0015] According to one aspect of an embodiment of the present application, a device for processing messages in an instant messaging is provided, the device comprising:
[0016] A first receiving module, configured to display a style editing interface if a style editing request for a message is received;
[0017] A file generation module, used to generate a message description file corresponding to the message according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information;
[0018] A first sending module, used for sending the message description file to a target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in an instant messaging interface;
[0019] The second receiving module is used to receive feedback information sent by the target terminal, where the feedback information is generated based on the interaction of the message.
[0020] In one embodiment of the present application, based on the aforementioned scheme, the first receiving module is configured to: if a style editing request for a message is received, obtain the message content to be edited; process the message content to generate a basic style containing the message content; and display a style editing interface, wherein the style editing interface includes the editable basic style.
[0021] In one embodiment of the present application, based on the above solution, the first receiving module is configured to: obtain the message content to be edited from the subscribed cloud service.
[0022] In one embodiment of the present application, based on the aforementioned scheme, the first receiving module is configured to: determine the domain information corresponding to the message content according to the keywords contained in the message content and the pre-set correspondence between the keywords and the domain information; determine the basic style corresponding to the message content according to the domain information corresponding to the message content, and add the message content to the basic style.
[0023] In one embodiment of the present application, based on the aforementioned scheme, the style information is in the object notation format, and the file generation module is configured to: convert the style information in the object notation format received by the style editing interface into the style information in the extensible markup language format; parse the style information in the extensible markup language format to generate a corresponding binary file as a message description file.
[0024] In one embodiment of the present application, based on the aforementioned scheme, the first sending module is configured as follows: if a request for sending a message is received, a sending object determination interface is displayed, the sending object determination interface includes at least one sending object to be selected; according to the sending object information received on the sending object determination interface, the target sending object corresponding to the message is determined; and the message description file is sent to the target terminal corresponding to the target sending object.
[0025] According to one aspect of an embodiment of the present application, a device for processing messages in an instant messaging is provided, the device comprising:
[0026] A third receiving module is used to receive a message description file sent by other terminals, wherein the message description file is used to describe the style information of the message;
[0027] A drawing module, used for drawing the message description file according to the platform information of the current terminal to obtain the message to be displayed corresponding to the message description file;
[0028] A display module, used for displaying the message to be displayed in the instant messaging interface, and obtaining feedback information generated by interacting with the message to be displayed;
[0029] The second sending module is used to send the feedback information to the other terminal.
[0030] In one embodiment of the present application, based on the aforementioned scheme, the drawing module is configured to: parse the message description file to generate a control tree corresponding to the message description file, the control tree including the hierarchical relationship between the controls in the message description file and the attribute information corresponding to each of the controls; draw the message description file according to the platform information of the current terminal, the hierarchical relationship between the controls and the attribute information corresponding to each of the controls, and obtain the message to be displayed corresponding to the message description file.
[0031] In one embodiment of the present application, based on the aforementioned scheme, the drawing module is configured to: determine the display position and size corresponding to each of the controls according to the hierarchical relationship between the controls and the attribute information corresponding to each of the controls; query according to the platform information of the current terminal to determine the drawing strategy corresponding to the platform information; draw the message description file according to the drawing strategy and the display position and size corresponding to each of the controls.
[0032] In one embodiment of the present application, based on the aforementioned scheme, the drawing module is configured to: determine the parent control in each of the controls and the child control corresponding to the parent control according to the hierarchical relationship between the controls; determine the display position and size of the parent control and the child control corresponding to the parent control according to the attribute information of the parent control and the attribute information of the child control corresponding to the parent control.
[0033] In one embodiment of the present application, based on the aforementioned scheme, the drawing module is configured to: determine the display area in the parent control for displaying the child control according to the padding value in the attribute information of the parent control; determine the corresponding display position and size of the child control in the display area according to the width and height information in the attribute information of the child control corresponding to the parent control and the alignment relative to the parent control.
[0034] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for processing messages in instant messaging as described in the above embodiment is implemented.
[0035] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing messages in instant messaging as described in the above embodiments.
[0036] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for processing messages in instant messaging provided in the above embodiments.
[0037] In the technical solutions provided by some embodiments of the present application, if a style editing request for a message is received, a style editing interface is displayed, and a message description file corresponding to the message is generated according to the style information received by the style editing interface, and the message description file is sent to the target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in the instant messaging interface. Thus, the user can customize the display style of the message through the style editing interface to meet the user's custom needs, and the target terminal can draw the message description file according to its own platform information, ensuring the adaptability of the display style of the message to the target terminal. In addition, the target terminal can obtain the user's interactive information based on the message to generate feedback information, and provide feedback to the sender of the message, which improves the interactivity of the message while also improving the efficiency of information acquisition.
[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0040] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0041] Figure 2 A schematic diagram showing a flow chart of a method for processing messages in instant messaging according to an embodiment of the present application;
[0042] Figure 3 An embodiment according to the present application is shown. Figure 2 A flow chart of step S210 in the method for processing messages in instant messaging;
[0043] Figure 4 An embodiment according to the present application is shown. Figure 3 A flow chart of step S320 in the method for processing messages in instant messaging;
[0044] Figure 5 An embodiment according to the present application is shown. Figure 2 A flow chart of step S220 in the method for processing messages in instant messaging;
[0045] Figure 6 An embodiment according to the present application is shown. Figure 2 A flow chart of sending a message description file in a method for processing messages in instant messaging;
[0046] Figure 7 A schematic diagram showing a flow chart of a method for processing messages in instant messaging according to another embodiment of the present application;
[0047] Figure 8 An embodiment according to the present application is shown. Figure 7 A flow chart of step S720 in the method for processing messages in instant messaging;
[0048] Fig. 9 An embodiment according to the present application is shown. Figure 8 A flow chart of step S820 in the method for processing messages in instant messaging;
[0049] Fig.10 The present invention is shown in an exemplary embodiment of the present invention. Fig. 9 A flow chart of step S910 in the method for processing messages in instant messaging;
[0050] Fig.11 An embodiment according to the present application is shown. Fig.10 A flow chart of step S1020 in the method for processing messages in instant messaging;
[0051] Fig.12 and Fig.13 A terminal interface diagram showing a method for processing messages in instant messaging that can be applied to an embodiment of the present application;
[0052] Fig.14 A system level schematic diagram showing the technical solution to which the present application embodiment can be applied;
[0053] Fig.15 A block diagram of a device for processing messages in instant messaging according to an embodiment of the present application is shown;
[0054] Fig.16 A block diagram of a device for processing messages in instant messaging according to another embodiment of the present application is shown;
[0055] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0056] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0057] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0058] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0059] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0060] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.
[0061] like Figure 1 As shown, the system architecture may include a transmitter 110, a network 120 and a receiver 130, wherein the network 120 is used to provide a medium for a communication link between the transmitter 110 and the receiver 130. The network 120 may include various connection types, such as a wired communication link, a wireless communication link, and the like.
[0062] It should be noted that the transmitting end 110 and the receiving end 130 can be one or more of a smart phone, a tablet computer, a portable computer or a desktop computer, or other electronic devices with computing functions, which is not specifically limited in this application.
[0063] It should be understood that Figure 1The number of the sending end 110, the network 120 and the receiving end 130 is only for illustration. According to the implementation requirements, there can be any number of the sending end 110, the network 120 and the receiving end 130. For example, the receiving end 130 can be a terminal used by multiple users in a group chat, etc.
[0064] In one embodiment of the present application, a user may use the sending end 110 to interact with the receiving end 130 through the network 120 to receive or send messages, etc. For example, when a user uses the sending end 110 to send a message, if the sending end 110 receives a style editing request for the message, the style editing interface is displayed, and a message description file corresponding to the message is generated according to the style information received in the style editing interface, the style information includes text information, component information and layout information, and the message description file is sent to the target terminal, so that the target terminal parses the message description file according to its own platform information and displays the message in the corresponding interface.
[0065] It should be noted that the method for processing messages in instant messaging provided in the embodiments of the present application is generally executed by a terminal device (such as the receiving end 110, etc.), and accordingly, the device for processing messages in instant messaging is generally set in the terminal device. However, in other embodiments of the present application, the server may also have similar functions to the terminal device, thereby executing the method for processing messages in instant messaging provided in the embodiments of the present application.
[0066] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0067] Figure 2 The flowchart of the method for processing messages in instant messaging according to an embodiment of the present application is shown. Figure 2 As shown, the method for processing messages in instant messaging includes at least steps S210 to S240, which are described in detail as follows:
[0068] In step S210, if a style editing request for a message is received, a style editing interface is displayed.
[0069] The style editing request for a message may be information for requesting to edit the style of a message. In one example, a user may click a specific area on a terminal interface (e.g., a "Style Editing" button, etc.) to generate a style editing request for a message, requesting to edit the style of the message.
[0070] The style editing interface may be an interface for users to edit the style of a message. The style interface may include various editing options, such as text editing, component editing, and layout editing, etc. Users may select and input various editing options in the style editing interface to modify the style of the message as required, thereby meeting the purpose of customization.
[0071] In an exemplary embodiment of the present application, after the user inputs the message content using an input device configured by the terminal device (such as an input keyboard, a mouse, or a touch screen, etc.), the user can click a specific area on the interface (such as a "style editing" button, etc.) to generate a style editing request for the message to request to modify the style of the message. When the terminal device receives the style editing request for the message, the style editing interface can be displayed on the interface, and the style editing interface includes various types of editing options for the user to select the corresponding editing options for modification and input. When the user is finished editing, the user can click a specific area on the interface (such as a "editing completed" button, etc.) to end the editing.
[0072] In other exemplary embodiments of the present application, the user can also directly click the "Style Edit" button on the interface, and enter the message content and other style information to be sent in the style editing interface, and click the "Edit Complete" button to end the editing after the input is completed. Those skilled in the art can select the corresponding editing method according to actual implementation needs, and the present application does not make any special restrictions on this.
[0073] In step S220, a message description file corresponding to the message is generated according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information.
[0074] Among them, the style information can be the relevant information used to describe the style of the message, which can include but is not limited to the text information, component information and layout information of the message. Among them, the text information can be the text content of the message, and the text content can include but is not limited to text, font and color; the component information can be the relevant information of each component contained in the message, such as the buttons, input boxes, etc. contained in the message; the layout information can be the placement and arrangement of the text information and component information, such as whether the text information is located above, on the left, on the right or below a component, or whether two components are arranged horizontally or vertically, etc. Therefore, according to the style information received by the style editing interface, the style of the message that the user wants to send can be determined for subsequent drawing.
[0075] In an exemplary embodiment of the present application, after the user completes editing the style of the message, the terminal can generate a message description file corresponding to the message the user wants to send based on the style information received in the style editing interface. The message description file can be used to describe the style of the message. Specifically, the message description file can include the style information of the message and record the style information in the form of code to facilitate subsequent transmission.
[0076] In step S230, the message description file is sent to the target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in the instant messaging interface.
[0077] The target terminal may be a terminal used by the receiving user of the message, and the receiving user may be an instant messaging contact of the sending user of the message, such as a QQ friend or a WeChat friend, or a contact in an instant messaging group of the sending user of the message, such as a QQ group member or a WeChat group member, that is, the sending user of the message may send the message with the edited style to the instant messaging group, and this application does not impose any special restrictions on this.
[0078] In one embodiment of the present application, after generating a message description file, the terminal can send the message description file to the target terminal used by the recipient of the message. After receiving the message description file, the target terminal can obtain its own platform information, which can be related information of the operating system used by the target terminal. For example, the operating system used by the target terminal can include but is not limited to IOS, Android, MacOS, and Windows systems, etc. And according to the platform information and the received message description file, the message is drawn. Specifically, the target terminal can select a drawing strategy corresponding to the platform information according to its own platform information to parse and draw the message description file, and obtain a message corresponding to the message description file, thereby realizing the adaptation of the message after style editing to the target terminal of different platforms. After the message is drawn, it can be displayed on the instant messaging interface of the target terminal for the user of the target terminal to obtain, for example, the drawn message can be displayed in the chat interface in the QQ group chat or the chat interface of the WeChat group chat, etc.
[0079] In step S240, feedback information sent by the target terminal is received, where the feedback information is generated based on the interaction with the message.
[0080] In one embodiment of the present application, when editing the style of a message, the user can add various types of components to the message, such as buttons, charts, or input boxes. The user of the target terminal can interact based on the various components in the message. For example, when obtaining relevant information of employees in an enterprise, such as height, weight, or suggestions for internal management, the user can add an input box component to the message, and after receiving the message, the user of the target terminal can enter the required information in the input box based on the input box component carried by the message, thereby interacting.
[0081] The target terminal can obtain the information filled in by the user and generate feedback information accordingly to provide feedback to the sending terminal of the message. In one example, the feedback information can include the identity of the user of the target terminal, such as QQ number, WeChat number, work number or contact number, so as to clarify the subordinate of the feedback information.
[0082] exist Figure 2 In the embodiment shown, if the terminal device receives a style editing request for a message, the style editing interface can be displayed on the interface, and a message description file corresponding to the message that the user wants to send is generated based on the style information received in the style editing interface, and the message description file is then sent to the target terminal used by the recipient of the message, so that the target terminal can draw according to its own platform information and the message description file to generate the corresponding message, and display it in the instant messaging interface. After displaying, the target terminal can obtain the user's interactive information based on the message and provide feedback to the sender of the message to improve the interactivity of the message.
[0083] Therefore, the message processing method in the instant messaging not only meets the user's demand for customizing the message style, but also draws the message according to the platform information of the target terminal, so that messages of different styles can be adapted to different platforms, thereby improving the scope of application of messages of different styles. At the same time, users can also interact according to various types of components in the message, thereby improving the interactivity of the message and the efficiency of obtaining information.
[0084] In an exemplary embodiment of the present application, a technician can write a rendering engine based on Kotlin Multi platform to build the style editing platform, so that the code written in the style editing platform has cross-platform capabilities to save the development and maintenance costs of the rendering engine. At the same time, using the same set of parsing methods to parse the message description file in different terminal devices can ensure the consistency of the drawing and rendering effects of the message in different terminal devices.
[0085] based on Figure 2 The embodiment shown, Figure 3An embodiment according to the present application is shown. Figure 2 Schematic diagram of the process of step S210 in the method for processing messages in instant messaging. Figure 3 As shown, step S210 at least includes steps S310 to S330, which are described in detail as follows:
[0086] In step S310, if a style editing request for a message is received, the message content to be edited is obtained.
[0087] The message content to be edited may be the basic information of the message that the user wants to send, such as text information or picture information of the message. The terminal device obtains the message content to be edited to complete the basic input of the message, so that the user can edit the style based on the message content to be edited, thereby improving the editing efficiency of the user.
[0088] In an exemplary embodiment of the present application, a user can input relevant content of the message to be sent, such as text or pictures, in advance in the chat interface. After receiving a style editing request for the message, the terminal device can obtain the content pre-entered by the user at the corresponding position for subsequent editing by the user.
[0089] In step S320, the message content is processed to generate a basic pattern including the message content.
[0090] In an exemplary embodiment of the present application, the basic style may be a message style pre-set by a developer, and the user may edit the style on the basic style, modify the components and layout in the basic style, to meet the customized needs. Thus, after the terminal device obtains the message content to be edited, it may add the message content to the pre-set basic style to form a basic style that can be edited by the user.
[0091] Specifically, a plurality of spaces for filling in may be reserved in the basic style, such as title, time, main content, etc. The terminal device may fill the message content into the spaces in the basic style accordingly, thereby generating a basic style including the message content. Since the basic style includes the message content in advance, the user does not need to input it again, thereby improving the user's input efficiency.
[0092] In step S330, a style editing interface is displayed, wherein the style editing interface includes the editable basic style.
[0093] In an exemplary embodiment of the present application, the terminal device can add the basic style to the style editing interface and display the style editing interface in the interface. The user can select various editing options in the style editing interface to edit the basic style, such as modifying the font, font color, adding components or adjusting the layout.
[0094] exist Figure 3 In the illustrated embodiment, by presetting a basic style, after obtaining the message content to be edited, the terminal device adds the message content to the basic style and displays it in the style editing interface, which can facilitate user modification and improve the efficiency of message style editing.
[0095] based on Figure 2 and Figure 3 In the embodiment shown, in an exemplary embodiment of the present application, obtaining the message content to be edited includes:
[0096] Get the message content to be edited from the subscribed cloud service.
[0097] Among them, the cloud service can be a service that provides various message push services, which can push messages from the message provider's server to each subscribed user. The message can be of various types, such as news messages, weather forecasts, or internal management information of an enterprise, etc.
[0098] In an exemplary embodiment of the present application, a user can subscribe to various types of cloud services to receive messages sent by the server of the cloud service, and store and update the messages. The user can edit the style of the received message to push the message pushed by the cloud service to other users' terminals according to the custom style, thereby increasing the diversity of message styles and adapting to different needs.
[0099] For example, if the subscribed cloud service is the company's internal management information, the administrator can add interactive components, such as "received" or "read" buttons, to the management information after receiving it, and send the modified management information to the enterprise group chat. When group members receive the management message, they can click the "received" or "read" button in the management information and reply in the group chat with "XXX has received" or "or XXX has read", thereby improving the interactivity of the group chat and making it easier for the administrator to count the responses to the management information.
[0100] based on Figure 2 and Figure 3 The embodiment shown, Figure 4 An embodiment according to the present application is shown. Figure 3 Schematic diagram of the process of step S320 in the method for processing messages in instant messaging. Figure 4 As shown, step S320 at least includes steps S410 to S420, which are described in detail as follows:
[0101] In step S410, the domain information corresponding to the message content is determined according to the keywords included in the message content and the pre-set correspondence between the keywords and the domain information.
[0102] Among them, the field information can be information used to classify the content of the message. For example, the message can be divided into fields such as information notification, information collection, and feedback according to the content of the message. Among them, information notification is mainly a notification type message, such as a meeting notice, system notification, or news information push within the enterprise; information collection can be a message used to collect relevant information of the target object. For example, in certain cases, it is necessary to collect the identity document information, height and weight information of employees within the enterprise; feedback can be a message used to collect the opinions of the target object, such as suggestions for modifying the internal system of the enterprise, opinions on a certain social situation, etc. The above division is only an illustrative example. Those skilled in the art can divide the message into different fields according to the implementation needs, and this application does not make any special restrictions on this.
[0103] In an exemplary embodiment of the present application, after the terminal device obtains the message content to be edited, the domain information corresponding to the message content can be determined according to the message content. Specifically, the keywords contained in the message content can be determined, and a query can be performed according to a pre-set keyword and domain information correspondence table to determine the domain information corresponding to the message content.
[0104] For example, as shown in Table 1 below:
[0105] Keywords Field Information Announcement, release... Notification Field Collect, gather... Information collection field Feedback, suggestions... Feedback Areas … …
[0106] Table 1 Correspondence between keywords and domain information
[0107] As shown in the above keyword and field information correspondence table, if the message content contains keywords such as "notification" and "release", the field information corresponding to the message content is the notification field; if the message content contains keywords such as "collection" and "collection", the field information corresponding to the message content is the information collection field; if the message content contains keywords such as "feedback" and "suggestion", the field information corresponding to the message content is the feedback field.
[0108] The terminal device can perform word segmentation on the message content to be edited, obtain the words contained in the message content, and compare the words contained in the message content with the keywords contained in the keyword and domain information correspondence table. If the words contained in the message content correspond to a certain keyword, the domain information to which the keyword belongs can be determined, that is, the domain information corresponding to the message content.
[0109] In step S420, a basic style corresponding to the message content is determined according to the domain information corresponding to the message content, and the message content is added to the basic style.
[0110] In an exemplary embodiment of the present application, a person skilled in the art can pre-set different basic styles for the message content of information in different fields. For example, for the basic style of the message content in the notification field, a "received" or "read" button can be pre-added in the basic style; for the message content in the information collection field, a component such as an "information input box" can be pre-added in the basic style; for the information feedback field, a component such as an "opinion feedback input box" can be pre-added in the basic style, etc. Thus, the basic components necessary for the message content in different fields are added to the basic style to facilitate the user to edit and improve the editing efficiency of the message style.
[0111] Therefore, after determining the domain information of the message content to be edited, the terminal device can determine the basic style that should be adopted for the message content according to the domain information corresponding to the message content, and fill the message content into the corresponding space in the basic style. Since the basic style already contains the basic components required for different domain information, the user only needs to modify the properties of the basic components to complete the style editing, thereby improving the user's style editing efficiency.
[0112] based on Figure 2 The embodiment shown, Figure 5 An embodiment according to the present application is shown. Figure 2 Schematic diagram of the process of step S220 in the method for processing messages in instant messaging. Figure 5 As shown, the style information is in the object notation format, then step S220 at least includes steps S510 to S520, which are described in detail as follows:
[0113] In step S510, according to the style information in the object musical notation format received by the style editing interface, the style information is converted into style information in the extensible markup language format.
[0114] In an exemplary embodiment of the present application, the object notation format is the JS object notation (JavaScript Object Notation, JSON) format, which can abstract the layout and components and describe the layout by using a combination of keywords, thereby making it easy for users to understand and edit, meeting the needs of users with no programming foundation or low programming foundation, and improving the scope of application of style customization.
[0115] Specifically, the style editing interface may include a style information editing bar in the JS object notation format, in which the user may modify, add or delete the basic style. After the user completes the editing, the style information in the JS object notation format may be generated accordingly.
[0116] After the terminal device obtains the style information, due to the stability of Extensible Markup Language (XML), it can convert the style information in the JS object notation format into the style information in the Extensible Markup Language format. At the same time, no matter how the JS object notation format is changed or expanded, the Extensible Markup Language can convert it and ensure the conversion effect, so there is no need to modify it accordingly, which can save manual maintenance costs.
[0117] In step S520, the style information in the extensible markup language format is parsed to generate a corresponding binary file as a message description file.
[0118] In an exemplary embodiment of the present application, since the style information in the extensible markup language format is relatively lengthy, after obtaining the style information in the extensible markup language format, the terminal device can parse the style information in the extensible markup language format to serialize it into a binary file, and use the obtained binary file as a message description file. The message description file can be subsequently transmitted, which can reduce the data volume, save transmission resources, and also improve the loading speed of subsequent messages.
[0119] based on Figure 2 The embodiment shown, Figure 6 An embodiment according to the present application is shown. Figure 2 Flow chart of sending a message description file in a method for processing messages in instant messaging. Figure 6 As shown, sending a message description file at least includes steps S610 to S630, which are described in detail as follows:
[0120] In step S610, if a message sending request is received, a sending object determination interface is displayed, wherein the sending object determination interface includes at least one sending object to be selected.
[0121] The message sending request may be information for requesting the sending of a message. After the user completes editing the message style, the user may click a specific area on the interface (eg, a "message sending" button, etc.) to generate the sending request.
[0122] The sending object determination interface may be an interface for determining the target recipient of a message, and the sending object determination interface may include at least one sending object to be selected. It should be noted that the sending object to be selected may be a single contact or a group chat to which the message sender belongs, etc., and this application does not specifically limit this. Specifically, the terminal device may obtain a user's contact list, and the contact list may include a single contact or a group chat, etc., so as to display the contact or group chat in the contact list as the sending object to be selected.
[0123] In one embodiment of the present application, after the terminal device receives a request to send a message, a sending object determination interface may be displayed in the corresponding display interface, and the sending object determination interface includes at least one sending object to be selected. It should be noted that the at least one described in the present application may be one, or any number of more than one, such as two, three, or ten, etc., and the present application does not make any special restrictions on this. The user may select a certain sending object to be selected from the sending objects to be selected included in the sending object determination interface for sending. It should be noted that the user may also select multiple sending objects to be selected for message sending, and the present application does not make any special restrictions on this.
[0124] In step S620, the target sending object corresponding to the message is determined according to the sending object information received by the sending object determination interface.
[0125] In an exemplary embodiment of the present application, the terminal device can determine the target sending object corresponding to the message, such as a contact or a group chat, based on the sending object information received in the sending object determination interface, that is, the sending object selected by the user. It should be understood that the target sending object can be one or more.
[0126] In step S630, the message description file is sent to the target terminal corresponding to the target sending object.
[0127] In an exemplary embodiment of the present application, after logging into an instant messaging account, the user can record the login device information corresponding to the instant messaging account for subsequent determination of the target terminal. After determining the target sending object, the terminal device can query the target terminal corresponding to the target sending object and send the message description file to the target terminal.
[0128] exist Figure 6In the illustrated embodiment, through the setting of the sending object determination interface, the user can determine the corresponding target sending object in the sending object determination interface, so that the user can determine the target sending object to send messages, such as group sending or single sending.
[0129] Please refer to Figure 7 , Figure 7 A flow chart of a method for processing messages in instant messaging according to another embodiment of the present application is shown. Figure 7 As shown, the method for processing messages in instant messaging can be applied to a terminal, and the processing method at least includes steps S710 to S740, which are described in detail as follows:
[0130] In step S710, a message description file sent by other terminals is received, where the message description file is used to describe style information of a message.
[0131] In an exemplary embodiment of the present application, a terminal may receive a message description file sent by another terminal, and the message description file may be a file for describing the style information of a message, and the message description file may include but is not limited to the text information, component information, and layout information of the message. It should be noted that the other terminal may be a terminal device such as a smart phone, a tablet computer, a portable computer, or a desktop computer, and it may also be a server, and the present application does not specifically limit this.
[0132] In step S720, the message description file is drawn according to the platform information of the current terminal to obtain the message to be displayed corresponding to the message description file.
[0133] In an exemplary embodiment of the present application, the terminal device can obtain its own platform information, such as IOS, Android, MacOS or Windows system. It should be understood that different platforms use different drawing strategies. In order to adapt to terminal devices with different platform information, the terminal device can select a corresponding drawing strategy to draw the message description file according to its own platform information to ensure the display effect of the message. After the terminal device draws the message description file, the corresponding message to be displayed can be obtained.
[0134] In step S730, the message to be displayed is displayed in the instant messaging interface, and feedback information generated by interaction based on the message to be displayed is obtained.
[0135] In an exemplary embodiment of the present application, the terminal device can obtain the corresponding message to be displayed after drawing the message description file. The terminal device can display the message to be displayed in the corresponding instant messaging interface. For example, in instant messaging, if the recipient is a single user, the terminal device can display the message in the chat interface with the single user; if the recipient is a group chat, the terminal device can display the message in the chat interface of the group chat, and so on.
[0136] After the message to be displayed is displayed in the instant messaging interface, the user can interact based on the components carried in the message, for example, the user can click the "Agree" or "Reject" button in the message, or the user can enter corresponding information in the input box carried in the message, thereby completing the interaction. At the same time, the terminal device can generate corresponding feedback information based on the user's interactive information, and the feedback information can include the user's identity, such as QQ number, WeChat number, work number or contact number, etc., to clarify the subordinate of the feedback information.
[0137] For example, when obtaining the health information of employees within an enterprise, the message can carry an input box in which the user can enter his or her own health information, such as height, weight, etc. The terminal device can generate feedback information based on the health information entered by the user, such as: employee number: 123XXX, height: 175cm, weight: 65Kg, and so on.
[0138] In step S740, the feedback information is sent to the other terminal.
[0139] In one embodiment of the present application, after generating feedback information, the terminal device can send the feedback information to the sender of the message, thereby achieving information acquisition, improving the interactivity of the message while also meeting different usage requirements of the message.
[0140] exist Figure 7 In the embodiment shown, the terminal device can draw the message according to its own platform information and the message description file, so as to meet the adaptability of the message to the terminal devices using different platforms, so as to ensure the display effect of the message on the terminal devices of different platforms. At the same time, there is no need to pre-configure the application used by the terminal devices of each platform, saving the corresponding labor cost. In addition, based on the interaction of the components carried in the message, it is convenient to obtain user information, which improves the interactivity of the message and meets the different usage requirements of the message.
[0141] based on Figure 7 The embodiment shown, Figure 8 An embodiment according to the present application is shown. Figure 7 Schematic diagram of the process of step S720 in the method for processing messages in instant messaging. Figure 8 As shown, step S720 at least includes steps S810 to S820, which are described in detail as follows:
[0142] In step S810, the message description file is parsed to generate a control tree corresponding to the message description file. The control tree includes the hierarchical relationship between the controls in the message description file and the property information corresponding to each of the controls.
[0143] The control tree may be tree structure information used to describe the hierarchical relationship between controls included in the message description file, which also includes property information of the controls included in the message description file, such as size, display position, color, etc.
[0144] In an exemplary embodiment of the present application, after receiving the message description file, the terminal device can parse the message description file to determine the relevant information of various controls contained in the message description file. It should be noted that the control can be an encapsulation of data and methods, and the data can include text information or pictures in the message.
[0145] Therefore, by parsing the message description file, the terminal device can obtain the relevant information of the control corresponding to the message, and generate a corresponding control tree based on the relevant information of the control. The control tree may include the hierarchical relationship between the controls in the message description file (that is, the correspondence between the parent control and the child control within the control) and the attribute information corresponding to each control.
[0146] In step S820, the message description file is drawn according to the platform information of the current terminal, the hierarchical relationship between the controls, and the attribute information corresponding to each of the controls to obtain the message to be displayed corresponding to the message description file.
[0147] In an exemplary embodiment of the present application, the terminal device can draw each control included in the message description file according to its own platform information and control tree to obtain the message to be displayed corresponding to the message description file. Specifically, the terminal device can determine the relationship between the controls according to the control tree, and determine the size, color and display position of each control according to the attribute information of each control, and then select the corresponding drawing strategy based on its own platform information to draw each control to obtain the corresponding message to be displayed.
[0148] exist Figure 8 In the illustrated embodiment, by parsing the message description file to generate a corresponding control tree, the hierarchical relationship between controls and the property information corresponding to each control can be determined based on the control tree. This can avoid control drawing errors, ensure the drawing effect of the message description file, and improve drawing efficiency.
[0149] based on Figure 7 and Figure 8 The embodiment shown, Fig. 9 An embodiment according to the present application is shown. Figure 8 Schematic diagram of the process of step S820 in the method for processing messages in instant messaging. Fig. 9 As shown, step S820 at least includes steps S910 to S930, which are described in detail as follows:
[0150] In step S910, the display position and size corresponding to each of the controls are determined according to the hierarchical relationship between the controls and the attribute information corresponding to each of the controls.
[0151] In an exemplary embodiment of the present application, the terminal device can determine the parent control and the child control corresponding to the parent control according to the hierarchical relationship between the controls. It should be understood that the child control should be displayed within the display range of the parent control. Then, the display position and size of each control are determined according to the attribute information corresponding to each control, such as the width, height, vertex position, display position rule, etc. of the control.
[0152] In step S920, a query is performed based on the platform information of the current terminal to determine the drawing strategy corresponding to the platform information.
[0153] In an exemplary embodiment of the present application, those skilled in the art may pre-set corresponding drawing strategies according to different platform information. After the terminal device obtains its own platform information, it may query according to the platform information to determine the corresponding drawing strategy.
[0154] In an exemplary embodiment of the present application, for the Android platform, the Canvas drawing tool can be used to draw the message description file, so as to draw text, lines or pictures through the Canvas drawing tool and the Paint drawing tool; for platforms other than the Android platform, that is, IOS, MacOS or Windows platforms, a strategy of mapping to native controls is adopted for drawing. Since IOS, MacOS or Windows platforms are all equipped with corresponding native controls, it is only necessary to map the corresponding native controls according to the controls contained in the message description file, and then specify the display position and size of each native control to achieve drawing. Therefore, different drawing strategies can be selected according to different platform information, so that the drawn messages to be displayed can be adapted to different platforms.
[0155] In step S930, the message description file is drawn according to the drawing strategy and the display position and size corresponding to each of the controls.
[0156] In an exemplary embodiment of the present application, the terminal device can draw the message description file according to the determined drawing strategy, and the display position and size corresponding to each control to obtain the to-be-displayed message corresponding to different platform information, thereby ensuring the drawing effect of the message.
[0157] based on Figure 7 , Figure 8 and Fig. 9 The embodiment shown, Fig.10 The present invention is shown in an exemplary embodiment of the present invention. Fig. 9 Schematic diagram of the process of step S910 in the method for processing messages in instant messaging. Fig. 9 As shown, step S910 at least includes steps S1010 to S1020, which are described in detail as follows:
[0158] In step S1010, a parent control in each of the controls and a child control corresponding to the parent control are determined according to the hierarchical relationship between the controls.
[0159] In an exemplary embodiment of the present application, the terminal device can determine the parent control between the controls and the child control corresponding to the parent control according to the hierarchical relationship between the controls, for example, control A is the parent control, and its corresponding child controls are control B and control C, etc. It should be understood that the parent control and the child control are in a relative relationship, for example, control A is the parent control of control B and control C, and control A can also be the child control of control E, etc. And the child control should be included in the display range of the parent control when displayed, and it is not allowed to exceed the display range of the parent control.
[0160] In step S1020, the display position and size of the parent control and the child control corresponding to the parent control are determined according to the property information of the parent control and the property information of the child control corresponding to the parent control.
[0161] In an exemplary embodiment of the present application, the terminal device can determine the display position and size of the parent control in the message based on the attribute information of the parent control, such as the width, height and vertex coordinates of the parent control. Then, the display position of the child control in the parent control is determined based on the range of the display area for the child control to be displayed as defined in the attribute information of the parent control, as well as the attribute information such as the width, height and vertex coordinates of the child control.
[0162] based on Figure 7 , Figure 8 , Fig. 9 and Fig.10 The embodiment shown, Fig.11 An embodiment according to the present application is shown. Fig.10 Schematic diagram of the process of step S1020 in the method for processing messages in instant messaging. Fig.11As shown, step S1020 at least includes steps S1110 to S1120, which are described in detail as follows:
[0163] In step S1110, a display area in the parent control for displaying a child control is determined according to a padding value in the property information of the parent control.
[0164] In an exemplary embodiment of the present application, the padding value may be information for determining the size of the display area in the parent control, which indicates the distance between the display area and the border of the parent control. For example, if the padding value is 5, it means that the distance between the display area in the parent control and the border of the parent control is 5, and so on. Thus, the position and size of the display area corresponding to the parent control can be determined according to the padding value of the parent control and the width and height of the parent control.
[0165] In step S1120, the display position and size of the child control in the display area are determined according to the width and height information in the attribute information of the child control corresponding to the parent control and the alignment relative to the parent control.
[0166] In an exemplary embodiment of the present application, the terminal device can determine the display position and size of the child control in the display area of the parent control according to the width, height and alignment relative to the parent control in the child control attribute information. Specifically, the alignment relative to the parent control can be determined according to the layout_gravity in the child control attribute information. Thus, according to the width and height of each child control, the inner margin value of the corresponding parent control, and the alignment of the child control relative to the parent control, the coordinate position of the upper left corner vertex of the child control can be determined, and then combined with the width and height of the child control, the position and size of the child control can be determined.
[0167] It should be understood that, since the parent control and the child control are relative, the display position and size corresponding to each control can be determined according to the above method, so as to determine the display position and size of each control.
[0168] Based on the technical solution of the above embodiment, a specific application scenario of the embodiment of the present application is introduced below:
[0169] Please refer to Fig.12 and Fig.13 , Fig.12 and Fig.13 A terminal interface diagram of a method for processing messages in instant messaging that can be applied to an embodiment of the present application is shown (hereinafter, a chatbot message is used as an example for explanation).
[0170] Reference Fig.12 The style editing interface shown in the figure may include multiple editing sub-interfaces, such as Fig.12As shown in 1210, the sub-interface may include push message examples, robot configuration instructions, receive message configuration, push message configuration, and slash command configuration, etc. The user may select the corresponding sub-interface to configure the relevant information.
[0171] When the user selects a push message example, the configuration interface of the push message example may be displayed accordingly. This interface may provide configuration interfaces of different editing formats, such as Fig.12 The text format, Markdown format, JSON format, etc. shown in 1220 can be used to meet the usage requirements of different users.
[0172] For example, after the user selects the JSON format, the JSON format editing area can be displayed in the interface (such as Fig.12 1230), the editing area may contain a basic style containing the content to be edited in advance, and the user can modify the basic style in the editing area to meet the custom needs. After the editing is completed, the user can click Fig.12 Click the "Push message to group" button to select the corresponding group chat to send the message.
[0173] like Fig.13 As shown, when the message is sent to the target terminal, the target terminal can draw the message and display it in the corresponding chat interface (such as Fig.13 As shown in 1310, the message can be displayed in different styles to meet the user's custom style requirements. At the same time, the user can interact based on the components carried in the message, such as Fig.13 As shown in , when editing the style of the message, corresponding buttons (such as "S", "M", "L", "Unsure" and "Not Participating", etc.) can be set for different sizes of clothes and employee intentions. Users can click the corresponding buttons based on their own circumstances to generate feedback information to send to the sender of the message, which makes it easier for the sender of the message to collect statistics on the size information and intention information of the employees, and also improves the interactivity of the message.
[0174] Please refer to Fig.14 , Fig.14 A system level schematic diagram is shown to which the technical solution of the embodiments of the present application can be applied.
[0175] Reference Fig.14 As shown, the system may include a data layer 1410 , a parsing layer 1420 , a layout layer 1430 , and a drawing layer 1440 .
[0176] Among them, the data layer 1410 can pull relevant configuration information from the server through a network request, such as version number, user number, device number or cache configuration, and in the style editing interface, obtain the corresponding JSON format style information input by the user, and convert the JSON format style information to obtain the corresponding XML format style information, and finally convert the XML format style information into binary format style information to be sent as a message description file.
[0177] The parsing layer 1420, the layout layer 1430 and the drawing layer 1440 can be configured in the terminal, wherein the parsing layer 1420 can perform layout parsing on the message description file to generate a control tree corresponding to the message description file, which can include the hierarchical relationship between controls and the attribute information corresponding to each control.
[0178] The layout layer 1430 can measure and position each control contained in the control tree according to the hierarchical relationship contained in the control tree and the attribute information of each control. The measurement includes determining the size of each control, and the positioning is used to determine the display position of each control.
[0179] The drawing layer 1440 can select a corresponding drawing strategy, such as Cavan drawing or mapping native controls, according to the measurement results and positioning results of the layout layer 1430 and the platform information of the terminal, and draw each control to obtain messages corresponding to different platform information to ensure the adaptability of the messages to different platforms.
[0180] The following describes an embodiment of the device of the present application, which can be used to execute the method for processing messages in instant messaging in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method for processing messages in instant messaging in the above embodiment of the present application.
[0181] Fig.15 A block diagram of a device for processing messages in instant messaging according to an embodiment of the present application is shown.
[0182] Reference Fig.15 As shown, according to an embodiment of the present application, a device for processing messages in instant messaging includes:
[0183] The first receiving module 1510 is configured to display a style editing interface if a style editing request for a message is received;
[0184] A file generation module 1520, configured to generate a message description file corresponding to the message according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information;
[0185] The first sending module 1530 is used to send the message description file to the target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in the instant messaging interface;
[0186] The second receiving module 1540 is configured to receive feedback information sent by the target terminal, where the feedback information is generated based on the interaction with the message.
[0187] In one embodiment of the present application, based on the above scheme, the first receiving module 1510 is configured to: if a style editing request for a message is received, obtain the message content to be edited; process the message content to generate a basic style containing the message content; display a style editing interface, the style editing interface including the editable basic style
[0188] In one embodiment of the present application, based on the above solution, the first receiving module 1510 is configured to: obtain the message content to be edited from the subscribed cloud service.
[0189] In one embodiment of the present application, based on the aforementioned scheme, the first receiving module 1510 is configured to: determine the domain information corresponding to the message content according to the keywords contained in the message content and the correspondence between the pre-set keywords and the domain information; determine the basic style corresponding to the message content according to the domain information corresponding to the message content, and add the message content to the basic style.
[0190] In one embodiment of the present application, based on the aforementioned scheme, the style information is in the object notation format, and the file generation module 1520 is configured to: convert the style information in the object notation format received by the style editing interface into the style information in the extensible markup language format; parse the style information in the extensible markup language format to generate a corresponding binary file as a message description file.
[0191] In one embodiment of the present application, based on the aforementioned scheme, the first sending module 1530 is configured as follows: if a request for sending a message is received, a sending object determination interface is displayed, and the sending object determination interface includes at least one sending object to be selected; according to the sending object information received on the sending object determination interface, the target sending object corresponding to the message is determined; and the message description file is sent to the target terminal corresponding to the target sending object.
[0192] Please refer to Fig.16 , Fig.16 A block diagram of a device for processing messages in instant messaging according to another embodiment of the present application is shown.
[0193] Reference Fig.16 As shown, according to another embodiment of the present application, a device for processing messages in instant messaging includes:
[0194] The third receiving module 1610 is used to receive a message description file sent by other terminals, where the message description file is used to describe the style information of the message;
[0195] A drawing module 1620, used for drawing the message description file according to the platform information of the current terminal to obtain a message to be displayed corresponding to the message description file;
[0196] The display module 1630 is used to display the message to be displayed in the instant messaging interface, and obtain feedback information generated by the interaction based on the message to be displayed;
[0197] The second sending module 1640 is configured to send the feedback information to the other terminal.
[0198] In one embodiment of the present application, based on the aforementioned scheme, the drawing module 1620 is configured to: parse the message description file to generate a control tree corresponding to the message description file, the control tree including the hierarchical relationship between the controls in the message description file and the attribute information corresponding to each of the controls; draw the message description file according to the platform information of the current terminal, the hierarchical relationship between the controls and the attribute information corresponding to each of the controls, and obtain the message to be displayed corresponding to the message description file.
[0199] In one embodiment of the present application, based on the aforementioned scheme, the drawing module 1620 is configured to: determine the display position and size corresponding to each of the controls according to the hierarchical relationship between the controls and the attribute information corresponding to each of the controls; query according to the platform information of the current terminal to determine the drawing strategy corresponding to the platform information; draw the message description file according to the drawing strategy and the display position and size corresponding to each of the controls.
[0200] In one embodiment of the present application, based on the aforementioned scheme, the drawing module 1620 is configured to: determine the parent control in each of the controls and the child control corresponding to the parent control according to the hierarchical relationship between the controls; determine the display position and size of the parent control and the child control corresponding to the parent control according to the attribute information of the parent control and the attribute information of the child control corresponding to the parent control.
[0201] In one embodiment of the present application, based on the aforementioned scheme, the drawing module 1620 is configured to: determine the display area in the parent control for displaying the child control according to the padding value in the attribute information of the parent control; determine the corresponding display position and size of the child control in the display area according to the width and height information in the attribute information of the child control corresponding to the parent control and the alignment relative to the parent control.
[0202] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0203] It should be noted that Fig.17 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0204] like Fig.17 As shown, the computer system includes a central processing unit (CPU) 1701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1702 or the program loaded from the storage part 1708 to the random access memory (RAM) 1703, such as executing the method described in the above embodiment. In RAM 1703, various programs and data required for system operation are also stored. CPU 1701, ROM 1702 and RAM 1703 are connected to each other through bus 1704. Input / output (I / O) interface 1705 is also connected to bus 1704.
[0205] The following components are connected to the I / O interface 1705: an input section 1706 including a keyboard, a mouse, etc.; an output section 1707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1708 including a hard disk, etc.; and a communication section 1709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to the I / O interface 1705 as needed. A removable medium 1711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1710 as needed so that a computer program read therefrom is installed into the storage section 1708 as needed.
[0206] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1709, and / or installed from a removable medium 1711. When the computer program is executed by a central processing unit (CPU) 1701, various functions defined in the system of the present application are executed.
[0207] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0208] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0209] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0210] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0211] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0212] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0213] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0214] It should be understood that the present application is not limited to the precise structures that have been 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 present application is limited only by the appended claims.
Claims
1. A method for processing messages in instant messaging, characterized in that: include: If a style editing request for a message is received, a style editing interface is displayed; Generate a message description file corresponding to the message according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information; Sending the message description file to a target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in an instant messaging interface; receiving feedback information sent by the target terminal, where the feedback information is generated based on the interaction with the message; If a style editing request for a message is received, a style editing interface is displayed, including: If a style editing request for a message is received, the message content to be edited is obtained; Determining the domain information corresponding to the message content according to the keywords contained in the message content and the pre-set correspondence between the keywords and the domain information; Determine a basic style corresponding to the message content according to the domain information corresponding to the message content, and add the message content to the basic style; A style editing interface is displayed, wherein the style editing interface includes the editable basic style.
2. The processing method according to claim 1, characterized in that: Get the message content to be edited, including: Get the message content to be edited from the subscribed cloud service.
3. The processing method according to claim 1, characterized in that: The style information is in the object musical notation format; Generating a message description file corresponding to the message according to the style information received by the style editing interface, including: According to the style information in the object musical notation format received by the style editing interface, converting the style information into style information in the extensible markup language format; The style information in the extensible markup language format is parsed to generate a corresponding binary file as a message description file.
4. The processing method according to claim 1, characterized in that: Sending the message description file to the target terminal includes: If a message sending request is received, a sending object determination interface is displayed, wherein the sending object determination interface includes at least one sending object to be selected; Determine the target sending object corresponding to the message according to the sending object information received by the sending object determination interface; The message description file is sent to the target terminal corresponding to the target sending object.
5. A method for processing messages in instant messaging, applied to a terminal, characterized in that: include: Receiving a message description file sent by another terminal, wherein the message description file is used to describe style information of the message; According to the platform information of the current terminal, the message description file is drawn to obtain the message to be displayed corresponding to the message description file; Displaying the message to be displayed in the instant messaging interface, and obtaining feedback information generated by interacting with the message to be displayed; Sending the feedback information to the other terminal; Among them, the other terminals obtain the message description file according to the following process: if a style editing request for a message is received, the message content to be edited is obtained; the domain information corresponding to the message content is determined according to the keywords contained in the message content and the correspondence between the pre-set keywords and domain information; the basic style corresponding to the message content is determined according to the domain information corresponding to the message content, and the message content is added to the basic style; a style editing interface is displayed, and the style editing interface includes the editable basic style; according to the style information received by the style editing interface, a message description file corresponding to the message is generated, and the style information includes text information, component information and layout information.
6. The processing method according to claim 5, characterized in that: According to the platform information of the current terminal, the message description file is drawn to obtain the message to be displayed corresponding to the message description file, including: Parsing the message description file to generate a control tree corresponding to the message description file, wherein the control tree includes the hierarchical relationship between the controls in the message description file and the property information corresponding to each of the controls; The message description file is drawn according to the platform information of the current terminal, the hierarchical relationship between the controls, and the attribute information corresponding to each of the controls to obtain the message to be displayed corresponding to the message description file.
7. The processing method according to claim 6, characterized in that: Drawing the message description file according to the platform information of the current terminal, the hierarchical relationship between the controls, and the attribute information corresponding to each of the controls includes: Determine the display position and size of each control according to the hierarchical relationship between the controls and the attribute information corresponding to each control; Querying the platform information of the current terminal to determine the drawing strategy corresponding to the platform information; The message description file is drawn according to the drawing strategy and the display position and size corresponding to each of the controls.
8. The processing method according to claim 7, characterized in that: Determining the display position and size of each control according to the hierarchical relationship between the controls and the attribute information corresponding to each control, including: Determine, according to the hierarchical relationship between the controls, a parent control in each of the controls and a child control corresponding to the parent control; The display position and size of the parent control and the child control corresponding to the parent control are determined according to the property information of the parent control and the property information of the child control corresponding to the parent control.
9. The processing method according to claim 8, characterized in that: Determining the display position and size of the parent control and the child control corresponding to the parent control according to the property information of the parent control and the property information of the child control corresponding to the parent control, including: Determining a display area in the parent control for displaying the child control according to the padding value in the property information of the parent control; The display position and size of the child control in the display area are determined according to the width and height information in the attribute information of the child control corresponding to the parent control and the alignment mode relative to the parent control.
10. A device for processing messages in instant messaging, characterized in that: include: A first receiving module, configured to display a style editing interface if a style editing request for a message is received; A file generation module, used to generate a message description file corresponding to the message according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information; A first sending module, used for sending the message description file to a target terminal, so that the target terminal draws the message according to its own platform information and the message description file, and displays the drawn message in an instant messaging interface; A second receiving module, configured to receive feedback information sent by the target terminal, wherein the feedback information is generated based on the interaction with the message; Among them, the first receiving module is configured to: if a style editing request for a message is received, obtain the message content to be edited; determine the domain information corresponding to the message content according to the keywords contained in the message content and the correspondence between the pre-set keywords and domain information; determine the basic style corresponding to the message content according to the domain information corresponding to the message content, and add the message content to the basic style; display a style editing interface, and the style editing interface includes the editable basic style.
11. The device according to claim 10, characterized in that The first receiving module is configured to obtain the message content to be edited from the subscribed cloud service.
12. The device according to claim 10, characterized in that The style information is in object notation format; the file generation module is configured to: convert the style information in object notation format received by the style editing interface into style information in extensible markup language format; parse the style information in extensible markup language format to generate a corresponding binary file as a message description file.
13. The device according to claim 10, characterized in that The first sending module is configured to: if a sending request for a message is received, display a sending object determination interface, the sending object determination interface including at least one sending object to be selected; determine the target sending object corresponding to the message according to the sending object information received on the sending object determination interface; and send the message description file to the target terminal corresponding to the target sending object.
14. A device for processing messages in instant messaging, characterized in that: include: The third receiving module is used to receive a message description file sent by other terminals, wherein the message description file is used to describe the style information of the message; wherein the other terminals obtain the message description file according to the following process: if a style editing request for a message is received, the message content to be edited is obtained; the domain information corresponding to the message content is determined according to the keywords contained in the message content and the correspondence between the preset keywords and the domain information; the basic style corresponding to the message content is determined according to the domain information corresponding to the message content, and the message content is added to the basic style; a style editing interface is displayed, wherein the style editing interface includes the editable basic style; a message description file corresponding to the message is generated according to the style information received by the style editing interface, wherein the style information includes text information, component information and layout information; A drawing module, used for drawing the message description file according to the platform information of the current terminal to obtain the message to be displayed corresponding to the message description file; A display module, used for displaying the message to be displayed in the instant messaging interface, and obtaining feedback information generated by interacting with the message to be displayed; The second sending module is used to send the feedback information to the other terminal.
15. The device according to claim 14, characterized in that The drawing module is configured to: parse the message description file to generate a control tree corresponding to the message description file, wherein the control tree includes the hierarchical relationship between the controls in the message description file and the property information corresponding to each of the controls; The message description file is drawn according to the platform information of the current terminal, the hierarchical relationship between the controls, and the attribute information corresponding to each of the controls to obtain the message to be displayed corresponding to the message description file.
16. The device according to claim 15, characterized in that The drawing module is configured to: determine the display position and size corresponding to each of the controls according to the hierarchical relationship between the controls and the attribute information corresponding to each of the controls; Querying the platform information of the current terminal to determine the drawing strategy corresponding to the platform information; The message description file is drawn according to the drawing strategy and the display position and size corresponding to each of the controls.
17. The device according to claim 16, characterized in that The drawing module is configured to: determine a parent control in each of the controls and a child control corresponding to the parent control according to a hierarchical relationship between the controls; The display position and size of the parent control and the child control corresponding to the parent control are determined according to the property information of the parent control and the property information of the child control corresponding to the parent control.
18. The device according to claim 17, characterized in that The drawing module is configured to: determine a display area in the parent control for displaying the child control according to the padding value in the property information of the parent control; The display position and size of the child control in the display area are determined according to the width and height information in the attribute information of the child control corresponding to the parent control and the alignment mode relative to the parent control.
19. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing an instant messaging message according to any one of claims 1 to 4 or the method for processing an instant messaging message according to any one of claims 5 to 9 is implemented.
20. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method for processing messages in instant messaging as described in any one of claims 1 to 4 or the method for processing messages in instant messaging as described in any one of claims 5 to 9.
21. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implements the method for processing messages in instant messaging as claimed in any one of claims 1 to 4 or the method for processing messages in instant messaging as claimed in any one of claims 5 to 9.
Citation Information
Patent Citations
Visual editor for electronic mail
US20080178073A1
Method, system and apparatus for displaying an instant message
US20100050095A1