Message display method and device

By obtaining the message to be displayed and the terminal screen width, and determining the display rules to display messages in a highly adaptable manner, the problem of message notifications always scrolling from right to left in the prior art, improving the user experience.

CN119105684APending Publication Date: 2024-12-10BEIJING MOMENT EVERLASTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310682865.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In the prior art, message notifications are always displayed from right to left at the top of the terminal screen, resulting in inconvenience in user experience, especially in case the screen width and text language do not match.

Method used

By obtaining the screen width of the message to be displayed and the target terminal, determine the highly adaptable display rules, including determining whether to scroll the display and scroll direction, and ensuring that the message is properly displayed in the terminal screen.

Benefits of technology

Improves user experience, adapts to different screen widths, text languages ​​and text lengths, and improves the convenience of message display and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105684A_ABST
    Figure CN119105684A_ABST
Patent Text Reader

Abstract

The invention discloses a message display method and device, relates to the technical field of computers, and mainly aims to solve the problem that great inconvenience is brought to a user due to the fact that a current message notification display mode always performs scrolling display from right to left regardless of conditions. According to the main technical scheme, the method comprises the steps of obtaining a to-be-displayed message and the screen width of a target display terminal; determining a display rule of the to-be-displayed message based on the to-be-displayed message and the screen width of the target display terminal; and displaying the to-be-displayed message in a screen of the target display terminal based on the display rule. The method is used for message display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a message display method and device. Background Art

[0002] At present, applications in terminals often involve message notifications so that users can view messages in time. The current display mode of message notifications is to scroll and display a line from right to left at the top of the terminal screen. However, this display mode always scrolls from right to left in any case, which will cause great inconvenience to users. Summary of the invention

[0003] In view of the above problems, the present invention provides a message display method and device, the main purpose of which is to solve the problem that the current message notification display mode always scrolls from right to left no matter what the situation is, causing great inconvenience to users.

[0004] In order to solve the above technical problems, the present invention proposes the following solutions:

[0005] In a first aspect, the present invention provides a message display method, the method comprising:

[0006] Get the message to be displayed and the screen width of the target display terminal;

[0007] Determining a display rule for the message to be displayed based on the message to be displayed and the screen width of the target display terminal;

[0008] The message to be displayed is displayed on the screen of the target display terminal based on the display rule.

[0009] In a second aspect, the present invention provides a message display device, the device comprising:

[0010] An acquisition unit, used to acquire the message to be displayed and the screen width of the target display terminal;

[0011] a rule determination unit, configured to determine a display rule of the message to be displayed based on the message to be displayed acquired by the acquisition unit and the screen width of the target display terminal;

[0012] A message display unit is used to display the message to be displayed on the screen of the target display terminal based on the display rule determined by the rule determination unit.

[0013] In order to achieve the above object, according to a third aspect of the present invention, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the message display method of the first aspect.

[0014] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, an electronic device is provided, which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; and the processor is used to call the program instructions in the memory to execute the message display method of the first aspect mentioned above.

[0015] By means of the above technical scheme, a message display method and device provided by the present invention can obtain the message to be displayed when there is a message to be displayed, and can also obtain the screen width of the target display terminal, and then adapt the display rules of the message to be displayed according to the message to be displayed and the screen width of the target display terminal, and finally display the message to be displayed on the screen of the target display terminal according to the display rules. In this way, the display rules of the message to be displayed are determined on the spot according to the specific message to be displayed and the specific screen width, and displayed according to the display rules. That is to say, the message display method of this scheme is a combination of the specific setting of the message to be displayed and the screen width, rather than blindly adopting the scrolling display method from right to left, so it can adapt to different screen widths, text languages ​​and text lengths, and has stronger adaptability, which can improve the convenience of users to a certain extent.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0018] Figure 1 A flow chart of a message display method provided by an embodiment of the present invention is shown;

[0019] Figure 2 Another message display method flow chart provided by an embodiment of the present invention is shown;

[0020] Figure 3 A block diagram showing a message display device provided by an embodiment of the present invention is shown;

