TEXT DISPLAY METHOD, APPARATUS, DEVICE, MEDIUM, AND PRODUCT

Embodiments of the present disclosure provide a text display method, an apparatus, a device, a medium, and a product. The method includes: obtaining at least one display form configuration information item which is preconfigured and corresponds to a first text in response to an event of displaying the first text according to a preset display form; obtaining display form control information of at least one first character in the first text according to the at least one display form configuration information item and first display information of the first text in a media data presentation page; controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims priority to Chinese Application No. 202510669239.6 filed May 22, 2025, the disclosure of which is incorporated herein by reference in its entirety.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the field of computer processing technologies and, in particular, to a text display method, an apparatus, a device, a medium, and a product.

BACKGROUND

With the development of digital media technology, users have put forward higher requirements for the display form of text content. Traditional text display methods are usually relatively static, lacking visual attraction and dynamic effects. In order to improve user experience and information expression effect, more and more scenarios need to present text in the form of dynamic text animation.

In the prior art, the method of making text animation usually depends on the user to write code programs to realize the generation of text animation.

SUMMARY

Embodiments of the present disclosure provide a text display method, an apparatus, a device, a medium, and a product.

In a first aspect, an embodiment of the present disclosure provides a text display method, the method includes:

    • obtaining at least one display form configuration information item which is preconfigured and corresponds to a first text in response to an event of displaying the first text according to a preset display form;
    • obtaining display form control information of at least one first character in the first text according to the at least one display form configuration information item and first display information of the first text in a media data presentation page;
    • controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information;
    • where the preset display form is related to the obtained display form control information.

In a second aspect, an embodiment of the present disclosure provides a text display apparatus, the apparatus includes:

    • a display form configuration information obtaining module, configured to obtain at least one display form configuration information item which is preconfigured and corresponds to a first text in response to an event of displaying the first text according to a preset display form;
    • a display form control information obtaining module, configured to obtain display form control information of at least one first character in the first text according to the at least one display form configuration information item and first display information of the first text in a media data presentation page;
    • a character display module, configured to control display of the at least one first character in the first text on the media data presentation page according to the display form control information;
    • where the preset display form is related to the obtained display form control information.

In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device includes:

    • one or more processors;
    • a storage apparatus, configured to store one or more programs,
    • when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the text display method according to any one of embodiments of the present disclosure.

In a fourth aspect, an embodiment of the present disclosure provides a storage medium including computer-executable instructions, when the computer-executable instructions are executed by a computer processor, the text display method according to any one of embodiments of the present disclosure is executed.

In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, when the computer program is executed by a processor, the text display method according to any one of embodiments of the present disclosure is implemented.

According to the technical solutions provided by embodiments of the present disclosure, at least one display form configuration information item which is preconfigured and corresponds to a first text is obtained in response to an event of displaying the first text according to a preset display form; display form control information of at least one first character in the first text is obtained according to the at least one display form configuration information item and first display information of the first text in a media data presentation page; display of the at least one first character in the first text is controlled on the media data presentation page according to the display form control information; wherein, the preset display form is related to the obtained display form control information, the problems in the prior art of making text animation by code programming, such as complex operation, high cost and low production efficiency, are solved, by means of obtaining the at least one display form configuration information item which is preconfigured and corresponds to the first text when the event of displaying the first text according to the preset display form is responded, and then, obtaining, by the preconfigured display form configuration information, the display form control information about how to control the at least one first character in the first text in combination with the first display information of the first text in the media data presentation page, controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information, the generation of text animation can be realized without writing code by users, the complexity of text animation production is reduced, and the technical effects of improving production efficiency and reducing production costs are achieved. At the same time, it is also convenient for users to see the display effect of text animation in real time, and adjust the display form control information in real time according to the preview effect, ensuring that the display effect of text animation meets the expectation, further improving the production efficiency and improving the user experience.

BRIEF DESCRIPTION OF THE DRAWINGS

The above-mentioned and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent in combination with the drawings and with reference to the following specific embodiments. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic, and the components and elements are not necessarily drawn to scale.

FIG. 1 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure;

FIG. 2 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure;

FIG. 3 is a schematic diagram of an information configuration page provided by an embodiment of the present disclosure;

FIG. 4 is a schematic diagram of a waveform configuration interface provided by an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a first display waveform provided by an embodiment of the present disclosure;

FIG. 6 is a schematic diagram of a first display waveform provided by an embodiment of the present disclosure;

FIG. 7 is a schematic diagram of a waveform provided by an embodiment of the present disclosure;

FIG. 8 is a schematic diagram of a waveform provided by an embodiment of the present disclosure;

FIG. 9 is a schematic diagram of an information configuration page provided by an embodiment of the present disclosure;

FIG. 10 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure;

FIG. 11 is a schematic diagram of a second display waveform provided by an embodiment of the present disclosure;

FIG. 12 is a schematic diagram of a second display waveform provided by an embodiment of the present disclosure;

FIG. 13 is a schematic diagram of a combined second display waveform provided by an embodiment of the present disclosure;

FIG. 14 is a schematic diagram of a wave function look-up table provided by an embodiment of the present disclosure;

FIG. 15 is a schematic diagram of a wave function look-up table provided by an embodiment of the present disclosure;

FIG. 16 is a schematic diagram of a wave function look-up table provided by an embodiment of the present disclosure;

FIG. 17 is a schematic diagram of a first image provided by an embodiment of the present disclosure;

FIG. 18 is a schematic diagram of a vector from a vertex to a sampling point provided by an embodiment of the present disclosure;

FIG. 19 is a schematic diagram of a media data presentation page provided by an embodiment of the present disclosure;

FIG. 20 is a schematic diagram of a media data presentation page provided by an embodiment of the present disclosure;

FIG. 21 is a schematic diagram of a media data presentation page provided by an embodiment of the present disclosure;

FIG. 22 is a schematic structural diagram of a text display apparatus provided by an embodiment of the present disclosure; and

FIG. 23 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

Hereinafter, embodiments of the present disclosure will be described in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be construed as limited to the embodiments set forth herein, on the contrary, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the protection scope of the present disclosure.

It should be understood that steps described in method implementations of the present disclosure may be executed in different order and/or in parallel. In addition, the method implementations may include additional steps and/or omit execution of the steps shown. The scope of the present disclosure is not limited in this respect.

As used herein, the term “include/comprise” and its variations are open-ended inclusions, that is, “include/comprise but not limited to”. The term “based on” is “based at least in part on”. The term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one other embodiment”; the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the following description.

It should be noted that concepts such as “first” and “second” mentioned in the present disclosure are only used to distinguish different apparatuses, modules or units, and are not used to limit the order or interdependence of the functions performed by these apparatuses, modules or units.

It should be noted that the modifications of “one” and “a plurality of” mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as “one or more”.

The names of messages or information exchanged between a plurality of apparatuses in implementations of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.

It may be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed of the type, use range, use scenarios, etc. of personal information involved in the present disclosure and the authorization of the user should be obtained in an appropriate manner in accordance with relevant laws and regulations.

For example, in response to receiving an active request from a user, prompt information is sent to the user to clearly prompt the user that the requested operation will require access to and use of personal information of the user. As such, the user may independently choose, based on the prompt information, whether to provide the personal information to software or hardware, such as an electronic device, an application, a server, or a storage medium, that performs the operations of the technical solutions of the present disclosure.

As an optional but non-limiting implementation, in response to receiving the active request from the user, the prompt information may be sent to the user in the form of, for example, a pop-up window, in which the prompt information may be presented in text. Furthermore, the pop-up window may also include a selection control for the user to select whether to “agree” or “disagree” to provide the personal information to the electronic device.

It may be understood that the above process of notifying and obtaining user authorization is only illustrative and does not limit the implementations of the present disclosure, and other methods that satisfy the relevant laws and regulations may also be applied in the implementations of the present disclosure.

It may be understood that the data involved in the technical solutions (including but not limited to the data itself, acquisition or use of the data) should comply with requirements of corresponding laws, regulations, and related provisions.

The method described in the prior art not only requires a high technical level of the user, but also often requires the user to rewrite the code when the text animation needs to be modified or updated, which not only increases the complexity of the operation, but also has the problems of low production efficiency and high production cost. Before introducing the technical solutions provided by the embodiments of the present disclosure, the application scenarios may be exemplarily described first. The technical solutions provided by the embodiments of the present disclosure may be applied in any scenario where text animation needs to be generated. For example, when presenting text in a video, if it is desired to present the text in the form of animation, or to create text animation for the corresponding text, or if the user desires to obtain text animation that satisfies the user's needs, this may be achieved based on the technical solutions provided by the embodiments of the present disclosure. It should be noted that based on the technical solutions provided by the embodiments, an animation effect production platform, software, or application may be developed, or the technical solutions provided by the embodiments may be integrated into any animation effect production platform, software, or application, so that the user may create text animation in the animation effect production platform, software, or application.

