Text display processing method and computer readable storage medium

By dividing the text on the display device into multiple subtexts and encapsulating them, the problem of single text display form and out of synchronization between audio and video in the prior art is solved, and diversified text display effects and synchronized audio and video performance are achieved.

CN120066350APending Publication Date: 2025-05-30GUANGZHOU MAILING INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311610247.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, the marquee effect on the display device cannot style some content in the text separately, resulting in a single text display form, unable to meet user needs, and the font scrolling and change speed cannot be set separately, resulting in the sound and picture out of synchronization.

Method used

By obtaining the first text and the number of display lines that are completed on the display device, dividing it into multiple subtexts, and encapsulating and storing each subtext independently, the user allows a separate display setting for each subtext.

Benefits of technology

Different effects of displaying lines for different text are realized, which meets the user's display needs, and independently sets the scrolling time and speed to avoid the out-of-synchronization of the audio and video, and improves the user's experience of the display device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066350A_ABST
    Figure CN120066350A_ABST
Patent Text Reader

Abstract

The invention discloses a text display processing method and a computer readable storage medium, the processing method provided by the invention is applied to text display of a display device, and comprises the following steps: obtaining a first text, and dividing the first text into a plurality of sub-texts; all the sub-texts are packaged, and the packaged sub-texts are stored in a first parent container; and obtaining the packaged sub-text from the first parent container, so that the display device displays the packaged sub-text. According to the method, the first text is divided into the plurality of sub-texts based on the display line number of the first text on the display device, and each sub-text is independently packaged, that is, a user can independently display each sub-text, so that the display device can display different display lines of the text with different effects, and the display requirements of the user are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of text display, and particularly to a processing method for text display and a computer-readable storage medium. Background Art

[0002] In the prior art, the marquee effect on a display device directly uses system controls to display text. However, it is easy to have the display style (color, font size, etc.) of the entire text to be uniformly set, and it is impossible to separately define the style of some content in the text, resulting in a single form of text display and unable to meet the user's requirements for text display. Moreover, the font scrolling and changing speed of the sample on the display device cannot be separately set, and the entire text can only use a unified setting speed, which easily leads to audio-video asynchronization on the display device. Summary of the Invention

[0003] This application provides a processing method for text display to solve the above technical problems. The processing method is applied to a display device for displaying a first text, and includes:

[0004] Obtain the first text and the number of display lines expected for the first text to be completed on the display device;

[0005] Divide the first text into multiple sub-texts based on the number of display lines;

[0006] Perform encapsulation processing on all the sub-texts, and store the encapsulated sub-texts in a first parent container;

[0007] Obtain the encapsulated sub-texts from the first parent container so that the display device displays the encapsulated sub-texts.

[0008] Wherein, the first parent container includes a first buffer area and a second buffer area. After the step of the display device displaying the encapsulated sub-texts, the processing method further includes:

[0009] Store the sub-texts that have been completed on the display device in the first buffer area;

[0010] In response to the cache space of the first buffer area being less than or equal to a preset cache space, store at least part of the sub-texts in the first buffer area in the second buffer area.

[0011] Wherein, the step of storing at least part of the sub-texts in the first buffer area in the second buffer area includes:

[0012] Obtain the number of times each sub-text has been completed on the display device;

[0013] Select at least one sub - text from the first buffer as the first sub - text based on the occurrences of all the sub - texts, where the occurrence of the first sub - text is less than the occurrences of the remaining sub - texts in the first buffer;

[0014] Move the first sub - text to the second buffer for storage, and count the storage time of each first sub - text in the second buffer.

[0015] Wherein, the processing method further includes:

[0016] In response to the cache space of the second buffer being less than or equal to the preset cache space, select at least one first sub - text from the second buffer as the second sub - text based on the storage times of all the first sub - texts in the second buffer, where the storage time of the second sub - text is greater than the storage times of the remaining first sub - texts in the second buffer;

[0017] Delete the second sub - text in the second buffer.

[0018] Wherein, before the step of storing the encapsulated sub - text into the first parent container, the processing method further includes:

[0019] Based on the display line number, obtain at least one key value corresponding to each sub - text;

[0020] Bind the at least one key value to the corresponding sub - text, and store the key value into the first parent container;

[0021] The step of obtaining the encapsulated sub - text from the first parent container includes:

[0022] Obtain all the key values of the sub - texts from the first parent container;

[0023] Read from the first parent container the sub - text corresponding to the key value based on the key value.

[0024] Wherein, the processing method further includes:

[0025] In the case that the first text includes two identical sub - texts, obtain the first key value and the second key value corresponding to the two identical sub - texts, bind the first key value and the second key value to one of the two identical sub - texts, and delete the other sub - text among the two identical sub - texts.

[0026] Wherein, the step of obtaining the first text and the display line number that the first text is expected to be completely displayed on the display device includes:

[0027] Obtain the first display parameter of the first text, where the first display parameter includes the text size;

[0028] Based on the first display parameter and the display area parameter of the display device, obtain the number of display lines.

[0029] Among them, the step of encapsulating all the sub-texts includes:

[0030] Based on the first display parameter, set the second display parameter of each sub-text, where the second display parameter includes at least one of the text scrolling color, the scrolling duration, and the text initial color.

[0031] Among them, the processing method further includes:

[0032] Divide the obtained second text into multiple sub-texts of the second text;

[0033] Identify the same sub-texts in the first text and the second text, obtain the key values corresponding to the same sub-texts in the second text and the first text, bind the key values and the sub-texts corresponding to the first text, and delete the sub-texts corresponding to the second text;

[0034] Perform encapsulation processing on all the sub-texts of the second text and store them in the second parent container;

[0035] Store the sub-texts in the first parent container and the sub-texts in the second parent container in the same parent container.

[0036] To solve the above technical problems, the present application also provides a computer-readable storage medium, which is used to store program data. When the program data is executed by a processing device, it is used to implement the above-mentioned processing method.

[0037] The beneficial effects of the present application: Different from the prior art, the processing method provided by the present application is applied to the text display of a display device, including: obtaining a first text and dividing the first text into multiple sub-texts; performing encapsulation processing on all the sub-texts and storing the encapsulated sub-texts in a first parent container; obtaining the encapsulated sub-texts from the first parent container so that the display device displays the encapsulated sub-texts. By dividing the first text into multiple sub-texts based on the number of display lines of the first text on the display device, and encapsulating each sub-text separately, that is, the user can perform separate display settings for each sub-text, thereby realizing different display effects of the display device for different numbers of display lines of the text and meeting the display needs of the user. Description of the Drawings

[0038] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0039] Among them:

[0040] Figure 1 is a schematic flowchart of the first embodiment of the processing method of the present application;

[0041] Figure 2 is a schematic flowchart of the second embodiment of the processing method of the present application;

[0042] Figure 3 is a schematic flowchart of the third embodiment of the processing method of the present application;

[0043] Figure 4 is Figure 1 a schematic flowchart of step S1 in an embodiment;

[0044] Figure 5 is a schematic flowchart of the fourth embodiment of the processing method of the present application;

[0045] Figure 6 is a schematic structural diagram of an embodiment of the computer-readable storage medium of the present application. Specific embodiments

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0047] The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and the above accompanying drawings of the present application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application described here, for example, can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily limit to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0048] In the specification of this application, the term "and / or" is merely a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in this text, the character " / " generally indicates that the associated objects before and after are in an "or" relationship. Furthermore, the term "multiple" in this text means two or more than two. In addition, the term "at least one" in this text means any one of multiple types or any combination of at least two of multiple types. For example, including at least one of A, B, and C can represent any one or more elements selected from the set composed of A, B, and C.

[0049] For all voice broadcasts during the financial double-recording process, the text will have a marquee effect as the audio plays. In the prior art, the system control's display settings for the entire text cannot meet the diverse needs of users for the text display style, and the scrolling effect of the text on the display device cannot be defined by itself, resulting in problems such as the characters in each line not being aligned or the characters in the last line not being fully displayed, causing the situation of out-of-sync audio and video on the display device during the voice broadcast process and reducing the user experience of using the display device.

[0050] Based on the above technical problems, this application proposes a processing method for text display, which is applied to the text display of a display device. Please refer to Figure 1 , Figure 1 is a schematic flowchart of the first embodiment of the processing method of this application. The processing method provided by the embodiment of this application includes the following steps:

[0051] S1: Obtain the first text and the number of display lines of the first text.

