CN116974430A - Text display method, device, computer equipment and storage medium - Google Patents

Text display method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116974430A
CN116974430A CN202310070148.1A CN202310070148A CN116974430A CN 116974430 A CN116974430 A CN 116974430A CN 202310070148 A CN202310070148 A CN 202310070148A CN 116974430 A CN116974430 A CN 116974430A
Authority
CN
China
Prior art keywords
text
text information
target
floating window
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310070148.1A
Other languages
Chinese (zh)
Inventor
陈建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310070148.1A priority Critical patent/CN116974430A/en
Publication of CN116974430A publication Critical patent/CN116974430A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Abstract

The present application relates to a text presentation method, apparatus, computer device, storage medium and computer program product. The method comprises the following steps: and responding to the exit operation aiming at the text information page, exiting the text information page, displaying a floating window, displaying target text information in the floating window, wherein the target text information is determined based on the target text of the text information page, and the target text is determined based on the text of the target position in the text content of the text information page, so that the target text in the text information page can be read through the floating window continuously after the text information page is exited, the reading of the text information page is prevented from being interrupted when other tasks are executed, and the utilization rate of text resources is improved.

Description

Text display method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of internet technology, and in particular, to a text display method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of internet information technology, internet text information browsing and other technologies are presented. Generally, when a user reads text information in a text information page, for example, when a news page performs news reading, a task of replying to an instant messaging message is required. At this time, when the news is read in the news page, the user cannot directly reply, and the current news reading needs to be interrupted, for example, after closing the current news page, the user can continue to operate to reply. However, interrupting the reading of the current text information to perform other tasks may have a problem of low resource utilization of the text information.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a text display method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve resource utilization.
In a first aspect, the present application provides a text display method. The method comprises the following steps:
responding to the exit operation aiming at the text information page, exiting the text information page and displaying a floating window;
and displaying target text information in the floating window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
In one embodiment, the converting the target text information into subtitle text based on the scroll presentation parameter and the window parameter of the floating window includes:
dividing the target text information based on window parameters of the floating window to obtain text information corresponding to each text line;
calculating a playing time point based on the rolling display parameters to obtain time stamps corresponding to the text lines;
obtaining the caption text based on the text information corresponding to each text line and the time stamp corresponding to each text line;
The dynamically displaying the caption text in the floating window comprises the following steps:
acquiring current playing time, and matching the current playing time with a time stamp in the caption text to obtain a matching time stamp;
and highlighting the text information of the target text line corresponding to the matching timestamp in the floating window.
In one embodiment, dynamically displaying the target text information in the floating window in text form includes:
and calling a text scrolling program resource through a preset text dynamic program interface, and scrolling and displaying the target text information in a text form in the floating window based on the text scrolling program resource, wherein the text scrolling program resource is a program resource which acquires the text information in the text information page and is generated by using text scrolling parameters.
In a second aspect, the application further provides a text display device. The device comprises:
the exit module is used for responding to the exit operation aiming at the text information page, exiting the text information page and displaying the floating window;
and the suspension display module is used for displaying target text information in the suspension window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to the exit operation aiming at the text information page, exiting the text information page and displaying a floating window;
and displaying target text information in the floating window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to the exit operation aiming at the text information page, exiting the text information page and displaying a floating window;
and displaying target text information in the floating window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to the exit operation aiming at the text information page, exiting the text information page and displaying a floating window;
and displaying target text information in the floating window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
According to the text display method, the device, the computer equipment, the storage medium and the computer program product, the text information page is exited and the floating window is displayed in response to the exit operation aiming at the text information page, the target text information is displayed in the floating window, the target text information is determined based on the target text of the text information page, the target text in the text information page can be read continuously through the floating window after the text information page is exited, the reading of the text information page is prevented from being interrupted when other tasks are executed, and the utilization rate of text resources is improved.
Drawings
FIG. 1 is an application environment diagram of a text presentation method in one embodiment;
FIG. 2 is a flow diagram of a text presentation method in one embodiment;
FIG. 3A is a schematic diagram of a dynamic display of a floating window in one embodiment;
FIG. 3B is a schematic diagram of a floating window dynamic display in another embodiment;
FIG. 4 is a diagram illustrating highlighting text information corresponding to a target text line in one embodiment;
FIG. 5 is a schematic view of a floating window in one embodiment;
FIG. 6 is a schematic diagram of a target text position marker in an embodiment;
FIG. 7 is a schematic diagram of a label option in one embodiment;
FIG. 8 is a schematic diagram of floating window movement in one embodiment;
FIG. 9 is a schematic diagram of a portion of a floating window in one embodiment;
FIG. 10 is a schematic diagram of a floating window floating display in one embodiment;
FIG. 11 is a schematic diagram of voice playback in one embodiment;
FIG. 12 is a schematic illustration of a distinguishing display of voice playback from highlighted text in one embodiment;
FIG. 13 is a schematic diagram of a voice suspension option in one embodiment;
FIG. 14 is a flow diagram of a process for obtaining subtitle text in one embodiment;
FIG. 15 is a flow chart of a text presentation method in one embodiment;
FIG. 16 is a schematic diagram of a frame of a text display in one embodiment;
FIG. 17 is a block diagram of a text display device in one embodiment;
fig. 18 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The text display method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on the cloud or other servers. The terminal 102 obtains the text information page sent by the server 104 and displays the text information page. Then, when the terminal 102 detects the exit operation for the text information page, the terminal exits the text information page and displays the floating window in response to the exit operation for the text information page. The terminal 102 presents the target text information in a floating window, the target text information being determined based on the target text of the text information page. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a text display method is provided, and the method is applied to the terminal in fig. 1 for illustration, so that it is understood that the method can also be applied to a server, and can also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 202, responding to an exit operation for a text information page, exiting the text information page and displaying a floating window;
the text information page refers to a page containing text information, and the text information may be text of various language types, for example, chinese text, japanese text, english text, and the like. The text information may also be various types of text information, such as news-type text, paper-type text, article-type text, and so forth. The exit operation refers to an operation for exiting a text information page, including but not limited to clicking, long pressing, sliding, pressing, dragging, and the like. The floating window refers to a window for floating display, and can float on the surface of other applications or pages, and when other applications or pages change, the floating window still floats on the surface of the changed applications or pages.
Specifically, the user can read the text information by entering the text information page through the terminal. When the user needs to perform other tasks in the terminal. The user needs to exit the text information page, at this time, the terminal receives an exit operation for the text information page, and the terminal responds to the exit operation to exit the text information page and display the floating window, wherein the terminal can enter a last level page of the text information page after exiting the text information page, and the floating window is displayed on the last level page. The terminal can display a main interface of the terminal system after exiting the text information page, and display a floating window on the main interface of the terminal system. After exiting the text message page, the terminal can enter an application or page to be subjected to task execution, and a floating window is displayed on the application or page to be subjected to task execution. The floating window may be displayed at any position of the terminal screen, for example, the floating window may be displayed at the top, the floating window may be displayed at the bottom, the floating window may be displayed in the middle, and the like.
In step 204, target text information is presented in the floating window, the target text information being determined based on the target text of the text information page, the target text being determined based on the text of the target location in the body content of the text information page.
Wherein the target text is determined based on text at a target location in the body content of the text information page. The text content refers to main content in the text information page, for example, when the text information page includes a title and corresponding main content, the text content may be all content except the title. The target position is a position determined from the text content, and the target position can be preset or dynamically changed. For example, the target location may be determined from a pre-marked location. The target location may be determined based on the location currently read. The target position may also be a preset position, for example, a text content start position, an intermediate position, or an end position. The target location may be any location in the body content of the text message page. When the target position is the initial position of the text content, the target text can be the text corresponding to all the text content displayed in the text information page. The pre-marked location may be a location determined based on the current reading progress or may be a custom location, such as a location of interest marked by the user. When the target location is a pre-marked location, the target text may be part of the text in the text information page, i.e. the text in the body content starting with the pre-marked location. For example, the pre-marked location may be the current read location and the target text may be unread text in the text message page. The target text information is information obtained according to the target text and can be displayed through a floating window, and the target text information can be information in a text form or information in a voice form.
Specifically, the terminal displays the target text information in the floating window while displaying the floating window, wherein the target text information is determined based on the target text of the text information page, and the target text is determined based on the text of the target position in the text content of the text information page, wherein the terminal can directly take the target text as the target text information to obtain the target text information in a text form, and can also convert the target text into text voice and take the text voice as the target text information to obtain the target text information in a voice form. The terminal may also display the target text information in the floating window in a text form sequentially according to the text sequence in the text information page, where the target text information is text of a target position in the text content of the text information page, for example, the target text information may be all texts in the text information page, and the target text information may be all unread texts in the text information page. The target text information may also be text in a subject body area in a text information page. The target text information can also be text information which is interested by the user in the text information page, wherein the text which is interested by the user can be obtained after the user marks the position in advance, and can be obtained by selecting the text of the target position from the texts in the text information page according to the historical behavior data of the user. The target text is determined based on text at a target location in the body content of the text message page.
In one embodiment, the target text may also be updated or modified, that is, the terminal obtains the updated or modified target text, and determines the target text information based on the updated or modified text, for example, the updated or modified text is used as the target text information in text form, or the updated or modified text is converted into voice, and the converted voice is used as the target text information in voice form.
According to the text display method, the text information page is exited and the floating window is displayed in response to the exit operation aiming at the text information page, and the target text information is displayed in the floating window and is the target text acquired from the text information page based on the window parameters of the floating window, so that the target text information in the text information page can be read continuously through the floating window after the text information page is exited, the reading of the text information page can be prevented from being interrupted when other tasks are executed, and the utilization rate of text resources is improved.
In one embodiment, presenting the target text information in the floating window includes displaying the target text information in text form in the floating window while playing the target text information in speech form.
Specifically, the terminal acquires target text information in a text form from a text information page, and then converts the target text information in the text form into target text information in a corresponding voice form by using a voice synthesis technology, wherein the voice synthesis technology is a technology capable of converting any input text into corresponding voice, and can use a voice synthesis technology based on deep learning or a voice synthesis technology based on statistical parameters. And then displaying the target text information in a floating window in a text form, and simultaneously playing the target text information in a voice form. The text voice corresponding to the target text information can be played according to the preset speech speed, and when the voice is played to the corresponding text, the text of the played voice is displayed in the floating window at the same time. In one embodiment, when the terminal does not play the target text information in voice, the user may read the target text information in the text form in the floating window through a sliding operation, and the terminal responds to the sliding operation for the target text information in the floating window to slide the target text information in the floating window, wherein the target text information in the floating window may be slid according to the sliding distance of the sliding operation. In the embodiment, the target text information is displayed in the floating window, and the text voice corresponding to the target text information is played at the same time, so that a user can directly obtain the text information through the text voice, the situation that the text information cannot be read in time when other tasks are executed is avoided, the user can be ensured to obtain the text information, the utilization rate of text resources is further improved, and the reading efficiency is improved.
In one embodiment, the target text information is target text obtained from a text information page based on window parameters of a floating window. The window parameters refer to parameters used in establishing the floating window, including but not limited to floating position and window size, etc. The terminal can acquire the target text from the text information page according to the window size of the floating window, and the target text is taken as target text information. The method comprises the steps of calculating the text quantity which can be displayed by a floating window according to the size of text characters in a text information page and the size of the window, obtaining target text information according to the text which is obtained from the text information page, displaying the target text information in the floating window in a text mode, detecting the read operation for displaying the target text information in the floating window, obtaining the target text information by a terminal, displaying the target text information in the floating window, and accordingly avoiding display problems of the text displayed by the floating window, ensuring that a user reads the text in the text information page, and improving reading efficiency.
In one embodiment, presenting the target text information in a floating window includes: and playing the target text information in the form of voice in the floating window.
Specifically, the terminal exits the text information page in response to an exit operation for the text information page and displays a floating window in which the target text information is played in the form of voice. When the terminal acquires the target text in the text information page, the target text can be converted into text voice. When the target text information needs to be played in the form of voice, the terminal acquires the text voice and plays the target text information in the form of voice in the floating window.
In one embodiment, buttons for controlling the volume of the voice and controlling the speed of playing the voice may be displayed in the floating window, the volume of playing the voice may be controlled by the voice volume button, and the speed of playing the voice may be controlled by the voice playing speed button.
In the embodiment, the terminal plays the target text information in the form of voice through the floating window, so that a user can be ensured to acquire the text in the text information page, the reading efficiency can be improved, the text display is not needed, and the terminal resource can be saved.
In one embodiment, presenting the target text information in a floating window includes: and dynamically displaying the target text information in the form of text in the floating window.
Wherein, the dynamic display means to display in a dynamic change mode, and the dynamic display comprises scrolling display, gradual change display, automatic page turning display and the like.
Specifically, the terminal dynamically displays the target text information in the floating window in a text mode according to the sequence of the text in the target text information, wherein the terminal can scroll and display the target text information in the floating window in a text mode, for example, the terminal can dynamically display the target text information in the floating window from top to bottom in sequence, the terminal can scroll and display the target text information in the floating window from bottom to top, the terminal can scroll and display the target text information from left to right, the terminal can scroll and display the target text information from right to left in the floating window, and the terminal can scroll and display the target text information according to a preset curve. And the terminal can scroll and display the target text information in the floating window according to the preset speed. In one embodiment, the target text information may be divided into a plurality of text lines, the text information of the current text line is scrolled to the next text line after being displayed in the floating window for a target time, the text information of the next text line is displayed in the floating window as the text information of the current text line, and scrolling is continuously performed until all the target text information is displayed. The terminal can also dynamically display the target text information in a text form in the floating window in other modes, namely, the terminal can automatically page and display the target text information in the text form in the floating window. The terminal may display the target text information in a floating window in a gradual manner in the form of text, for example, the text is displayed in a faded-in manner in the floating window.
In a specific embodiment, as shown in fig. 3A, a schematic diagram of scrolling and displaying target text information in a text form for a floating window is shown, wherein a black floating window is displayed at the bottom of a news recommendation homepage of a browser, news text in an a news page just exited is displayed in the floating window, the floating window can display three lines of news text, then the three lines of news text are scrolled and displayed in the floating window from bottom to top with the initial "a-pass" of the news text in the a news page, and when scrolling and displaying, three lines of news text are always kept to be displayed in the floating window, the news text changes according to the scrolling speed until all the news text in the a news page is displayed, wherein a in fig. 3A represents the news text displayed in the floating window at the initial scrolling, including the text "a-pass" of the initial line, and b in fig. 3A represents the news text displayed in the floating window after scrolling the initial line, and the text "a-pass" of the initial line is displayed. At this time, the user can complete other tasks through the terminal while reading the text in the floating window.
In the embodiment, the target text information is dynamically displayed in the floating window in the text form, so that the problem that the target text information cannot be completely displayed in the floating window due to overlong target text information can be avoided, the utilization rate of text resources is further improved, and the reading efficiency can be improved.
In one embodiment, the terminal may dynamically play the target text information in the form of voice in the floating window, and in particular, the dynamically changeable audio identifier is displayed in the floating window, where the audio identifier may be dynamically changed according to tone change of the voice corresponding to the text. The audio identifier can also be changed according to the change of the voice amplitude, namely the audio identifier displayed in the floating window can be an amplitude chart which is continuously and dynamically changed, namely the amplitude of the voice is visually displayed when the voice is played. In a specific embodiment, as shown in fig. 3B, a schematic diagram of dynamically playing news text in the form of voice is shown, where a dynamically changeable audio identifier, i.e. a horn, is displayed in a floating window, and the number of curved waveforms behind the horn changes when the horn dynamically changes. In fig. 3B, when a certain news word is played in a floating window, the number of curved waveforms is 3. While in B in fig. 3B, another news word is played in the floating window, the number of curved waveforms is 4. The dynamic change of the waveform quantity is used for indicating that the floating window is playing the voice, so that the utilization rate of resources is improved.
In one embodiment, a text presentation method includes:
in response to the exit operation for the text information page, a voice hover option, a text display option, and a voice play option are displayed.
And responding to the selection operation of the voice suspension option, exiting the current information page, displaying a suspension window, displaying the target text information in the suspension window in a text mode, and simultaneously playing the target text information in a voice mode.
And responding to the selection operation of the voice playing option, exiting the current information page, displaying a floating window, and playing the target text information in the floating window in a voice mode.
And responding to the selection operation of the text display options, exiting the current information page, displaying a floating window, and dynamically displaying the target text information in the floating window in a text form.
Specifically, when detecting an exit operation for a text information page, the terminal responds to the exit operation and can display various options on the text information page, wherein a voice suspension option, a text display option and a voice play option can be displayed in a popup window of the text information page. And then when the user selects any one of the options, the terminal exits the current information page, displays the floating window, and floats the floating window according to the selected option. The terminal detects the selection operation of the voice suspension option, responds to the selection operation of the voice suspension option, exits the current information page, displays a suspension window, displays target text information in the suspension window in a text mode, and plays the target text information in a voice mode. The terminal detects the selection operation of the voice playing option, responds to the selection operation of the voice playing option, exits the current information page, displays a floating window, and plays the target text information in the form of voice in the floating window. The terminal detects the selection operation of the text display options, responds to the selection operation of the text display options, exits the current information page, displays a floating window, and dynamically displays target text information in the form of text in the floating window.
In the above embodiment, the flexibility of text display may be improved by displaying the voice suspension option, the text display option, and the voice play option in response to the exit operation for the text information page, and then performing suspension display in different manners by the suspension window when different options are selected.
In one embodiment, dynamically displaying target text information in text form in a floating window includes: and dynamically displaying the target text information in a caption text format in a floating window.
The text format of the subtitle refers to a format of a text subtitle, for example, the text subtitle may be a format of a video subtitle, a lyric subtitle, etc., and the text subtitle may be a subtitle in a format of srt (subtitle format), smi (subtitle format), ssa (subtitle format), etc.
Specifically, the terminal can directly acquire the text subtitle file, and then dynamically display the target text information in a subtitle text format in a floating window by using the text subtitle file. The text in the text subtitle file can be synthesized into the video, and the video is played in the floating window, so that the target text information is played and displayed in a video subtitle mode. The target text information can be divided into a plurality of lines of text, each line of text has a corresponding playing start time and a corresponding playing end time, rolling display is started in the floating window according to the playing start time, the line of text ends rolling display in the floating window when the playing ends time, and the line of text rolls from the bottom of the floating window to the top of the floating window until the text disappears to the playing end time in the time period of the playing start time and the playing end time.
In the embodiment, the target text information is dynamically displayed in the caption text format in the floating window, so that the utilization rate of text resources is improved, and the reading efficiency can be improved.
In one embodiment, the floating window includes at least two text lines therein; dynamically displaying target text information in a floating window in the form of text, including: and scrolling and displaying the target text information in at least two text lines in the floating window, and highlighting the text information corresponding to the target text lines in the floating window.
Specifically, the number of text lines which can be displayed in the floating window is calculated according to the font size of the target text information when the target text information is displayed in a text form and the window size of the floating window. The terminal then scrolls the target text information in at least two text lines in the floating window. I.e. the text information of each line in the hover window is changing, i.e. scrolling, continuously. And the terminal highlights the text information corresponding to the target text line in the floating window. The target text line may be a preset text line, for example, may be a middle text line of a floating window. The user can also preset a highlight position in the floating window, and the terminal highlights the text information corresponding to the highlight position, namely, when the terminal detects that the text information is scrolled to the highlight position in the floating window, the terminal highlights the text information.
In a specific embodiment, as shown in fig. 4, a schematic diagram of text information corresponding to a target text line is highlighted, where the middle line text of the floating window may be highlighted. When the text information is scrolled to the middle line of the floating window at the time of scrolling the target text information, the text information is highlighted, and the text information displayed in the area 402 in the figure is highlighted.
In the embodiment, the target text information is displayed in the floating window in a rolling way by at least two text lines, and the text information corresponding to the target text lines in the floating window is highlighted, so that the reading efficiency can be improved.
In one embodiment, dynamically displaying target text information in text form in a floating window includes:
and responding to the sliding operation aiming at the target text information in the floating window, rolling the target text information displayed in the floating window by a target sliding distance corresponding to the sliding operation, and continuing to roll and display the target text information.
The sliding operation refers to the sliding operation of the target text message in the sliding floating window. The target sliding distance refers to a distance that slides at the time of a sliding operation.
Specifically, the terminal detects a sliding operation for the target text information in the floating window, and responds to the sliding operation for the target text information in the floating window, and the target sliding distance corresponding to the target text information rolling sliding operation displayed in the floating window is rolled, wherein the target sliding distance can be rolled according to the sliding speed of the sliding operation. The scrolling speed may be calculated according to the sliding speed of the sliding operation, and then the target sliding distance may be scrolled according to the target text information displayed in the scrolling speed floating window. And the terminal continues to scroll and display the target text information after the active operation is finished
When the target text information in the floating window scrolls from bottom to top, the terminal can respond to the downward sliding operation of the target text information in the floating window, the target text information displayed in the floating window is scrolled downward by the corresponding target sliding distance of the sliding operation, and the target text information is continuously scrolled and displayed, so that the scrolled text information can be read again. The terminal can respond to the upward sliding operation for the target text information in the floating window, roll the target text information displayed in the floating window upward for a target sliding distance corresponding to the sliding operation, and continue to roll and display the target text information, so that the text information which is not rolled can be read quickly.
In the above embodiment, by responding to the sliding operation for the target text information in the floating window, rolling the target text information displayed in the floating window by the target sliding distance corresponding to the sliding operation, and continuing to roll and display the target text information, it is possible to avoid that the user does not read the rolled text information, improve the utilization rate of text resources, and improve the reading efficiency.
In one embodiment, after dynamically displaying the target text information in the form of text in the floating window, the method further comprises:
Responding to a pause operation for the target text information in the floating window, and stopping dynamically displaying the target text information; or (b)
And in response to the acceleration operation for the target text information in the floating window, accelerating the dynamic display of the target text information.
Here, the pause operation refers to an operation of stopping dynamic progress of the floating window, which includes, but is not limited to, clicking, long pressing, sliding, pressing, dragging, and the like. The acceleration operation refers to an operation of accelerating a dynamic speed in a floating window, including but not limited to clicking, long pressing, sliding, pressing, dragging, and the like.
Specifically, the terminal may dynamically display the target text information in the floating window according to a preset dynamic speed. When the user wants to pause the text presentation in the hover window, the user can pause by a pause operation. At this time, the terminal detects a pause operation for the target text information in the floating window, and stops dynamically displaying the target text information in response to the pause operation for the target text information in the floating window. When the user wants to continue the text presentation in the floating window, the user can cancel the pause operation to perform the text information. Namely, the terminal detects the cancel pause operation for the target text information in the floating window, and responds to the cancel pause operation for the target text information in the floating window to continue to dynamically display the target text information.
In one embodiment, the user may scroll up through the acceleration operation when he or she wants to scroll up the text in the hover window. At this time, the terminal detects an acceleration operation for the target text information in the floating window, and in response to the acceleration operation for the target text information in the floating window, the terminal scroll-up displays the target text information. I.e. the terminal scrolls and displays the target text information in the floating window by using the accelerated scrolling speed. The accelerated rolling speed may be a multiple of the rolling speed before acceleration, for example, may be 1 time acceleration, 0.5 time acceleration, or the like, or the accelerated rolling speed may be set according to the requirement, and may be provided to the user for selection. That is, each accelerated scroll speed option is displayed in response to an acceleration operation for the target text information in the floating window, and the target text information is scroll-displayed at the target scroll speed in the floating window in response to a selection operation for the target scroll speed option in each accelerated scroll speed option.
In one particular embodiment, shown in FIG. 5, is a schematic diagram of a hover window in which a pause button 502 and a 1 x speed up button 504 are displayed. At this time, the floating window is scrolling the display text, and then the user may click the pause button 502, and the terminal stops scrolling the display target text information in response to the pause operation for the target text information in the floating window, and continues scrolling the display target text information when the user clicks the pause button 502 again. The user may also select an acceleration option, for example, click on the 1 x acceleration button 504, and the terminal responds to the acceleration operation for the target text information in the floating window to display the target text information in a double-speed acceleration scroll manner, or click on the acceleration option again to display the target text information in a double-speed acceleration scroll manner.
In the above embodiment, by stopping dynamically displaying the target text information in response to the pause operation for the target text information in the floating window and accelerating the dynamically displaying of the target text information in response to the acceleration operation for the target text information in the floating window, the utilization rate of text resources is improved, and the reading efficiency can be improved.
In one embodiment, before exiting the text information page and presenting the floating window in response to the exit operation for the text information page, further comprising: marking a target text position in response to a marking event for the target text position in the text information page;
displaying the target text information in a floating window, including: and displaying text information starting from the text corresponding to the target text position in the floating window.
Where a marking event refers to an event for marking a location of a target text, the marking event may be triggered by an operation including, but not limited to, clicking, long pressing, sliding, pressing, dragging, and the like. The target text position refers to a position corresponding to the text information currently read in the text information page.
Specifically, the user triggers a marking event in the text information page through triggering operation, the terminal detects a marking event aiming at a target text position in the text information page, and the target text position is marked in response to the marking event, wherein a preset marking symbol can be used for marking the target text position, and the target text position can be marked in other modes such as highlighting, so that the target text position is obviously distinguished from other positions in the text information page. The text corresponding to the target text position may be the text at the target text position, or may be the text before or after the target text position. When the terminal displays the text information in the floating window, the terminal can display the text corresponding to the target text position as the start, for example, the terminal can display dynamically.
In a specific embodiment, as shown in fig. 6, a schematic diagram of a marked target text position is shown, where a preset mark symbol "asterisk" is used to mark the target text position, and then when the terminal performs text information display in the floating window, the terminal starts to display with "yes" text corresponding to the target text position.
In the embodiment, the target text position is marked by responding to the marking event aiming at the target text position in the text information page, and then the text information starting from the text corresponding to the target text position can be displayed in the floating window, so that the unread text information can be displayed in the floating window, the re-display of the read text information is avoided, the resources can be saved, and the reading efficiency is improved.
In one embodiment, marking a target text location in a text information page in response to a marking event for the target text location includes:
responding to a triggering operation aiming at a target text position in a text information page, and displaying a marking option; the target text position is marked in response to a selection operation for the marking option.
The triggering operation is used for triggering and displaying a marking option, and the marking option is used for marking the position. The selection operation refers to an operation of selecting a marker option. Operations may include, but are not limited to, clicking, long pressing, sliding, pressing, dragging, and the like.
Specifically, the user performs a triggering operation at a current reading position in the text information page, for example, a clicking operation, a long-press operation, a pressing operation, etc. may be performed, the terminal detects the triggering operation for the target text position in the text information page, and displays the marking option in response to the triggering operation. In a specific embodiment, after responding to the triggering operation, the terminal may display an option bar, where a marking option is displayed, and other options may also be available, such as a text copy option, a text translation option, a text extraction option, and the like. The user selects the corresponding option, and can trigger a responsive event, for example, when the user selects the text copying option, the terminal detects the copying event and can copy the text corresponding to the target text position. When the user selects the marking option, the terminal detects the selection operation for the marking option, and in response to the selection operation for the marking option, the target text position can be marked by using the preset marking symbol. The marking symbol may be set according to requirements, for example, may be a star symbol, may be a triangle symbol, or the like.
In a specific embodiment, as shown in fig. 7, a schematic diagram of a marking option is shown, where the user presses the "yes" word for a long time, at this time, the terminal detects a trigger operation for a target text position in the text information page, and displays an option field 602, where a progress mark option is displayed in the option field 602, where the progress mark option is used to mark the current reading progress, that is, the read target text position. And then when the user clicks the progress mark option, the terminal detects the selection operation of the mark option, and marks the target text position in response to the selection operation of the mark option, so as to obtain a schematic diagram after marking the target text position as shown in fig. 6.
In the above embodiment, by displaying the marking option in response to the triggering operation for the target text position in the text information page and then marking the target text position in response to the selecting operation for the marking option, an erroneous operation can be avoided.
In one embodiment, presenting the target text information in a floating window includes: and displaying text information starting from the text corresponding to the preset text position in the floating window.
The preset text position refers to a preset text position, and the text position can be a text starting position in a text information page, a text starting text position displayed in a text area in the text information page, and the like.
Specifically, when the user does not mark the target text position, i.e., when the terminal exits the text information page, the presence of a mark symbol in the text information page is not detected. At this time, the terminal may acquire a preset text position, and then when displaying the target text information in the floating window, display may be performed starting from a text corresponding to the preset text position, for example, dynamic display may be started or corresponding voice playing may be performed starting from a text corresponding to the preset text position. Through presetting the text position and displaying the target text information in the floating window by taking the text corresponding to the preset text position as the start, the operation of a user can be reduced.
In one embodiment, after the target text information is displayed in the floating window, the method further comprises:
and responding to the triggering operation for moving the floating window to the target position, and moving the floating window to the target position.
The target position refers to a position to which the floating window is to be moved, and may be a position determined according to a trigger operation, and the target position may be any position on a display screen of the terminal. The triggering operation refers to an operation of triggering a floating window movement, including but not limited to clicking, long pressing, sliding, pressing, dragging, and the like.
Specifically, when the user needs to move the floating window, the floating position of the floating window can be controlled through operation, for example, the user can drag the floating window from the current position to the target position. The user can control the floating position of the floating window through sliding operation after selecting the floating window. When the terminal detects a trigger operation for moving the floating window to the target position, the terminal responds to the trigger operation to move the floating window to the target position. For example, when the terminal detects a trigger operation that the floating window moves to the top position of the display screen, the floating window is moved to the top of the display screen. In a specific embodiment, the hover window view location update may be performed by acquiring the touch location, and setting parameters of the hover window by an updateViewLayout method of a Window manager.
In a specific embodiment, as shown in fig. 8, a schematic diagram of the floating window movement is shown, where the user can move the floating window from the bottom of the display screen to an intermediate position, i.e. from the position shown in fig. 8 a to the position shown in fig. 8 b.
In one embodiment, the user may move a majority of the floating window out of the display screen, which only displays a portion of the floating window. As shown in fig. 9, a schematic diagram of a partial floating window is shown, where 902 is a displayed partial floating window, through which text information is displayed while voice playing is performed.
In the above embodiment, by moving the floating window to the target position in response to the trigger operation for moving the floating window to the target position, the user can conveniently complete other tasks, and the utilization rate of resources is improved.
In one embodiment, the text presentation method further comprises: the method comprises the steps of exiting a text information page, and displaying a first target page, wherein the first target page is the upper page of the text information page; suspending the suspension window on a first target page for displaying, and displaying target text information in the suspension window; and responding to the jump operation aiming at the second target page, displaying the second target page, and suspending the suspension window on the second target page for displaying.
The first target page may refer to a previous page of the text information page, or may be other pages. The second target page refers to a page different from the first target page, and the page may be any page, for example, may be a page in any terminal application. But may also be the upper page of the first target page, etc. The jump operation refers to an operation of entering the second target page, including but not limited to clicking, long pressing, sliding, pressing, dragging, and the like.
Specifically, when the terminal exits from the text information page, a first target page is displayed, wherein the first target page is the last level page of the text information page, then the floating window is suspended on the first target page for displaying, and the target text information is displayed in the floating window. At this time, the user may perform other tasks, that is, the terminal detects that the second target page is displayed in response to the jump operation for the second target page, and suspends the suspension window on the second target page for displaying, and at the same time, displays the target text information in the suspension window. For example, a communication message may be replied to in an instant messaging application. At this time, the terminal detects the jump operation of jumping to the reply page in the instant messaging application, displays the reply page in the instant messaging application, then the user can carry out communication reply, and simultaneously, the floating window is displayed on the floating reply page, and the target text information can be displayed in the floating window.
In the embodiment, the first target page is displayed, the floating window is suspended on the first target page to display target text information, the second target page is displayed in response to the jump operation for the second target page, the floating window is suspended on the second target page to display the target text information, and the target text information is displayed in the floating window, so that other tasks can be executed while the target text information in the floating window is browsed, reading efficiency can be improved, and meanwhile, execution of other tasks is prevented from being influenced.
In one embodiment, the text presentation method further comprises: the method comprises the steps of exiting a text information page, displaying a third target page, wherein the third target page is a page displayed after exiting an application program to which the text information page belongs, and each application program is displayed in the third target page; suspending the suspension window on a third target page for displaying, and displaying target text information in the suspension window; and responding to the starting operation of the target application program in the third target page, displaying the target application program page, and suspending the suspension window on the target application program page for displaying.
Specifically, the terminal may exit from the text information page the application to which the text information page belongs. When the terminal detects that the application program which the exit text information page belongs to, a third target page can be displayed, wherein the third target page is a page displayed after the application program which the exit text information page belongs to. For example, the terminal may exit the browser application directly from the news page of the browser application. At this time, the terminal displays the page after the browser application exits. That is, the terminal may display a third target page, where each application program is displayed in the third target page, and each application program includes an application program to which the text information page belongs. At the moment, the terminal floats the floating window on the third target page for displaying, and the target text information is displayed in the floating window. Then, the terminal detects a start operation for a target application in the third target page, which may be any one of the respective applications in the third target page. And the terminal responds to the starting operation aiming at the target application program in the third target page, and displays the target application program page after starting the target application program, and simultaneously, when the target application program is started and the target application program page is displayed, the floating window is displayed in a floating mode, namely, the floating window is displayed on all the active pages.
In the above embodiment, the floating window is floating on the third target page to display the third target page, and the target text information is displayed in the floating window. And then, the terminal responds to the starting operation of the target application program in the third target page, displays the target application program page, and floats the floating window on the target application program page for display, so that the task in the target application program is executed while the target text information in the floating window is browsed, the reading efficiency can be improved, and the task in the target application program is prevented from being influenced.
In one embodiment, after exiting the text information page, a terminal system main interface may be presented, and a floating window is presented in the terminal system main interface, while the target text information is dynamically presented in the floating window. And the terminal responds to the triggering operation of entering the first application through the main interface of the terminal system, starts the first application, displays an application page of the first application after the first application is started, suspends and displays a suspension window on the application page of the first application, and dynamically displays target text information in the suspension window. The dynamic display of the target text information in the floating window is continuously and dynamically carried out along with the change of time, and the influence of the change of the terminal system after the text information page is exited is avoided. In one embodiment, when the terminal exits the text information page, the terminal can directly enter an application page of the target application, display a floating window on the application page, and dynamically display the target text information in the floating window.
In a specific embodiment, as shown in fig. 10, a schematic diagram of a floating window floating display is shown, where a in fig. 10 is a news page, and the floating window floats on a news main page. B in fig. 10 is an instant messaging page, and the floating window is suspended on the instant messaging page. When a user browses news on a news page, the user needs to exit the news currently browsed to execute other tasks, at this time, the user may exit the news page currently browsed, enter a news main page, display a floating window on the news main page, and display news text in the exited news page in the floating window, as shown in a in fig. 10.
When a user receives a conversation message of a friend 1 during news browsing on a news page, the user can exit an application program to which the news page belongs, a terminal displays a terminal system page comprising an instant messaging application program, and a floating window is suspended on all active pages and displayed. The user can then enter the instant messaging application program from the terminal system page to reply, the terminal displays a floating window on the reply page, and the news text in the withdrawn news page is displayed in the floating window, as shown in b in fig. 10.
In the above embodiment, the floating window is floating on the third target page to display the third target page, and the target text information is displayed in the floating window. And then, the terminal responds to the starting operation of the target application program in the third target page, displays the target application program page, and floats the floating window on the target application program page for display, so that the task in the target application program is executed while the target text information in the floating window is browsed, the reading efficiency can be improved, and the task in the target application program is prevented from being influenced.
In one embodiment, before exiting the text information page and presenting the floating window in response to the exit operation for the text information page, further comprising:
responding to the authorization operation for the floating window, and displaying a floating window setting page; and responding to the setting completion operation of the floating window setting page, acquiring the window parameters and the authorization information, and storing the authorization information and the window parameters of the floating window.
The authorization operation refers to an operation of acquiring the suspension authority of the suspension window, and the operation includes, but is not limited to, clicking, long pressing, sliding, pressing, dragging, and the like, and may also include voice operation, gesture operation, and the like. The floating window setting page refers to a page for setting authority and window parameters. The window parameter refers to a parameter of the floating window, including a floating position parameter, a window size parameter, and the like. The authorization information is used to characterize the rights information that the floating window can float. In the case of unauthorized, the floating window is not available for floating display.
Specifically, the user needs to be authorized before use of the floating window can occur. At this time, the terminal responds to the authorization operation for the floating window, displays the floating window setting page, the user sets the authority, the window parameters and the like through the floating window setting page, when the setting is completed, the user can perform the setting completion operation, the terminal responds to the setting completion operation for the floating window setting page, acquires the window parameters and the authorization information set by the floating window setting page, and stores the authorization information and the window parameters of the floating window.
In a specific embodiment, the window parameters of the suspension window may be preset in the terminal, and the authorization information may be obtained through the terminal system, specifically: the corresponding floating window rights need to be added before the floating window is presented. Firstly judging whether the suspending window authority is acquired or not, and if not, jumping the system page to perform corresponding authorization operation. After obtaining the authorization information of the floating window, the floating window view to be floated can be initialized, and a corresponding trigger event is set. And then, after window management Window manager is obtained and a suspension window parameter Window manager is set, a suspension window of a corresponding view can be generated by an addView (adding view) method of the Window manager. Wherein setting windows parameters includes a window type parameter, a window size parameter, a window position parameter, etc., and the floating window type parameter may be set to windows manager.
In the above embodiment, by responding to the authorization operation for the floating window, the floating window setting page is displayed; and responding to the completion operation of setting the floating window setting page, acquiring the window parameters and the authorization information, storing the authorization information and the window parameters of the floating window, and displaying the floating window after authorization, so that the safety can be ensured.
In one embodiment, presenting the target text information in a floating window includes:
and dynamically displaying the target text information in a floating window in a text form, and simultaneously playing the target text information in a voice form.
Specifically, the terminal dynamically displays the target text information in a floating window in the form of text, and simultaneously plays the target text information pair in the form of voice. Wherein, when a specific text character is dynamically reached, the text character is played simultaneously by voice, i.e. the time stamp of the text dynamic is aligned with the time stamp of the voice playing.
In one embodiment, the terminal acquires the target text information from the text information page, then converts the target text information into corresponding text voice by using a voice conversion technology, stores the text voice, and acquires and plays the text voice when playing is required. The method comprises the steps that a terminal obtains a subtitle file and text voice corresponding to target text information, the subtitle text and the text voice are aligned and synthesized according to time stamps to obtain a scrollable subtitle video, then the subtitle video is played in a floating window, namely the terminal obtains playing time, the playing time is matched with the time stamp of the subtitle video, the corresponding text and voice are found, then the text is highlighted in the floating window and the corresponding voice is played at the same time, wherein the target text information can be converted into the corresponding text voice after a text information page is exited, or unread text information after the target text position is marked, and the unread text information is converted into the corresponding text voice. The Speech conversion technique may be tts (Text To Speech) technique.
In one embodiment, when playing the text voice corresponding to the target text information, the terminal page may respond to the mute operation to stop playing the text voice, or respond to the non-mute operation to continue playing the text voice.
In a specific embodiment, as shown in fig. 11, a schematic diagram of voice playing is shown, where the current voice playing state is represented by a voice playing button 1102, that is, the voice playing can be adjusted by the voice playing button 1102. At this time, the voice play button 1102 indicates that voice play is currently being performed. The voice play can then be adjusted via the voice play button 1102. For example, when the user clicks the voice play button 1102, the size of the sound during voice play can be adjusted, i.e. mute play can be performed, and also the voice play can be amplified. The user can also stop the voice playback by double clicking the voice playback button 1102.
In the embodiment, the target text information is dynamically displayed in the floating window, and the text voice corresponding to the target text information is played at the same time, so that a user can directly obtain the text information through the text voice, the situation that the text information cannot be read in time when other tasks are executed is avoided, the user can be ensured to obtain the text information, the utilization rate of text resources is further improved, and the reading efficiency is improved.
In one embodiment, dynamically displaying the target text information in text form while playing the target text information in speech form in a floating window includes:
when the highlight text does not exist in the floating window, the played voice text in the target text information is highlighted in the floating window. When there is a highlighted text in the floating window, the played voice text in the highlighted text is displayed differently from the highlighted text.
The highlighted text refers to the text after being highlighted, and the corresponding text is highlighted, for example, a background color different from the normal text, a font size different from the normal text, a font color different from the normal text, and the like may be set. Played speech text refers to text that has been played through speech.
Specifically, the terminal judges whether the text in the floating window is highlighted, when no text in the floating window is highlighted, the terminal indicates that the highlighted text does not exist in the floating window, and at the moment, the terminal directly highlights the played voice text in the target text information in the floating window, namely, the text of which the voice is played in the floating window is highlighted, so that the text is indicated to be played through the voice. When the text in the floating window is highlighted, the existence of the highlighted text in the floating window is indicated, and the terminal displays the played voice text in the highlighted text in a distinguished manner from the highlighted text. Wherein, the distinguishing display means that the played voice text is further highlighted, namely, the played voice text is distinguished from the highlighted text and the common text. For example, a background color different from the highlighted text, a font size different from the highlighted text, a font color different from the highlighted text, and the like may be set.
In a specific embodiment, as shown in fig. 12, a schematic diagram is shown for displaying voice playing and highlighting text in a distinguishing manner, wherein the middle behavior highlights the text corresponding to the line. The text and the voice in the white area 1202 are played, the text in the white area 1202 is displayed differently from the text in the highlight line, the background color is set to be white, the font is black, the background color of the other highlight text in the highlight line is black, and the font is white. The text which is played by voice in the highlight text can be displayed differently from other highlight text, and the use of a user is facilitated.
In the above embodiment, the voice text has been played in the target text information by highlighting in the floating window when there is no highlighted text in the floating window. When the highlight text exists in the floating window, the played voice text in the highlight text is displayed in a distinguished mode with the highlight text, a user can conveniently find the current voice played text position, the utilization rate of the text resource is improved, and the reading efficiency can be improved.
In one embodiment, in response to an exit operation for a text information page, exiting the text information page and presenting a floating window includes:
Responding to the exit operation aiming at the text information page, and displaying a voice suspension option; responding to the selected operation of the voice suspension option, exiting the current information page and displaying a suspension window;
displaying the target text information in a floating window, including: and displaying the target text information in the floating window, and playing the voice corresponding to the target text information.
Wherein, the exit operation refers to an operation of exiting the text information page. The voice hover option is an option for instructing simultaneous voice playback when the target text information is displayed in text form in the hover window.
Specifically, when the user exits the text information page, the user can be reminded whether to perform suspension display or not, and the user can select the required options. I.e. the terminal detects the exit operation for the text information page, and in response to the exit operation, the terminal displays the voice suspension option, and may also display other options, such as a voice play option, a text display option, a direct exit option, and the like. The voice playing option is an option for indicating that only text voice playing is performed in the floating window, and the text display option is an option for indicating that only text is displayed in the floating window. The user can select the voice suspension option, at this time, the terminal detects the selection operation for the voice suspension option, responds to the response selection operation, exits the current information page and displays the suspension window, then displays the target text information in the suspension window, and plays the voice corresponding to the target text information.
In one embodiment, in response to an exit operation for a text message page, an option list is displayed through a pop-up window, wherein the option list comprises a voice play option, a voice hover option, a text display option, a direct exit option and the like. The option may then be selected in a pop-up window. And the terminal performs subsequent task execution according to the selected option, for example, when the voice playing option is selected, the terminal responds to the selected operation of the voice playing option, exits the current information page, displays a floating window and plays the target text information in a voice form through the floating window. When the voice suspension option is selected, the terminal responds to the selection operation of the voice suspension option, exits the current information page, displays a suspension window, displays target text information in a text form in the suspension window, and plays the target text information in a voice form. For example, when the text display option is selected, the terminal responds to the selection operation of the text display option, exits the current information page, displays a floating window, and displays the target text information in the floating window in a text mode. For example, when the direct exit option is selected, the terminal responds to the selected operation of the direct exit option, exits the current information page, and does not display the floating window.
In one embodiment, as shown in fig. 13, a schematic diagram of a voice suspension option is shown, specifically: when the user exits the text information page by a sliding operation from left to right, the terminal displays a voice suspension option 1302 and a text display option on the text information page in response to the exit operation for the text information page; 1304, the background color of the corresponding option is black when the option is selected, and the background color of the unselected option is white. The terminal responds to the selected operation of the voice suspension option 1302, exits the current information page and displays the suspension window, then displays the target text information in the suspension window, and plays the voice corresponding to the target text information. The user may also select the text display option 1304, and the terminal exits the current information page and displays a floating window in response to selection of the text display option 1304, and then displays the target text information in the floating window.
In the above embodiment, the voice suspension option is displayed by responding to the exit operation for the text information page; and responding to the selected operation for the voice suspension option, exiting the current information page and displaying a suspension window. When the voice suspension option is selected, the target text information is displayed in the suspension window in the text mode, and is played in the voice mode at the same time, so that error playing is avoided.
In one embodiment, after the target text information is displayed in the floating window, the method further comprises:
responding to page return operation aiming at the floating window, and displaying a text information page; or (b)
The floating window is closed in response to a closing operation for the floating window.
The page returning operation refers to an operation for returning to a text information page, the closing operation refers to an operation for closing a floating window, and the operation includes, but is not limited to, a voice operation, a manual operation, and the like, and the manual operation may be a click operation, a press operation, a slide operation, and the like.
Specifically, when the user needs to reenter the text information page, the user can directly perform the page return operation on the floating window, for example, the user can double-click the text information in the floating window or can click a page return button in the floating window. And the terminal responds to page returning operation aiming at the floating window and jumps to the text information page for displaying. At this time, the text information position shown in the text information page is the position in the floating window where the target text information is displayed. The terminal may also re-present the text information page, i.e. the text at the starting position in the text information page. When the user needs to close the floating window, the user can directly close the floating window through a closing button of the floating window. And when the terminal detects the closing operation of the floating window, responding to the closing operation, closing the floating window, and removing the floating window from the current page.
In one embodiment, in response to a page return operation for the floating window, a text information page is displayed starting with text marking a target text position, wherein the target text position is a marked position on the exiting text information page, and the target text position can be a text position where the text information page is currently read, can be a text position of interest to a user, or can be a position corresponding to the initial text in the text information page. In one embodiment, in response to a page return operation for the floating window, a text information page starting with the text displayed in the floating window is presented, i.e. upon return to the text information page, the terminal presents the text information page whose displayed text position is the position of the text displayed in the floating window in the text information page.
In a specific embodiment, the user may double-click the floating window to return to the text information page, for example, the user may double-click the floating window as shown in fig. 12, the terminal jumps to the text information page to display in response to the page return operation for the floating window, and the display position of the text information page is the current reading position of the text information in the floating window. And the user may close the floating window by clicking a close button in the floating window, for example, an "X" close button in the floating window of fig. 12, and when the user clicks the "X" close button, the terminal closes the floating window in response to a closing operation for the floating window. When the terminal responds to the closing operation of the floating window, the floating window can be closed by calling a removeView method of the Window manager.
In the embodiment, the terminal responds to the page returning operation aiming at the floating window to display the text information page, so that the text information page can be returned quickly when other tasks are executed, the returning operation time is saved, and the efficiency is improved. And the terminal can respond to the closing operation of the floating window, and the floating window is directly closed, so that the operation is convenient.
In one embodiment, dynamically displaying target text information in text form in a floating window includes:
acquiring a rolling display parameter and a window parameter of a floating window, and converting target text information into a subtitle text based on the rolling display parameter and the window parameter of the floating window; the caption text is scroll-presented in a hover window.
Where the scroll presentation parameters refer to parameters at the time of scroll presentation of text, including but not limited to scroll speed, dwell time, scroll distance, etc. Subtitle text refers to text in subtitle format, i.e., text in timestamp and corresponding text behavior format.
Specifically, the server acquires preset rolling display parameters and window parameters of the floating window, and then converts target text information into caption text by using the rolling display parameters and the window parameters of the floating window. Then scroll-displaying caption text in a floating window
In one embodiment, the server acquires text voice corresponding to the target text information, aligns the text voice with the caption text according to the time stamp, synthesizes the video, and plays the video in the floating window.
In the above embodiment, the efficiency of the presentation may be improved by converting the target text information into the subtitle text using the scroll presentation parameter and the window parameter of the floating window and then scroll presenting the subtitle text in the floating window.
In one embodiment, as shown in fig. 14, converting the target text information into subtitle text based on the scroll presentation parameter and the window parameter of the floating window includes:
step 1402, dividing the target text information based on window parameters of the floating window to obtain text information corresponding to each text line;
in step 1404, a play time point is calculated based on the scroll presentation parameter, so as to obtain a timestamp corresponding to each text line.
In step 1406, caption text is obtained based on the text information corresponding to each text line and the time stamp corresponding to each text line.
Specifically, the terminal may divide the target text information according to the window parameter of the floating window, such as the size of the window parameter and the size of the font of the target text information during display, so as to obtain text information corresponding to each text line. And then, calculating a playing time point by using the rolling display parameters to obtain the playing time period of the text message corresponding to each text line, and obtaining the corresponding time stamp. And then the terminal associates the text information of the text line with the corresponding time stamp to obtain the caption text. In a specific embodiment, the terminal may call a subtitle generating program to convert the target text information into srt file, wherein the subtitle generating program divides the target text information into text in units of lines by breaking the target text information. The scroll presentation parameters are then obtained, and using the scroll presentation parameters, which may include a speech rate parameter and a pause time, a time point at which each line of text is played is calculated to obtain a timestamp, and then a srt file is generated from the timestamp and the corresponding line of text. The terminal can also calculate and obtain a starting time point and an ending time point of playing, and associate the starting time point and the ending time point with corresponding text information to obtain the caption text.
Dynamically displaying caption text in a floating window, comprising: acquiring current playing time, and matching the current playing time with a time stamp in the caption text to obtain a matched time stamp; and highlighting the text information of the target text line corresponding to the matching time stamp in a floating window.
Specifically, the terminal rolls and displays the caption text in the floating window according to the rolling display parameters, and can match the time stamp of each line of text with the current playing time, and when the time stamp is consistent with the current playing time, the line of text is rolled and displayed in the floating window. And the terminal can also highlight the text in a floating window.
In the embodiment, the subtitle text is generated and then displayed in a rolling manner in the floating window, so that the utilization rate of text resources is improved, and the reading efficiency can be improved.
In one embodiment, dynamically displaying target text information in text form in a floating window includes:
and calling a text scrolling program resource through a preset text scrolling program interface, wherein the text scrolling program resource is used for acquiring text information in a text information page and generating by using text scrolling parameters based on the text scrolling program resource to scroll and display target text information in a floating window in a text mode.
The preset text scrolling program interface refers to a preset interface for calling the text scrolling program resource. The text scrolling program, when executed, may cause text to scroll through the floating window.
Specifically, the terminal calls a text scrolling program resource through a preset text scrolling program interface, and scrolls and displays target text information in a floating window in a text form based on the text scrolling program resource.
In one embodiment, when the text scrolling program is used for scrolling and displaying target text information in a text form in the floating window, when any line of text information in the floating window needs to be highlighted and displayed, the word spacing of the highlighted line text needs to be adjusted, and the content width of the highlighted line is shortened, so that normal display of the highlighted line text is ensured.
In a specific embodiment, the text scrolling program may be implemented by customizing the text video. Namely, scrolling of text is achieved by using a view. Scrollto () (method of scrolling content to a specified position) and a view. Scrollby () (method of setting a relative scroll bar position) method. The content in the floating window is moved through the two-View scrolling method, namely, the mScrollX (horizontal scrolling value) and mScrollY (vertical scrolling value) values in the View floating window are modified through the two-View scrolling method, and redrawing is triggered, and in the drawing process, canvas is translated through a canvas. When mScroll (X/Y) value is negative, the content will shift right down; when msrol (X/Y) is positive, then the content will pan up to the left, while the position of the hover window itself will not change. The terminal may also modify the offset according to the detected finger sliding distance and call a scroll method to scroll text information in the floating window and then process the boundary of the scroll content. I.e. text information in the hover window can also be scrolled by hand. The terminal detects the sliding operation of the hand in the floating window, acquires the sliding distance, calculates the offset according to the sliding distance, and then uses the offset to determine the rolling distance and the position of the highlight line during rolling.
In the embodiment, the text scrolling program resource is called through the preset text scrolling program interface, and the target text information is displayed in the floating window in a scrolling mode based on the text scrolling program resource, so that the text can be displayed in the floating window in an automatic scrolling mode, the utilization rate of the text resource is improved, and the reading efficiency can be improved.
In a specific embodiment, as shown in fig. 15, a schematic diagram of a text display method is provided, which specifically includes the following steps:
in step 1502, a marking option is displayed in response to a triggering operation for a target text position in the text information page, and the target text position is marked in response to a selecting operation for the marking option.
In step 1504, a voice suspension option is displayed in response to an exit operation for the text information page, and the current information page is exited to display the first target page in response to a selected operation for the voice suspension option.
Step 1506, displaying a first target page, displaying a floating window on the first target page, displaying text information starting from a text corresponding to the target text position in the floating window with at least two texts, highlighting the text information corresponding to the target text line in the floating window, and playing a voice corresponding to the text information starting from a text corresponding to the target text position.
Step 1508, in response to the jump operation for the second target page, displaying the second target page, and floating and displaying a floating window on the second target page, and keeping the text information in the floating window dynamic while keeping the corresponding voice playing.
In step 1510, the dynamic presentation of the target text information is stopped in response to a pause operation for the target text information in the floating window. And responding to the acceleration operation aiming at the target text information in the floating window, and accelerating the dynamic display of the target text information. And stopping playing the target text information in response to a pause operation for voice playing in the floating window. And responding to page return operation aiming at the floating window, and displaying the text information page.
In a specific embodiment, as shown in fig. 16, a schematic diagram of a text display framework is provided, and specifically includes the following steps: in the news reading platform, a user reads news information long texts on the news reading platform through a terminal. At this time, when the user wants to execute other tasks through the terminal, the user can mark the current reading progress on the current news page, that is, set a mark symbol at the current reading position. And when the mark is not available, the terminal judges based on the news text, and the first word at the upper left corner in the text is obtained as the current reading position. And then, the terminal can upload all the news texts after the marking position to a server, and the server receives the news texts to obtain text resources of the voice to be converted, which can be SRT subtitle files. And then the server acquires various reading speeds and other relevant parameters, and calls an API (application program interface) for converting the third-party text into voice, and the API is used for converting the news text into voice to obtain the complete audio corresponding to the news text. And then the server matches the complete audio corresponding to the news text with the text resources corresponding to the news text, and synthesizes the video to obtain the target news text video. Or the text resource can be used for synthesizing a new text scrolling program, and then the server matches the complete audio with the text scrolling program to obtain the text scrolling program resource. The server then returns the target news text video or text scrolling program resource to the terminal. The terminal receives the target news text video or text scrolling program resource, and when the activation behavior is detected, namely the page exit operation is detected, the text display option and the voice suspension option are displayed first. When the user selects the voice suspension option, the current news page is exited. And the news platform calls a video floating window component to display a floating window, displays a target news text video or text scrolling program resource in the floating window, and plays a corresponding news text while scrolling the news text in the floating window, wherein when the news text is scrolled, text lines corresponding to the current time can be acquired, then the text height of each line is calculated, then the product of the number of the text lines in the floating window and the text height of each line is calculated, the text scrolling height corresponding to the text lines of the floating window is obtained, then the preset scrolling speed is acquired, and the scrolling time can be calculated by using the scrolling height and the scrolling speed. Then, the user can read the news text in the floating window and execute other tasks, so that the reading continuity of the user can be ensured, the reading efficiency is improved, and the loss of the user can be reduced.
In a specific embodiment, the text display method can be applied to a browser, and a user searches browsing information by using the browser and then enters a searched text information page for information browsing. At this time, when the user needs to reply to the instant messaging message, the terminal detects a marking event for the current reading position in the text message page, and marks the current reading position. Then, in response to the exit operation for the text information page, a voice suspension option and a text display option are displayed, in response to the selected operation for the voice suspension option, the text information page is exited, and then the search page of the browser is returned. And displaying a floating window on a search page of the browser, dynamically displaying text information starting from the current reading position in the floating window, and simultaneously playing corresponding voice. At this time, the user needs to enter the instant messaging page to reply to the message. And the terminal responds to the exit operation of the search page of the browser and displays the main interface of the terminal system, wherein the floating window is still floating on the current active page, namely the main interface, so as to carry out dynamic and corresponding voice playing of the text information. And then the terminal responds to the starting operation of the instant messaging application in the main interface, starts the instant messaging application, and enters the main page of the instant messaging application, and at the moment, the floating window is still floating on the current active page, namely the main page of the messaging application to dynamically and correspondingly play the text information. And then the terminal responds to the entering operation of the reply page in the main page of the instant messaging application, and enters the reply page, and at the moment, the floating window is still floating on the current active page, namely the reply page, so as to carry out dynamic and corresponding voice playing of the text information. The user may then reply to the message in a reply page. When the dynamic display of the text information in the floating window needs to be suspended, the terminal responds to the suspension operation aiming at the text information in the floating window, and stops the dynamic display of the text information. When continuous dynamic display of the text information in the floating window is needed, the terminal responds to cancel pause operation aiming at the target text information in the floating window, and continues to dynamically display the text information. When the text information in the floating window needs to be dynamically displayed in an accelerating way, the terminal responds to the accelerating operation aiming at the target text information in the floating window, and the text information is dynamically displayed in an accelerating way. When the text information in the floating window needs to be displayed in a normal dynamic mode, the terminal responds to the canceling acceleration operation aiming at the target text information in the floating window, and the text information is displayed in a dynamic mode at a normal speed. And when the floating window is not beneficial to message reply at the position of replying page floating, the user can adjust the floating position of the floating window, namely the terminal responds to the triggering operation for the floating window to move to the top position, and the floating window is moved to the top position. The user may then reply to the message at the bottom of the reply page. And when the message reply is completed and the text information page needs to be returned, the user can directly return to the text information page through the floating window, namely, the terminal responds to the page return operation aiming at the floating window, exits the instant messaging application and returns to the browser to display the text information page, and at the moment, the text position in the text information page is the position of the dynamically displayed text in the floating window. Or when the message reply is completed and the text information page does not need to be returned, the user can directly close the floating window, namely the terminal responds to the closing operation of the floating window and directly closes the floating window, and at the moment, only the reply page is displayed in the terminal. The display of the text information in the text information page is carried out through the floating window, so that the interruption of information reading in the text information page during execution of other tasks can be avoided, and the utilization rate of text resources is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a text display device for realizing the above related text display method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the text display device provided below may be referred to the limitation of the text display method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 17, there is provided a text display 1700 comprising: an exit module 1702 and a hover presentation module 1704, wherein:
the exit module 1702 is configured to respond to an exit operation for the text information page, exit the text information page, and display a floating window;
the floating display module 1704 is configured to display target text information in a floating window, where the target text information is determined based on a target text of the text information page, and the target text is determined based on a text of a target location in text content of the text information page.
In one embodiment, the levitation presentation module 1704 includes:
and displaying the target text information in a floating window in a text mode, and simultaneously playing the target text information in a voice mode.
In one embodiment, the target text information is target text obtained from a text information page based on window parameters of a floating window.
In one embodiment, the levitation presentation module 1704 includes:
and the dynamic display module is used for dynamically displaying the target text information in the form of text in the floating window.
In one embodiment, the dynamic presentation module is further configured to dynamically display the target text information in a subtitle text format in a floating window.
In one embodiment, the floating window includes at least two text lines therein; the dynamic display module is also used for dynamically displaying the target text information in at least two texts in the floating window, and highlighting the text information corresponding to the target text line in the floating window.
In one embodiment, the dynamic display module is further configured to respond to a sliding operation for the target text information in the floating window, dynamically slide the target text information displayed in the floating window by a target sliding distance corresponding to the sliding operation, and continue to dynamically display the target text information.
In one embodiment, the dynamic presentation module is further configured to stop dynamically displaying the target text information in response to a pause operation for the target text information in the floating window; or in response to an acceleration operation for the target text information in the floating window, accelerating the dynamic display of the target text information.
In one embodiment, text display 1700 further comprises:
the marking module is used for responding to a marking event aiming at a target text position in the text information page and marking the target text position;
the floating display module 1704 is further configured to display text information starting with text corresponding to the target text position in the floating window.
In one embodiment, the marking module is further configured to display a marking option in response to a triggering operation for a target text position in the text information page; the target text position is marked in response to a selection operation for the marking option.
In one embodiment, the exit module 1702 is further configured to display a voice suspension option in response to an exit operation for a text information page; responding to the selected operation of the voice suspension option, exiting the current information page and displaying a suspension window;
the hover presentation module 1704 is further configured to display the target text information in a hover window in text form and play the target text information in speech form.
In one embodiment, the floating display module 1704 is further configured to display text information starting with text corresponding to the preset text position in the floating window.
In one embodiment, text display 1700 further comprises:
and the position moving module is used for responding to the triggering operation for moving the floating window to the target position and moving the floating window to the target position.
In one embodiment, text display 1700 further comprises:
the page jump module is used for displaying a first target page, wherein the first target page is the upper page of the text information page; suspending the suspension window on a first target page for displaying, and displaying target text information in the suspension window; and responding to the jump operation aiming at the second target page, displaying the second target page, and suspending the suspension window on the second target page for displaying.
In one embodiment, text display 1700 further comprises:
the setting module is used for responding to the authorization operation for the floating window and displaying a floating window setting page; and responding to the setting completion operation of the floating window setting page, acquiring the window parameters and the authorization information, and storing the authorization information and the window parameters of the floating window.
In one embodiment, the levitation presentation module 1704 includes:
and the voice playing unit is used for dynamically displaying the target text information in the form of text in the floating window and simultaneously playing the target text information in the form of voice.
In one embodiment, the voice playing unit is further configured to highlight the played voice text in the target text information in the floating window when the highlighted text does not exist in the floating window. When there is a highlighted text in the floating window, the played voice text in the highlighted text is displayed differently from the highlighted text.
In one embodiment, the voice playing unit further comprises:
the return module is used for responding to page return operation aiming at the floating window and displaying a text information page; or a closing module, configured to close the floating window in response to a closing operation for the floating window.
In one embodiment, the hover presentation module 1704 is further configured to obtain a scroll presentation parameter and a window parameter of the hover window, and convert the target text information into a subtitle text based on the scroll presentation parameter and the window parameter of the hover window; the caption text is scroll-presented in a hover window.
In one embodiment, the floating display module 1704 is further configured to divide the target text information based on a window parameter of the floating window, so as to obtain text information corresponding to each text line; calculating a playing time point based on the rolling display parameters to obtain time stamps corresponding to the text lines; acquiring caption text based on text information corresponding to each text line and time stamps corresponding to each text line;
the suspension display module 1704 is further configured to obtain a current playing time, and match the current playing time with a timestamp in the subtitle text to obtain a matched timestamp; and highlighting the text information of the target text line corresponding to the matching time stamp in a floating window.
In one embodiment, the hover presentation module 1704 is further configured to invoke a text scrolling program resource through the preset text scrolling program interface, where the target text information is scrolled in text form in the hover window based on the text scrolling program resource, the text scrolling program resource being a program resource that obtains the text information in the text information page and generates using the text scrolling parameters.
The various modules in the text display device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 18. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a text presentation method. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, wherein the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 18 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (25)