[0021] Figure 4 A block diagram showing another message display device provided by an embodiment of the present invention is shown;

[0022] Figure 5A block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0023] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] At present, applications in terminals often involve message notifications so that users can view messages in time. Message notifications are usually displayed by scrolling one line from right to left at the top of the terminal screen. However, this display method does not take into account the width of the display screen and the length of the text in the message. If the length of the text in the message is less than the width of the screen, there is actually no need to scroll the display. If it is still scrolled at this time, it will bring a very inconvenient viewing experience to the user; on the other hand, some languages ​​are written from right to left. If it is still displayed from right to left at this time, it will cause inconvenience to the user. For this reason, the present invention provides a message display method, which can solve the problem that the current message notification display method always scrolls from right to left under any circumstances, causing great inconvenience to the user. The specific execution steps are as follows: Figure 1 As shown, including:

[0025] 101. Obtain a message to be displayed and a screen width of a target display terminal.

[0026] In the present invention, the message display system is pre-written in the form of code. After the message display system is written, the message display system can be run, that is, the execution subject of the present invention is the message display system.

[0027] It should be noted that in the message display system, the staff also pre-programmed the association configuration of the page and the role, that is, when a message arrives, it can be known which messages belong to which corresponding role according to the configuration of the page and the role. Taking role A as an example, according to the configuration of the page and the role, the message that needs to be displayed for role A can be screened out from the many messages that need to be displayed, and obtained, that is, the message to be displayed is obtained. The present invention is said from the perspective of a single role. The target display terminal is the one corresponding to the target role.

[0028] After the message to be displayed is obtained, the screen width of the target display terminal may be obtained to facilitate subsequent execution of step 102 .

[0029] 102. Determine a display rule for the message to be displayed based on the message to be displayed and a screen width of a target display terminal.

[0030] After obtaining the message to be displayed and the screen width of the target display terminal, the text length and the text language in the message to be displayed can be obtained, and then the display rules of the message to be displayed can be determined based on the text length, the text language and the screen width of the target display terminal.

[0031] Specifically, it may be determined whether the message to be displayed needs to be scrolled based on the text length and the screen width of the target display terminal. If scrolling is required, the scrolling direction may be determined based on the text language.

[0032] 103. Display the message to be displayed on the screen of the target display terminal based on the display rule.

[0033] After the display rule is determined, the message to be displayed can be displayed on the screen of the display terminal according to the display rule.

[0034] It should be noted that there may be multiple messages to be displayed, and the implementation method of the present invention is applicable to each message to be displayed of each character. When there are multiple messages to be displayed that need to be displayed on the screen of the target display terminal, a sorting method may be preset, and then the multiple messages to be displayed are sorted according to the preset sorting method to obtain a display order of the multiple messages to be displayed, and then the multiple messages to be displayed are displayed on the screen of the target display terminal according to the display order.

[0035] Specifically, the preset sorting method may be based on the acquisition time when the messages to be displayed are acquired: because the message display system may display the messages according to the preset time interval, that is, all the messages acquired during this period are pushed to the display terminal at regular intervals. All the messages acquired during this period are messages to be displayed, but they are not necessarily acquired at the same time. If this is the case, the preset sorting method may be the acquisition time when the messages to be displayed are acquired.

[0036] In addition, the preset sorting method can also be the importance of the message, and the importance of the message can be preset in advance according to the user's usage habits and usage scenarios. For example, a certain software and system setting message, a certain software may be frequently used by the user, so the importance of the software message is greater than the importance of the system setting message, so when displaying, the software message can be displayed above the system setting message.

[0037] Based on the above Figure 1It can be seen from the implementation method that the message display method provided by the present invention can obtain the message to be displayed when there is a message to be displayed, and can also obtain the screen width of the target display terminal. After that, the text length and the text language in the message to be displayed can be determined, and then the display rules of the message to be displayed can be adapted according to the text length, the text language in the text and the screen width of the target display terminal. In this way, the display rules of the message to be displayed can be determined on the spot according to the specific text length and text language of the message to be displayed and the specific screen width, and displayed according to the display rules, rather than blindly adopting the scrolling display method from right to left. Therefore, it can adapt to different screen widths, text languages ​​and text lengths, and has stronger adaptability, which can improve the convenience of users to a certain extent. In addition, when there are multiple messages to be displayed, the display order is also set, so that users can see some important messages first.

[0038] Furthermore, as a Figure 1 The embodiment shown in the figure is refined and expanded. The embodiment of the present invention also provides another message display method, such as Figure 2 As shown, the specific steps are as follows:

[0039] 201. Obtain a message to be displayed and a screen width of a target display terminal.

[0040] Among them, the implementation method of step 201 is the same as the implementation method of step 101, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.

[0041] 202. Determine a display rule for the message to be displayed based on the message to be displayed and a screen width of a target display terminal.

[0042] 203. Display the message to be displayed on the screen of the target display terminal based on the display rule.

[0043] In steps 202-203, the text length and the language of the text in the message to be displayed may be determined first, and then, based on the text length and the screen width of the target display terminal, it may be determined whether the message can be completely displayed in one line on the screen of the target display terminal without scrolling. If so, the message may be completely displayed in one line on the screen of the target display terminal without scrolling.

[0044] If a line cannot be fully displayed, the display rules of the message to be displayed can be determined based on the text length, the text language in the text, and the screen width of the target display terminal. Specifically, a display configuration request can be sent to the user, and the request includes the text length, the text language in the text, and the screen width of the target display terminal, so that the user can configure the display rules of the message to be displayed. Specifically, the display rules can determine whether the message to be displayed is scrolled according to the text length and the screen width of the target display terminal. If it is scrolled, the scrolling direction is further determined according to the text language. For example, for a language written from left to right, the scrolling direction can be from right to left, and for a language written from right to left, the scrolling direction can be from left to right. In addition, the dwell time and scrolling speed before the message to be displayed scrolls can also be configured. After configuration, the message display system can obtain the display rules, and then display the message to be displayed on the screen of the target display terminal according to the display rules.

[0045] That is to say, when the display rule set by the user is scrolling display, the display rule will further include the scrolling direction of the message, the dwell time before the message scrolls, and the scrolling speed.

[0046] Specifically, if the display rule set by the user is non-scrolling display, the message display system can determine the number of display lines of the message to be displayed on the screen of the target display terminal according to the text length and the screen width of the target display terminal, and then display the message to be displayed on the screen of the target display terminal according to the number of display lines. In this way, there is no need to scroll or adjust the message, and the message is directly displayed in lines, which is convenient for users to watch; if the display rule set by the user is scrolling display, the message to be displayed can be displayed on the screen of the target display terminal according to the scrolling direction of the message to be displayed, the dwell time before the message to be displayed scrolls, and the scrolling speed in the display rule. In this way, users can customize the display rules, which can greatly improve the user experience.

[0047] For example, if the display rule set by the user is scrolling display, and the text language is written from left to right, the scrolling direction is from right to left, the dwell time before scrolling is 3 seconds, and the scrolling speed is two characters per second. Therefore, the message to be displayed can be scrolled according to the dwell time before scrolling being 3 seconds, the scrolling speed being two characters per second, and the scrolling direction being from right to left.

[0048] 204. Monitor in real time whether the screen width of the target display terminal changes.

[0049] 205. If there is a change, re-determine a new display rule for the message to be displayed, and display the message to be displayed on the screen of the target display terminal based on the new display rule.

[0050] In steps 204-205, the message display system may monitor in real time whether the screen width of the target display terminal changes, because there is such a situation: some terminals are suddenly switched to horizontal screen operation when operating in portrait mode, and the screen width changes at this time. At this time, it is possible that the text length of the message to be displayed is larger than the screen width. After the screen width changes, when the text length of the message to be displayed is smaller than the screen width, it is necessary to re-determine the new display rule of the message to be displayed based on the message to be displayed and the new screen width, and then display the message to be displayed on the screen of the target display terminal according to the new display rule. In this way, no matter how the screen width changes, there is an adaptive display rule.