[0052] Specifically, the display device can obtain the first text to be displayed and obtain the number of display lines that the first text is expected to complete display on the display device. Among them, the number of display lines that the first text is expected to complete display on the display device is the total number of lines that the first text needs to be displayed on the display device from the start of display to the completion of display, rather than the number of lines of text that the display device can display at one time. The first text can be pre-stored in the text inside the display device or the text obtained by the display device from the outside.

[0053] In one embodiment, the display device can be a display screen, a display light strip, etc.

[0054] S2: Divide the first text into multiple sub-texts.

[0055] Among them, the display device can divide the first text into multiple sub-texts according to the number of display lines expected to be completed on the display device for the first text. Each sub-text includes at least one line of characters of the first text on the display device. Furthermore, the display device can perform separate display settings on the multiple sub-texts, so that during the display process of the first text on the display device, the characters in each sub-text can correspond to different display effects. For example, different font sizes, different font colors, or different scrolling speeds, etc., to meet the user's display requirements for the text on the display device.

[0056] S3: Perform encapsulation processing on all the sub-texts, and store the encapsulated sub-texts in the first parent container.

[0057] Among them, when the display device performs encapsulation processing on all the sub-texts, it can set the font size, font color, or different scrolling speeds for all the sub-texts, so that each sub-text has different display settings, and then store the encapsulated sub-texts in the first parent container.

[0058] S4: Obtain the encapsulated sub-texts from the first parent container, so that the display device can display the encapsulated sub-texts.

[0059] In step S3, the display device stores the encapsulated sub-texts in the first parent container. When the display device receives an instruction to display the text, the display device obtains the encapsulated sub-texts from the first parent container, so that the display device can display the encapsulated sub-texts.

[0060] It can be understood that since each sub-text is stored in the first parent container after being encapsulated, when each sub-text is displayed on the display device, the display effects set during the encapsulation process will be presented, meeting the user's display requirements for the display device.

[0061] In a specific application, the first text can be pre-stored in the TextView (a component used to display strings) of the display device. The display device obtains the first text and the number of display lines of the first text from the TextView. The number of display lines of the first text obtained by the display device is N lines, where N is an integer greater than 1. The display device divides the first text into N sub-texts based on the number of display lines N, that is, the N sub-texts are set corresponding to the number of display lines N, and each sub-text includes one line of characters of the first text. The display device performs encapsulation processing on all the sub-texts and stores the encapsulated sub-texts in the first parent container. Specifically, each sub-text can be displayed by a RunningTextView, and the display device stores each RunningTextView including one sub-text in the first parent container. That is, the set of all sub-texts in the first parent container is the first text.

[0062] Furthermore, when the display device responds to the text display instruction, the encapsulated sub-text is obtained in the first parent container, and the obtained sub-text is displayed on the display device to meet the user's display requirements.

[0063] Optionally, the display device may include a processing module, and the processing module may be a TextView or a ScorrlView (view scrolling component). It can be understood that the above steps may be processed by the processing module.

[0064] In summary, after the display device obtains the first text, the first text is divided into multiple sub-texts, and then the multiple sub-texts are respectively encapsulated and processed, and different display settings are applied to the multiple sub-texts, so that in the display of the first text on the display device, the characters of different sub-texts have different display effects, meeting the user's text display requirements for the display device. At the same time, the multiple sub-texts can respectively adjust the scrolling duration and scrolling speed in the display device, so that the display of different sub-texts on the display device corresponds to the played audio of the display device, avoiding the situation of out-of-sync audio and video on the display device and improving the user experience of using the display device.

[0065] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the second embodiment of the processing method of this application. Before step S4 in Figure 1 , the processing method of this embodiment further includes the following steps:

[0066] S21: Based on the number of display lines, obtain at least one key value corresponding to each sub-text.

[0067] In step S2, when the display device divides the first text into multiple sub-texts based on the number of display lines, the display device also obtains at least one key value corresponding to each sub-text at the same time, where the key value represents which line of the display lines of the first sub-text the corresponding sub-text is on.

[0068] S22: Bind at least one key value to the corresponding sub-text.

[0069] In step S21, after the display device obtains at least one key value of each sub-text, it binds at least one key value to the corresponding sub-text. Then, the processing unit for text display can read the corresponding sub-text according to the key value and store all the key values in the first parent container.

[0070] In one embodiment, when the first text includes two identical sub - texts, that is, the characters in two display lines of the first text are the same, the text display processing unit obtains the first key value and the second key value corresponding to the two identical sub - texts, binds the first key value and the second key value to one of the two identical sub - texts, and deletes the other sub - text of the two identical sub - texts. It can be understood that at this time, this sub - text is bound with the first key value and the second key value.

[0071] For example, the first text includes sub - text N1 and sub - text N2. The content of sub - text N1 and the content of sub - text N2 can be adjacent content or non - adjacent content in the first text, and the content of sub - text N1 and the content of sub - text N2 are the same. Sub - text N1 corresponds to key value K1, and sub - text N2 corresponds to key value K2. Then the display device deletes sub - text N2 and binds key value K1 and key value K2 to sub - text N1. By binding one sub - text with multiple key values and deleting other sub - texts with the same content, the processing amount of the sub - texts by the display device is reduced, and the processing efficiency of the sub - texts by the display device is improved.

[0072] In another embodiment, when the first text includes more than two identical sub - texts, this sub - text can be bound with more than two key values, and other identical sub - texts are deleted to free up the storage space of the first parent container. The number of key values bound to the sub - text in this application is not limited.

[0073] S23: Obtain the key value from the first parent container, and read the corresponding sub - text from the first parent container based on the key value.

[0074] Among them, when the display device receives an instruction for text display, the display device can obtain the key value from the first parent container and directly extract the sub - text corresponding to the key value from the first parent container based on the obtained key value. Thus, the corresponding sub - text can be directly obtained through the key value, without the display device reading the character content of the sub - text in the first parent container to find the required sub - text, shortening the response speed of the display device to the instruction and improving the display efficiency of the display device for the text.

[0075] This embodiment proposes binding each sub - text with at least one key value. Furthermore, the display device can directly obtain the corresponding sub - text through the key value, improving the reading efficiency of the display device for the sub - text, increasing the response rate of the display device to the text display instruction, and improving the user experience of using the display device.

[0076] Please refer to Figure 3 , Figure 3It is a schematic flowchart of the third embodiment of the processing method of the present application. The first parent container includes a first buffer and a second buffer. After the step of the display device displaying the encapsulated sub-text in step S4, the processing method further includes:

[0077] S31: Store the sub-text that has completed display into the first buffer.

[0078] In this embodiment, when the sub-text has completed display on the display device, the display device stores the sub-text that has completed display into the first buffer for short-term storage of the sub-text. Then, when the user has a display requirement for the sub-text, the display device directly reads the sub-text from the first buffer, realizing the reuse of the sub-text and improving the response efficiency of the display device to the text display instruction at the same time; avoiding the situation of frequently creating and destroying sub-text and increasing the workload of the display device.

[0079] In one embodiment, in step S4, when the display device stores the encapsulated sub-text into the first parent container, it can be that the display device stores the encapsulated sub-text into the first buffer of the first parent container.

[0080] In other embodiments, it can also be that the display device stores the encapsulated sub-text into the second buffer of the first parent container.

[0081] The present application does not limit that the processing device for displaying text in step S4 stores the divided and encapsulated sub-text into the first buffer or the second buffer, and only illustrates that the sub-text that has completed display on the display device is stored in the first buffer.

[0082] S32: Determine whether the buffer space of the first buffer is less than or equal to the preset buffer space.

[0083] Among them, when the display device continuously stores the sub-text that has completed display into the first buffer without reading a sufficient amount of sub-text from the first buffer to clear the buffer space, the first buffer will affect the subsequent storage of sub-text due to too small buffer space. Therefore, when the display device moves the sub-text to the first buffer for storage, it will determine whether the storage space of the first buffer is less than or equal to the preset buffer space.

[0084] In response to the buffer space of the first buffer being greater than the preset buffer space, it indicates that there is still enough buffer space in the first buffer to store the sub-text, and the display device moves the sub-text that has completed display to the first buffer for storage.

[0085] In response to the storage space of the first buffer being less than or equal to the preset buffer space, it indicates that the remaining buffer space in the first buffer is running out and subsequent normal storage of the sub-text that has completed display is impossible. It is necessary to clear the buffer space of the first buffer and enter steps S33 - S34.

[0086] S33: Obtain the number of times each sub - text is completely displayed on the display device.

[0087] Among them, the display device obtains the number of times each sub - text is completely displayed on the display device, that is, the display device obtains the usage frequency of each sub - text.

[0088] S34: Based on the number of times of the sub - text, move at least one first sub - text to the second buffer for storage, and count the storage time of each first sub - text.