1. A method of text presentation, the method comprising:
responding to an exit operation for a text information page, exiting the text information page and displaying a floating window;
and displaying target text information in the floating window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
2. The method of claim 1, wherein the presenting the target text information in the floating window comprises:
and displaying the target text information in the floating window in a text mode, and simultaneously playing the target text information in a voice mode.
3. The method of claim 1, wherein the presenting the target text information in the floating window comprises:
and playing the target text information in the floating window in the form of voice.
4. The method of claim 1, wherein the target text information is target text obtained from the text information page based on window parameters of the floating window.
5. The method of claim 1, wherein the presenting the target text information in the floating window comprises:
and dynamically displaying the target text information in the floating window in the form of text.
6. The method of claim 5, wherein dynamically displaying the target text information in text form in the floating window comprises:
and dynamically displaying the target text information in a caption text format in the floating window.
7. The method of claim 5, wherein the floating window includes at least two text lines therein;
the dynamic display of the target text information in the floating window in the form of text comprises the following steps:
and displaying the target text information in the floating window in a rolling way by the at least two text lines, and highlighting the text information corresponding to the target text lines in the floating window.
8. The method of claim 5, wherein dynamically displaying the target text information in text form in the floating window comprises:
and responding to the sliding operation of the target text information in the floating window, rolling the target text information displayed in the floating window by a target sliding distance corresponding to the sliding operation, and continuing to roll and display the target text information.
9. The method of claim 5, wherein after dynamically displaying the target text information in text form in the floating window, further comprising:
responding to a pause operation for target text information in the floating window, and stopping dynamically displaying the target text information; or (b)
And responding to the acceleration operation aiming at the target text information in the floating window, and accelerating the dynamic display of the target text information.
10. The method of claim 1, further comprising, prior to the responding to the exit operation for the text information page, exiting the text information page and presenting a floating window:
marking a target text position in the text information page in response to a marking event for the target text position;
displaying the target text information in the floating window comprises the following steps:
and displaying text information starting from the text corresponding to the target text position in the floating window.
11. The method of claim 10, wherein the marking the target text location in the text information page in response to a marking event for the target text location comprises:
responding to triggering operation aiming at a target text position in the text information page, and displaying a marking option;
and marking the target text position in response to a selection operation for the marking option.
12. The method of claim 10, wherein the responding to the exit operation for a text message page, exiting the text message page and presenting a floating window, comprises:
Responding to the exit operation aiming at the text information page, and displaying a voice suspension option;
responding to the selected operation aiming at the voice suspension option, exiting the current information page and displaying a suspension window;
the displaying the target text information in the floating window comprises the following steps:
and displaying the target text information in the floating window in a text mode, and playing the target text information in a voice mode.
13. The method of claim 1, wherein presenting the target text information in the floating window comprises:
and displaying text information starting from the text corresponding to the preset text position in the floating window.
14. The method of claim 1, wherein after the displaying the target text information in the floating window, further comprising:
and responding to a triggering operation for moving the floating window to a target position, and moving the floating window to the target position.
15. The method according to claim 1, characterized in that the method further comprises:
the text information page is exited, and a first target page is displayed, wherein the first target page is the last level page of the text information page;
Suspending the suspension window on the first target page for displaying, and displaying target text information in the suspension window;
and responding to the jump operation aiming at the second target page, displaying the second target page, and suspending the suspension window on the second target page for displaying.
16. The method according to claim 1, characterized in that the method further comprises:
the text information page is exited, a third target page is displayed, the third target page is a page displayed after the application program to which the text information page belongs is exited, and each application program is displayed in the third target page;
suspending the suspension window on the third target page for displaying, and displaying target text information in the suspension window;
and responding to the starting operation of the target application program in the third target page, displaying the target application program page, and suspending the suspension window on the target application program page for displaying.
17. The method of claim 1, further comprising, prior to the responding to the exit operation for the text information page, exiting the text information page and presenting a floating window:
Responding to the authorization operation aiming at the floating window, and displaying a floating window setting page;
and responding to the setting completion operation of the floating window setting page, acquiring window parameters and authorization information, and storing the authorization information and the window parameters of the floating window.
18. The method according to any one of claims 1-17, wherein displaying the target text information in the floating window comprises:
and dynamically displaying the target text information in the floating window in a text mode, and simultaneously playing the target text information in a voice mode.
19. The method of claim 18, wherein dynamically displaying the target text information in text form while simultaneously playing the target text information in speech form in the floating window comprises:
when the highlight text does not exist in the floating window, the played voice text in the target text information is highlighted in the floating window;
and when the highlight text exists in the floating window, the played voice text in the highlight text is displayed in a distinguished mode from the highlight text.
20. The method of claim 1, wherein after the displaying the target text information in the floating window, further comprising:
Responding to page return operation aiming at the floating window, and displaying the text information page; or (b)
And closing the floating window in response to a closing operation for the floating window.
21. The method of claim 5, wherein dynamically displaying the target text information in text form in the floating window comprises:
acquiring a rolling display parameter and a window parameter of a floating window, and converting the target text information into a subtitle text based on the rolling display parameter and the window parameter of the floating window;
and scrolling and displaying the caption text in the floating window.
22. A text display device, the device comprising:
the exit module is used for responding to the exit operation aiming at the text information page, exiting the text information page and displaying a floating window;
and the suspension display module is used for displaying target text information in the suspension window, wherein the target text information is determined based on target text of the text information page, and the target text is determined based on text of a target position in text content of the text information page.
23. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 21 when the computer program is executed.
24. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 13.
25. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 21.
CN202310070148.1A 2023-01-11 2023-01-11 Text display method, device, computer equipment and storage medium Pending CN116974430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310070148.1A CN116974430A (en) 2023-01-11 2023-01-11 Text display method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310070148.1A CN116974430A (en) 2023-01-11 2023-01-11 Text display method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116974430A true CN116974430A (en) 2023-10-31

