Display method and device for teleprompter and electronic equipment
Patent Information
- Application Number
- CN202211183943.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-09-27
Smart Images

Figure CN117834792B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart terminal technology, and in particular to a display method, device, and electronic device for a teleprompter. Background Technology
[0002] During video recording, if it is necessary to speak according to a prepared text, the teleprompter can display the text to be spoken, which helps with the video recording.
[0003] When a teleprompter displays text in a scrolling manner using methods such as floating windows, if the text is not clearly displayed, adjustments to font formatting, such as font size or character spacing, are necessary. In related technologies, if font formatting adjustments are made during the scrolling text display process, text jitter may occur, affecting user readability and thus hindering video recording. Summary of the Invention
[0004] The present invention aims to at least partially solve one of the technical problems in the related art.
[0005] Therefore, the first objective of this invention is to provide a display method for a teleprompter to avoid text jitter caused by font formatting adjustments.
[0006] The second objective of this invention is to provide a display device for a teleprompter.
[0007] The third objective of this invention is to provide an electronic device.
[0008] A fourth objective of this invention is to provide a non-transitory computer-readable storage medium.
[0009] The fifth objective of this invention is to provide a computer program product.
[0010] To achieve the above objectives, a first aspect of the present invention provides a display method for a teleprompter, comprising:
[0011] When the teleprompter scrolls through multiple lines of text, the word position index of at least one character in the first line of text that is currently in display is determined based on the scrolled distance and the height of the first line of the multiple lines of text.
[0012] In response to adjusting the font of the multi-line text, pause the scrolling display of the multi-line text;
[0013] Based on the character position index, determine the second text line containing the at least one character from the multi-line text after font formatting adjustment;
[0014] Based on the second line height of the multi-line text after font formatting adjustment, determine the target scrolling distance required to scroll to the second line of text.
[0015] The multi-line text with the adjusted font format is scrolled to the target scroll distance and then displayed.
[0016] The method of this invention pauses the scrolling display of text when adjusting the font format, and determines the target scrolling distance required for the line containing the character after the font format adjustment based on the character position index of the character currently being displayed before the font format adjustment. Then, it scrolls to the target scrolling distance and continues scrolling display, so that the currently displayed character remains in the same position before and after the font format adjustment. This solves the technical problem of text jitter caused by font format adjustment in the prior art, and can accurately locate the reading position and continue scrolling display from the reading position.
[0017] To achieve the above objectives, a second aspect of the present invention provides a display device for a teleprompter, comprising:
[0018] The first determining module is used to determine the word position index of at least one character in the first text line that is in the display state in the multi-line text, based on the scrolled distance and the first line height of the multi-line text, when the teleprompter is scrolling the display of multi-line text.
[0019] A pause module is used to pause the scrolling display of the multi-line text in response to adjusting the font of the multi-line text;
[0020] The second determining module is used to determine the second text line where the at least one character is located from the multi-line text after the font format adjustment, based on the character position index.
[0021] The adjustment module is used to determine the target scrolling distance required to scroll to the second line of text based on the second line height of the multi-line text after the font format adjustment.
[0022] The display module is used to scroll the multi-line text with the adjusted font format to the target scroll distance for display.
[0023] The device of this invention pauses the scrolling display of text when adjusting the font format, and determines the target scrolling distance required for the line where the character is located after the font format adjustment based on the character position index of the character being displayed before the font format adjustment. Then, it scrolls to the target scrolling distance and continues scrolling display, so that the currently displayed character remains in the same position before and after the font format adjustment. This solves the technical problem of text jitter caused by font format adjustment in the prior art, and can accurately locate the reading position and continue scrolling display from the reading position.
[0024] To achieve the above objectives, a third aspect of the present invention provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect described above.
[0025] To achieve the above objectives, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, wherein the computer instructions are configured to cause the computer to perform the method described in the first aspect.
[0026] To achieve the above objectives, a fifth aspect of the present invention provides a computer program product that, when executed by a processor, implements the method described in the first aspect.
[0027] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0028] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0029] Figure 1 This is a flowchart illustrating a method for displaying a teleprompter according to an embodiment of the present invention.
[0030] Figure 2 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention;
[0031] Figure 3 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention;
[0032] Figure 4 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention;
[0033] Figure 5 This is a schematic diagram of the structure of a display device for a teleprompter provided in an embodiment of the present invention;
[0034] Figure 6 This is a schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention;
[0035] Figure 7 This is a schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention;
[0036] Figure 8 A schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention; and
[0037] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0038] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0039] The following description, with reference to the accompanying drawings, describes a display method and apparatus for a teleprompter according to embodiments of the present invention.
[0040] Figure 1 This is a flowchart illustrating a method for displaying a teleprompter according to an embodiment of the present invention.
[0041] In related technologies, teleprompters display text in a scrolling manner using methods such as floating windows. If the text cannot be clearly displayed during scrolling, the font needs to be adjusted. However, if font formatting adjustments are made during the scrolling process, text jitter can occur, affecting user readability and thus hindering video recording. The aforementioned font formatting adjustments refer to adjustments that affect the size and shape of the text, such as adjustments to the font, font size, and character spacing.
[0042] To address this issue, embodiments of the present invention provide a display method for a teleprompter. By pausing the scrolling display of text when adjusting the font format, and determining the target scrolling distance required for the line containing the character after the font format adjustment based on the character position index of the character currently being displayed before the font format adjustment, the method scrolls to the target scrolling distance and continues scrolling display. This ensures that the currently displayed character remains in the same display position before and after the font format adjustment, thus solving the technical problem of text jitter caused by font format adjustment in the prior art.
[0043] like Figure 1 As shown, the display method for the teleprompter includes the following steps:
[0044] Step 101: When the teleprompter is scrolling through multiple lines of text, determine the word position index of at least one character in the first line of text that is currently displayed in the multi-line text, based on the scrolled distance and the height of the first line of the multi-line text.
[0045] The scroll distance is the distance required to scroll from the first line of the multi-line text to the first line of text that is currently displayed.
[0046] The character position index indicates the relative order of a character within a multi-line text. This embodiment does not limit the specific implementation of the character position index.
[0047] For example, the character order in multi-line text can be used as a word position index. When a teleprompter displays multi-line text in a scrolling manner, the line order of the first line of text currently displayed can be determined based on the scrolled distance and the height of the first line. Based on the line order, the number of characters in a single line, and the character order of at least one character in the first line within that line, the character order of that at least one character in the first line within the multi-line text can be determined.
[0048] For example, the line order of a character in a multi-line text, and the character order within that line, are encoded and used as word position indices. When a teleprompter displays multi-line text in a scrolling manner, the line order of the first line of text currently displayed can be determined based on the scrolled distance and the height of the first line. This line order, along with the character order of at least one character within that first line, is then encoded and used as word position indices.
[0049] In this embodiment, at least one character in the first text line can be the first character of the first text line; alternatively, at least one character in the first text line can be both the first and last character of the first text line. Those skilled in the art will also recognize that the position of this at least one character in the first text line does not affect the specific implementation of this embodiment, and various position settings are all within the scope of this embodiment.
[0050] Teleprompters display multiple lines of text in a scrolling manner, keeping the part the user needs to read relatively fixed in a certain area of the screen. This avoids the user's eyes drifting when reading line by line, which can result in poor video quality.
[0051] During the teleprompter's scrolling display, a fixed number of text lines are typically displayed (i.e., the portion the user needs to read), while the remaining text lines are kept out of view as portions not needed for the time being. The fixed number of lines can be a pre-configured default value, which can be adjusted by the user; this embodiment does not impose any limitations on this.
[0052] To clearly highlight the parts that users need to read, text lines that are currently displayed can be highlighted by changing their color, font weight, or other means.
[0053] It should be noted that various display styles can be pre-configured for parameters such as highlighting, color changing, and font weight to meet different style requirements. For example, when the teleprompter is used with a regular camera application interface, only the color can be changed. As another example, when the teleprompter is used with a Leica-style camera application interface, both the color and font weight can be changed.
[0054] Step 102: In response to adjusting the font format of the multiline text, pause the scrolling display of the multiline text.
[0055] Font formatting includes font style, font size, character spacing, and font shape, and can also include the layout of multi-line text.
[0056] Adjusting font formatting often changes the display area required for individual characters, necessitating the reformatting of characters across multiple lines of text. When a teleprompter scrolls through multi-line text, if font formatting adjustments are needed, related technologies reconfigure the font format for each character individually. This process involves multiple character position adjustments, resulting in a jittery appearance that negatively impacts the reading experience.
[0057] In this embodiment, to avoid this situation, when a request to adjust the font format of multi-line text is received, the scrolling display of the multi-line text can be paused, so that the front end of the teleprompter displays the content displayed when the scrolling is paused, so that the font format of the multi-line text can be reconfigured in the teleprompter background.
[0058] Step 103: Based on the character position index, determine the second text line containing at least one character from the multi-line text with font formatting adjusted.
[0059] As mentioned earlier, the character position index can be used to indicate the relative sorting position of the corresponding character in multi-line text. Since this relative sorting position will not change due to font formatting adjustments, the corresponding character can be found in the multi-line text after font formatting adjustments based on the character position index, and then the second text line where the at least one character is located can be determined from the multi-line text after font formatting adjustments.
[0060] Step 104: Determine the target scroll distance required to scroll to the second line of text based on the height of the second line of the multi-line text after font formatting adjustments.
[0061] The target scroll distance is the scroll distance required to scroll from the first line of the multi-line text after the font formatting has been adjusted to the second line of text.
[0062] Based on the height of the second line of the multi-line text after font formatting adjustments, the distance between the second line of text and the first line of the multi-line text after font formatting adjustments can be calculated, and this distance can be used as the target scrolling distance.
[0063] Step 105: Scroll the multi-line text with the adjusted font format to the target scroll distance and continue scrolling.
[0064] After the multi-line text with adjusted font formatting is scrolled to the target scroll distance, it continues to scroll through the front of the teleprompter, thus avoiding the appearance of jittering characters that would affect the reading experience.
[0065] In this embodiment, when the teleprompter scrolls through multiple lines of text, the word position index of at least one character in the first line of text currently displayed is determined based on the scrolled distance and the height of the first line of text. In response to adjusting the font of the multiple lines of text, the scrolling is paused. Then, based on the word position index, the second line containing at least one character is determined from the multi-line text after font format adjustment. The target scrolling distance required to scroll to the second line is determined based on the height of the second line of text after font format adjustment, and the multi-line text after font format adjustment is scrolled to the target scrolling distance to continue scrolling. In this embodiment, by pausing the scrolling of text during font format adjustment and determining the target scrolling distance required for the line containing the character after font format adjustment based on the word position index of the character currently displayed before font format adjustment, and then scrolling to the target scrolling distance to continue scrolling, the currently displayed character remains in the same display position before and after font format adjustment. This not only solves the technical problem of text jitter caused by font format adjustment in the prior art but also accurately locates the reading position and allows scrolling to continue from the reading position.
[0066] To illustrate the complete process of a teleprompter from startup to display, this embodiment provides another method for displaying a teleprompter. Figure 2 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention.
[0067] like Figure 2 As shown, the method may include the following steps:
[0068] Step 201: In response to the teleprompter activation, obtain the multi-line text to be displayed.
[0069] The teleprompter can support multiple text acquisition methods, thereby enhancing the flexibility of acquisition. This embodiment does not limit the acquisition method.
[0070] One possible implementation is to retrieve multi-line text in response to input. This can be achieved using a text editor (EditText) control. As the user inputs, the prompter can count and display the current input amount in real time. If the maximum number of characters is exceeded, the user can be prompted that no more characters can be entered. For ease of management, the content of each input can be saved, and basic text editing functions such as undo and redo can be implemented.
[0071] As another possible implementation, in response to a text import operation, the selected file is retrieved via a file manager, parsed, and multi-line text is obtained. By invoking controls in the file manager, allowed file types can be selected, and the user is redirected to the file manager's file selection page. The file manager can then display only files matching the allowed file types. After the user selects the target file, its address is obtained. The target file is retrieved and parsed based on this address to obtain the multi-line text. To distinguish the different encoding formats that the target file may use, statistical methods can be employed to identify the encoding format and ultimately parse the text correctly. For Word documents (with the .doc or .docx extension), parsing can be performed using an Apache public library.
[0072] As another possible implementation, in response to text import operations, the selected file is retrieved via a file manager and parsed. In response to input operations, the parsed text is edited to obtain multi-line text. In one possible application scenario, the teleprompter and camera application work together, with the camera application running in the foreground and the teleprompter displayed as a floating window. After editing multi-line text, the user can click "save" to create a file in the camera application's directory, saving the text content, which can then be easily read and displayed by the teleprompter's floating window.
[0073] Optionally, since only the set target number of lines is usually displayed when scrolling ends, in order to ensure that the last line of text in the multi-line text is in the center of the floating window for easy reading by the user when scrolling ends, this embodiment adds a blank line at the end of the acquired multi-line text based on the difference between the number of displayable lines in the display area and the set target number of lines.
[0074] Step 202: The multi-line text is scrolled through the teleprompter's floating window so that the text of a set number of lines is displayed while the other lines are not displayed.
[0075] One possible implementation is to use Android's native ScrollView class to achieve text scrolling.
[0076] Step 203: When the teleprompter is scrolling through multiple lines of text, determine the line position index of the first line of text in the displayed text based on the scrolled distance and the height of the first line of the multiple lines of text.
[0077] As one possible implementation, when the teleprompter displays multi-line text in a scrolling manner, the line order of the first line of text currently displayed can be determined based on the scrolled distance and the height of the first line of the multi-line text. Based on this line order, the line position index of the first line of text currently displayed is determined.
[0078] For example, the ratio of the scrolled distance to the height of the first line can be used as the line position index of the first text line.
[0079] Step 204: Determine the word position index for at least one character in the first text line at a set position based on the line position index and the number of characters contained in at least one line of text in the multi-line text.
[0080] Based on the number of characters in at least one line of the multi-line text and the line position index, determine the number of characters from the first line to the first line of the multi-line text. Based on this number of characters and the set position of at least one character whose position index to be determined is located in the first line of the text, determine the word position index of at least one character at the set position in the first line of the text.
[0081] Step 205: Highlight at least some characters in the first text line based on the character position index.
[0082] One possible implementation is that the first text line consists of two or more lines. At least one character with a position index is determined to be the first character of the first line and the last character of the second line. The first character of the first line, the last character of the second line, and all characters in between can be highlighted. Specifically, when configuring highlighting, the character position index can be used to indicate the sorting position of the characters to be highlighted.
[0083] Step 206: In response to adjusting the font of the multiline text, pause the scrolling display of the multiline text.
[0084] Step 207: Based on the character position index, determine the second text line containing at least one character from the multi-line text with font formatting adjusted.
[0085] Step 208: Determine the target scroll distance required to scroll to the second line of text based on the second line height of the multi-line text after font formatting adjustments.
[0086] Step 209: Scroll the multi-line text with the adjusted font format to the target scroll distance and continue scrolling.
[0087] For steps 206 to 209, please refer to steps 102 to 105 in the previous embodiment, which will not be repeated in this embodiment.
[0088] In this embodiment, when the teleprompter scrolls and displays multiple lines of text, the line position index of the first line of text currently in display is determined based on the scrolled distance and the height of the first line of text. Then, based on the line position index, the character position index of at least one character in the first line of text is determined, so that the character can be located based on the character position index after subsequent font formatting adjustments. In this embodiment, by pausing the scrolling display of text during font formatting adjustments and determining the target scrolling distance required for the line containing the character after font formatting adjustments based on the character position index of the character currently displayed before the font formatting adjustments, the text continues scrolling to the target scrolling distance. This ensures that the currently displayed character remains in the same display position before and after the font formatting adjustments, not only solving the technical problem of text jitter caused by font formatting adjustments in the prior art, but also accurately locating the reading position and continuing scrolling from that position.
[0089] In scenarios where adjustments to the teleprompter's floating window are required, this invention also proposes another method for displaying the teleprompter. Figure 3 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention.
[0090] Step 301: Display multiple lines of text in a floating window via the teleprompter.
[0091] When any software requires a teleprompter to be launched, the teleprompter's floating window can be invoked based on user actions, thereby displaying multiple lines of text in a scrolling manner based on the teleprompter's floating window.
[0092] In one possible scenario, the teleprompter's floating window needs to be movable within a certain range to provide a better viewing experience. Responding to user dragging of the floating window, it can be moved within this movable range. To avoid the floating window overlapping with other UI controls and causing obstruction, the movable range can be updated in real-time based on the areas where no UI controls are displayed.
[0093] If at least a portion of the floating window is detected to have exceeded the movable range during the drag operation, the floating window can only be moved to the boundary of the movable range.
[0094] If the dragging operation causes the floating window to exceed its movable range, the movement of the floating window will be prohibited, and the floating window will be restored to its position before the dragging operation.
[0095] If the floating window remains within the movable range during the dragging operation, you can call the relevant methods of the view, such as the layout method, to move the floating window.
[0096] Step 302: In response to the drag operation performed on the first corner point of the teleprompter's floating window, the size of the floating window is changed by using the second corner point diagonally opposite the first corner point as a fixed anchor point.
[0097] For example, dragging the bottom left corner of the teleprompter window will anchor the top right corner. In response to dragging the bottom left corner, the top right corner of the window will remain fixed. Dragging the bottom left corner will change its display position, thus resizing the window.
[0098] It should be noted that changing the size of the floating window can be done while maintaining a certain aspect ratio, or the aspect ratio can be variable. This embodiment does not limit this.
[0099] Step 303: Determine the limited display area based on the area where no UI controls are displayed.
[0100] Responding to the user's dragging action on the first corner of the floating window, the size of the floating window can be adjusted by dragging it within a defined display area. To avoid the floating window overlapping with other UI controls and causing obstruction, the defined display area can be updated in real time based on the areas where no UI controls are displayed.
[0101] One possible approach is to register a listener to monitor the appearance or disappearance of UI controls, and then update the defined display area when the event is detected.
[0102] It should be noted that step 303 can be executed before step 304, and is not limited to being executed after steps 301 and 302. It can be executed in parallel with steps 301 and 302, or before steps 301 and 302.
[0103] Step 304: If the floating window exceeds the limited display area or the distance between it and the limited display area is less than a threshold, a prompt will be issued.
[0104] The system detects whether the zoomed-out or zoomed-out position of the floating window exceeds the defined display area. If it does not exceed the limit, the width and height of the floating window are zoomed out / zoomed according to the distance moved in the width and height directions by the user's dragging operation. If the user's dragging operation causes part of the floating window to exceed the defined display area, the floating window can only be adjusted to the boundary position of the defined display area. If the user's dragging operation causes all four sides of the floating window to exceed the defined display area, a prompt can be given to the user, which can include at least one of the following: vibration, voice, or light. Optionally, if the floating window exceeds the defined display area or the distance between it and the defined display area is less than a threshold, a haptic prompt can be given to the user by calling the vibration interface (MIUIX's performModeSwitch method).
[0105] In this embodiment, since the interface displays not only the teleprompter's floating window but also other UI controls, to avoid overlap between the floating window and these UI controls, a limited display area can be determined based on the areas where no UI controls are displayed, allowing the floating window to be displayed only within this limited area. If the floating window exceeds the limited display area or the distance between it and the limited display area is less than a threshold, a prompt is given to the user.
[0106] In scenarios where the scrolling speed of the teleprompter's floating window needs to be adjusted, this invention also proposes another method for displaying the teleprompter. Figure 4 This is a flowchart illustrating another method for displaying a teleprompter provided in an embodiment of the present invention.
[0107] Step 401: Determine the target scrolling speed for the scrolling display based on the line height of the multi-line text.
[0108] The target scrolling speed is a scrolling speed suitable for most scenarios and user groups. The scrolling distance per minute (i.e., scrolling speed) is the number of lines scrolled per minute multiplied by the line height.
[0109] For example, under normal circumstances, a person speaks about 180-200 words per minute. The floating window defaults to 12 words per line, which means it scrolls about 16 lines per minute.
[0110] With a fixed scroll step size, you can scroll 1px at a time. Assuming a time interval of 1 minute, the number of scrolls is the scroll distance divided by the scroll step size, and the scroll cycle is 50ms / time. Changing the scroll speed requires a corresponding change to the scroll cycle, as shown below:
[0111] Scrolling cycle = 60000 / number of scrolled rows per minute / row height. The default target scrolling speed corresponds to a scrolling cycle of 50ms / time.
[0112] In one scenario, the target scrolling speed for displaying the multi-line text before font formatting is determined based on the height of the first line of the multi-line text before font formatting adjustment.
[0113] In another scenario, the font size can be adjusted using the Android system's native `setTextSize()` method. The target scrolling speed for displaying the multi-line text with adjusted font formatting is determined based on the height of the second line after the font formatting adjustment.
[0114] It should be noted that when adjusting the font size, users do not need to know the actual font size value; they only need to adjust the font size level through the control. The font size range (i.e., the maximum and minimum font sizes) and recommended values can be pre-configured. Given the font size value, the font size level is determined using the following formula:
[0115] Font size level = minimum level value + (maximum level value - minimum level value) × (font size value - minimum value) / (maximum font size value - minimum font size value).
[0116] Given the font size level, the font size value can be determined using the following formula:
[0117] Font size value = minimum font size + (font size level - minimum level) × (maximum font size - minimum font size) / (maximum level - minimum level).
[0118] Step 402: Display the first level corresponding to the target scrolling speed through the target control, and scroll multiple lines of text at the target scrolling speed through the teleprompter's floating window.
[0119] Based on the target control, multiple selectable scrolling speed levels can be displayed, as well as the first level corresponding to the currently recommended target scrolling speed.
[0120] The scrolling speed range (i.e., maximum and minimum speed) and recommended values can be pre-configured. Among the various selectable scrolling speed levels, the lowest scrolling speed level corresponds to a scrolling speed that balances scrolling experience with the slowest user speech rate of 11 lines / min, while the fastest scrolling speed level corresponds to a scrolling speed of 120 lines / min that is acceptable to the human eye. The wide adjustment range allows users to find their ideal scrolling speed.
[0121] Given the rolling speed value, the rolling speed grade is determined using the following formula:
[0122] Scrolling speed level = minimum scrolling speed + (maximum level - minimum level) × (scrolling speed value - minimum speed) / (maximum speed - minimum speed).
[0123] Given the rolling speed rating, the rolling speed value is determined using the following formula:
[0124] Scroll speed value = minimum speed + (scroll speed level - minimum level) × (maximum speed - minimum speed) / (maximum level - minimum level).
[0125] Step 403: In response to the operation on the target control, determine the adjusted second level.
[0126] Users do not need to know the scrolling speed; they only need to adjust the scrolling speed level based on the target control to determine the adjusted second level.
[0127] It should be noted that the target control can be a drag bar or other control forms that are easy to operate. In this embodiment, the form of the target control is not limited.
[0128] Step 404: Adjust the scrolling speed of the scrolling display according to the second level.
[0129] In related technologies, teleprompters typically need to integrate AI algorithms to automatically recognize the user's speaking speed. However, because AI algorithms require certain computing resources and research and development costs, the overall cost is relatively high.
[0130] In this embodiment, instead of using AI algorithms to identify the user's speaking speed, the user adjusts the speed as needed, saving costs. Simultaneously, a pre-configured correspondence between line height and recommended target scrolling speed is established, allowing scrolling at the recommended target speed based solely on the line height of multiple lines of text. If the user needs to adjust the scrolling speed, they don't need to manually set the value; they only need to adjust the level via the target control, so the teleprompter adjusts the scrolling speed based on the adjusted second level.
[0131] To achieve the above embodiments, the present invention also proposes a display device for a teleprompter.
[0132] Figure 5 This is a schematic diagram of a display device for a teleprompter provided in an embodiment of the present invention.
[0133] like Figure 5 As shown, the display device for the teleprompter includes: a first determining module 51, a pause module 52, a second determining module 53, a first adjusting module 54, and a display module 55.
[0134] The first determining module 51 is used to determine the word position index of at least one character in the first text line that is in the display state in the multi-line text, based on the scrolled distance and the height of the first line of the multi-line text, when the teleprompter is scrolling the display of multi-line text.
[0135] Pause module 52 is used to pause the scrolling display of multi-line text in response to adjusting the font of multi-line text;
[0136] The second determining module 53 is used to determine the second text line containing at least one character from the multi-line text after font formatting adjustment, based on the character position index.
[0137] The first adjustment module 54 is used to determine the target scrolling distance required to scroll to the second text line based on the second line height of the multi-line text after the font format adjustment.
[0138] Display module 55 is used to scroll multi-line text with adjusted font formatting to the target scroll distance for display.
[0139] Furthermore, in one possible implementation of this invention, the first determining module 51 includes:
[0140] The first determining unit is used to determine the line position index of the first text line in the display state based on the scrolled distance and the height of the first line of the multi-line text when the teleprompter is scrolling.
[0141] The second determining unit is used to determine the word position index of at least one character in the first text line based on the line position index.
[0142] Furthermore, in one possible implementation of this invention, the second determining unit is specifically used for:
[0143] Based on the line position index and the number of characters contained in at least one line of text in the multi-line text, determine the word position index of at least one character at a set position in the first line of text.
[0144] It should be noted that the foregoing explanation of the display method embodiment for the teleprompter also applies to the display device for the teleprompter in this embodiment, and will not be repeated here.
[0145] The device of this invention pauses the scrolling display of text when adjusting the font format, and determines the target scrolling distance required for the line where the character is located after the font format adjustment based on the character position index of the character being displayed before the font format adjustment. Then, it scrolls to the target scrolling distance and continues scrolling display, so that the currently displayed character remains in the same position before and after the font format adjustment. This solves the technical problem of text jitter caused by font format adjustment in the prior art, and can accurately locate the reading position and continue scrolling display from the reading position.
[0146] Based on the above embodiments, this invention also provides a possible implementation of a display device for a teleprompter. Figure 6This is a schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention. Based on the previous embodiment, the display device for a teleprompter further includes: an acquisition module 56, an addition module 57, and a highlight display module 58.
[0147] The acquisition module 56 is used to acquire multi-line text in response to an input operation; and / or, in response to a text import operation, acquire the selected file through the file manager, parse the file, and acquire multi-line text.
[0148] Add module 57 to add blank lines at the end of the acquired multi-line text based on the difference between the number of displayable lines in the display area and the set target number of lines.
[0149] The highlighting module 58 is used to highlight at least some characters in the first text line based on the character position index.
[0150] Based on the above embodiments, this invention also provides a possible implementation of a display device for a teleprompter. Figure 7 This is a schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention. Based on the previous embodiment, the display device for a teleprompter further includes: a processing module 59, a third determining module 60, and a prompting module 61.
[0151] The first processing module 59 is used to respond to a drag operation performed on the first corner point of the teleprompter's floating window, and to change the size of the floating window by using the second corner point diagonally opposite the first corner point as a fixed anchor point.
[0152] The third determining module 60 is used to determine the limited display area based on the area where no UI controls are displayed.
[0153] The prompt module 61 is used to provide a prompt when the floating window exceeds the limited display area or the distance between the floating window and the limited display area is less than a threshold; the prompt includes at least one of the following: vibration, voice, and light.
[0154] Based on the above embodiments, this invention also provides a possible implementation of a display device for a teleprompter. Figure 8 This is a schematic diagram of another display device for a teleprompter provided in an embodiment of the present invention. Based on the previous embodiment, the display device for a teleprompter further includes: a fourth determining module 62, a second processing module 63, a fifth determining module 64, and a second adjusting module 65.
[0155] The fourth determining module 62 is used to determine, based on the first line height, the target scrolling speed for scrolling the multi-line text before font formatting adjustment; and / or, based on the second line height, the target scrolling speed for scrolling the multi-line text after font formatting adjustment.
[0156] The second processing module 63 is used to display the first level corresponding to the target scrolling speed through the target control, and to scroll and display multiple lines of text at the target scrolling speed through the floating window of the teleprompter.
[0157] The fifth determining module 64 is used to determine the adjusted second level in response to the operation on the target control;
[0158] The second adjustment module 65 is used to adjust the scrolling speed of the scrolling display according to the second level.
[0159] To implement the above embodiments, the present invention also proposes an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the display method for a teleprompter proposed in any of the above embodiments of the present invention.
[0160] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. It should be noted that... Figure 9 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0161] like Figure 9 As shown, the electronic device may include: a housing 91, a processor 92, a memory 93, a circuit board 94, and a power supply circuit 95. The circuit board 94 is disposed inside the space enclosed by the housing 91, and the processor 92 and the memory 93 are disposed on the circuit board 94. The power supply circuit 95 is used to supply power to the various circuits or devices of the electronic device. The memory 93 is used to store executable program code. The processor 92 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 93, and is used to execute the display method for a teleprompter proposed in any of the above embodiments of the present invention.
[0162] For details on the specific execution process of the above steps by processor 92, and the steps further executed by processor 92 through running executable program code, please refer to the present invention. Figure 1-4 The description of the illustrated embodiments will not be repeated here.
[0163] To implement the above embodiments, the present invention also proposes a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the display method for a teleprompter proposed in any of the above embodiments of the present invention.
[0164] To implement the above embodiments, the present invention also proposes a computer program product, including a computer program that, when executed by a processor, implements the display method for a teleprompter proposed in any of the above embodiments of the present invention.
[0165] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0166] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0167] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.
[0168] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0169] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0170] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it includes one or a combination of the steps of the method embodiments.
[0171] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0172] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A display method for a teleprompter, characterized in that, Includes the following steps: When the teleprompter scrolls through multiple lines of text, the word position index of at least one character in the first line of text that is currently in display is determined based on the scrolled distance and the height of the first line of the multiple lines of text. In response to adjusting the font format of the multi-line text, pause the scrolling display of the multi-line text; Based on the character position index, determine the second text line containing the at least one character from the multi-line text after font formatting adjustment; Based on the second line height of the multi-line text after font formatting adjustment, determine the target scrolling distance required to scroll to the second line of text. The multi-line text with the adjusted font format is scrolled to the target scroll distance and then continues to be displayed. In response to a drag operation performed on a first corner point in the teleprompter's floating window, a second corner point diagonally opposite the first corner point is used as a fixed anchor point to change the size of the floating window: if the floating window exceeds a defined display area or the distance between it and the defined display area is less than a threshold, a prompt is given by vibration, voice, and / or light. The target scrolling speed for displaying the multi-line text is determined based on the line height of the multi-line text. The target control displays the first level corresponding to the target scrolling speed; In response to an operation on the target control, a second adjusted level is determined; The scrolling speed of the scrolling display is adjusted according to the second level.
2. The method according to claim 1, characterized in that, When the teleprompter scrolls through multiple lines of text, determining the word position index of at least one character in the first line of text currently displayed in the multi-line text, based on the scrolled distance and the height of the first line of the multi-line text, includes: When the teleprompter is scrolling, the line position index of the first text line in the display state is determined based on the scrolled distance and the first line height of the multi-line text. Based on the line position index, determine the word position index of at least one character in the first text line.
3. The method according to claim 2, characterized in that, Determining the word position index of at least one character in the first text line based on the line position index includes: Based on the line position index and the number of characters contained in at least one line of text in the multi-line text, determine the word position index of at least one character in the first text line that is at a set position.
4. The display method according to any one of claims 1-3, characterized in that, The method further includes: In response to an input operation, the multi-line text is retrieved; and / or, In response to a text import operation, the selected file is retrieved through a file manager, and the file is parsed to obtain the multi-line text.
5. The method according to claim 4, characterized in that, After obtaining the multi-line text, the process further includes: Based on the difference between the number of displayable lines in the display area and the set target number of lines, a blank line is added to the end of the acquired multi-line text.
6. The display method according to any one of claims 1-3, characterized in that, The method further includes: Based on the character position index, at least some characters in the first text line are highlighted.
7. The display method according to any one of claims 1-3, characterized in that, The method further includes: The defined display area is determined based on the area where no UI controls are displayed.
8. The method according to any one of claims 1-3, characterized in that, Based on the line height of the multi-line text, determine the target scrolling speed for scrolling the multi-line text, including: Based on the first line height, determine the target scrolling speed for displaying the multi-line text before font formatting adjustment; and / or, Based on the second row height, a target scrolling speed is determined for scrolling the multi-line text after the font formatting adjustment.
9. A display device for a teleprompter, characterized in that, include: The first determining module is used to determine the word position index of at least one character in the first text line that is in the display state in the multi-line text, based on the scrolled distance and the first line height of the multi-line text, when the teleprompter is scrolling the display of multi-line text. A pause module is used to pause the scrolling display of the multi-line text in response to adjusting the font of the multi-line text; The second determining module is used to determine the second text line where the at least one character is located from the multi-line text after the font format adjustment, based on the character position index. The adjustment module is used to determine the target scrolling distance required to scroll to the second line of text based on the second line height of the multi-line text after the font format adjustment. The display module is used to scroll the multi-line text with the font format adjusted to the target scroll distance for display. The first processing module is configured to respond to a drag operation performed on a first corner point in the teleprompter's floating window, and to use a second corner point diagonally opposite the first corner point as a fixed anchor point to change the size of the floating window: when the floating window exceeds a defined display area or the distance between it and the defined display area is less than a threshold, to provide prompts by vibration, voice, and / or light. The fourth determining module is used to determine the target scrolling speed for scrolling the multi-line text based on the line height of the multi-line text. The second processing module is used to display the first level corresponding to the target scrolling speed through the target control; The fourth determining module is used to determine the adjusted second level in response to the operation on the target control; The second adjustment module is used to adjust the scrolling speed of the scrolling display according to the second level.
10. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-8.
12. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-8.
Citation Information
Patent Citations
Automatic reading method and device
CN110109590A
Document display control method and device, equipment and medium
CN110110291A