It should also be noted that when presenting text in each frame or each moment of an image, the technical solutions provided by the embodiments of the present disclosure may be used for display. The technical solutions provided by the embodiments of the present disclosure will be described in detail below by taking the generation of an animation frame of text as an example.

FIG. 1 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to any scenario where media data needs to be generated, and the method may be executed by a text display apparatus, which may be implemented in the form of software and/or hardware, optionally, by an electronic device, which may be a mobile terminal, a PC, a server, etc.

As shown in FIG. 1, the method of this embodiment may specifically include the following steps.

S110: at least one display form configuration information item which is preconfigured and corresponds to a first text is obtained in response to an event of displaying the first text according to a preset display form.

The preset display form may be an animation form that a desired text may present. For example, the preset display form may be “word by word display” , “rolling subtitles”, “flashing and jumping”, or “rotating animation”, “waveform jumping”, and so on.

In an embodiment of the present disclosure, a text displayed according to a desired animation may be used as the first text; or, a text to which text animation is applied may be used as the first text. For example, the first text may be subtitles, voice-overs, lyrics, etc. in a video. The first text may include a plurality of characters, for example, the characters may be words, letters, numbers, spaces, punctuation marks, mathematical symbols, emoticons, etc., and certainly, the characters are not limited thereto, which will not be repeated here. The first text may be determined in real time or non-real time. When the first text is determined in real time, the first text may be edited or input in a system interface; or a text in an uploaded image or video is recognized to obtain the first text. When the first text is determined in non-real time, the first text may be retrieved from a text database and uploaded.

In order to enable the first text to be displayed according to the desired animation and achieve the desired display effect, some configuration operations may be performed in advance, such as, obtaining required display attributes from a database or a configuration file, or editing and inputting, on a configuration page in real time, desired display attributes of the first text to be presented on the page, and using the configured display attributes as the display form configuration information. For example, the display form configuration information includes, but is not limited to, various display attributes such as a display sequence of characters, speed, font, color, font size, whether to be bold, inclination, whether to be underlined, whether to be struck through, color of highlighted text, character shading and text shading, and animation effects. It should be noted that there may be one or more display form configuration information items, and each display form configuration information item may be considered as a display attribute group, and each display attribute group includes one or more display attributes. When there are multiple display form configuration information items, configuration information of each display attribute in different groups of display form configuration information may be the same or different. How to display each character in the first text is determined based on the display form configuration information, so that the displayed animation effect can meet the expectation, that is, achieve the animation effect matching the preset display form.

S120: display form control information of at least one first character in the first text is obtained according to the at least one display form configuration information item and first display information of the first text in a media data presentation page.

The media data presentation page is a page that presents at least the first text, and optionally, the media data presentation page may further include background information, audio information, image information, elements, buttons, etc. The page may be an interface or a window page in a text display tool, software, a platform, or a similar application. Exemplarily, if the technical solution provided by the embodiment of the present disclosure is integrated in a system or a module, when it is detected that the system or the module is triggered, a main interface corresponding to the system or the module is displayed, and when it is detected that a text uploading or text editing function in the main interface is triggered, the displayed page is the media data presentation page; or, when it is detected that the system or the module is triggered, the displayed page is a page for editing input text or uploading text, and this page is used as the media data presentation page. In practical applications, the first text may be displayed on the media data presentation page. Time points for triggering the display of the first text may be different, and the first text has an initial display form in the media data presentation page. When obtaining display form control information of a next frame or a next moment of the initial display form, the first display information used is initial display information of the first text in the media data presentation page, so as to control, based on the obtained display form control information, the first text to be dynamically displayed in a picture of the next frame or the next moment of the initial display form. When continuing to obtain display form control information of a frame further next or a moment further next, the first display information used is display information of the first text in the previous frame or the previous moment. Optionally, the first display information includes, but is not limited to, text content, character position information, color information, transparency information, font size information, shadow information, background color information, display area, and so on. The first character may be a single character in the first text. The first text may include a plurality of first characters. The display form control information is related information used to control how the characters in the first text are displayed on the media data presentation page. For example, the display form control information includes a position to which a character should be moved, moving speed, display time interval of characters, color, font, animation effects, and so on.

In an embodiment of the present disclosure, the display information of the first text in the media data presentation page may be obtained as the first display information, and then, the first display information is adjusted according to the at least one display form configuration information item to obtain the display form control information of each first character in the first text, so that the display effect of the first character in the media data presentation page controlled based on the display form control information conforms to the display form configuration information.

S130: display of the at least one first character in the first text is controlled on the media data presentation page according to the display form control information.

The preset display form is related to the obtained display form control information. In other words, the display effect of the first character in the media data presentation page controlled based on the display form control information is similar or identical to the animation effect of the preset display form. The display form control information may be used to represent a position, color, font, font size, inclination, etc. of a character at a current moment or in a current frame.

In an embodiment of the present disclosure, each first character in the first text may be rendered in the media data presentation page in real time according to the display form control information, ensuring that the display effect conforms to the preset display form of the user. Alternatively, display information of each first character in the first text in the media data presentation page may also be adjusted according to the display form control information, thereby controlling the display effect of each first character in the media data presentation page, such as adjusting a display position, display color, font size, inclination, etc. of the first character. Exemplarily, the first text may be subtitles in a video, and display form configuration information corresponding to each frame may be obtained separately. When displaying each frame in the video, the display form control information of the at least one first character in the first text in the current frame may be obtained according to the display form configuration information corresponding to the current frame and the first display information of the first text in a previous frame, so as to control the display of the at least one first character in the picture of the current frame based on the display form control information corresponding to the current frame.

According to the technical solutions provided by embodiments of the present disclosure, at least one display form configuration information item which is preconfigured and corresponds to a first text is obtained in response to an event of displaying the first text according to a preset display form; display form control information of at least one first character in the first text is obtained according to the at least one display form configuration information item and first display information of the first text in a media data presentation page; display of the at least one first character in the first text is controlled on the media data presentation page according to the display form control information; wherein, the preset display form is related to the obtained display form control information, the problems in the prior art of making text animation by code programming, such as complex operation, high cost and low production efficiency, are solved, by means of obtaining the at least one display form configuration information item which is preconfigured and corresponds to the first text when the event of displaying the first text according to the preset display form is responded, and then, obtaining, by the preconfigured display form configuration information, the display form control information about how to control the at least one first character in the first text in combination with the first display information of the first text in the media data presentation page, controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information, the generation of text animation can be realized without writing code by users, the complexity of text animation production is reduced, and the technical effects of improving production efficiency and reducing production costs are achieved. At the same time, it is also convenient for users to see the display effect of text animation in real time, and adjust the display form control information in real time according to the preview effect, ensuring that the display effect of text animation meets the expectation, further improving the production efficiency and improving the user experience.

FIG. 2 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure. On the basis of the above embodiments, the technical solution of this embodiment may further include: displaying an information configuration interface before obtaining the at least one display form configuration information item which is preconfigured and corresponds to the first text, where the information configuration interface includes at least one information configuration item; displaying a first interface corresponding to a triggered information configuration item in response to a trigger operation for any information configuration item; obtaining the display form configuration information of the first text under the triggered information configuration item in response to a configuration operation in the first interface, for its specific implementation, please refer to the detailed description of the embodiments of the present disclosure. The technical features the same as or similar to those in the previous embodiments are not repeated here.

As shown in FIG. 2, the method of this embodiment may specifically include the following steps.

S210: an information configuration interface is displayed, wherein the information configuration interface includes at least one information configuration item.

The information configuration interface is used for editing and inputting the display form configuration information of the first text. The information configuration interface may be an independent interface or a window interface in an interface, or may be an interface located at different positions on the same interface as the media data presentation page. The information configuration item refers to a configuration item used to define or control a certain display form or function, and specific content therein may be set or modified by the user. For example, the information configuration item includes, but is not limited to: a displayed theme, style, layout, display form, animation effect, font style, character position information, moving information, and so on.

In an embodiment of the present disclosure, the information configuration interface may be displayed when a configuration control in a main interface is clicked. The information configuration interface may also be displayed in response to the event of displaying the first text according to the preset display form. It may also be the case that when a text uploading or text uploading function in the main interface is triggered, the displayed page is the information configuration interface; or, when it is detected that a system or a module is triggered, the displayed page is a page for editing input configuration information, and this page is used as the information configuration interface. In this way, the user may configure the display form configuration information of the first text by triggering or selecting the at least one information configuration item displayed in the information configuration interface. Exemplarily, for a schematic diagram of the information configuration interface, please refer to FIG. 3, and the information configuration interface includes information configuration item 1, information configuration item 2, and information configuration item 3. It should be noted that when configuring the display form configuration information used for displaying pictures at each moment or each frame of the first text in the text animation, the display form configuration information used for displaying pictures at each moment or each frame may be configured sequentially, or the display form configuration information used for displaying pictures at multiple moments or multiple frames may be configured in batch. Continuing to refer to FIG. 3, the information configuration interface includes a time axis of 0-20s for producing text animation, and the display form configuration information used for displaying the first text on the page at each moment may be configured separately.