[0089] The display device obtains the usage frequency of each sub - text based on the number of times each sub - text is completely displayed on the display device, and selects at least one sub - text from the first buffer as the first sub - text. Among them, the number of times the first sub - text is completely displayed on the display device is less than or equal to the number of times the remaining sub - texts in the first buffer are completely displayed on the display device. That is, the first sub - text is the sub - text with the lowest usage frequency in the first buffer.

[0090] The display device moves at least one first sub - text to the second buffer for storage, and counts the storage time of the first sub - text in the second buffer.

[0091] It can be understood that the first buffer is the buffer where the display device reads sub - texts more frequently. Therefore, store the sub - texts with higher usage frequency in the first buffer, which is convenient for the display device to read sub - texts from the first buffer.

[0092] S35: Determine whether the cache space of the second buffer is less than or equal to the preset cache space.

[0093] Among them, when the display device continuously moves the first sub - text to the second buffer for storage, but does not read enough sub - texts from the second buffer to clear the cache space, the second buffer will affect the subsequent storage of the first sub - text due to too small cache space. Therefore, when the display device moves the first sub - text to the second buffer for storage, it will determine whether the storage space of the second buffer is less than or equal to the preset cache space.

[0094] In response to the cache space of the second buffer being greater than the preset cache space, it indicates that there is still enough cache space in the second buffer to store the first sub - text. The display device moves the first sub - text in the first buffer to the second buffer for storage, and enters step S36.

[0095] In response to the storage space of the second buffer being less than or equal to the preset cache space, it indicates that the cache space in the second buffer is almost used up, and the first sub - text cannot be normally stored subsequently. It is necessary to clear the cache space of the second buffer, and enter step S37.

[0096] S36: Store the first sub - text in the second buffer.

[0097] When the buffer space of the second buffer is greater than the preset buffer space, the display device directly moves the first sub - text in the first buffer to the second buffer for storage.

[0098] S37: Delete at least one second sub - text based on the storage time of the first sub - text.

[0099] In step S34, after the display device counts the storage time of the first sub - text in the second buffer, based on the storage time of the first sub - text in the second buffer, at least one first sub - text in the second buffer is selected as the second sub - text. Among them, the storage time of the second sub - text is longer than that of the remaining first sub - texts in the second buffer. That is to say, the storage time of the second sub - text in the second buffer is the longest.

[0100] Among them, the longest storage time in the second buffer indicates that since the second sub - text was last displayed on the display device, it entered the first buffer, was moved to the second buffer, and during the process until the display device needs to clear the buffer space of the second buffer, it has not been read and displayed again. Therefore, the display device determines that the possibility of the second sub - text being read and displayed again is low, and deletes the second sub - text from the second buffer to free up the buffer space of the second buffer.

[0101] The following briefly describes the movement process of the sub - text in the display device and the first parent container:

[0102] In response to the text display instruction, the display device reads the sub - text from the first parent container and controls the display device to display the sub - text.

[0103] The display device moves the displayed - completed sub - text to the first buffer for caching. The sub - text located in the first buffer can be read again by the display device for display in the display device and then moved to the first buffer for caching again; or the sub - text is moved from the first buffer to the second buffer for caching.

[0104] The sub - text located in the second buffer can be read by the display device for display in the display device and then moved to the first buffer for caching, waiting to be moved to the second buffer for caching again; or it is deleted by the display device in the second buffer.

[0105] In this embodiment, by storing sub-texts hierarchically, the storage efficiency of sub-texts is improved. Sub-texts with higher usage frequencies are stored in the first buffer area to improve the reading efficiency of the display device for sub-texts, and sub-texts with lower usage frequencies are stored in the second buffer area instead of being destroyed, avoiding the situation of frequently creating and destroying sub-texts and increasing the workload of the display device.

[0106] Please refer to Figure 4 , Figure 4 is Figure 1 a schematic flowchart of an embodiment of step S1. The specific steps of obtaining the first text and the number of display lines of the first text in step S1 include:

[0107] S41: Obtain the first display parameter of the first text.

[0108] Among them, the first display parameter includes the text size.

[0109] S42: Based on the first display parameter and the display area parameter of the display device, obtain the number of display lines.

[0110] Based on the first display parameter and the display area parameter of the display device, the display device obtains the number of display lines expected to complete the display of the first text on the display device. Among them, the display area parameter of the display device can be the size of the display area, etc. Based on the first display parameter and the display area parameter of the display device, the display device obtains how many characters can be displayed in each line of the display device, and then obtains the number of display lines required for the first text to complete the display on the display device.

[0111] For example, in the first display parameter, the default font size of the first text is medium, there are N characters in each line, and there are M lines, with a total of N*M characters. In the display area of the display device, M medium-sized characters can be displayed in each line. Then, when the first text is displayed on the display device, only N lines of display are required to complete the display of the first text. Therefore, in this example, the number of display lines of the first text is N. Obtaining the number of display lines of the first text through the first display parameter and the display area parameter of the display device makes the operation of the display device to divide the first text into multiple sub-texts more accurate.

[0112] Further, the encapsulation process of all sub-texts in step S3 specifically includes setting the second display parameter for each sub-text based on the first display parameter. Among them, the second display parameter includes the color of text scrolling, the scrolling duration, the initial color of the text, etc.

[0113] Since the display setting of the first text is the first display parameter, when the display device divides the first text into multiple sub - texts, the display settings of the multiple sub - texts are the first display parameter. The first display parameter may further include the initial text color, the scrolling text color, and the scrolling duration, etc. The display device can re - define the display settings of each sub - text to perform re - packaging processing on the sub - texts. For example, set the initial text color of the sub - text when it initially appears on the display device, set the scrolling text color of the sub - text when it scrolls on the display device, or set the scrolling duration or scrolling speed of the sub - text on the display device, so that each sub - text corresponds to the playing audio on the display device.

[0114] Among them, the display device sets the second display parameter of each sub - text based on the first display parameter. When it is determined that some of the setting parameters in the second display parameter are the same as the corresponding setting parameters in the first display parameter, the setting parameter is maintained. For example, given the first display parameter of each sub - text, and then when the initial text color in the second display parameter is the same as the initial text color in the first display parameter, when the display device sets the second display parameter of the sub - text, it does not need to re - set the corresponding display parameter, and only needs to maintain the original display setting, avoiding useless repeated settings of the display of the sub - text by the display device, reducing the workload of the display device, and improving the processing speed of the display device.

[0115] Please refer to Figure 5 , Figure 5 which is the flowchart of the fourth embodiment of the processing method of this application. The processing method provided by the embodiments of this application further includes the following steps:

[0116] S51: Divide the obtained second text into sub - texts of multiple second texts.

[0117] Among them, the display device can also obtain the second text to be displayed by the display device and divide the second text to obtain multiple sub - texts of the second text. Among them, the second text is a text that is at least partially different from the first text, and the second parent container is the same parent container as the first parent container.

[0118] The detailed operation of step S51 is the same as steps S1 - S2, and this application will not elaborate here.

[0119] S52: Identify the same sub - texts of the first text and the second text, obtain the key values corresponding to the same sub - texts in the first text and the second text, bind the key values to the corresponding same sub - texts in the first text, and delete the corresponding sub - texts of the second text.

[0120] Among them, the second text is a text that is at least partially different from the first text. That is, among the multiple sub-texts divided from the second text, there may be some that are the same as the sub-texts of the first text. Therefore, after dividing the second text in step S51, identify the same sub-texts in the first text and the second text, and obtain the key values corresponding to the same sub-texts in the first text and the second text. Bind the key values to the sub-texts that are the same as those in the first text, and delete the corresponding sub-texts in the second text.

[0121] For example, the first text includes the sub-text N1, and the second text includes the sub-text M1, and the sub-text N1 and the sub-text M1 are the same text. The sub-text N1 corresponds to the key value K1, and the sub-text M1 corresponds to the key value T1. Then, the display device binds the key value K1 and the key value T1 to the sub-text N1, and deletes the sub-text M1. By binding one sub-text to multiple key values and deleting other sub-texts with the same content, the processing amount of the sub-texts by the display device is reduced, and the processing efficiency of the sub-texts by the display device is improved.

[0122] The detailed operations of step S52 are the same as those of steps S21 - S22, and this application will not elaborate too much here.

[0123] S53: Package all the sub-texts of the second text and store them in the second parent container.

[0124] Furthermore, the display device binds the remaining sub-texts of the second text (sub-texts that are different from the sub-texts of the first text) after step S53 to the corresponding key values, packages the sub-texts of the second text, and stores them in the second parent container.

