Content output control method and device and electronic equipment
By receiving character information to determine the editing method and previewing the editing effect in real time, the problem of not being able to preview text display in the game was solved. It also enabled the function of adjusting text color and inserting emoticons before input, thus improving the user experience.
Patent Information
- Application Number
- CN202511309068.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-12
- Publication Date
- 2026-01-23
AI Technical Summary
In PC and console games, users cannot preview the display effect of text before entering it, which increases the cost of trial and error and makes it difficult to insert multiple emoticons and text into the same message.
By receiving character information input by the user, the system determines the editing method and previews the editing effect in real time on the display interface. It supports the insertion of various encoded characters and emojis, and allows users to adjust the text color and format while inputting.
It enables real-time preview of editing effects before input, reducing trial and error costs and improving operational efficiency and user experience.
Smart Images

Figure CN121389974A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of game design, and in particular to a content output control method, device and electronic equipment. BACKGROUND
[0002] In the game industry, the chat function in PC games and host games generally supports text sending, and the text color can be selected through a preset instruction or a system menu, and the text of the corresponding color is displayed in the interactive interface after the text is sent successfully. However, since the text of the corresponding color is displayed after the text is sent in this way, the user cannot predict whether the text display effect is what he or she needs, which increases the operation trial and error cost. SUMMARY
[0003] The purpose of the present disclosure is to provide a content output control method, device and electronic equipment to preview the editing effect of input content in real time.
[0004] In a first aspect, the present disclosure provides a content output control method, which provides a display interface through a terminal device, and the method includes: receiving user input for the display interface; determining a set editing mode according to character information included in the user input; editing an editing object included in the user input according to the editing mode, and displaying the edited editing object in the display interface; and in response to an object output operation, controlling the edited editing object to be output to the display interface.
[0005] In a second aspect, the present disclosure provides a content output control device, which provides a display interface through a terminal device, and the device includes: a content input module configured to receive user input for the display interface; an editing mode determination module configured to determine a set editing mode according to character information included in the user input; an object editing module configured to edit an editing object included in the user input according to the editing mode, and display the edited editing object in the display interface; and an object output module configured to, in response to an object output operation, control the edited editing object to be output to the display interface.
[0006] In a third aspect, the present disclosure provides an electronic device including a processor and a memory, the memory storing machine executable instructions executable by the processor, and the processor executes the machine executable instructions to implement the content output control method described above.
[0007] In a fourth aspect, the present disclosure provides a computer readable storage medium storing computer executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the content output control method described above.
[0008] The embodiments of the present disclosure bring the following beneficial effects: The content output control method, device and electronic equipment provided by the present disclosure first receive a user input for a display interface; then determine a set editing mode according to character information included in the user input; then edit an editing object included in the user input according to the editing mode, and display the edited editing object in the display interface; then, in response to an object output operation, control the edited editing object to be output to the display interface. This way can determine the editing mode of the editing object for the user input through the input character information, and preview the editing object edited according to the character information in the display interface, so as to trigger the object output operation to output the edited editing object when the edited editing object meets the requirements, which avoids the limitation that the editing effect cannot be seen until the editing object is output, can preview the editing effect of the input editing object in real time, and reduces the editing trial and error cost.
[0009] Other features and advantages of the present disclosure will be described in the following description, or can be known or determined from the description without any doubt, or can be known by implementing the above-mentioned technologies of the present disclosure.
[0010] In order to make the above-mentioned purposes, features and advantages of the present disclosure more obvious and easy to understand, the following preferred embodiments are specifically described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0011] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present disclosure, and those skilled in the art can obtain other drawings according to these drawings without any creative labor.
[0012] Figure 1 A flowchart of a content output control method provided by an embodiment of the present disclosure; Figure 2 An editing schematic diagram of an editing object provided by an embodiment of the present disclosure; Figure 3 An editing schematic diagram of an emoji provided by an embodiment of the present disclosure; Figure 4 A structural schematic diagram of a content output control device provided by an embodiment of the present disclosure; Figure 5 A structural schematic diagram of an electronic device provided by an embodiment of the present disclosure.
[0013] Reference signs: 1-chat window; 2-content input box. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0015] Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely to illustrate selected embodiments of the disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0016] In the gaming industry, chat functions in PC and console games generally support text messaging, but there are significant limitations in handling personalized text styles and the inclusion of emoticons: Regarding text color adjustment, users need to select the text color through preset commands or system menus, and the corresponding text color will be displayed in the interactive interface after the text is successfully sent. However, since this method only displays the corresponding text color after the text is sent, users cannot predict whether the text display effect will be what they need, increasing the cost of trial and error.
[0017] Regarding text modification and rollback, if a user is not satisfied with the text color displayed after sending, they need to re-enter the command and text content. The color cannot be adjusted directly during the input stage, making the operation cumbersome.
[0018] Regarding the integration of emoticons and console compatibility: Some PC games support sending emoticons or text separately, making it difficult to integrate multiple emoticons and text into the same message; consoles rely on virtual keyboard operation, and current technology only supports sending plain text or plain emoticons.
[0019] To address the aforementioned issues, embodiments of the present invention provide a content output control method, apparatus, and electronic device. This technology can be applied to chat scenarios in game interaction systems, particularly suitable for real-time chat scenarios in PC and console games. Furthermore, this technology can also be applied to in-game announcement editing, player signature settings, and task prompt text editing scenarios. It can also be extended to scenarios where users post comments in the comment sections of official game communities and player forums, as well as to scenarios where knowledge points are highlighted using color coding in educational games.
[0020] The content output control method in the embodiments of the present disclosure can run on a local terminal device or a server. When the content output control method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0021] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the content output control method are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud game server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0022] In an optional embodiment, taking games as an example, the local terminal device stores a game program and is used for presenting a game picture. The local terminal device is used for interacting with the player through a graphical user interface, that is, the conventional game program is downloaded and installed through an electronic device and is run. The way in which the local terminal device provides the graphical user interface to the player can include various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor, the display screen is used for presenting the graphical user interface, the graphical user interface includes the game picture, and the processor is used for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
[0023] In a possible embodiment, the present disclosure provides a content output control method, which provides a display interface through a terminal device, as shown in Figure 1 The method includes the following specific steps: Step S102, receiving user input for the display interface.
[0024] In a specific implementation, the terminal device can be a mobile phone, a computer, or a game console, etc. The display interface can be a game chat interface, an announcement editing interface, a user comment interface, etc. The user input for the display interface can be content input by the user in a content input box or a content input window in the display interface through the terminal device. The content can be text information or character information, etc.
[0025] In step S104, the editing mode set is determined according to the character information included in the user input.
[0026] The character information is included in the user input. Based on a preset mapping relationship between characters and editing modes, the editing mode corresponding to the character information included in the user input can be determined. The mapping relationship between characters and editing modes is used to indicate the editing mode corresponding to each preset character. The editing mode corresponding to each preset character is pre-set. The editing mode herein includes, but is not limited to, editing an editing object into a specified color, editing an editing object into a specified size, a specified font size, a specified thickness, etc.
[0027] In determining the editing mode corresponding to the character information included in the user input, it is first needed to determine whether the character information includes a preset character indicated by the mapping relationship between characters and editing modes. If yes, the editing mode corresponding to the character information can be determined from the mapping relationship between characters and editing modes. If no, it is indicated that the character information does not correspond to an editing mode, but an editing object.
[0028] In step S106, the editing object included in the user input is edited according to the editing mode, and the edited editing object is displayed in the display interface.
[0029] In a specific implementation, the editing object included in the user input can be content other than the character information in the user input, can be content before the character information in the user input, or can be content after the character information in the user input, etc.
[0030] After the editing object included in the user input is determined, the editing object is edited according to the editing mode corresponding to the character information included in the user input, to obtain an edited editing object, and the edited editing object is displayed in the display interface. For example, if the editing mode corresponding to the character information is adjusting an object color to a target color, the object color of the editing object is edited to the target color. If the editing mode corresponding to the character information is adjusting a display format to a target display format, the display format of the editing object is edited to the target display format.
[0031] In a specific embodiment, the character information can be displayed at the end position of the editing object, so that after inputting the character information, the editing object is edited according to the editing mode determined based on the character information. In another specific embodiment, the character information can also be displayed at the start position of the editing object, and after inputting an end character at the end position of the editing object, the editing object is edited according to the editing mode determined based on the character information. In another specific embodiment, the character information can also be displayed at the start position of the editing object, and during the inputting of the editing object, the editing object is edited in real time according to the editing mode determined based on the character information.
[0032] In step S108, in response to the object output operation, the edited editing object is output to the display interface.
[0033] In a specific implementation, the object output operation can be an operation of triggering a content sending control displayed in the display interface, or an operation of triggering a specified key displayed in a keyboard or a gamepad. When the user performs the object output operation, the edited editing object is output to the display interface, that is, the edited editing object is sent, so that the edited editing object can be displayed in another terminal device.
[0034] For example, in a game chat interface, the edited editing object is displayed in a content input box, and when the user performs the object output operation, the edited editing object is sent, so that the edited editing object is displayed in a chat window. In a game announcement editing interface, the edited editing object is displayed in a content input box, and when the user performs the object output operation, the edited editing object is sent, so that the edited editing object is displayed in an announcement column, so that other players can view the content in the announcement column.
[0035] The content output control method provided by the embodiment of the application determines the editing mode of the editing object input by the user through the input character information, and previews the edited editing object edited according to the editing mode determined based on the character information in the display interface, so that after the edited editing object meets the requirement of the user, the object output operation is triggered to output the edited editing object. This method avoids the limitation that the editing effect cannot be seen until the editing object is output, can preview the editing effect of the input editing object in real time, and reduces the editing trial and error cost.
[0036] The following embodiments are used to describe the method of determining the editing mode and the editing object.
[0037] Specifically, the character information includes an identifier and an encoded character. The identifier can be customized according to the development requirement. For example, the identifier can be "#", "*", "$", or the like. The encoded character can be any one of a plurality of preset characters, and the preset character has a mapping relationship with an editing mode.
[0038] Based on the above description, the specific process of determining the editing mode set according to the character information included in the user input can include: determining the identifier in the character information; locating the encoded character in the character information according to the identifier, and determining the editing mode set according to the encoded character.
[0039] In a specific implementation, when the editing mode is set, the identifier in the character information included in the user input needs to be recognized first, and then the editing character is located in the character information according to the position of the identifier, and then the editing mode set by the encoded character in the character information is determined according to the mapping relationship between the preset character and the editing mode. When locating the editing character, the character after the identifier in the character information can be determined as the encoded character, or the character before the identifier in the character information can be determined as the encoded character.
[0040] In an optional embodiment, the input content other than the character information in the user input can be determined as the editing object. For example, if the user input is "#RED I love singing", "#RED" is the character information, "#" in the character information is the identifier, "RED" is the encoded character, and "I love singing" is the editing object.
[0041] Further, the encoded character includes at least one of a color encoded character and a format encoded character. The color encoded character is used to determine the display color of the editing object, and the format encoded character is used to determine the display format of the editing object.
[0042] In a specific implementation, the color encoded character can adopt the following encoding format. First, a preset color code is used as the color encoded character. For example, the color encoded character "RED" corresponds to red, that is, the display color of the editing object is adjusted to red; the color encoded character "BLUE" corresponds to blue, that is, the display color of the editing object is adjusted to blue. Second, an RGB hexadecimal code is used as the color encoded character. For example, the color encoded character "FF0000" corresponds to red, and the color encoded character "00FF00" corresponds to green. Third, in the case of fewer color presets, a simpler encoding is adopted, and only the first letter of the color English letter is used as the color encoded character. For example, the color encoded character "R" corresponds to red, and the color encoded character "B" corresponds to blue. The mapping relationship between the color encoded character and the color supports the developer to extend it by himself.
[0043] The display format of the editing object determined by the format coding character includes, but is not limited to, font, font size, thickness, spacing, and alignment, etc. The coding mode corresponding to the format coding character can be determined according to the specific display format. For example, when the display format is font, the font pinyin can be used as the format coding character. For example, the format coding character songti corresponds to Songti, and the format coding character kaiti corresponds to Kaiti. The font code can also be used as the format coding character. When the display format is font size, the font size pinyin or font size code can be used as the format coding character. For example, the format coding character "SIZE16" corresponds to 16-point font. When the display format is thickness, the bold pinyin or thickness code can be used as the format coding character. For example, the format coding character "BOLD" corresponds to bold. When the display format is spacing, the specific spacing value pinyin or code can be used as the format coding character. When the display format is alignment, the specific alignment pinyin or code can be used as the format coding character. The mapping relationship between the format coding character and the display format can be customized and extended by the developer to enhance the compatibility of the mapping relationship.
[0044] The following embodiments are used to describe the editing mode of the editing object.
[0045] When the coding character in the user input includes at least one of the color coding character and the format coding character, the specific process of editing the editing object included in the user input according to the editing mode can include: controlling the object color corresponding to the editing object to be set as the display color determined by the color coding character, and / or controlling the object format corresponding to the editing object to be set as the display format determined by the format coding character.
[0046] For example, when the coding character in the user input is the color coding character, and the object color determined by the color coding character is red, the object color of the editing object in the user input is set to red. When the object color determined by the color coding character is yellow, the object color of the editing object in the user input is set to yellow. When the coding character in the user input is the format coding character, and the display format determined by the format coding character is 16-point font, the font of the editing object in the user input is set to 16-point font. When the display format determined by the format coding character is bold, the font style of the editing object in the user input is set to bold.
[0047] In an optional embodiment, before the editing object included in the user input is edited according to the editing mode and displayed in the display interface, the identifier and the coding character are displayed in the display interface. After the editing object included in the user input is edited according to the editing mode and displayed in the display interface, the identifier and the coding character are cancelled in the display interface.
[0048] In a specific implementation, the identifier and the coded character in the character information are displayed in the display interface before the editing object included in the user input is edited according to the editing mode, and the identifier and the coded character are not displayed in the display interface after the editing object included in the user input is edited according to the editing mode, and only the edited editing object is displayed.
[0049] The above method can code the editing object included in the user input according to the editing mode set by the character information included in the user input, and preview the edited editing object in the display interface, so that the user can preview the editing effect in real time to determine whether the editing effect is as required, thereby reducing the editing trial and error cost.
[0050] The following embodiments are used to describe another object editing mode.
[0051] Specifically, after the identifier and the coded character are displayed in the display interface, the step of controlling to edit the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface in response to the editing object input completion instruction.
[0052] In a specific implementation, the system can listen to the input in the display interface in real time, determine the editing object included in the user input when the editing object input completion instruction is listened to, identify the editing mode set by the character information included in the user input, then edit the editing object using the set editing mode, and display the edited editing object in the display interface.
[0053] In actual application, the generation mode of the above editing object input completion instruction can be determined according to the research and development demand. Specifically, the end character is received to generate the editing object input completion instruction; or the character information is input again to generate the editing object input completion instruction.
[0054] In a specific implementation, the specific character corresponding to the end character can be determined according to the research and development demand, for example, the end character can be a space or “@” and the like. Specifically, when the end character is input in the display interface, it represents that the editing object input is completed, so that the editing object input completion instruction can be generated; when the character information is input again in the display interface, it represents that the editing object input before the character information is input again is completed, so that the editing object input completion instruction can be generated.
[0055] For the convenience of understanding, the end character of the received input is taken as an example to generate an editing object input completion instruction, and specifically, the triggering logic of the editing mode for the editing object can be constructed through the character combination rule of "identifier + encoding character + editing object + end character". When the user inputs the end symbol, that is, the editing object completion instruction is generated, the editing object between the "identifier + encoding character" and the "end character" is automatically parsed, and the editing mode corresponding to the encoding character is parsed, so that the editing object is edited based on the parsed editing mode, and the edited editing object is displayed in the display interface. Among them, if the valid encoding character (such as garbled code or undefined character, etc.) after the "identifier" or there is no editing object in the user input, the editing of the editing object is not triggered, and only the user input is retained.
[0056] As shown in Figure 2 is an editing object editing schematic diagram provided by an embodiment of the application, Figure 2 The display interface includes a chat window with reference number 1 and a content input box in the chat window with reference number 2. Figure 2 In the above image, the user input is "#GREY I love singing", wherein "#" represents an identifier, and "GREY" represents an encoding character, and the editing mode corresponding to the encoding character is to adjust the object color of the editing object to gray. The system listens to the user input in the content input box in real time, and when the "end symbol" (such as space) is listened to, the nearest "identifier" is traced back, the encoding character is positioned based on the identifier, the editing mode corresponding to the encoding character is determined, and then the content between the encoding character and the end symbol in the user input is determined as the editing object. Then, the editing object is edited based on the editing mode, and the edited editing object is displayed in the content input box. When the user performs an object output operation, the edited editing object can be sent to the chat window.
[0057] The above-mentioned mode can take the end symbol as a trigger node to realize the editing effect of input preview, break through the limitation of the prior art that the editing effect is verified after sending, and reduce the user trial and error cost. The mode can be applied to mobile terminals, host terminals, PC terminals, etc.
[0058] The following embodiments are used to describe the way of re-editing the edited editing object.
[0059] In an optional embodiment, the terminal device stores an editing mode sequence, and the editing mode sequence includes a plurality of editing modes sorted in a preset order. Based on this, after displaying the edited editing object in the display interface, in response to the re-input of the end character, a target editing mode associated with the set editing mode is determined from the editing mode sequence, and the editing object is re-edited and displayed according to the target editing mode.
[0060] In a specific implementation, the edited object can be re-edited by inputting an end character after the edited object to quickly adjust the editing style of the edited object. When the user inputs the end character after the edited object, a target editing mode associated with the set editing mode is determined from the editing mode sequence, which can be an editing mode above or below the set editing mode in the editing mode sequence. Then, the edited object is re-edited according to the target editing mode, and the re-edited edited object is displayed in the display interface.
[0061] In another optional embodiment, after the edited object is displayed in the display interface, in response to inputting first character information at a target position of the edited object, a target edited object is determined from the edited object according to the target position, and an identifier in the first character information is determined; a first encoded character in the first character information is located according to the identifier, and a first editing mode is determined according to the first encoded character; the target edited object is re-edited according to the first editing mode, and the re-edited target edited object is displayed in the display interface.
[0062] In a specific implementation, the above target position can be a front position, an internal position, or a rear position of the edited object. Different target positions correspond to different or the same target edited objects, for example, after the first character information is input at the target position of the edited object, the edited object can be determined as the target edited object; or the edited object behind the target position can be determined as the target edited object, for example, when the target position is located at the front position of the edited object, the edited object can be determined as the target edited object; when the target position is located at the content position of the edited object, the edited object behind the target position in the edited object can be determined as the target edited object; or the edited object in front of the target position can be determined as the target edited object, for example, when the target position is located at the rear position of the edited object, the edited object in front of the target position in the edited object can be determined as the target edited object.
[0063] In another optional embodiment, the user can also input second character information at the rear position of the edited object, and then edit the edited object input behind the second character information based on the second editing mode set by the second character information, and display all edited objects in the display interface. This way can realize editing different styles of edited objects in the display interface, so as to output different styles of edited objects to the display interface when the object output operation is triggered.
[0064] The above manner can adjust the editing style of the edited editing object by inputting character information on the edited editing object, thereby improving the convenience of editing style adjustment of the editing object.
[0065] The following embodiments are used to describe the inputting manner of character information.
[0066] In an optional embodiment, the identifier and the coded character can be directly input in the display interface, and the identifier and the coded character are displayed in the display interface.
[0067] In another optional embodiment, the coded character can be intelligently recommended, reducing the coding memory burden of the user and improving the character input efficiency. Specifically, the specific process of displaying the identifier and the coded character in the display interface can include: receiving the input of the identifier, controlling the display of the identifier in the display interface, and determining the recommended character based on the user historical behavior data, displaying the recommended character in the display interface in a preview manner; wherein the user historical behavior data includes: the coded character input in the display interface within a preset time period; the recommended character is the coded character with the highest occurrence frequency in the user historical behavior data; in response to a character determination operation, the recommended character is determined as the coded character, and the identifier and the coded character are displayed in the display interface.
[0068] In specific implementation, after the user inputs the identifier, the commonly used coded character (equivalent to the above-mentioned recommended character) is automatically recommended based on the user historical behavior data, and when the user performs the character determination operation, the recommended character is determined as the coded character and displayed in the display interface; if the character determination operation is not triggered when the recommended character is displayed in the preview manner, it is considered that the recommended character is not used, and the user can input the coded character corresponding to the coding mode required by the user himself.
[0069] The following embodiments are used to describe the inputting manner of the emoji.
[0070] Specifically, in response to inputting a target input character at a first position in the display interface, determining the identifier in the target input character, and locating the emoji coded character in the target input character according to the identifier, the corresponding target emoji is determined according to the emoji code; the target input character is replaced with the target emoji, and the target emoji is displayed at the first position in the display interface; in response to a content output instruction, the edited editing object and the target emoji are output to the display interface.
[0071] In specific implementation, the above-mentioned first position can be any position in the content input box in the display interface, or a certain position inside the edited editing object, etc., and the above-mentioned manner can insert the emoji at any position of the editing object.
[0072] In practical application, an expression library is needed to be established, which includes a plurality of expression coding characters and an expression symbol uniquely corresponding to each expression coding character. For example, the expression coding character "6666" is used to represent a smiling face, and the expression coding character "8888" is used to identify a crying face, etc.
[0073] As Figure 3 Fig. 1 shows an editing diagram of an expression symbol provided by an embodiment of the present application, Figure 3 which includes a display interface. A window marked with 1 in the display interface is a chat window, and a position marked with 2 corresponds to a content input box in the chat window. Figure 3 In Fig. 1, the user input of the upper image is "#666", in which "#" represents an identifier, and "6666" represents an expression coding character corresponding to a smiling face expression. The system real-time monitors the user input in the content input box. When an "end symbol" (for example, a space) is monitored, the nearest "identifier" is traced back, the expression coding character is located based on the identifier, the target expression symbol corresponding to the expression coding character is determined, the character information in the user input is replaced with the target expression symbol, and the target expression symbol is displayed in the content input box. When the user performs an object output operation, the target expression symbol can be sent to the chat window.
[0074] In an optional embodiment, the present application also supports adjusting the color of the editing object or inserting an expression in the display interface by opening a color selection window or an expression selection window.
[0075] In a specific embodiment, in response to a triggering operation on a color control displayed in the display interface, a color selection window is displayed. The color selection window includes a plurality of color identifiers, and different color identifiers are respectively configured with corresponding colors. In response to a selection operation on a target color identifier in the color selection window, a target color corresponding to the target color identifier is determined, and the color selection window is canceled. In response to inputting a first editing object into the display interface, the first editing object is edited to the target color, and the first editing object edited to the target color is displayed in the display interface. The target color identifier can be any color identifier in the color selection window.
[0076] In another specific embodiment, in response to a triggering operation on an expression control displayed in the display interface, an expression selection window is displayed. The expression selection window includes a plurality of expression symbols. In response to a selection operation on a first expression symbol in the expression selection window, the expression selection window is canceled, and the first expression symbol is displayed at a current input position in the display interface. The first expression symbol can be any expression symbol in the expression selection window.
[0077] In actual application, the above method can realize the synchronization of the encoding system of PC terminal, host terminal and mobile terminal, and when a user logs in an application (for example, a game) through different terminal devices, the user can keep the consistency of the customized encoding color or expression preference. In addition, the method also supports the common editing of a chat message by team members in a multiplayer online game (for example, one person inputs text and another person adjusts the color / inserts an expression through encoding), thereby improving the team communication efficiency.
[0078] Corresponding to the above method embodiment, the embodiment of the application provides a content output control device, which provides a display interface through a terminal device, as shown in Figure 4 The device comprises: A content input module 40 configured to receive user input for the display interface.
[0079] An editing mode determination module 41 configured to determine a set editing mode according to character information included in the user input.
[0080] An object editing module 42 configured to edit an editing object included in the user input according to the editing mode and display the edited editing object in the display interface.
[0081] An object output module 43 configured to control the output of the edited editing object to the display interface in response to an object output operation.
[0082] The above content output control device determines the editing mode of the editing object of the user input through the input character information, and previews the edited editing object edited based on the character information in the display interface, so as to trigger the object output operation to output the edited editing object when the edited editing object meets the requirement of the user, thereby avoiding the limitation that the editing effect cannot be seen until the editing object is output, and realizing the real-time preview of the editing effect of the input editing object, and reducing the editing trial and error cost.
[0083] Further, the above character information comprises an identifier and an encoding character, and based on this, the above editing mode determination module 41 is configured to: determine the identifier in the character information; locate the encoding character in the character information according to the identifier, and determine the set editing mode according to the encoding character.
[0084] Further, the above device further comprises an object determination module configured to: determine the input content other than the character information in the user input as the editing object.
[0085] Further, the above encoding character comprises at least one of the following: a color encoding character and a format encoding character; wherein the color encoding character is used to determine the display color of the editing object, and the format encoding character is used to determine the display format of the editing object.
[0086] Further, the object editing module 42 is configured to control the object color corresponding to the editing object to be set as the display color determined by the color coding character, and / or control the object format corresponding to the editing object to be set as the display format determined by the format coding character.
[0087] Further, the device further comprises a character information adjusting module configured to: edit the editing object included in the user input according to the editing mode, and display the identifier and the coding character in the display interface before displaying the edited editing object in the display interface; and cancel the display of the identifier and the coding character in the display interface after editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface.
[0088] Further, the object editing module 42 is further configured to: after displaying the identifier and the coding character in the display interface, in response to an editing object input completion instruction, control the editing of the editing object included in the user input according to the editing mode and the display of the edited editing object in the display interface.
[0089] Further, the device further comprises an instruction generating module configured to: generate an editing object input completion instruction in response to receiving the end character; or generate an editing object input completion instruction in response to receiving the re-input of the character information.
[0090] Further, the terminal device stores an editing mode sequence, and based on this, the device further comprises an editing mode switching module configured to: in response to the re-input of the end character after displaying the edited editing object in the display interface, determine a target editing mode associated with the set editing mode from the editing mode sequence, and edit and display the editing object according to the target editing mode.
[0091] Further, the device further comprises a character input module configured to: in response to receiving the input of the identifier, control the display of the identifier in the display interface, and determine recommended characters based on user historical behavior data, and display the recommended characters in the display interface in a preview mode; wherein the user historical behavior data includes the coding characters input in the display interface within a preset time period; the recommended characters are the coding characters with the highest frequency of occurrence in the user historical behavior data; and in response to a character determining operation, the recommended characters are determined as the coding characters, and the identifier and the coding characters are displayed in the display interface.
[0092] Further, the device further comprises an editing adjustment module configured to: edit the editing object included in the user input according to the editing mode, and after displaying the edited editing object in the display interface, in response to inputting the first character information at the target position of the edited editing object, determine the target editing object from the edited editing object according to the target position, and determine the identifier in the first character information; locate the first encoded character in the first character information according to the identifier, and determine the first editing mode according to the first encoded character; edit the target editing object again according to the first editing mode, and display the target editing object edited again in the display interface.
[0093] The content output control device provided by the embodiment of the present application has the same implementation principle and technical effects as the foregoing method embodiment, and for brevity of description, the part not mentioned in the device embodiment can be referred to the corresponding content in the foregoing method embodiment.
[0094] The embodiment of the present application further provides an electronic device, as shown in the figure, the electronic device comprises a processor and a memory, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the foregoing content output control method. Figure 5 The electronic device comprises a processor and a memory, the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the foregoing content output control method.
[0095] Specifically, a display interface is provided by the terminal device, and the content output control method comprises: receiving user input for the display interface; determining the set editing mode according to character information included in the user input; editing the editing object included in the user input according to the editing mode, and displaying the edited editing object in the display interface; and in response to the object output operation, controlling the edited editing object to be output to the display interface.
[0096] The content output control method determines the editing mode of the editing object of the user input according to the input character information, and previews the edited editing object edited according to the character information in the display interface, so as to trigger the object output operation to output the edited editing object when the edited editing object meets the requirement, which avoids the limitation that the editing effect cannot be seen until the editing object is output, and the editing effect of the input editing object can be previewed in real time, and the editing trial and error cost is reduced.
[0097] In an optional embodiment, the character information comprises an identifier and an encoded character, and based on this, the step of determining the set editing mode according to the character information included in the user input comprises: determining the identifier in the character information; locating the encoded character in the character information according to the identifier, and determining the set editing mode according to the encoded character.
[0098] In an optional embodiment, the method further comprises determining input content other than the character information in the user input as the editing object.
[0099] In an optional embodiment, the encoded character comprises at least one of a color coded character and a format coded character, wherein the color coded character is used to determine the display color of the editing object, and the format coded character is used to determine the display format of the editing object.
[0100] In an optional embodiment, the step of editing the editing object included in the user input according to the editing mode comprises controlling the object color corresponding to the editing object to be set as the display color determined by the color coded character, and / or controlling the object format corresponding to the editing object to be set as the display format determined by the format coded character.
[0101] In an optional embodiment, before the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface, the method further comprises displaying the identifier and the encoded character in the display interface; and after the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface, the method further comprises canceling the display of the identifier and the encoded character in the display interface.
[0102] In an optional embodiment, after the step of displaying the identifier and the encoded character in the display interface, the method further comprises, in response to an editing object input completion instruction, controlling the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface.
[0103] In an optional embodiment, the method further comprises generating an editing object input completion instruction upon receiving an end character, or generating an editing object input completion instruction upon receiving re-input of the character information.
[0104] In an optional embodiment, the terminal device stores an editing mode sequence, and based on this, after the step of displaying the edited editing object in the display interface, the method further comprises, in response to re-input of the end character, determining a target editing mode associated with the set editing mode from the editing mode sequence, and re-editing and displaying the editing object according to the target editing mode.
[0105] In an optional embodiment, the step of displaying the identifier and the coded character in the display interface includes: receiving input of the identifier, controlling display of the identifier in the display interface, and determining a recommended character based on user historical behavior data, and displaying the recommended character in the display interface in a preview mode; wherein the user historical behavior data includes coded characters input in the display interface within a preset time period; the recommended character is a coded character that appears most frequently in the user historical behavior data; and in response to a character determination operation, the recommended character is determined as the coded character, and the identifier and the coded character are displayed in the display interface.
[0106] In an optional embodiment, after the step of editing the editing object included in the user input in the editing mode and displaying the edited editing object in the display interface, the method further includes: in response to input of first character information at a target position of the edited editing object, determining a target editing object from the edited editing object according to the target position, and determining an identifier in the first character information; locating a first coded character in the first character information according to the identifier, and determining a first editing mode according to the first coded character; re-editing the target editing object in the first editing mode, and displaying the re-edited target editing object in the display interface.
[0107] Further, Figure 5 The electronic device also includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
[0108] The memory 100 can include a high-speed random access memory (RAM) and can also include a non-volatile memory, such as at least one disk memory. The communication between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0109] The processor 101 can be an integrated circuit chip with processing capability. In implementation, the steps of the above method can be completed by integrated logic circuits or by instructions in the form of software in the processor 101. The processor 101 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), and the like; or can be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor to execute, or be executed by a combination of hardware and software modules in the code processor. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage medium in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and combines the hardware to complete the steps of the method of the above embodiments.
[0110] The embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions, when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the content output control method described above, and the specific implementation can be referred to the method embodiment, and will not be described here.
[0111] Specifically, a display interface is provided by a terminal device, and the content output control method includes: receiving a user input for the display interface; determining a set editing mode according to character information included in the user input; editing an editing object included in the user input according to the editing mode, and displaying the edited editing object in the display interface; and in response to an object output operation, controlling the edited editing object to be output to the display interface.
[0112] The above content output control method determines the editing mode of the editing object input by the user according to the character information input by the user, and previews the editing object edited according to the editing mode determined based on the character information in the display interface, so that the object output operation is triggered to output the edited editing object when the edited editing object meets the self requirements. This method avoids the limitation that the editing effect cannot be seen until the editing object is output, can preview the editing effect of the input editing object in real time, and reduces the editing trial and error cost.
[0113] In an optional embodiment, the character information includes an identifier and an encoded character. Based on this, the step of determining the editing mode set according to the character information included in the user input includes: determining the identifier in the character information; locating the encoded character in the character information according to the identifier, and determining the editing mode set according to the encoded character.
[0114] In an optional embodiment, the method further includes: determining the input content other than the character information in the user input as the editing object.
[0115] In an optional embodiment, the encoded character includes at least one of the following: a color encoded character and a format encoded character; wherein the color encoded character is used to determine the display color of the editing object, and the format encoded character is used to determine the display format of the editing object.
[0116] In an optional embodiment, the step of editing the editing object included in the user input according to the editing mode includes: controlling the object color corresponding to the editing object to be set as the display color determined by the color encoded character, and / or controlling the object format corresponding to the editing object to be set as the display format determined by the format encoded character.
[0117] In an optional embodiment, before the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface, the method further includes: displaying the identifier and the encoded character in the display interface; after the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface, the method further includes: canceling the display of the identifier and the encoded character in the display interface.
[0118] In an optional embodiment, after the step of displaying the identifier and the encoded character in the display interface, the method further includes: in response to an editing object input completion instruction, controlling the step of editing the editing object included in the user input according to the editing mode and displaying the edited editing object in the display interface to be executed.
[0119] In an optional embodiment, the method further comprises: receiving an end character inputted, generating an editing object input completion instruction; or, receiving a re-input of the character information, generating the editing object input completion instruction.
[0120] In an optional embodiment, the terminal device stores an editing mode sequence, and based on this, after the step of displaying the edited editing object in the display interface, the method further comprises: in response to a re-input of an end character, determining a target editing mode associated with the set editing mode from the editing mode sequence, and re-editing and displaying the editing object according to the target editing mode.
[0121] In an optional embodiment, the step of displaying the identifier and the encoding character in the display interface comprises: receiving an input of the identifier, controlling the display of the identifier in the display interface, and determining a recommended character based on user historical behavior data, and displaying the recommended character in the display interface in a preview mode; wherein the user historical behavior data comprises: encoding characters inputted in the display interface within a preset time period; the recommended character is an encoding character that appears most frequently in the user historical behavior data; in response to a character determination operation, the recommended character is determined as the encoding character, and the identifier and the encoding character are displayed in the display interface.
[0122] In an optional embodiment, after the step of editing the editing object included in the user input according to the editing mode, and displaying the edited editing object in the display interface, the method further comprises: in response to an input of a first character information at a target position of the edited editing object, determining a target editing object from the edited editing object according to the target position, and determining an identifier in the first character information; locating a first encoding character in the first character information according to the identifier, and determining a first editing mode according to the first encoding character; re-editing the target editing object according to the first editing mode, and displaying the re-edited target editing object in the display interface.
[0123] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or parts of the present application that essentially contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0124] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0125] Finally, it should be noted that the above-described embodiments are only specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, and are not limiting. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent substitutions for some technical features within the technical range disclosed by the present application. The modification, change or substitution does not make the corresponding technical solution deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A content output control method characterized by comprising: A display interface is provided by a terminal device, and the method comprises: receiving a user input for the display interface; determining an editing mode set according to character information included in the user input; editing an editing object included in the user input according to the editing mode, and displaying the editing object edited in the display interface; in response to an object output operation, controlling the edited editing object to be output to the display interface.
2. The method of claim 1, wherein, The character information includes an identifier and an encoded character, and the step of determining the editing mode set according to the character information included in the user input comprises: determining the identifier in the character information; locating the encoded character in the character information according to the identifier, and determining the editing mode set according to the encoded character.
3. The method of claim 2, wherein, The method further comprises: determining input content other than the character information in the user input as the editing object.
4. The method of claim 3, wherein, The encoded character includes at least one of a color-coded character and a format-coded character; wherein the color-coded character is used to determine the display color of the editing object, and the format-coded character is used to determine the display format of the editing object.
5. The method of claim 4, wherein, The step of editing the editing object included in the user input according to the editing mode comprises: controlling the object color corresponding to the editing object to be set as the display color determined by the color-coded character, and / or controlling the object format corresponding to the editing object to be set as the display format determined by the format-coded character.
6. The method of claim 2, wherein, Before the step of editing the editing object included in the user input according to the editing mode, and displaying the editing object edited in the display interface, the method further comprises: displaying the identifier and the encoded character in the display interface; After the step of editing the editing object included in the user input according to the editing mode, and displaying the editing object edited in the display interface, the method further comprises: canceling the display of the identifier and the encoded character in the display interface.
7. The method of claim 6, wherein, After the step of displaying the identifier and the encoded character in the display interface, the method further comprises: in response to an editing object input completion instruction, controlling the step of editing the editing object included in the user input according to the editing mode, and displaying the editing object edited in the display interface.
8. The method of claim 7, wherein, The method further comprises: receiving an end character input to generate the editing object input completion instruction; or receiving re-input of the character information to generate the editing object input completion instruction.
9. The method of claim 8, wherein, The terminal device stores an editing mode sequence, and after the step of displaying the editing object edited in the display interface, the method further comprises: in response to re-input of the end character, determining a target editing mode associated with the editing mode set from the editing mode sequence, and re-editing and displaying the editing object according to the target editing mode.
10. The method of claim 6, wherein, The step of displaying the identifier and the coded character in the display interface comprises: receiving input of the identifier, controlling display of the identifier in the display interface, and determining recommended characters based on user historical behavior data to display the recommended characters in the display interface in a preview manner; wherein the user historical behavior data comprises coded characters input in the display interface within a preset time period; and the recommended characters are coded characters that appear most frequently in the user historical behavior data; in response to a character determination operation, determining the recommended characters as the coded characters, and displaying the identifier and the coded characters in the display interface.
11. The method of claim 2, wherein, After the step of editing an editing object included in the user input according to the editing mode, and displaying the edited editing object in the display interface, the method further comprises: in response to input of first character information at a target position of the edited editing object, determining a target editing object from the edited editing object according to the target position, and determining the identifier in the first character information; locating a first coded character in the first character information according to the identifier, and determining a first editing mode according to the first coded character; re-editing the target editing object according to the first editing mode, and displaying the re-edited target editing object in the display interface.
12. A content output control device characterized by comprising: A display interface is provided by a terminal device, and the apparatus comprises: a content input module configured to receive user input for the display interface; an editing mode determination module configured to determine a set editing mode according to character information included in the user input; an object editing module configured to edit an editing object included in the user input according to the editing mode, and display the edited editing object in the display interface; an object output module configured to control output of the edited editing object to the display interface in response to an object output operation.
13. An electronic device, comprising: The electronic device comprises a processor and a memory, the memory stores machine executable instructions executable by the processor, and the processor executes the machine executable instructions to implement the content output control method of any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the content output control method of any one of claims 1 to 11.