S220: a first interface corresponding to a triggered information configuration item is displayed in response to a trigger operation for any information configuration item.

The first interface is used for configuring specific content in the information configuration item. The trigger operation includes, but is not limited to, at least one of clicking, touching, sliding, or long pressing.

In an embodiment of the present disclosure, when the user triggers an information configuration item in the information configuration interface, the system responds to the trigger operation by displaying the first interface corresponding to the triggered information configuration item, so that the user can configure detailed information about the triggered information configuration item in the first interface. The advantage of such setting is that it can ensure that only the first interface of one information configuration item is displayed each time, avoiding the simultaneous display of multiple interfaces, ensuring the display simplicity, and improving the user operation experience. Certainly, the configuration information of at least one information configuration item may also be configured in the information configuration interface.

S230: display form configuration information of the first text under the triggered information configuration item is obtained in response to a configuration operation in the first interface.

In an embodiment of the present disclosure, after completing the configuration of the triggered information configuration item in the first interface, the user clicks a saving control, and the system responds to this operation by using configuration information about the information configuration item as the display form configuration information of the first text under the configuration item. Alternatively, when the user selects an option in a drop-down menu under the information configuration item or inputs a specific value, the system responds to this operation by using the configuration information about the information configuration item at this time as the display form configuration information of the first text under the configuration item.

In an embodiment of the present disclosure, the at least one information configuration item includes a first configuration item used to determine a text display waveform, the triggered information configuration item is the first configuration item, and accordingly, obtaining the display form configuration information of the first text under the triggered information configuration item in response to the configuration operation in the first interface includes: displaying a waveform configuration interface in response to a trigger operation for the first configuration item, where the waveform configuration interface is used to trigger to select at least one first display waveform displayed and/or edit the first display waveform; displaying an editing interface corresponding to a second display waveform in response to a trigger operation for any first display waveform, to obtain the display form configuration information under the first configuration item based on a start effect character position, an end effect character position, and effect character offset information corresponding to the second display waveform which are edited in the editing interface.

The first configuration item is used to determine a display waveform of the text. The first display waveform may be a display waveform that may be triggered to select, or may be a display waveform obtained by editing. The second display waveform may be based on the first display waveform selected by triggering, or may be a display waveform obtained by processing the first display waveform selected by triggering. These display waveforms may be sine waves, square waves, rectangular waves, triangular waves, sawtooth waves, etc., and the type of the waveform is not specifically limited. The editing interface refers to the display form configuration information that is used to edit and input and corresponds to the second display waveform under the first configuration item. The start effect character position may refer to a character position where the waveform starts to take effect, that is, a start character position affected by the waveform. The end effect character position may refer to a character position where the waveform ends to take effect, that is, an end character position affected by the waveform. The effect character offset information may refer to a character offset amount affected by the waveform, for example, it may be an offset from the start character, and may also be an offset from the start effect character position or the end effect character position corresponding to the picture in the previous frame.

Specifically, when the user triggers the first configuration item in the first interface, the system responds to this trigger operation by displaying the waveform configuration interface. The first display waveform may be selected or edited in the waveform configuration interface. For example, the user may trigger to select at least one first display waveform displayed in the waveform configuration interface, or may customize to draw the first display waveform, or obtain the first display waveform by writing program code used to represent the waveform. Further, when a trigger operation for any first display waveform is detected, the second display waveform may be obtained according to one or some or all of the first display waveforms of the trigger operation, such as waveform superposition, and the editing interface corresponding to the second display waveform is displayed. Then, the start effect character position, the end effect character position, and the effect character offset information corresponding to the second display waveform may be edited and input in the editing interface, and these start effect character position, end effect character position, and effect character offset information which are edited and input may be used as the display form configuration information under the first configuration item. According to the technical solution provided by the embodiment of the present disclosure, by responding to the user's trigger operation for the first configuration item for determining the text display waveform, the visualization of the waveform configuration interface is realized, so that the user may not only conveniently trigger to select the at least one first display waveform displayed and/or edit the first display waveform according to actual needs, but also further edit information such as the start effect character position, the end effect character position, and the effect character offset information associated with the waveform, to realize the fast and effective configuration of the display form configuration information, while meeting the user's production needs for waveform text animation.

It should be noted that the text animation is composed of continuous playback of pictures of multiple frames or multiple moments. In order to ensure that the text animation meets the user's expectation, at least one of the start effect character position, the end effect character position, or the effect character offset information corresponding to the second display waveform may be configured for pictures of each frame or each moment separately, or at least one of the start effect character position, the end effect character position, or the effect character offset information corresponding to the second display waveform may be configured in batch for pictures of each frame or each moment, for subsequent text display control in the pictures of corresponding frames or moments. Exemplarily, referring to FIG. 4, when “information configuration item 1” is clicked, the waveform configuration interface is displayed, and the waveform configuration interface includes first display waveform 1, first display waveform 2, first display waveform 3, first display waveform 4, and a custom display waveform. Assuming that when the user customizes a display waveform simulating sea waves, the user may independently write a sea wave waveform to apply the sea wave waveform to the text animation of the first text.

In order to improve the accuracy and convenience of waveform determination and obtain a display waveform that meets the user's needs, after the first display waveform is determined, a parameter of how the first display waveform may affect characters may be further configured, and the first display waveform is processed based on configured parameter information to obtain a processed first display waveform. For example, these parameters include influence intensity, interval smoothing influence parameter, smoothing parameter, and the like. The influence intensity is used to represent influence intensity of the first display waveform on a display attribute of the first text, for example, when the influence intensity is 0, it means that the movement based on the first display waveform will not have an impact on the display attribute, and a parameter range is 0~1. In other words, when the first display waveform is sampled, the display attribute may be multiplied by the final display result as a multiplication factor, and if the display attribute is 0, the calculation result is always the original display attribute. The interval smoothing influence parameter is used to define the size of an interval within which characters need to be smoothed. For example, when the interval smoothing influence parameter is 1, it indicates that one or more characters on both sides of a character interval formed by the start effect character position and the end effect character position need to be smoothed, and when the interval smoothing influence parameter is 0, it indicates that one or more characters on both sides of the character interval formed by the start effect character position and the end effect character position are not smoothed. Exemplarily, when the first display waveform is as shown in FIG. 5, when the interval smoothing influence parameter is 0, the processed first display waveform is still the original waveform. When the interval smoothing influence parameter is 1, reference may be made to FIG. 6 for the processed first display waveform, an interval from the start effect character position to a previous character needs to be smoothed, and an interval from the end effect character position to a next character needs to be smoothed. The smoothing parameter is used to represent a smoothing degree of the character interval corresponding to the interval smoothing influence parameter. Exemplarily, for a waveform of the interval to be smoothed, please refer to FIG. 7, a ball 701 represents a p1 point, a ball 702 represents a p2 point, and a value range of the smoothing parameter may be −1~1. The smoothing parameter is used to represent a rotation angle of the p1point and the p2 point of a Bezier curve. When the p1 point moves towards −1, the rotation angle changes, causing the waveform to be smooth. For a schematic diagram of the smoothed waveform, please refer to FIG. 8.

In order to enable the first text to be presented according to desired text attributes and improve the display effect, it is also possible to configure text layer attribute information for the display form configuration information corresponding to the first configuration item, and update the text layer attribute information to the display form configuration information; wherein, the text layer attribute information is used to represent presentation information of the at least one first character in the first text on the media data presentation page, for example, the text layer attribute information includes a specific display effect of each character or character group in the first text on the page, including but not limited to attribute information such as font, font size, color, alignment, transparency, etc.

In an embodiment of the present disclosure, after the first configuration item is determined, the attribute information of the text layer may be defined according to requirements, the attribute information is used as the text layer attribute information, and the text layer attribute information is merged into the display form configuration information corresponding to the first configuration item, so that when the display form control information is obtained based on the display form configuration information to control the display of the at least one first character in the first text, it may be ensured that the characters in the first text may be presented according to the text layer attribute information. Exemplarily, referring to FIG. 9, the text layer attribute information may be configured on the information configuration page.

According to the technical solution provided by the embodiment of the present disclosure, at least one information configuration item in the information configuration interface is displayed, so that the user may obtain the display form configuration information of the first text under the triggered information configuration item according to the information configuration item, to obtain the display form control information for controlling character movement based on the display form configuration information, realizing the generation of text animation without writing code, reducing the complexity of text animation production, and achieving the effects of improving production efficiency and reducing production costs.

FIG. 10 is a schematic flowchart of a text display method provided by an embodiment of the present disclosure. On the basis of the above embodiments, the technical solution of this embodiment further details S120, for its specific implementation, please refer to the detailed description of the embodiments of the present disclosure. The technical features the same as or similar to those in the previous embodiments are not repeated here.