[0125] S54: Store the sub-texts of the first parent container and the sub-texts of the second parent container in the same parent container.

[0126] Furthermore, the display device stores the sub-texts of the first parent container and the sub-texts of the second parent container obtained above in the same parent container, which is convenient for the display device to read the sub-texts.

[0127] This application also provides a computer-readable storage medium. Refer to Figure 6 , Figure 6 which is a schematic structural diagram of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 60 stores program data 61, and when the program data 61 is executed on the display device, it is used to implement the processing method described above.

[0128] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium 50. Based on such understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0129] The above are only the embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.

Claims

1. A processing method for text display, characterized in that, applied to a display device for displaying a first text, the processing method comprising: obtaining the first text and the number of display lines in which the first text is expected to be completely displayed on the display device; dividing the first text into a plurality of sub-texts based on the number of display lines; performing encapsulation processing on all the sub-texts, and storing the encapsulated sub-texts in a first parent container; obtaining the encapsulated sub-texts from the first parent container so that the display device displays the encapsulated sub-texts.

2. The processing method according to claim 1, characterized in that, the first parent container includes a first buffer area and a second buffer area. After the step of the display device displaying the encapsulated sub-texts, the processing method further comprises: storing the sub-texts that have been completely displayed on the display device in the first buffer area; in response to the buffer space of the first buffer area being less than or equal to a preset buffer space, storing at least part of the sub-texts in the first buffer area in the second buffer area.

3. The processing method according to claim 2, characterized in that, the step of storing at least part of the sub-texts in the first buffer area in the second buffer area includes: obtaining the number of times each sub-text is completely displayed on the display device; selecting at least one sub-text as a first sub-text from the first buffer area based on the number of times of all the sub-texts, the number of times of the first sub-text being less than the number of times of the remaining sub-texts in the first buffer area; moving the first sub-text to the second buffer area for storage, and counting the storage time of each first sub-text in the second buffer area.

4. The processing method according to claim 3, characterized in that, the processing method further comprises: in response to the buffer space of the second buffer area being less than or equal to the preset buffer space, selecting at least one first sub-text as a second sub-text from the second buffer area based on the storage time of all the first sub-texts in the second buffer area, the storage time of the second sub-text being greater than the storage time of the remaining first sub-texts in the second buffer area; deleting the second sub-text in the second buffer area.

5. The processing method according to claim 1, characterized in that, before the step of storing the encapsulated sub-texts in the first parent container, the processing method further comprises: obtaining at least one key value corresponding to each sub-text based on the number of display lines; binding the at least one key value to the corresponding sub-text, and storing the key value in the first parent container; the step of obtaining the encapsulated sub-texts from the first parent container includes: obtaining the key values of all the sub-texts from the first parent container; reading, from the first parent container based on the key values, the sub-texts corresponding to the key values.

6. The processing method according to claim 5, characterized in that, the processing method further comprises: In the case where the first text includes two identical sub - texts, obtain the first key value and the second key value corresponding to the two identical sub - texts, bind the first key value and the second key value to one of the two identical sub - texts, and delete the other sub - text of the two identical sub - texts.

7. The processing method according to any one of claims 1 - 6, wherein, the steps of obtaining the first text and the number of display lines expected to be completed for the display of the first text on the display device include: obtaining a first display parameter of the first text, the first display parameter including the text size; obtaining the number of display lines based on the first display parameter and the display area parameter of the display device.

8. The processing method according to any one of claim 7, wherein, the step of encapsulating all the sub - texts includes: setting a second display parameter for each of the sub - texts based on the first display parameter, the second display parameter including at least one of a text scrolling color, a scrolling duration, and a text initial color.

9. The processing method according to claim 6, wherein, the processing method further includes: dividing the obtained second text into multiple sub - texts of the second text; identifying the identical sub - texts in the first text and the second text, obtaining the key values corresponding to the identical sub - texts in the second text and the first text, binding the key values and the sub - texts identical to those in the first text, and deleting the sub - texts corresponding to the second text; encapsulating all the sub - texts of the second text and storing them in a second parent container; storing the sub - texts in the first parent container and the sub - texts in the second parent container in the same parent container.

10. A computer - readable storage medium, wherein, the computer - readable storage medium is used to store program data, and when the program data is executed by a processing device, it is used to implement the processing method according to any one of claims 1 - 9.