[0051] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a message display device for displaying the above Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the device comprises:

[0052] An acquisition unit 301 is used to acquire a message to be displayed and a screen width of a target display terminal;

[0053] A rule determination unit 302, configured to determine a display rule of the message to be displayed based on the message to be displayed acquired by the acquisition unit 301 and the screen width of the target display terminal;

[0054] The message display unit 303 is used to display the message to be displayed on the screen of the target display terminal based on the display rule determined by the rule determination unit 302.

[0055] Furthermore, as a response to the above Figure 2 In order to realize the method shown in the figure, the embodiment of the present invention also provides another message display device for Figure 2 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 4 As shown, the device comprises:

[0056] An acquisition unit 301 is used to acquire a message to be displayed and a screen width of a target display terminal;

[0057] A rule determination unit 302, configured to determine a display rule of the message to be displayed based on the message to be displayed acquired by the acquisition unit 301 and the screen width of the target display terminal;

[0058] The message display unit 303 is used to display the message to be displayed on the screen of the target display terminal based on the display rule determined by the rule determination unit 302.

[0059] In an optional implementation manner, the rule determination unit 302 includes:

[0060] The text determination module 3021 is used to determine the length of the text in the message to be displayed and the language of the text;

[0061] The rule determination module 3022 is used to determine the display rule of the message to be displayed based on the text length determined by the text determination module 3021, the language of the text and the screen width of the target display terminal.

[0062] In an optional implementation, the rule determination module 3022 includes:

[0063] The display determination submodule 30221 is used to determine whether the message to be displayed can be fully displayed in a fixed display mode on the screen of the target display terminal in one line based on the text length and the screen width of the target display terminal;

[0064] A first rule determination submodule 30222 is configured to, if the display determination submodule 30221 determines that it is possible, then the display rule of the message to be displayed is to display the message to be displayed in a fixed display manner on the screen of the target display terminal for a complete line;

[0065] The second rule determination submodule 30223 is used to determine the display rule of the message to be displayed based on the text length, the language of the text and the screen width of the target display terminal if the display determination submodule 30221 determines that it is not possible.

[0066] In an optional implementation manner, the second rule determination submodule 30223 is specifically used to:

[0067] Sending a display configuration request to a user so that the user can configure the display rule based on the display configuration request, wherein the display configuration request includes the text length, the text language in the text, and the screen width of the target display terminal, and the display rule includes whether the message to be displayed is scrolled, and if the message to be displayed is scrolled, the display rule also includes the scrolling direction of the message to be displayed, the dwell time before the message to be displayed scrolls, and the scrolling speed;

[0068] After the user completes the configuration, the display rule is obtained.

[0069] In an optional implementation manner, the message display unit 303 includes:

[0070] The line number determination module 3031 is used to determine the number of display lines of the message to be displayed based on the text length and the screen width of the target display terminal if the acquired display rule is that the message to be displayed is not scrolled;

[0071] The first message display module 3032 is used to display the message to be displayed on the screen of the target display terminal according to the display line number determined by the line number determination module 3031.

[0072] In another optional implementation, the message display unit 303 includes:

[0073] The second message display module 3033 is used to display the message to be displayed on the screen of the target display terminal according to the scrolling direction, dwell time and scrolling speed of the message to be displayed in the display rule if the acquired display rule is scrolling display of the message to be displayed.

[0074] In an optional implementation, the device further includes a monitoring unit 304, and the monitoring unit 304 includes:

[0075] The screen monitoring module 3041 is used to monitor in real time whether the screen width of the target display terminal changes;

[0076] The width acquisition module 3042 is used to acquire the new screen width of the target display terminal if the screen monitoring module 3041 detects yes;

[0077] A new rule determination module 3043, configured to determine a new display rule for the message to be displayed based on the message to be displayed and the new screen width acquired by the width acquisition module 3042;