As shown in FIG. 10, the method of this embodiment may specifically include the following steps.

S310: at least one display form configuration information item which is preconfigured and corresponds to a first text is obtained in response to an event of displaying the first text according to a preset display form.

S320: display form control information of at least one first character in the first text is obtained according to the at least one display form configuration information item, text layer attribute information, and first display information.

The text layer attribute information is presentation information configured for the display form configuration information corresponding to the information configuration item.

In an embodiment of the present disclosure, the first display information of the first text in the media data presentation page may be adjusted by combining the display form configuration information and the text layer attribute information, to obtain specific control information for controlling the display of each first character in the first text in the next frame or the next moment, that is, the display form control information is obtained, so that the animation effect when each first character is dynamically displayed on the page based on the display form control information is adapted to the display form configuration information and the text layer attribute information.

Based on the above technical solution, it may be seen that the at least one display form configuration information item may include: a second display waveform corresponding to the first configuration item, and a start effect character position and an end effect character position corresponding to the second display waveform. In this case, in a process of obtaining the display form control information of the at least one first character in the first text according to the display form configuration information, the text layer attribute information, and the first display information, position offset weight information of at least one second character located between the start effect character position and the end effect character position may be obtained according to the second display waveform; for the at least one second character, second display position information of the second character is obtained according to the position offset weight information of the second character, first display position information in the first display information, and position configuration information in the text layer attribute information; and the display form control information is obtained according to the second display position information of the at least one second character and the text layer attribute information.

The second character is a character located between the start effect character position and the end effect character position in the first text. The position offset weight information may be used to represent an offset degree of a character offsetting from one position information item to another position information item, for example, a larger value of the position offset weight information represents a larger position offset amount, and a smaller value of the position offset weight information represents a smaller position offset amount. The position information may include coordinates of multiple direction dimensions (such as direction dimensions of X, Y, Z, etc.). The second display waveform may be a waveform in which time on the horizontal axis is normalized to a preset first range (such as 0 to 1) and amplitude data on the vertical axis is normalized to a preset second range (such as 0 to 1 or −1 to 1). The position configuration information may be another position information item which is preconfigured and expected to be offset to from one position information by a character.

In an embodiment of the present disclosure, it may be determined, according to the start effect character position and the end effect character position, which first characters are affected by the waveform, and the characters between the two positions are used as the second characters. Then, the second characters between the two positions may be normalized and mapped to a waveform between a rising edge and a falling edge in the second display waveform, and for each second character, the position offset weight information of the second character is obtained according to an amplitude of the second character on the waveform. The rising edge refers to an instant when a signal changes from a low level (0) to a high level (1), and the falling edge refers to an instant when the signal changes from the high level (1) to the low level (0). Exemplarily, reference may be made to the second display waveform shown in FIG. 11, ranges of horizontal and vertical axes are both 0 to 1, the first text is “ABCDEFGHIMNOPQRSTUVWSYZ 123456789”, after the first text is normalized to between 0 and 1, the second characters located between the start effect character position and the end effect character position are “IMNOPQRSTUVWSYZ123”, wherein a character at the start effect character position is I, position offset weight information of the character is 0, position offset weight information of M is 0.3, and position offset weight information of Q is 1. Further, the first display position information of the second character in the first display information may be summed with the position configuration information to obtain a first intermediate value; and the first intermediate value is multiplied by the position offset weight information of the second character to obtain the second display position information of the second character. Alternatively, the position offset weight information of the second character is multiplied by the first display position information of the second character in the first display information to obtain a second intermediate value; a difference between a preset parameter (such as 1) and the position offset weight information is multiplied by the position configuration information of the second character to obtain a third intermediate value; and the second intermediate value is summed with the third intermediate value to obtain the second display position information of the second character. Alternatively, a difference between a preset parameter and the position offset weight information is multiplied by the first intermediate value to obtain a fourth intermediate value; and the second intermediate value is summed with the fourth intermediate value to obtain the second display position information of the second character. A manner of obtaining the second display position information of each second character is the same, which will not be repeated here. Still further, the second display position information of the at least one second character and the text layer attribute information may be used as the display form control information, so that when the display of the first character is controlled based on the display form control information, the second character may be moved to the second display position information, and the first character may be presented according to the text layer attribute information while forming the animation effect.

It should be noted that after the display form control information is obtained according to the second display position information of the at least one second character and the text layer attribute information, the display of the first character may be controlled based on the display form control information in the media data presentation page, and the displayed picture is a picture of a next frame or a next moment of the initial display picture. In order to form a continuous animation effect, after the display form control information is obtained, the display form control information of the first text at the next frame or the next moment may be continuously obtained.

In an embodiment of the present disclosure, the display form configuration information corresponding to the first configuration item further includes the effect character offset information, and after the display form control information is obtained, the start effect character position and the end effect character position in the display form configuration information may be updated based on the effect character offset information, to obtain display form control information of the first text at a next moment based on the updated display form configuration information.

The effect character offset information may be an offset of a character range affected by the waveform. For example, the effect character offset information may be an offset of the character range of the start effect character position and the end effect character position relative to a start character position (such as a 0 position) in the first text, or an offset of the start effect character position and the end effect character position moving in a preset direction. It should be noted that the effect character offset information in the display form configuration information at different frames or different moments may be the same or different.

Specifically, after the display form control information is obtained, if the effect character offset information is the offset of the character range of the start effect character position and the end effect character position relative to the start character position in the first text, the effect character offset information may be added to an interval size between the start effect character position and the end effect character position to obtain the end effect character position, the effect character offset information is used as the start effect character position, to obtain a new start effect character position and a new end effect character position; if the effect character offset information is the offset of the start effect character position and the end effect character position moving in the preset direction, the effect character offset information may be added to the start effect character position and the end effect character position, respectively, to obtain the new start effect character position and the new end effect character position. Therefore, the start effect character position and the end effect character position in the display form configuration information are updated. Further, based on the updated display form configuration information, the method may return to step S320, to continue to obtain the display form control information of the first text at the next moment, and based on the display form control information, continue to control the dynamic display of the first text based on the picture at the previous moment, to realize the continuous text animation playing effect.

It should be noted that after the display form control information of the first text at the next moment is obtained, the start effect character position and the end effect character position in the display form configuration information may be continuously updated based on the effect character offset information corresponding to the picture at the next moment, to obtain display form control information of the first text at a moment after the next moment based on the updated display form configuration information. Correspondingly, the display form control information of the first text at each moment may be obtained in this way, and the text animation of the first text may be generated, so that the characters in the first text in the text animation dynamically change according to the waveform. Exemplarily, referring to FIG. 12, the character at the original start effect character position is I, the character at the original end effect character position is 3, and after the effect character offset information, the character at the updated start effect character position is R, and the character at the start effect character position is 9.

In an embodiment of the present disclosure, the at least one display form configuration information item includes: multiple second display waveforms corresponding to the first configuration item, and the multiple second display waveforms correspond to one text layer attribute information item, and before the position offset weight information of the at least one second character located between the start effect character position and the end effect character position is obtained according to the second display waveform, it is also possible to determine a third display waveform corresponding to the multiple second display waveforms according to a waveform combination attribute corresponding to the multiple second display waveforms; and use the third display waveform as the second display waveform for obtaining the display form control information. The waveform combination attribute is used to represent a manner of how to superimpose a second display waveform with its previous second display waveform. For example, the waveform combination attribute may be a variety of combination manners such as weighted average, addition, subtraction, intersection, minimum value, maximum value or difference set of waveforms. The third display waveform is a display waveform obtained by combining multiple second display waveforms.

It may be understood that: in a case that the at least one display form configuration information item includes the multiple second display waveforms corresponding to the first configuration item, and there is only one text layer attribute information item, each second display waveform may have the same or different parameters (such as amplitude, period, phase, etc.), and at this time, according to the waveform combination attribute corresponding to the multiple second display waveforms, combination processing may be performed on amplitude of the multiple second display waveforms at a same time point to obtain the third display waveform. The amplitude corresponds to the position offset weight information. It should be noted that, in order to ensure that the third display waveform is also a waveform whose horizontal axis interval range is the preset first range and vertical axis interval range is the preset second range, the waveform combined by each of the second display waveforms may also be clipped or normalized to obtain the third display waveform. Then, the third display waveform is used as the second display waveform for obtaining the display form control information, and based on the second display waveform, the steps of obtaining the position offset weight information of the second character, obtaining the second display position information of the second character, and obtaining the display form control information are executed. The advantage of such setting is that it is convenient for the user to configure a complex waveform for the user through simple operations, generate complex text animation effects, and meet the user's personalized and diverse text animation production needs while improving the user experience.

Exemplarily, in a case that multiple second display waveforms exist simultaneously under one text layer attribute information item, wave superposition may be performed according to the waveform combination attribute corresonding to each second display waveform to obtain the third display waveform. The following uses an example of superimposing second display waveform B on first display waveform A for illustration. When first display waveform A and second display waveform B are waveform combination attributes of addition, the amplitude of the combined display waveform at different time points may be determined based on formula (1), and for the combined display waveform, please refer to FIG. 13; formula (1) is expressed as assignment at a time point=min (max (signalA+signalB, −1), 1), where signalA is an assignment of first display waveform A, signalB is an assignment of first display waveform B, max represents taking a maximum value, and min represents taking a minimum value. The amplitude of the display waveform combined by the two display waveforms at different time points under the waveform combination attribute of subtraction may be determined based on formula (2); formula (2) is expressed as assignment at a time point=min (max (signalA-signalB, −1), 1). The amplitude of the display waveform combined by the two display waveforms at different time points under the waveform combination attribute of intersection is determined based on formula (3); formula (3) is expressed as assignment at a time point=signalA×signalB. The amplitude of the display waveform combined by the two display waveforms at different time points under the waveform combination attribute of the minimum value is determined based on formula (4); formula (4) is expressed as assignment at a time point=min (signalA, signalB). The amplitude of the display waveform combined by the two display waveforms at different time points under the waveform combination attribute of the maximum value is determined based on formula (5); formula (5) is expressed as assignment at a time point=max (signalA, signalB). The amplitude of the display waveform combined by the two display waveforms at different time points under the waveform combination attribute of difference set is determined based on formula (6); formula (6) is expressed as assignment at a time point=min (max (|signalA−signalB |, −1), 1).

In an embodiment of the present disclosure, the at least one display form configuration information item includes: multiple text layer attribute information items corresponding to the first configuration item, the text layer attribute information is associated with at least one second display waveform, and obtaining the display form control information of the at least one first character in the first text according to the at least one display form configuration information item, the text layer attribute information, and the first display information includes: for the multiple text layer attribute information items, obtaining third display position information of the at least one first character according to the at least one second display waveform associated with the text layer attribute information; and processing the third display position information according to a position combination attribute corresponding to each text layer attribute information item to obtain second display position information of the at least one first character in the display form control information.

The position combination attribute may be used to represent a manner of how to combine multiple third display position information items of the same first character into one position information item. For example, the position combination attribute may be a variety of combination manners such as weighted average, addition, and subtraction of positions.

It may be understood that: in a case that the at least one display form configuration information item includes the multiple text layer attribute information items corresponding to the first configuration item, and the multiple text layer attribute information items are associated with the at least one second display waveform, each text layer attribute information item may have the same or different parameters (such as position configuration information, color information, font size information, font information, etc.). At this time, for a certain text layer attribute information item, if there is one second display waveform corresponding to the text layer attribute information item, the second display waveform is the second display waveform corresponding to the obtaining of the display form control information; if there are multiple second display waveforms corresponding to the text layer attribute information item, a combined display waveform may be determined according to a waveform combination attribute corresponding to the multiple second display waveforms (the manner is similar to the manner of determining the third display waveform, which will not be repeated here), and the combined display waveform is used as the second display waveform for obtaining the display form control information. Then, the position offset weight information of the at least one first character in the first text may be obtained according to the second display waveform, and the third display position information of the first character is obtained according to the position offset weight information of the first character, the first display position information in the first display information, and the position configuration information in the text layer attribute information. The manner of obtaining the third display position information of the first character is similar to the manner of obtaining the second display position information of the second character, which will not be repeated here. Correspondingly, the third display position information of each first character under each text layer attribute information item may be obtained, respectively. Further, multiple third display position information items of the same first character may be combined, for example, added or weighted averaged, according to the position combination attribute corresponding to each text layer attribute information item, to obtain the second display position information of the first character. Correspondingly, the second display position information of each first character in the display form control information is obtained. The text animation that meets the user's needs is generated based on the display form control information, to improve the convenience of text animation production.

Exemplarily, in a case that multiple text layer attribute information items exist, the position configuration information in the text layer attribute information is an attribute that may be superimposed, for example, the position configuration information in the second text layer attribute information item is superimposed on the basis of the position configuration information in the first text layer attribute information item; or, the third display position information obtained based on the second text layer attribute information item is superimposed on the basis of the third display position information obtained based on the first text layer attribute information item.

In an embodiment of the present disclosure, the text layer attribute information may include at least one of text font, font color, or text size applied to the at least one first character, but it is not limited to these. In this way, when obtaining the display form control information of the at least one first character, in a case that multiple text layer attribute information items exist, it is possible to cover the display form control information of the at least one first character from back to front according to the configuration order of the text layer attribute information. That is, the last configured text layer attribute information may be used to cover the same attribute information configured previously, and the same attribute information may be text layer attribute information such as text font, font color or text size applied to the at least one first character. The covered text layer attribute information is used as the display form control information of the at least one first character, so that when display of the at least one first character is controlled on the media data presentation page according to the display form control information, the presented first character meets the user's latest production needs. Exemplarily, in a case that multiple text layer attribute information items exist, the font color in the first text layer attribute information item is covered based on the font color in the second text layer attribute information item.

In an embodiment of the present disclosure, the at least one display form configuration information item includes a fourth display waveform for adjusting character jitter information, to obtain the display form control information according to the third display waveform. The character jitter information may be used to represent a dynamic effect of the text when displayed, such as jitter and flicker of the text. The fourth display waveform is used to create animation of some irregular movements. For example, the fourth display waveform may be a sine wave, a square wave or other custom waveforms, and the jitter effect of the characters may be controlled through its parameters (such as frequency, amplitude, phase, etc.).

Based on the above solution, it is also possible to update the second display waveform based on the fourth display waveform before the position offset weight information of the at least one second character located between the start effect character position and the end effect character position is obtained according to the second display waveform. That is, if the display form configuration information includes the fourth display waveform for adjusting the character jitter information, the fourth display waveform may be used as the second display waveform in the display form configuration information; or, the second display waveform for obtaining the display form control information is obtained based on the waveform combination attribute of the fourth display waveform and the second display waveform, to obtain the display form control information based on the second display waveform, so that the first character is controlled to have the jitter effect.

In an embodiment of the present disclosure, the fourth display waveform is determined based on: obtaining read information of the at least one first character in a pre-created wave function look-up table according to a pre-configured character relevance parameter and the number of characters in the first text; wherein a noise value in the wave function look-up table is used to represent jitter amplitude information of the at least one first character; and reading a first noise value in the wave function look-up table according to the read information, to determine the fourth display waveform corresponding to the at least one first character based on the first noise value.

The character relevance parameter may be used to represent which characters in the text are related and the intensity of such relationship. For example, a higher relevance in the character relevance parameter represents that jitter amplitudes between characters are more similar; and a lower relevance in the character relevance parameter represents that jitter amplitudes between characters are less similar. The jitter amplitude information may be used to represent a jitter degree, for example, a larger value of the jitter amplitude information represents stronger jitter, and a smaller value of the jitter amplitude information represents gentler jitter.

Specifically, a sampling noise interval and the number of noise values to look up when accessing the wave function look-up table may be determined according to the pre-configured character relevance parameter and the number of characters in the first text. For example, the higher the relevance in the character relevance parameter, the smaller the sampling noise interval; the lower the relevance in the character relevance parameter, the larger the sampling noise interval. The sampling noise interval and the number of noise values to look up are used as the read information. Then, according to the sampling noise interval in the read information, noise values corresponding to the number of noise values to look up may be read from the wave function look-up table, and the read noise values are used as the first noise value. Then, the fourth display waveform corresponding to the at least one first character is generated according to the read first noise value, to accurately describe the jitter relevance and the jitter effect of the characters based on the fourth display waveform. It should be noted that it is also possible to determine a look-up unit when accessing the wave function look-up table according to the number of frames (picture at which moment) corresponding to the obtained display form control information, and use the look-up unit as the read information. The look-up unit may be a row unit, a column unit or other units in the wave function look-up table, to read the first noise value in the look-up unit in the wave function look-up table based on the read information. The advantage of such setting is that the noise value of each character at a certain moment may be calculated through the wave function look-up table, which may ensure different jitter effects in each frame of display picture, and improve the attractiveness of the text animation display.

Exemplarily, reference may be made to the wave function look-up table shown in FIG. 14, the horizontal axis represents Time, and the vertical axis represents characters. The display form control information of a specific frame of picture is obtained, then the noise value of the character in the first text corresponding to the frame of picture may be looked up in the specific column of the wave function look-up table. Referring to FIG. 15, the noise value of the character in the first text corresponding to the third frame of picture may be looked up in the third column. The sampling noise interval between characters when accessing the wave function look-up table is related to the character relevance parameter. Referring to FIG. 16, when the value of the character relevance parameter is 0, the sampling noise interval between characters is the farthest, and when the value of the character relevance parameter is 1, the sampling noise interval between characters is closer, and the noise values of all characters are looked up in one grid.

It should be noted that when the value of the character relevance parameter is smaller, the sampling noise interval between characters is farther, which may exceed the range of the wave function look-up table, resulting in the problem of the absence of the noise value(s) of one or some characters. In order to solve this problem, upper and lower bounds for accessing the wave function look-up table may be set in advance, and the noise value of the character may be looked up within the range of the upper and lower bounds.

In order to save some calculation overhead and improve the efficiency of text animation generation, the wave function look-up table may also be determined in advance. In an embodiment of the present disclosure, the wave function look-up table may be determined by: creating a first image including at least two grids, and generating a random noise value for vertices of the at least two grids; performing interpolation on the grids for the at least two grids to obtain multiple sampling points, and determining a noise value of a sampling point according to four random noise values associated with the grid; and obtaining the wave function look-up table based on the noise value of each sampling point in the at least two grids.

The grid may be square, rectangular or arbitrary in shape.

Specifically, an image composed of at least two grids may be created as the first image; or, the size and resolution of the image may be determined in advance, and the image may be divided into at least two grids to obtain the first image. For the vertices in each grid, a random vector generator may be used to generate a random two-dimensional vector for each vertex as a random noise value. One or more sampling points are randomly selected in the grid, and the noise value of each sampling point is determined separately. The determination manners are the same, and the determination of the noise value of one sampling point is taken as an example for introduction. Four vertices of the grid where the sampling point is located are found. The difference processing is performed on the position coordinates of the sampling point and the position coordinates of the four vertices, respectively, to obtain vectors from the four vertices to the sampling point, respectively; and the dot product processing is performed on the vector from each vertex to the sampling point and the random noise value of the vertex, respectively, to obtain dot product values corresponding to the four vertices. Then, an interpolation method is used to perform interpolation on the four dot product values to obtain the noise value of the sampling point. Optionally, the interpolation method includes but not limited to bilinear interpolation or trilinear interpolation, and the interpolation result is the final noise value at the sampling point. Further, the wave function look-up table is constructed based on the noise value of each sampling point in each grid, to look up the fourth display waveform for the text jitter effect based on the wave function look-up table.

Exemplarily, an n*n grid may be generated, and for each grid vertex g, a random two-dimensional vector, that is, a random noise value, is generated. For the schematic diagram, please refer to FIG. 17. A sampling point p is randomly selected in the grid, and then the four vertices of the grid where the sampling p is located are found. Assuming that the four vertices are gg[0,1], gg[0,0], gg[1,0], gg[1,1], respectively; the vectors from the four vertices to p are calculated as: vv[0,1], vv[0,0], vv[1,0], vv[1,1], respectively, which may be referred to FIG. 18. The dot product processing is performed on each vector whose vertex points to p and the random noise value of the vertex, respectively, to obtain the dot product values corresponding to the four vertices. Assuming that the dot product values corresponding to the four vertices in the grid are: dot1, dot2, dot3, and dot4, respectively, the dot product values of vertex 1 and vertex 2 may be used to perform interpolation in a first direction dimension (such as x-axis direction) corresponding to vertex 1 and vertex 2to obtain an interpolation in the first direction dimension. For example, the interpolation=x·dot1+(1−x)· dot2, where x is a preset parameter. The dot product values of vertex 3 and vertex 4 may also be used to perform interpolation in the first direction dimension (such as x-axis direction) corresponding to vertex 3 and vertex 4 to obtain another interpolation in the first direction dimension. Interpolation is performed based on the two interpolations in the first direction dimension to obtain a first interpolation result in the first direction dimension. The dot product values of vertex 1 and vertex 3 are used to perform interpolation in a second direction dimension (such as y-axis direction) corresponding to vertex 1 and vertex 3 to obtain an interpolation in the second direction dimension. For example, the interpolation=y·dot1+(1−y)·dot2, where y is a preset parameter. The dot product values of vertex 2 and vertex 4 are used to perform interpolation in the second direction dimension (such as y-axis direction) corresponding to vertex 2 and vertex 4 to obtain another interpolation in the second direction dimension. Interpolation is performed based on the two interpolations in the second direction dimension to obtain a second interpolation result in the second direction dimension. The noise value of the sampling point may be determined based on the first interpolation result and the second interpolation result.

S330: display of at least one first character in the first text is controlled on a media data presentation page according to the display form control information.

In order to improve the richness and information expressiveness of the generated animation, it is a lso possible to control the characters in the first text to interact with elements of other layers in the process of controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information, and an implementation may be: controlling display of a preset element at a position associated with the at least one first character according to the display form control information. The preset element may be an HTML element or a drawing element.

Specifically, attribute information such as the second display position information, the effect character offset information or the size of each character may be extracted from the display form control information, and according to the extracted attribute information, the preset element is controlled to be displayed at the position associated with the corresponding first character in a certain frame or a certain moment in the process of animation. For example, the position associated with the first character may be determined according to the second display position information of the first character, such as a position at a preset distance from the second display position information. It is also possible to control the preset element background box to be as long as the text content, a certain preset element to be always at the end of a certain character or the first text, and when a certain character moves to a certain position, a certain preset element needs to just move to the position of the character. Exemplarily, referring to FIG. 19 and FIG. 20, the first text is “love heart bounce jump”, when the “love heart bounce jump” bounces with the waveform, the preset element “lock” bounces downward, and when the character “love” moves to the second display position information, the element “lock” just moves to the position associated with the character “love”, and its schematic diagram may be referred to FIG. 21.

In order to further improve the convenience of user operation, an expression function may be developed on a layer attribute track, which supports the user to write code/mathematical formula for controlling the preset element on an editor interface and applies it to the attribute of the layer corresponding to the layer attribute track, to control the preset element. In order to make the writing of the expression simpler, the expression may be integrated as an API (Application Programming Interface), to weaken the syntax, so that users without coding experience can also operate quickly. For example, an expression that implements a certain preset element to be always located at the ending character is integrated as an API, so that it may be directly called.

In the technical solution provided by the embodiment of the present disclosure, the display form control information of the at least one first character in the first text is obtained according to the at least one display form configuration information item, the text layer attribute information, and the first display information, to control display of the at least one first character in the first text on the media data presentation page according to the display form control information, thereby realizing generating the text animation effect consistent with the user's needs, and improving the user experience while providing the richness and attractiveness of the animation effect.

FIG. 22 is a schematic structural diagram of a text display apparatus provided by an embodiment of the present disclosure, and as shown in FIG. 22, the apparatus includes: a display form configuration information obtaining module 410, a display form control information obtaining module 420, and a character display module 430.

The display form configuration information obtaining module 410 is configured to obtain at least one display form configuration information item which is preconfigured and corresponds to a first text in response to an event of displaying the first text according to a preset display form; the display form control information obtaining module 420 is configured to obtain display form control information of at least one first character in the first text according to the at least one display form configuration information and first display information of the first text in a media data presentation page; the character display module 430 is configured to control display of the at least one first character in the first text on the media data presentation page according to the display form control information; wherein, the preset display form is related to the obtained display form control information.

On the basis of the above apparatus, optionally, the apparatus further includes:

    • an information configuration interface display unit, configured to display an information configuration interface, wherein the information configuration interface includes at least one information configuration item;
    • a first interface display unit, configured to display a first interface corresponding to a triggered information configuration item in response to a trigger operation for any information configuration item;
    • a display form configuration information obtaining unit, configured to obtain display form configuration information of the first text under the triggered information configuration item in response to a configuration operation in the first interface.

On the basis of the above apparatus, optionally, the at least one information configuration item includes a first configuration item used to determine a text display waveform, the triggered information configuration item is the first configuration item, and the display form configuration information obtaining unit includes:

    • a waveform configuration interface display unit, configured to display a waveform configuration interface in response to a trigger operation for the first configuration item, wherein the waveform configuration interface is used to trigger to select at least one first display waveform displayed and/or edit the first display waveform;
    • an editing interface display unit, configured to display an editing interface corresponding to a second display waveform in response to a trigger operation for any first display waveform, to obtain the display form configuration information under the first configuration item based on a start effect character position, an end effect character position, and effect character offset information corresponding to the second display waveform which are edited in the editing interface.

On the basis of the above apparatus, optionally, the apparatus further includes:

    • a display form configuration information update unit, configured to configure text layer attribute information for the display form configuration information corresponding to the first configuration item, and update the text layer attribute information to the display form configuration information, wherein the text layer attribute information is used to represent presentation information of the at least one first character in the first text on the media data presentation page.

On the basis of the above apparatus, optionally, the display form control information obtaining module 420 is configured to obtain the display form control information of the at least one first character in the first text according to the at least one display form configuration information item, text layer attribute information, and the first display information;

    • wherein, the text layer attribute information is presentation information configured for the display form configuration information corresponding to the information configuration item.

