Text display method and device, electronic device, storage medium, and computer program
The text display method and device improve text content management efficiency and flexibility by allowing for the combination and cancellation of target character content within the text display, addressing fragmentation and time cost issues.
Patent Information
- Application Number
- JP2023055976
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-15
- Filing Date
- 2023-03-30
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2043-03-30
AI Technical Summary
In electronic text browsing, text content management is often inefficient and lacks flexibility, leading to issues with text content fragmentation and increased time costs for management.
A text display method and device that allows for the specification of a target position during text page display, enabling the combination of target character content with corresponding text by adjusting the display position, and also allows for the cancellation of such combinations.
This solution enhances the flexibility and operability of text content management, reduces time costs, and effectively addresses the problem of text content fragmentation, thereby meeting diverse user needs.
Smart Images

Figure 0007659001000001 
Figure 0007659001000002 
Figure 0007659001000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the field of artificial intelligence, in particular to the field of content management and text technology, and can be applied to the scene of text display. [Background technology]
[0002] With the digitalization and onlineization of reading modes, more and more users prefer to read electronic texts, but in some scenarios, electronic text reading has low efficiency and inflexibility in managing text contents. Summary of the Invention [Means for solving the problem]
[0003] The present disclosure provides a text display method and device, an electronic device, a storage medium, and a computer program.
[0004] According to one aspect of the present disclosure, there is provided a text display method including: in response to a monitored target trigger operation during display of a text page, identifying a first target location associated with the target trigger operation, where the target trigger operation instructs to perform text content combination; in response to a text combination command generated based on the monitored target trigger operation, identifying target character content associated with the target trigger operation; and combining the target character content with a target text corresponding to the first target location by adjusting a display position of the target character content to the first target location to obtain a combined target text.
[0005] According to another aspect of the present disclosure, there is provided a text display method, including: in response to a text combination cancellation command for a monitored combined target text during display of a text page, identifying a target character content for which text combination cancellation is to be performed in the combined target text and a character position range of the target character content in a source text; and canceling the combination of the target character content and the combined target text by adjusting a display position of the target character content based on the character position range.
[0006] According to another aspect of the present disclosure, there is provided a text display device including: a first processing module for identifying a first target location associated with a target trigger operation in response to a monitored target trigger operation during display of a text page, where the target trigger operation instructs to perform text content combination; a second processing module for identifying target character content associated with the target trigger operation in response to a text combination command generated based on the monitored target trigger operation; and a third processing module for combining the target character content with a target text corresponding to the first target location by adjusting a display position of the target character content to the first target location to obtain a combined target text.
[0007] According to another aspect of the present disclosure, there is provided a text display device including: an eighth processing module that, in response to a text combination cancellation command for a monitored combined target text while a text page is being displayed, identifies a target character content for which text combination cancellation should be performed in the combined target text and a character position range of the target character content in a source text; and a ninth processing module that cancels the combination of the target character content and the combined target text by adjusting a display position of the target character content based on the character position range.
[0008] According to another aspect of the present disclosure, there is provided an electronic device having at least one processor and a memory in communication with the at least one processor, wherein the memory stores commands executable by the at least one processor, and the commands are executed by the at least one processor to cause the at least one processor to execute the text display method of any of the above aspects.
[0009] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of displaying text of any of the above aspects.
[0010] According to another aspect of the present disclosure, there is provided a computer program product which, when executed by a processor, implements the text display method of any of the above aspects.
[0011] It should be understood that the contents described in this section are not intended to depict key points or important features of the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood from the following description.
[0012] Here, the drawings are used for a better understanding of the present technical solution, and are not intended to limit the present disclosure. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 illustrates a system structure of a method and apparatus for displaying text according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 illustrates a schematic flow chart of a method for displaying text according to one embodiment of the present disclosure. [Diagram 3] FIG. 3 illustrates a schematic flow chart of a method for displaying text according to another embodiment of the present disclosure. [Figure 4]FIG. 4 illustrates generally a flow chart of a method for displaying text according to yet another embodiment of the present disclosure. [Figure 5A] FIG. 5A illustrates a schematic diagram of a text display process according to one embodiment of the present disclosure. [Figure 5B] FIG. 5B illustrates a schematic diagram of a text display process according to one embodiment of the present disclosure. [Figure 5C] FIG. 5C illustrates a schematic diagram of a text display process according to one embodiment of the present disclosure. [Figure 5D] FIG. 5D illustrates a schematic diagram of a text display process according to one embodiment of the present disclosure. [Figure 5E] FIG. 5E illustrates a schematic diagram of a text display process according to one embodiment of the present disclosure. [Figure 6] FIG. 6 illustrates a schematic block diagram of a text display device according to one embodiment of the present disclosure. [Figure 7] FIG. 7 illustrates a schematic block diagram of a text display device according to another embodiment of the present disclosure. [Figure 8] FIG. 8 illustrates a block diagram of an electronic device for performing a text display method according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, exemplary embodiments of the present disclosure will be described with reference to the drawings. Hereinafter, various details of the embodiments of the present disclosure are included for easier understanding, and they should be considered as examples. Therefore, it should be understood that a person skilled in the art can make various changes and modifications to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, the following description omits descriptions of well-known functions and configurations.
[0015] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. As used herein, the terms "comprises", "includes", and the like indicate the presence of features, steps, operations and / or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.
[0016] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted to have meanings consistent with the context of this specification and should not be interpreted in an idealized or overly strict manner.
[0017] When a statement such as "at least one of A, B, and C, etc." is used, it should generally be interpreted in the sense that one of ordinary skill in the art would normally understand the statement (e.g., "a system having at least one of A, B, and C" includes, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0018] An embodiment of the present disclosure provides a text display method, the method including: identifying a first target location associated with the target trigger operation in response to a monitored target trigger operation during display of a text page, the target trigger operation instructing to perform text content combination, identifying a target character content associated with the target trigger operation in response to a text combination command generated based on the monitored target trigger operation, and adjusting a display position of the target character content to the first target location, thereby combining the target character content with a target text corresponding to the first target location to obtain a combined target text.
[0019] Fig. 1 is a schematic diagram of a system structure of a text display method and device according to an embodiment of the present disclosure. In order to help those skilled in the art understand the technical content of the present disclosure, it should be noted that Fig. 1 is merely an example of a system structure to which the embodiment of the present disclosure can be applied, but does not mean that the embodiment of the present disclosure cannot be applied to other devices, systems, environments or scenes.
[0020] The system structure 100 according to the embodiment includes a display terminal 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the display terminal 101 and the server 103. The network 102 includes various connection types, such as wired, wireless communication links, or optical fiber cables. The server 103 may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services, such as cloud services, cloud computing, network services, and middleware services.
[0021] The display terminal 101 communicates with a server 103 via a network 102 to receive and transmit data, etc. The display terminal 101 may be a user terminal having a display function, such as a mobile phone, a notebook computer, a tablet computer, a reader, etc., and the display terminal 101 is used to display text pages.
[0022] Server 103 may be a server providing a variety of services, such as, by way of example only, a background processing server providing text content combination in response to monitored targeted trigger operations.
[0023] For example, while a text page is displayed by the display terminal 101, the server 103, in response to a monitored target trigger operation by the display terminal 101, identifies a first target location associated with the target trigger operation, instructs the target trigger operation to perform text content combination, and, in response to a text combination command generated based on the monitored target trigger operation, identifies target character content associated with the target trigger operation, and adjusts the display position of the target character content to the first target location, thereby combining the target character content with the target text corresponding to the first target location to obtain a combined target text.
[0024] It should be noted that the text display method provided by the embodiment of the present disclosure may be executed by the server 103. Accordingly, the text display device provided by the embodiment of the present disclosure may be provided in the server 103. The text display method provided by the embodiment of the present disclosure may be executed by a server or a server cluster different from the server 103 and capable of communicating with the display terminal 101 and / or the server 103. Accordingly, the text display device provided by the embodiment of the present disclosure may be provided in a server or a server cluster different from the server 103 and capable of communicating with the display terminal 101 and / or the server 103.
[0025] It should be understood that the number of display terminals, networks and servers in Figure 1 is merely exemplary, and any number of display terminals, networks and servers may be included according to the needs of the implementation.
[0026] An embodiment of the present disclosure provides a text display method, which will be described below with reference to Figures 2 to 4 in accordance with the system structure of Figure 1. The text display method of the embodiment of the present disclosure is executed by, for example, server 103 shown in Figure 1.
[0027] FIG. 2 illustrates a schematic flow chart of a method for displaying text according to one embodiment of the present disclosure.
[0028] As shown in FIG. 2, a text display method 200 according to an embodiment of the present disclosure includes, for example, operations S210 to S230.
[0029] In operation S210, during display of the text page, in response to the monitored target trigger operation, a first target location associated with the target trigger operation is identified, and the target trigger operation directs text content combination to occur.
[0030] In operation S220, target text content associated with the target trigger operation is identified in response to the text combination command generated based on the monitored target trigger operation.
[0031] In operation S230, the display position of the target character content is adjusted to the first target position, thereby combining the target character content with the target text corresponding to the first target position to obtain a combined target text.
[0032] An exemplary flow of each operation of the text display method of this embodiment will be described below.
[0033] Illustratively, during display of the text page, in response to the monitored target trigger operations, a first target location associated with the target trigger operations is identified, the target trigger operations including at least one predefined trigger operation for indicating a text content combination, the target trigger operations including, for example, a character selection operation and a character drag operation generated based on the character selection operation.
[0034] The first target position associated with the target trigger operation, for example, indicates a target text for which text content combination is to be performed, and indicates a target character position in the target text. In response to the text combination command generated based on the monitored target trigger operation, a target character content associated with the target trigger operation is identified. The target character content includes, for example, character content in a source text for which text content combination is to be performed, and the target character content may include a part of the character content in the source text, or may include the entire character content in the source text.
[0035] The display position of the target character content is adjusted from its initial position in the source text to the first target position, thereby realizing the deletion of the target character content from the source text and the combination of the target character content with the target text corresponding to the first target position.
[0036] For example, in response to the monitored target trigger operation, a target character position in the target text indicated by the target trigger operation for performing text content combination is identified as a first target position. In response to a text combination command generated based on the monitored target trigger operation, a target character content in the source text indicated by the target trigger operation for performing text content combination is identified. The display position of the target character content is adjusted from an initial position in the source text to the target character position, thereby combining the target character content and the target text, and the target character position constitutes a text combination position.
[0037] In one exemplary embodiment, during display of a text page, in response to monitored character selection operations and character drag operations generated based on the character selection operations, the character selection operations and the character drag operations are targeted trigger operations.
[0038] In response to the monitored character drag operation, a first target position indicated by the character drag operation is identified. In response to a text combination command generated based on the monitored character drag operation, the character content selected by the character selection operation is set as a target character content. A display position of the target character content is adjusted to the first target position, thereby combining the target character content with a target text corresponding to the first target position.
[0039] According to the embodiment of the present disclosure, in response to the monitored target trigger operation, a first target position related to the target trigger operation is identified, and in response to the text combination command generated based on the monitored target trigger operation, a target character content related to the target trigger operation is identified, and the display position of the target character content is adjusted to the first target position, thereby combining the target character content with the target text corresponding to the first target position. Based on the predetermined trigger operation, it is possible to realize efficient and convenient text content combination, effectively improve the flexibility and operability of text content management, effectively solve the problem of text content fragmentation, contribute to reducing the time cost of text content management, and effectively satisfy the diversified text content management needs of users.
[0040] FIG. 3 illustrates a schematic flow chart of a method for displaying text according to another embodiment of the present disclosure.
[0041] As shown in FIG. 3, a text display method 300 according to an embodiment of the present disclosure includes, for example, operations S310 to S320 and S230.
[0042] In operation S310, in response to the monitored character drag operation, a drag end position of the character drag operation is identified, and a character position that is closest to the drag end position and satisfies a predetermined distance threshold condition is identified as a first target position.
[0043] In operation S320, in response to a text combination command generated based on the monitored character drag operation, the character content selected by the character selection operation is set as the target character content.
[0044] In operation S230, the display position of the target character content is adjusted to the first target position, thereby combining the target character content with the target text corresponding to the first target position to obtain a combined target text.
[0045] An exemplary flow of each operation of the text display method of this embodiment will be described below.
[0046] For example, during display of a text page, in response to the monitored character selection operation and the character drag operation generated based on the character selection operation, the character selection operation and the character drag operation are set as the target trigger operation. The character selection operation includes, for example, a mouse selection operation, a touch selection operation, etc., and the character drag operation includes, for example, a mouse drag operation, a touch slide operation, etc. generated based on the character selection operation, but is not limited thereto in this embodiment.
[0047] In response to the monitored character drag operation, a drag end position of the character drag operation is identified. A character position that is closest to the drag end position and satisfies a predetermined distance threshold condition is identified and set as a first target position. In response to the candidate character position and the drag end position sometimes satisfying the predetermined distance threshold condition, a candidate character position that is closest to the drag end position is set as a first target position. In response to the candidate character position and the drag end position not satisfying the predetermined distance threshold condition, the character drag operation is determined to be an invalid operation.
[0048] In one exemplary embodiment, the first target position is highlighted to facilitate the user to confirm whether the first target position and the target character position for the text content combination are consistent. For example, the first target position is displayed in the form of a cursor to facilitate the user to confirm whether the cursor position and the target character position for the text content combination are consistent. If a mismatch is confirmed, the user may continue to perform the character drag operation until the first target position indicated by the character drag operation is consistent with the target character position.
[0049] During display of the text page, a text combination command generated based on the character drag operation is monitored, and in response to an end event for the monitored character drag operation, the end event is treated as a text combination command, or in response to an end event for the monitored character drag operation, at least one content operation option is displayed, and in response to a selection event for a text combination option of the at least one content operation option, a selection event is treated as a text combination command.
[0050] Monitoring the text combination commands generated based on the character dragging operation and performing text content combination according to the monitored text combination commands contributes to realizing efficient and convenient text content combination, and can effectively solve the problem of text content fragmentation.
[0051] For example, when the character drag operation is a touch slide operation, the end event for the character drag operation may be, for example, a touch end event, and the touch end event may be a text combination command. Or, in response to the monitored touch end event, at least one content operation option is displayed, and in response to a selection event for a text combination option of the at least one content operation option, the selection event is a text combination command.
[0052] In response to the text combination command generated based on the monitored character drag operation, the character content selected by the character selection operation is set as a target character content for text content combination, and a display position of the target character content is adjusted to a first target position, thereby combining the target character content with a target text corresponding to the first target position.
[0053] After combining the target character content with the target text corresponding to the first target position, the target character content is displayed in a first display manner, and the target text is displayed in a second display manner, and the first display manner and the second display manner may be different. Highlighting the target character content contributes to intuitively distinguishing between the original character content in the combined target text and other character content added by combining, and contributes to realizing efficient and convenient text content management.
[0054] In one exemplary embodiment, a character position range in the source text of the target character content is identified, and the character position range may be indicated, for example, by a start character position and an end character position of the target character content, or may be indicated, for example, by a start character position and a character length of the target character content, or may be indicated, for example, by an end character position and a character length of the target character content, or may be indicated, for example, by an arbitrary character position and a character association relationship of the target character content, and this embodiment is not limited thereto.
[0055] The character content located after the character position range in the source text is set as a first candidate content. The start display position of the first candidate content is adjusted to the start character position of the character position range. After the display position of the target character content is adjusted to the first target position, the target character content can be deleted from the source text. By adjusting the start display position of the first candidate content to the start character position of the character position range and replacing the target character content with the first candidate content, the character content in the combined source text can be continuously displayed.
[0056] The target character content may include a part of the character content in the source text, or may include the entire character content in the source text. If the target character content includes the entire character content in the source text, a first target position-based text combination is performed on the entire character content and the target text to obtain a combined target text.
[0057] In one exemplary embodiment, a character content located after the first target position in the target text is determined as a second candidate content, and a starting display position of the second candidate content is adjusted to the second target position, where the second target position is determined based on the first target position and a character length of the target character content.
[0058] Exemplarily, the first target position is the start character position of the target character content, and the second target position is determined based on the first target position and the character length of the target character content, and the second target position is the end character position of the target character content. The start display position of the second candidate content is adjusted to the character position immediately following the end character position of the target character content. The display position of the second candidate content is generally moved backward based on the length of the target character content, thereby realizing continuous display of the character content in the combined target text.
[0059] Adjusting the start display position of the first candidate content contributes to continuous display of the character content in the combined source text. Adjusting the start display position of the second candidate content contributes to continuous display of the character content in the combined target text. This can effectively improve the usability of text content combination, effectively solve the problem of text content fragmentation, and contribute to meeting the diversified text combination needs of users.
[0060] According to an embodiment of the present disclosure, in response to the monitored character drag operation, a first target position indicated by the character drag operation is identified, and in response to a text combination command generated based on the monitored character drag operation, the character content selected by the character selection operation is set as the target character content, and the display position of the target character content is adjusted to the first target position, thereby combining the target character content with the target text corresponding to the first target position. This contributes to realizing efficient and convenient text content combination, effectively solving the problem of text content fragmentation, and contributing to reducing the time cost of text content management. By performing text content combination based on the monitored character selection operation and character drag operation, the flexibility of text content combination can be effectively improved, and contributing to meeting the diversified text content management needs of users.
[0061] FIG. 4 illustrates generally a flow chart of a method for displaying text according to yet another embodiment of the present disclosure.
[0062] As shown in FIG. 4, a text display method 400 according to an embodiment of the present disclosure includes, for example, operations S410 to S420.
[0063] In operation S410, in response to a text combination cancel command for the monitored combined target text during display of the text page, a target character content for which text combination cancel should be performed in the combined target text and a character position range in the source text of the target character content are identified.
[0064] In operation S420, the display position of the target character content is adjusted according to the character position range to cancel the combination of the target text combined with the target character content.
[0065] An exemplary flow of each operation of the text display method of this embodiment will be described below.
[0066] Exemplarily, during display of the text page, in response to a text combination cancel command for the monitored combined target text, a target character content for which text combination cancellation is to be performed in the combined target text is identified, and a character position range in the source text of the target character content is identified, where the character position range includes, for example, at least one character position in the source text of the target character content.
[0067] For example, during display of the text page, in response to a target trigger operation on the monitored combined target text, at least one content operation option is displayed. The target trigger operation may be a touch movement operation that satisfies a predetermined condition, for example, a touch movement operation that satisfies a predetermined directional condition. In response to a selection event on a cancel text combination option of the at least one content operation option, the selection event is a cancel text combination command.
[0068] Identify the target character content for which the text combination cancellation is to be performed in the combined target text. For example, the target character content for which the text combination cancellation is to be performed may be a character content whose initial display position is different from that of the target text. Or, the target character content for which the text combination cancellation is to be performed may be a character content whose display mode is different from that of the target text.
[0069] A character position range of the target character content in the source text is identified. A display position of the target character content is adjusted based on the character position range to cancel the combination of the target text combined with the target character content. Exemplarily, a start display position of the target character content may be adjusted to a start character position based on a start character position based on the source text indicated by the character position range. An end display position of the target character content may be adjusted to an end character position based on an end character position based on the source text indicated by the character position range. Or, a character display position of the target character content may be adjusted to a corresponding character position based on an arbitrary character position based on the source text indicated by the character position range.
[0070] By adjusting the display position of the target character content, the target character content is deleted from the target text, and the target character content is restored in the source text, thereby canceling the combination of the target text combined with the target character content.
[0071] In one exemplary embodiment, based on the starting character position indicated by the character position range, character content located after the starting character position in the source text is determined as a third candidate content, and based on the starting character position and the character length of the target character content, a starting display position of the third candidate content is adjusted.
[0072] Based on the start character position and the character length of the target character content, an end character position of the target character content is identified. Based on the end character position, a start display position of the third candidate content is adjusted. For example, the start display position of the third candidate content is adjusted to a character position immediately following the end character position of the target character content. By moving the display position of the third candidate content backward as a whole based on the length of the target character content, it is possible to realize continuous display of the character content in the source text after the combination cancellation.
[0073] In another exemplary embodiment, based on the target character content, in the current position range in the combined target text, the character content located after the current position range is set as a fourth candidate content. The start display position of the fourth candidate content is adjusted to the start character position of the current position range. By replacing the target character content with the fourth candidate content, it is possible to realize continuous display of the character content in the target text after canceling the combination.
[0074] Adjusting the start display position of the third candidate content contributes to continuously displaying the text content in the source text after the combination is canceled. Adjusting the start display position of the fourth candidate content contributes to continuously displaying the text content in the target text after the combination is canceled. The intelligent level of text content management can be effectively improved, and the operation convenience of text content management can be effectively improved.
[0075] According to the embodiment of the present disclosure, in response to a text combination cancellation command for the monitored target text, a target character content for which text combination cancellation should be performed in the combined target text is identified, and a character position range of the target character content in the source text is identified, and the display position of the target character content is adjusted according to the character position range, thereby canceling the combination of the target character content with the combined target text, which can effectively improve the operation convenience of text combination cancellation, contribute to realizing efficient and flexible text content management, effectively reduce the time cost and operation complexity of electronic text management, effectively improve the intelligent level of electronic text management, and contribute to meeting the diversified electronic text management needs of users.
[0076] 5A-5E generally illustrate a schematic diagram of a text display process according to one embodiment of the present disclosure.
[0077] As shown in FIGS. 5A to 5E, the text display process includes, for example, a number of text display sub-processes.
[0078] As shown in FIG. 5A, during display of a text page, a character selection operation on a target character content is monitored, where the target character content includes some or all of the character content in a source text.
[0079] Take the text as a memo for example, the target text content may include a part of the text content "rule" in the source memo, or may include the whole text content "painting rule" in the source memo.
[0080] As shown in Fig. 5B, while the text page is being displayed, a character drag operation generated based on the character selection operation is monitored. A first target position indicated by the character drag operation is identified, and the first target position is, for example, a character position that is closest to the drag end position and satisfies a predetermined distance threshold condition.
[0081] The first target position indicates a target text to be combined with text content, and indicates a target character position in the target text. Take the text as an example that the text is a note, the target note to be combined with note content includes the character content "I still like solid outlines and well-balanced compositions".
[0082] As shown in FIG. 5C , the display position of the target character content is adjusted to the first target position, so that the target character content is deleted from the source text, and the target character content is combined with the target text corresponding to the first target position to obtain a combined target text.
[0083] For example, the target text content is displayed in a first display manner, and the target text is displayed in a second display manner, where the first display manner and the second display manner are different.
[0084] Take the text as an example of a memo, by adjusting the display position of the target text content to a first target position, the target text content is deleted from the source memo, and the target text content is combined with the target memo corresponding to the first target position to obtain a combined target memo.
[0085] As shown in Fig. 5D, during display of the text page, a text combining cancel command for the combined target text is monitored, and in response to the monitored text combining cancel command, a target character content for which text combining cancellation is to be performed in the combined target text is identified, and a character position range in the source text of the target character content is identified.
[0086] Taking the text as an example, the target character content for canceling the note combination includes the character "rule".
[0087] As shown in FIG. 5E, by adjusting the display position of the target character content according to the character position range, the combination of the target character content and the target text can be canceled, and the target character content can be restored in the source text.
[0088] Taking the text as an example of a memo, by adjusting the display position of the target character content based on the character position range, the combination of the target character content and the target memo can be canceled and the target character content can be restored in the source memo.
[0089] FIG. 6 illustrates a schematic block diagram of a text display device according to one embodiment of the present disclosure.
[0090] As shown in FIG. 6, a text display device 600 of an embodiment of the present disclosure includes a first processing module 610, a second processing module 620 and a third processing module 630, for example.
[0091] The first processing module 610 is used to identify a first target location associated with the target trigger operation in response to the monitored target trigger operation during display of the text page, where the target trigger operation instructs to perform text content combination. The second processing module 620 is used to identify a target character content associated with the target trigger operation in response to a text combination command generated based on the monitored target trigger operation. The third processing module 630 is used to combine the target character content with the target text corresponding to the first target location by adjusting a display position of the target character content to the first target location to obtain a combined target text.
[0092] According to the embodiment of the present disclosure, in response to the monitored target trigger operation, a first target position related to the target trigger operation is identified, and in response to the text combination command generated based on the monitored target trigger operation, a target character content related to the target trigger operation is identified, and the display position of the target character content is adjusted to the first target position, thereby combining the target character content with the target text corresponding to the first target position. Based on the predetermined trigger operation, it is possible to realize efficient and convenient text content combination, effectively improve the flexibility and operability of text content management, effectively solve the problem of text content fragmentation, contribute to reducing the time cost of text content management, and effectively satisfy the diversified text content management needs of users.
[0093] According to an embodiment of the present disclosure, the target trigger operation includes a character selection operation and a character drag operation generated based on the character selection operation.
[0094] According to an embodiment of the present disclosure, the first processing module includes a first processing sub-module for identifying a drag end position of the character drag operation in response to the monitored character drag operation, and a second processing sub-module for identifying a closest character position that satisfies a predetermined distance threshold condition from the drag end position as a first target position.
[0095] According to an embodiment of the present disclosure, the device further includes a fourth processing module for, in response to an end event for the monitored character drag operation, rendering the end event a text combination command, or for, in response to an end event for the monitored character drag operation, displaying at least one content operation selection and, in response to a selection event for a text combination selection of the at least one content operation selection, rendering a selection event a text combination command.
[0096] According to an embodiment of the present disclosure, the second processing module includes a third processing sub-module for setting the character content selected by the character selection operation as a target character content in response to a text combination command generated based on the monitored character drag operation.
[0097] According to an embodiment of the present disclosure, the apparatus further includes a fifth processing module for identifying a character position range in a source text of a target character content, determining a character content located after the character position range in the source text as a first candidate content, and adjusting a starting display position of the first candidate content to a starting character position of the character position range.
[0098] According to an embodiment of the present disclosure, the apparatus further includes a sixth processing module for determining a character content located after the first target position in the target text as a second candidate content, and adjusting a starting display position of the second candidate content to the second target position, where the second target position is identified based on the first target position and a character length of the target character content.
[0099] According to an embodiment of the present disclosure, the device further includes a seventh processing module for displaying the target character content in a first display manner and displaying the target text in a second display manner, wherein the first display manner and the second display manner are different.
[0100] FIG. 7 illustrates a schematic block diagram of a text display device according to another embodiment of the present disclosure.
[0101] As shown in FIG. 7, the text display device 700 of the embodiment of the present disclosure includes, for example, an eighth processing module 710 and a ninth processing module 720 .
[0102] The eighth processing module 710 is used to identify a target character content for which text combination cancellation should be performed in the combined target text and a character position range in the source text of the target character content in response to a text combination cancellation command for the monitored combined target text during display of the text page. The ninth processing module 720 cancels the combination of the target character content and the combined target text by adjusting the display position of the target character content based on the character position range.
[0103] According to the embodiment of the present disclosure, in response to a text combination cancel command for the monitored target text, a target character content for which text combination cancellation should be performed in the combined target text is identified, and a character position range of the target character content in the source text is identified, and the display position of the target character content is adjusted according to the character position range to cancel the combination of the target character content with the combined target text, which can effectively improve the operation convenience of text combination cancellation, contribute to realizing efficient and flexible text content management, effectively reduce the time cost and operation complexity of electronic text management, effectively improve the intelligent level of electronic text management, and contribute to meeting the diversified electronic text management needs of users.
[0104] According to an embodiment of the present disclosure, the apparatus further includes a tenth processing module for determining, based on a starting character position of the character position range, character content located after the starting character position in the source text as a third candidate content, and adjusting a starting display position of the third candidate content based on the starting character position and a character length of the target character content.
[0105] According to an embodiment of the present disclosure, the apparatus further includes an eleventh processing module for determining, based on a current position range of the target character content in the target text, a character content located behind the current position range as a fourth candidate content, and adjusting a starting display position of the fourth candidate content to a starting character position of the current position range.
[0106] It should be noted that in the technical solution disclosed herein, the related information collection, storage, use, processing, transmission, provision, disclosure and other processes all comply with the provisions of relevant laws and regulations and do not violate public order and morals.
[0107] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program.
[0108] FIG. 8 illustrates a block diagram of an electronic device for performing a text display method according to an embodiment of the present disclosure.
[0109] 8 shows a schematic block diagram of an exemplary electronic device 800 capable of implementing embodiments of the present disclosure. The electronic device 800 is intended to represent various types of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various types of mobile devices, such as personal digital assistants, mobile phones, smartphones, wearable devices, and other similar computing devices. The components, their connections and relationships, and their functions shown herein are merely exemplary and do not limit the implementation of the present disclosure as described and / or claimed herein.
[0110] 8, the electronic device 800 includes a computing means 801, which may perform various appropriate operations and processes based on a computer program stored in a read-only memory (ROM) 802 or loaded from a storage means 808 into a random access memory (RAM) 803. The RAM 803 may further store various programs and data necessary for the operation of the electronic device 800. The computing means 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0111] A number of components in the electronic device 800 are connected to an I / O interface 805, and include input means 806 such as a keyboard, a mouse, etc., output means 807 such as various types of displays, speakers, etc., storage means 808 such as a magnetic disk, an optical disk, etc., and communication means 809 such as a network card, a modem, a wireless communication transceiver, etc. The communication means 809 enables the electronic device 800 to exchange information and data with other devices via a computer network such as the Internet and / or various electric networks.
[0112] The computing means 801 may be various general-purpose and / or dedicated processing modules having processing and computing capabilities. Some examples of the computing means 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, computing units running various machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing means 801 performs each of the methods and processes described in the preceding paragraph, such as the text display method. For example, in some embodiments, the text display method may be realized as a computer software program tangibly embodied in a machine-readable medium, such as the storage means 808. In some embodiments, some or all of the computer program may be loaded and / or installed in the electronic device 800 via the ROM 802 and / or the communication means 809. When the computer program is loaded into the RAM 803 and executed by the computing means 801, it may perform one or more steps of the text display method described in the preceding paragraph. Alternatively, in other embodiments, the computing means 801 may be configured to perform the text display method in any other suitable manner (eg, via firmware). Various embodiments of the systems and techniques described herein above may be realized in digital electronic circuitry systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may be embodied in one or more computer programs that may be executed and / or interpreted in a programmable system that includes at least one programmable processor, which may be a special purpose or general purpose programmable processor, and may include a processor that is capable of receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
[0113] The program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, a special purpose computer, or other programmable text display device, so that when the program codes are executed by the processor or controller, the functions and operations specified in the flowcharts and / or block diagrams are performed. The program codes may be fully executed on the device, partially executed on the device, partially executed on the device as a separate software package and partially executed on a remote device, or fully executed on a remote device or server.
[0114] In the context of this disclosure, a machine-readable medium may be a tangible medium, and may contain or store a program for use in or in combination with an instruction execution system, device, or electronic device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or electronic device, or any suitable combination of the above. More specific examples of machine-readable storage media include electrical connections through one or more wires, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0115] A computer may implement the systems and techniques described herein to provide for interaction with a user, the computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user, and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the computer. Other types of devices may also provide for interaction with a user, for example, the feedback provided to the user may be any form of sensing feedback (e.g., visual feedback, auditory feedback, or tactile feedback) and may receive input from the user in any form (including voice input, speech input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system including background components (e.g., a data server), or a computing system including middleware components (e.g., an application server), or a computing system including front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user may interact with embodiments of the systems and techniques described herein), or a computing system including any combination of such background, middleware, or front-end components. The components of the system may be connected to each other by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks illustratively include a local area network (LAN), a wide area network (WAN), and the Internet.
[0117] The computer system may include a client and a server. The client and server are generally remote and typically interact through a communication network. The relationship between the client and the server is created by computer programs running on the corresponding computers and having a client-server relationship. The server may be a cloud server, a server in a distributed system, or a server in combination with a blockchain.
[0118] It should be understood that various types of flows shown above may be used, and operations may be rearranged, added, or removed. For example, each operation described in the present disclosure may be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present specification is not limited thereto.
[0119] The above specific embodiments do not limit the scope of protection of the present disclosure. Those skilled in the art should understand that various modifications, combinations, subcombinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present disclosure should be included within the scope of protection of the present disclosure.
Claims
1. identifying a target character content for which text combination cancellation is to be performed in the combined target text during display of the text page and a character position range in the source text of the target character content in response to a text combination cancellation command for the monitored combined target text; and canceling the combination of the target character content and the combined target text by adjusting a display position of the target character content according to the character position range; wherein the combined target text is identifying a first target location associated with a monitored target trigger operation during display of the text page, the target trigger operation indicating that a text content combination is to be performed; identifying target character content associated with the target trigger operation in response to a text combination command generated based on the monitored target trigger operation; and adjusting a display position of the target character content to the first target position to combine the target character content with a target text corresponding to the first target position to obtain a combined target text; Identifying a character position range in a source text of the target character content; determining, in the source text, a character content located after the character position range as a first candidate content; adjusting a starting display position of the first candidate content to a starting character position of the character position range; determining, in the target text, character content located after the first target position as a second candidate content; adjusting a starting display position of the second candidate content to a second target position, where the second target position is identified based on the first target position and a character length of the target character content; The text display method.
2. determining, based on a starting character position of the character position range, character content located after the starting character position in the source text as a third candidate content; and adjusting a start display position of the third candidate content based on the start character position and a character length of the target character content.
2. The method of claim 1.
3. Based on the target character content, in the current position range in the combined target text, a character content located after the current position range is set as a fourth candidate content; adjusting a starting indication of the fourth candidate content to a starting character position of the current position range.
2. The method of claim 1.
4. the target trigger operation includes a character selection operation and a character drag operation generated based on the character selection operation; 2. The method of claim 1.
5. In response to the monitored target trigger operation, identifying a first target location associated with the target trigger operation includes: identifying a drag end position of the character drag operation in response to the monitored character drag operation; and identifying a character position that is closest to the drag end position and satisfies a predetermined distance threshold condition, as the first target position.
5. The method for displaying text according to claim 4.
6. in response to a monitored end event for the character drag operation, causing the end event to be the text combination command; or displaying at least one content operation option in response to an end event for the monitored character drag operation, and setting the selection event as the text combination command in response to a selection event for a text combination option of the at least one content operation option.
5. The method for displaying text according to claim 4.
7. In response to a text combination command generated based on the monitored target trigger operation, identifying target character content associated with the target trigger operation includes: in response to a text combining command generated based on the monitored character dragging operation, determining that the character content selected by the character selection operation is the target character content.
5. The method for displaying text according to claim 4.
8. Displaying the target character content in a first display manner and displaying the target text in a second display manner, where the first display manner and the second display manner are different.
2. The method of claim 1.
9. an eighth processing module that, in response to a text combination cancel command for the monitored combined target text during display of the text page, identifies a target character content for which text combination cancellation should be performed in the combined target text and a character position range in the source text for the target character content; a ninth processing module for canceling a combination of the target character content and the combined target text by adjusting a display position of the target character content according to the character position range; wherein the combined target text is a first processing module responsive to monitored target trigger operations during display of a text page to identify a first target location associated with the target trigger operation, where the target trigger operation indicates that a text content combination should be performed; a second processing module that, in response to generated text combination commands based on the monitored targeted trigger operations, identifies targeted character content associated with the targeted trigger operations; a third processing module for combining the target character content with a target text corresponding to the first target position by adjusting a display position of the target character content to the first target position to obtain a combined target text; further comprising a fifth processing module; The fifth processing module is Identifying a character position range in a source text of the target character content; A character content located after the character position range in the source text is set as a first candidate content; and adjusting a starting display position of the first candidate content to a starting character position of the character position range; Further comprising a sixth processing module, The sixth processing module is A character content located after the first target position in the target text is set as a second candidate content; adjusting a starting display position of the second candidate content to a second target position, where the second target position is identified based on the first target position and a character length of the target character content; Text display device.
10. Further comprising a tenth processing module; The tenth processing module includes: determining character content located after the starting character position in the source text based on a starting character position of the character position range as a third candidate content; adjusting a start display position of the third candidate content based on the start character position and a character length of the target character content; 10. A text display device according to claim 9.
11. further comprising an eleventh processing module; The eleventh processing module includes: According to a current position range of the target character content in the combined target text, a character content located behind the current position range is set as a fourth candidate content; adjusting a start display position of the fourth candidate content to a start character position of the current position range; 10. A text display device according to claim 9.
12. the target trigger operation includes a character selection operation and a character drag operation generated based on the character selection operation; 10. A text display device according to claim 9.
13. The first processing module is a first processing sub-module for identifying a drag end position of the character drag operation in response to the monitored character drag operation; a second processing submodule for identifying a closest character position that satisfies a predetermined distance threshold condition from the drag end position and setting the closest character position as the first target position; 13. A text display device according to claim 12.
14. Further comprising a fourth processing module; The fourth processing module is in response to a monitored end event for the character drag operation, causing the end event to be the text combination command; or displaying at least one content operation option in response to an end event for the monitored character drag operation, and setting the selection event as the text combination command in response to a selection event for a text combination option of the at least one content operation option; 13. A text display device according to claim 12.
15. The second processing module is a third processing sub-module for determining, in response to a text combining command generated based on the monitored character drag operation, a character content selected by the character selection operation as the target character content; 13. A text display device according to claim 12.
16. Further comprising a seventh processing module; The seventh processing module is Displaying the target character content in a first display manner and displaying the target text in a second display manner, where the first display manner and the second display manner are different; 10. A text display device according to claim 9.
17. At least one processor; and a memory in communication with the at least one processor, The memory stores commands that can be executed by the at least one processor, and the commands are executed by the at least one processor to enable the at least one processor to execute the text display method according to claims 1 to 8. electronic equipment.
18. storing computer commands for causing a computer to carry out the text display method according to claims 1 to 8; A non-transitory computer-readable storage medium.
19. A computer program product which, when executed by a processor, implements the method for displaying text according to claims 1 to 8.
Citation Information
Patent Citations
Display unit with touch panel
JP2004102455A
Information processing device and program
JP2019219935A
Select and move hint
US20180095641A1