[0078] The fourth message display module 3044 is used to display the message to be displayed on the screen of the target display terminal based on the new display rule determined by the new rule determination module 3043.

[0079] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The message display method described in .

[0080] Furthermore, an embodiment of the present invention also provides an electronic device, comprising: at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above Figure 1-2 The message display method described in .

[0081] Furthermore, an embodiment of the present invention provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device 50 is shown according to an embodiment of the present invention. The electronic device 50 includes at least one processor 501, at least one memory 502 connected to the processor 501, and a bus 503; wherein the processor 501 and the memory 502 communicate with each other through the bus 503. The processor 501 is used to call the program instructions in the memory 502 to execute the above-mentioned message display method. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0082] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0083] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.

[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0085] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific languages ​​is for disclosing the best mode of the present invention.

[0086] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0093] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0094] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0096] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A message display method, characterized in that: The method comprises: Get the message to be displayed and the screen width of the target display terminal; Determining a display rule for the message to be displayed based on the message to be displayed and the screen width of the target display terminal; The message to be displayed is displayed on the screen of the target display terminal based on the display rule.

2. The method according to claim 1, characterized in that Determining a display rule of the message to be displayed based on the message to be displayed and the screen width of the target display terminal includes: Determine the length of the text in the message to be displayed and the language of the text; A display rule for the message to be displayed is determined based on the length of the text, the language of the text, and the screen width of the target display terminal.

3. The method according to claim 2, characterized in that Determining a display rule for the message to be displayed based on the length of the text, the language of the text, and the screen width of the target display terminal includes: Based on the length of the text and the screen width of the target display terminal, determining whether the message to be displayed can be completely displayed in a fixed display mode on the screen of the target display terminal for one line; If yes, the display rule of the message to be displayed is to display the message to be displayed in a fixed display manner on the screen of the target display terminal in a complete row; If not possible, a display rule for the message to be displayed is determined based on the length of the text, the language of the text, and the screen width of the target display terminal.

4. The method according to claim 3, characterized in that If not, determining a display rule for the message to be displayed based on the length of the text, the language of the text, and the screen width of the target display terminal, including: Sending a display configuration request to a user so that the user can configure the display rule based on the display configuration request, wherein the display configuration request includes the text length, the text language in the text, and the screen width of the target display terminal, and the display rule includes whether the message to be displayed is scrolled, and if the message to be displayed is scrolled, the display rule also includes the scrolling direction of the message to be displayed, the dwell time before the message to be displayed scrolls, and the scrolling speed; After the user completes the configuration, the display rule is obtained.

5. The method according to claim 1, characterized in that Displaying the message to be displayed on the screen of the target display terminal based on the display rule includes: If the acquired display rule is that the message to be displayed is not scrolled, then determining the number of display lines of the message to be displayed based on the text length and the screen width of the target display terminal; The message to be displayed is displayed on the screen of the target display terminal according to the number of display lines.

6. The method according to claim 1, characterized in that Displaying the message to be displayed on the screen of the target display terminal based on the display rule includes: If the acquired display rule is scrolling display of the message to be displayed, the message to be displayed is displayed on the screen of the target display terminal according to the scrolling direction, the dwell time and the scrolling speed of the message to be displayed in the display rule.

7. The method according to claim 1, characterized in that The method further comprises: Real-time monitoring of whether the screen width of the target display terminal changes; If yes, obtaining a new screen width of the target display terminal; Determining a new display rule for the message to be displayed based on the message to be displayed and the new screen width; The message to be displayed is displayed on the screen of the target display terminal based on the new display rule.

8. A message display device, characterized in that: The device comprises: An acquisition unit, used to acquire the message to be displayed and the screen width of the target display terminal; a rule determination unit, configured to determine a display rule of the message to be displayed based on the message to be displayed acquired by the acquisition unit and the screen width of the target display terminal; A message display unit is used to display the message to be displayed on the screen of the target display terminal based on the display rule determined by the rule determination unit.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the message display method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: At least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; The processor is used to call the program instructions in the memory to execute the message display method according to any one of claims 1 to 7.