On the basis of the above apparatus, optionally, the at least one display form configuration information item includes: a second display waveform corresponding to the first configuration item, and a start effect character position and an end effect character position corresponding to the second display waveform, and the display form control information obtaining module 420 includes:

    • a position offset weight information obtaining unit, configured to obtain position offset weight information of at least one second character located between the start effect character position and the end effect character position according to the second display waveform;
    • a second display position information obtaining first unit, configured to obtain, for the at least one second character, second display position information of the second character according to the position offset weight information of the second character, first display position information in the first display information, and position configuration information in the text layer attribute information;
    • a display form control information obtaining unit, configured to obtain the display form control information according to the second display position information of the at least one second character and the text layer attribute information.

On the basis of the above apparatus, optionally, the display form configuration information corresponding to the first configuration item further includes effect character offset information, and the apparatus further includes:

    • a display form control information update unit, configured to update the start effect character position and the end effect character position in the display form configuration information based on the effect character offset information, to obtain display form control information of the first text at a next moment based on updated display form configuration information.

On the basis of the above apparatus, optionally, the at least one display form configuration information item includes: a plurality of second display waveforms corresponding to the first configuration item, and the plurality of second display waveforms correspond to one text layer attribute information item,

    • the apparatus further includes: a third display waveform determination unit, configured to determine a third display waveform corresponding to the plurality of second display waveforms according to a waveform combination attribute corresponding to the plurality of second display waveforms; and a second display waveform determination unit, configured to use the third display waveform as a second display waveform for obtaining the display form control information.

On the basis of the above apparatus, optionally, the at least one display form configuration information item includes: a plurality of text layer attribute information items corresponding to the first configuration item, the text layer attribute information is associated with at least one second display waveform, and the display form control information obtaining module 420 includes:

    • a third display position information obtaining unit, configured to obtain, for the plurality of text layer attribute information items, third display position information of the at least one first character according to the at least one second display waveform associated with the text layer attribute information;
    • a second display position information obtaining second unit, configured to process the third display position information according to a position combination attribute corresponding to each text layer attribute information item to obtain second display position information of the at least one first character in the display form control information.

On the basis of the above apparatus, optionally, the text layer attribute information includes at least one of: a text font, a font color, or a text size applied to the at least one first character.

On the basis of the above apparatus, optionally, the apparatus further includes: an override unit, configured to, in the case that a plurality of text layer attribute information items exist, override display form control information of the at least one first character from back to front according to a configuration order of the text layer attribute information.

The at least one display form configuration information item to be overridden includes a fourth display waveform for adjusting character jitter information, and the apparatus further includes: a second display waveform update unit, configured to update the second display waveform based on the fourth display waveform.

On the basis of the above apparatus, optionally, the apparatus further includes:

    • a read information obtaining unit, configured to obtain read information of the at least one first character in a pre-created wave function look-up table according to a pre-configured character relevance parameter and the number of characters in the first text, wherein a noise value in the wave function look-up table is used to represent jitter amplitude information of the at least one first character;
    • a fourth display waveform determination unit, configured to read a first noise value in the wave function look-up table according to the read information, to determine the fourth display waveform corresponding to the at least one first character based on the first noise value.

On the basis of the above apparatus, optionally, the apparatus further includes:

    • a wave function look-up table determination module, configured to determine the wave function look-up table;

On the basis of the above apparatus, optionally, the wave function look-up table determination module includes:

    • a first image determination unit, configured to create a first image including at least two grids, and generate a random noise value for vertices of the at least two grids;
    • a noise value determination unit, configured to determine, for the at least two grids, a plurality of sampling points in the grid, and determine a noise value of a sampling point according to four random noise values associated with the grid;
    • a wave function look-up table determination unit, configured to obtain the wave function look-up table based on the noise value of each sampling point in the at least two grids.

On the basis of the above apparatus, optionally, the apparatus further includes:

    • a preset element control unit, configured to control display of a preset element at a position associated with the at least one first character according to the display form control information.

According to the technical solution of the embodiment of the present disclosure, at least one display form configuration information item which is preconfigured and corresponds to a first text is obtained in response to an event of displaying the first text according to a preset display form; display form control information of at least one first character in the first text is obtained according to the at least one display form configuration information item and first display information of the first text in a media data presentation page; display of the at least one first character in the first text is controlled on the media data presentation page according to the display form control information; wherein, the preset display form is related to the obtained display form control information, the problems in the prior art of making text animation by code programming, such as complex operation, high cost and low production efficiency, are solved, by means of obtaining the at least one display form configuration information item which is preconfigured and corresponds to the first text when the event of displaying the first text according to the preset display form is responded, and then, obtaining, by the preconfigured display form configuration information, the display form control information about how to control the at least one first character in the first text in combination with the first display information of the first text in the media data presentation page, controlling display of the at least one first character in the first text on the media data presentation page according to the display form control information, the generation of text animation can be realized without writing code by users, the complexity of text animation production is reduced, and the technical effects of improving production efficiency and reducing production costs are achieved. At the same time, it is also convenient for users to see the display effect of text animation in real time, and adjust the display form control information in real time according to the preview effect, ensuring that the display effect of text animation meets the expectation, further improving the production efficiency and improving the user experience.

The text display apparatus provided by the embodiment of the present disclosure may execute the text display method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.

It should be noted that the units and modules included in the above apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

FIG. 23 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 23, the electronic device 500 may include a processing apparatus (such as a central processing unit, a graphics processing unit, etc.) 501, which may perform various appropriate actions and processing according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage apparatus 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing apparatus 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to the bus 504.

Usually, the following apparatuses may be connected to the I/O interface 505: an input apparatus 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output apparatus 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage apparatus 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication apparatus 509. The communication apparatus 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data. Although FIG. 23 shows the electronic device 500 with various apparatuses, it should be understood that it is not required to implement or have all of the apparatuses shown. More or fewer apparatuses may be implemented or provided alternatively.

In particular, according to the embodiments of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, where the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication apparatus 509, or installed from the storage apparatus 508, or installed from the ROM 502. When the computer program is executed by the processing apparatus 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

The names of messages or information exchanged between a plurality of apparatuses in implementations of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.

The electronic device provided by the embodiment of the present disclosure belongs to the same inventive concept as the text display method provided by the above embodiment, and for the technical details not described in detail in the embodiment of the present disclosure, reference may be made to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.

An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the text display method provided by the above embodiments.

It should be noted that the above computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and computer-readable program code is carried therein. The data signal propagated in this way may adopt multiple forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit the program used by or in combination with the instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted by any suitable medium, including but not limited to: a wire, an optical cable, a radio frequency (RF), etc., or any suitable combination of the above.

In some implementations, clients and servers may communicate using any currently known or future developed network protocol, such as the HyperText Transfer Protocol (HTTP), and may be interconnected with any form or medium of digital data communication (for example, a communication network). Examples of the communication network include a local area network (“LAN”), a wide area network (“WAN”), an internet (for example, the Internet), a peer-to-peer network (for example, an Ad-Hoc network), and any network currently known or to be developed in the future.

The above computer-readable medium may be included in the above electronic device; or it may exist alone without being assembled into the electronic device.

The above computer-readable medium carries one or more programs, which, when executed by the electronic device, causes the electronic device to:

    • obtain at least one display form configuration information item which is preconfigured and corresponds to a first text in response to an event of displaying the first text according to a preset display form;
    • obtain display form control information of at least one first character in the first text according to the at least one display form configuration information item and first display information of the first text in a media data presentation page;
    • control display of the at least one first character in the first text on the media data presentation page according to the display form control information;
    • wherein the preset display form is related to the obtained display form control information.

The computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, the above programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and include conventional procedural programming languages such as “C” language or similar programming languages. The program code may be executed entirely on a user's computer, partly executed on a user's computer, executed as an independent software package, partly executed on a user's computer and partly executed on a remote computer, or entirely executed on a remote computer or server. In the case of involving a remote computer, the remote computer may be connected to a user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, connected via the Internet using an Internet service provider).

The flowcharts and block diagrams in the drawings illustrate the possibly implemented architectures, functions, and operations of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that, in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the drawings. For example, two blocks shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or the flowchart, and a combination of the blocks in the block diagram and/or the flowchart may be implemented by a dedicated hardware-based system that executes specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

The involved units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a unit does not constitute a limitation on the unit itself under certain circumstances, for example, the first obtaining unit may also be described as “a unit for obtaining at least two internet protocol addresses”.

The functions described above may be performed at least partially by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate array (FPGA), application specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip (SOC), complex programmable logic device (CPLD), etc.

In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in combination with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the machine-readable storage medium will include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

The above description only illustrates preferred embodiments of the present disclosure and applied technical principles. Those skilled in the art should understand that the disclosed scope involved in the present disclosure is not limited to technical solutions formed by a specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or equivalent features thereof without departing from the above disclosed concept, for example, a technical solution formed by replacing the above features and technical features with similar functions disclosed in the present disclosure (but not limited thereto) with each other.

Furthermore, although operations are depicted in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination.

Although the subject matter has been described in language specific to structural features and/or logical actions of the method, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Conversely, the specific features and actions described above are only exemplary forms of implementing the claims.

Claims

1. A text display method, comprising:

obtaining, in response to an event of displaying a first text based on a preset display form, at least one display form configuration information item which is preconfigured and corresponds to the first text;
obtaining, based on the at least one display form configuration information item and first display information of the first text in a media data presentation page, display form control information of at least one first character in the first text; and
controlling, based on the display form control information, display of the at least one first character in the first text on the media data presentation page, and
wherein the preset display form is related to the obtained display form control information.

2. The method of claim 1, wherein before obtaining the at least one display form configuration information item which is preconfigured and corresponds to the first text, the method comprises:

displaying an information configuration interface, wherein the information configuration interface comprises at least one information configuration item;
displaying, in response to a trigger operation for any information configuration item, a first interface corresponding to a triggered information configuration item; and
obtaining, in response to a configuration operation in the first interface, display form configuration information of the first text under the triggered information configuration item.

3. The method of claim 2, wherein the at least one information configuration item comprises a first configuration item configured to determine a text display waveform, the triggered information configuration item is the first configuration item, and wherein

obtaining, in response to the configuration operation in the first interface, the display form configuration information of the first text under the triggered information configuration item comprises:
displaying, in response to a trigger operation for the first configuration item, a waveform configuration interface, wherein the waveform configuration interface is configured to trigger to select at least one displayed first display waveform and/or edit the first display waveform; and
displaying, in response to a trigger operation for any first display waveform, an editing interface corresponding to a second display waveform, to obtain, based on a start effect character position, an end effect character position, and effect character offset information corresponding to the second display waveform which are edited in the editing interface, the display form configuration information under the first configuration item.

4. The method of claim 3, further comprising:

configuring, for the display form configuration information corresponding to the first configuration item, text layer attribute information, and updating the text layer attribute information to the display form configuration information, and
wherein the text layer attribute information is configured to represent presentation information of the at least one first character in the first text on the media data presentation page.

5. The method of claim 1, wherein obtaining, based on the at least one display form configuration information item and the first display information of the first text in the media data presentation page, the display form control information of the at least one first character in the first text comprises:

obtaining, based on the at least one display form configuration information item, text layer attribute information, and the first display information, the display form control information of the at least one first character in the first text, and
wherein the text layer attribute information is presentation information configured for the display form configuration information corresponding to an information configuration item.

6. The method of claim 5, wherein the at least one display form configuration information item comprises: a second display waveform corresponding to a first configuration item, and a start effect character position and an end effect character position corresponding to the second display waveform, and wherein

obtaining, based on the display form configuration information, the text layer attribute information, and the first display information, the display form control information of the at least one first character in the first text comprises:
obtaining, based on the second display waveform, position offset weight information of at least one second character located between the start effect character position and the end effect character position;
obtaining, for the at least one second character and based on the position offset weight information of the second character, first display position information in the first display information, and position configuration information in the text layer attribute information, second display position information of the second character; and
obtaining, based on the second display position information of the at least one second character and the text layer attribute information, the display form control information.

7. The method of claim 6, wherein the display form configuration information corresponding to the first configuration item further comprises effect character offset information, and after obtaining the display form control information, the method further comprises:

updating, based on the effect character offset information, the start effect character position and the end effect character position in the display form configuration information, to obtain, based on updated display form configuration information, the display form control information of the first text at a next moment.

8. The method of claim 6, wherein the at least one display form configuration information item comprises: a plurality of second display waveforms corresponding to the first configuration item, and the plurality of second display waveforms correspond to one text layer attribute information item, and wherein before obtaining, based on the second display waveform, the position offset weight information of the at least one second character located between the start effect character position and the end effect character position, the method comprises:

determining, based on a waveform combination attribute corresponding to the plurality of second display waveforms, a third display waveform corresponding to the plurality of second display waveforms; and
determining the third display waveform as the second display waveform for obtaining the display form control information.

9. The method of claim 5, wherein the at least one display form configuration information item comprises: a plurality of text layer attribute information items corresponding to a first configuration item, the text layer attribute information is associated with at least one second display waveform, and wherein

obtaining, based on the at least one display form configuration information item, the text layer attribute information, and the first display information, the display form control information of the at least one first character in the first text comprises:
obtaining, for the plurality of text layer attribute information items and based on the at least one second display waveform associated with the text layer attribute information, third display position information of the at least one first character; and
processing, based on a position combination attribute corresponding to each text layer attribute information item, the third display position information, to obtain second display position information of the at least one first character in the display form control information.

10. The method of any of claims 4, wherein the text layer attribute information comprises at least one of: a text font, a font color, or a text size applied to the at least one first character.

11. The method of claim 10, wherein in response to existence of a plurality of text layer attribute information items, display form control information of the at least one first character is overridden from back to front based on a configuration order of the text layer attribute information.

12. The method of claim 6, wherein the at least one display form configuration information item comprises a fourth display waveform for adjusting character jitter information, and wherein before obtaining, based on the second display waveform, the position offset weight information of the at least one second character located between the start effect character position and the end effect character position, the method further comprises:

updating, based on the fourth display waveform, the second display waveform.

13. The method of claim 12, wherein the fourth display waveform is determined by:

obtaining, based on a pre-configured character relevance parameter and a number of characters in the first text, read information of the at least one first character in a pre-created wave function look-up table, wherein a noise value in the wave function look-up table is configured to represent jitter amplitude information of the at least one first character; and reading, based on the read information, a first noise value in the wave function look-up table, to determine, based on the first noise value, the fourth display waveform corresponding to the at least one first character.

14. The method of claim 13, further comprising:

determining the wave function look-up table, and
wherein determining the wave function look-up table comprises: creating a first image comprising at least two grids, and generating a random noise value for vertices of the at least two grids; determining, for the at least two grids, a plurality of sampling points in the grid, and determining, based on four random noise values associated with the grid, noise values of the sampling points; and obtaining, based on the noise value of each sampling point in the at least two grids, the wave function look-up table.

15. The method of claim 1, further comprising:

controlling, based on the display form control information, display of a preset element at a position associated with the at least one first character.

16. An electronic device, comprising:

one or more processors;
a memory, configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to: obtain, in response to an event of displaying a first text based on a preset display form, at least one display form configuration information item which is preconfigured and corresponds to the first text; obtain, based on the at least one display form configuration information item and first display information of the first text in a media data presentation page, display form control information of at least one first character in the first text; and control, based on the display form control information, display of the at least one first character in the first text on the media data presentation page, and wherein the preset display form is related to the obtained display form control information.

17. The electronic device of claim 16, wherein before the one or more programs causing the one or more processors to obtain the at least one display form configuration information item which is preconfigured and corresponds to the first text, the one or more programs further cause the one or more processors to:

display an information configuration interface, wherein the information configuration interface comprises at least one information configuration item;
display, in response to a trigger operation for any information configuration item, a first interface corresponding to a triggered information configuration item; and
obtain, in response to a configuration operation in the first interface, display form configuration information of the first text under the triggered information configuration item.

18. The electronic device of claim 17, the at least one information configuration item comprises a first configuration item configured to determine a text display waveform, the triggered information configuration item is the first configuration item, and wherein

the one or more programs causing the one or more processors to obtain, in response to the configuration operation in the first interface, the display form configuration information of the first text under the triggered information configuration item further cause the one or more processors to:
display, in response to a trigger operation for the first configuration item, a waveform configuration interface, wherein the waveform configuration interface is configured to trigger to select at least one displayed first display waveform and/or edit the first display waveform; and
display, in response to a trigger operation for any first display waveform, an editing interface corresponding to a second display waveform, to obtain, based on a start effect character position, an end effect character position, and effect character offset information corresponding to the second display waveform which are edited in the editing interface, the display form configuration information under the first configuration item.

19. The electronic device of claim 18, wherein the one or more programs further cause the one or more processors to:

configure, for the display form configuration information corresponding to the first configuration item, text layer attribute information, and update the text layer attribute information to the display form configuration information, and
wherein the text layer attribute information is configured to represent presentation information of the at least one first character in the first text on the media data presentation page.

20. A non-transitory storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, cause the computer processor to:

obtain, in response to an event of displaying a first text based on a preset display form, at least one display form configuration information item which is preconfigured and corresponds to the first text;
obtain, based on the at least one display form configuration information item and first display information of the first text in a media data presentation page, display form control information of at least one first character in the first text; and
control, based on the display form control information, display of the at least one first character in the first text on the media data presentation page, and
wherein the preset display form is related to the obtained display form control information.
Patent History
Publication number: 20260377629
Type: Application
Filed: May 22, 2026
Publication Date: Nov 26, 2026
Inventors: Zehua BAO (Beijing), Weifeng Lin (Beijing), Qi Dong (Beijing), Yi Guo (Beijing), Xiaofeng Li (Beijing), Jiacheng Liu (Beijing)
Application Number: 19/686,405
Classifications
International Classification: G06F 40/109 (20200101);