Family

ID=88477249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310070148.1A Pending CN116974430A (en) 2023-01-11 2023-01-11 Text display method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116974430A (en)

Similar Documents

Publication Publication Date Title
US11809700B2 (en) Device, method, and graphical user interface for managing folders with multiple pages
US20230152940A1 (en) Device, method, and graphical user interface for managing folders
US20230230306A1 (en) Animated emoticon generation method, computer-readable storage medium, and computer device
CN110275664B (en) Apparatus, method and graphical user interface for providing audiovisual feedback
CN105144071B (en) Method and electronic equipment for managing user interface
CN103415833B (en) The outer visual object of the screen that comes to the surface
KR101668398B1 (en) Translating user interaction with a touch screen into input commands
CN102033710B (en) Method for managing file folder and related equipment
US8624935B2 (en) Smart keyboard management for a multifunction device with a touch screen display
CN111970577B (en) Subtitle editing method and device and electronic equipment
DE202017104110U1 (en) Picture search query predictions through a keyboard
CN108924622B (en) Video processing method and device, storage medium and electronic device
DE112016001104T5 (en) Activation of virtual assistant
KR20160003112A (en) Managing real-time handwriting recognition
US10992622B2 (en) Method, terminal equipment and storage medium of sharing user information
WO2013097129A1 (en) Contact search method, device and mobile terminal applying same
US20230117213A1 (en) Page display method and electronic device
CN113783995A (en) Display control method, display control device, electronic apparatus, and medium
CN116974430A (en) Text display method, device, computer equipment and storage medium
US20210073458A1 (en) Comic data display system, method, and program
CN115437736A (en) Method and device for recording notes
CN112099694B (en) Desktop control processing method and device
CN112051946B (en) Document data display method, device, system, electronic equipment and storage medium
US20230089457A1 (en) Information processing method and apparatus, electronic device, and storage medium
WO2022252872A1 (en) Device control method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication