Annotation style conversion method, device and equipment, readable storage medium and product
By displaying search results and processing controls in electronic publications, users can select and convert them into bubble annotations in the second display interface, solving the jump problem caused by the fact that the term and definition content in the prior art are not on the same page, and achieving efficient annotation style conversion and reading experience improvement.
Patent Information
- Application Number
- CN202510428530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-18
AI Technical Summary
In existing electronic publications, terms and definition content are often not on the same page, which leads to frequent jumps when viewing, affecting the browsing experience. The existing annotation style conversion operation is cumbersome and inefficient.
By displaying the search results and processing controls of preset terms and definition content in electronic publications, users can select and convert them into bubble notes in the second display interface, and display the definition content directly at the term location, simplifying the operation process.
It improves the efficiency of annotation style conversion and user browsing experience, and users can flexibly select and intuitively view the interpreted content without frequent jumps, improving the reading experience of electronic publications.
Smart Images

Figure CN120335670A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of data processing, and in particular, to a method, apparatus, device, readable storage medium, and product for converting annotation styles. Background Art
[0002] In electronic publications in the EPUB (Electronic Publication) format, there are often some terms that need to be explained. Therefore, the author of the electronic publication can add jump-link annotations to the terms and their associated explanatory content, so that users can perform jump operations from the terms to the explanatory content and from the explanatory content to the terms based on the jump-link annotations.
[0003] However, in electronic publications, the terms and the explanatory content may not be on the same page. Therefore, when users view the terms and their associated explanatory content, they need to jump between different pages for viewing. This often results in a poor browsing experience for users with respect to electronic publications.
[0004] In the related art, a bubble annotation style is provided. A preset icon can be displayed at the display position associated with the term, and in response to a trigger operation by the user on the preset icon, the explanatory content associated with the subject is displayed in the form of a bubble on the current page.
[0005] And how to quickly convert multiple jump-link annotations in an electronic publication into bubble annotations has become an urgent problem to be solved. Summary of the Invention
[0006] Embodiments of the present disclosure provide a method, apparatus, device, readable storage medium, and product for converting annotation styles, which are used to solve the technical problem that the existing annotation style conversion operation is relatively cumbersome.
[0007] In a first aspect, embodiments of the present disclosure provide a method for converting annotation styles, including:
[0008] Displaying at least one search result associated with a preset term and / or explanatory content in an electronic publication and a processing control associated with each search result on a preset first display interface, where the electronic publication includes a plurality of preset terms, the preset terms are associated with jump-link annotations, and the jump-link annotations are configured to, in response to a trigger operation by the user, jump to the interface where the explanatory content mapped by the preset term is located to display the explanatory content;
[0009] In response to a trigger operation by the user on the processing control associated with any target search result, determining a first term associated with the target search result and a first explanatory content corresponding to the first term;
[0010] In a preset second display interface, respectively display a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content, and display a preset conversion control. The first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the content in the first paraphrase content;
[0011] In response to the user's triggering operation on the conversion control, switch the jump link annotation associated with the first term to a bubble annotation. The bubble annotation is configured to switch the hyperlink associated with the first term to a preset icon. Based on the user's triggering operation on the preset icon, display at least part of the content in the first paraphrase content within the interface where the first term is located.
[0012] In a second aspect, an embodiment of the present disclosure provides an annotation style conversion device, including:
[0013] A retrieval module, configured to display at least one retrieval result associated with a preset term and / or paraphrase content in an electronic publication and a processing control associated with each retrieval result in a preset first display interface. The electronic publication includes a plurality of preset terms, and the preset terms are associated with jump link annotations. The jump link annotations are configured to, in response to the user's triggering operation, jump to the interface where the paraphrase content mapped by the preset term is located and display the paraphrase content;
[0014] A determination module, configured to, in response to the user's triggering operation on the processing control associated with any target retrieval result, determine the first term associated with the target retrieval result and the first paraphrase content corresponding to the first term;
[0015] A selection module, configured to respectively display a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content in a preset second display interface, and display a preset conversion control. The first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the content in the first paraphrase content;
[0016] A switching module, configured to, in response to the user's triggering operation on the conversion control, switch the jump link annotation associated with the first term to a bubble annotation. The bubble annotation is configured to switch the hyperlink associated with the first term to a preset icon. Based on the user's triggering operation on the preset icon, display at least part of the content in the first paraphrase content within the interface where the first term is located.
[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0018] The memory stores computer execution instructions;
[0019] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the annotation style conversion method described in the first aspect and various possible designs of the first aspect as above.
[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the annotation style conversion method described in the first aspect and various possible designs of the first aspect as above.
[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, which, when executed by a processor, implements the annotation style conversion method described in the first aspect and various possible designs of the first aspect as above.
[0022] The annotation style conversion method, device, equipment, readable storage medium and product provided in this embodiment display at least one search result associated with a preset term and / or paraphrase content in an electronic publication on a first display interface, and display a processing control associated with each search result. Therefore, the second display interface can be entered based on a trigger operation of the user on the processing control associated with any search result. In the second display interface, a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content can be displayed, so that the user can more flexibly perform a selection operation on the content displayed in the bubble annotation. In addition, a preset conversion control is further included in the second display interface, so that the user can perform a trigger operation on the conversion control according to actual needs. In response to the trigger operation, the jump link annotation can be quickly converted into a bubble annotation based on the content selected by the user. Therefore, after the user triggers a preset icon associated with the first term, the paraphrase content associated with it can be more intuitively viewed in the display interface of the first term, improving the user's browsing experience for the electronic publication. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0024] Figure 1 It is a schematic flowchart of the annotation style conversion method provided by an embodiment of the present disclosure;
[0025] Figure 2 It is a schematic diagram of interface interaction provided by an embodiment of the present disclosure;
[0026] Figure 3 Schematic diagram of bubble annotation provided by an embodiment of the present disclosure;
[0027] Figure 4 Flow schematic diagram of an annotation style conversion method provided by another embodiment of the present disclosure;
[0028] Figure 5 Another interface interaction schematic diagram provided by an embodiment of the present disclosure;
[0029] Figure 6 Flow schematic diagram of an annotation style conversion method provided by another embodiment of the present disclosure;
[0030] Figure 7 Flow schematic diagram of an annotation style conversion method provided by another embodiment of the present disclosure;
[0031] Figure 8 Structural schematic diagram of an annotation style conversion device provided by an embodiment of the present disclosure;
[0032] Figure 9 Structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners
[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
[0034] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure shall be informed to the user and the user's authorization shall be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, when responding to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the technical solutions of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation manner, in response to receiving an active request from a user, the manner of sending a prompt message to the user may be, for example, a pop-up window manner, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0037] It can be understood that the above notification and user authorization acquisition process is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0038] To solve the technical problem that the existing annotation style conversion operation is relatively cumbersome, the present disclosure provides an annotation style conversion method, device, equipment, readable storage medium and product.
[0039] It should be noted that the annotation style conversion method, device, equipment, readable storage medium and product provided by the present disclosure can be applied to the scenario of annotation style conversion in any electronic publication.
[0040] In the related art, for each hop-chain annotation, in order to implement the conversion operation from the hop-chain annotation to the bubble annotation, the user needs to manually locate the page file where the term is located in the dom tree associated with the electronic publication, and add a paraphrase container to the last child node of the body node in the page file where the term is located. And manually locate the paraphrase content in the dom tree and add the paraphrase content to the paraphrase container. Therefore, the operation is often relatively cumbersome, resulting in a low efficiency of annotation style conversion.
[0041] In the process of solving the above technical problems, the inventors found through research that in order to quickly implement the conversion of the paraphrase styles associated with multiple preset terms in an electronic publication, it is possible to support the user to perform a retrieval operation on the preset terms and / or paraphrase content according to actual needs, and display at least one retrieval result.
[0042] In addition, processing controls can be displayed in the display area associated with each retrieval result. The user can trigger the processing control associated with any retrieval result to enter a second display interface, where a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content can be displayed, so that the user can more flexibly perform the selection operation of the content displayed in the bubble annotation. In addition, a preset conversion control is also included in the second display interface, so the user can trigger the conversion control according to actual needs. In response to the trigger operation, the hop-chain annotation can be quickly converted into a bubble annotation based on the content selected by the user.
[0043] Figure 1 It is a schematic flowchart of the annotation style conversion method provided by the embodiment of the present disclosure, asFigure 1 As shown, the method includes:
[0044] Step 101: Display at least one search result associated with a preset term and / or paraphrase content in an electronic publication and a processing control associated with each search result on a preset first display interface. The electronic publication includes a plurality of preset terms, and the preset terms are associated with jump-link annotations, and the jump-link annotations are configured to, in response to a user's trigger operation, jump to the interface where the paraphrase content mapped by the preset term is located to display the paraphrase content.
[0045] The execution subject of this embodiment is an annotation style conversion device. The annotation style conversion device can be coupled to a terminal device, so it can switch the jump-link annotation associated with a preset term to a bubble annotation based on an annotation style conversion operation triggered by the user for the electronic publication.
[0046] In this embodiment, there are often some obscure terms in the electronic publication. To improve the user's reading experience for the electronic publication, when writing the electronic publication, the author can add paraphrase content for each term. The term and the paraphrase content may not be displayed on the same page. Therefore, to facilitate the reader to browse the paraphrase content, the preset term is associated with a jump-link annotation.
[0047] Among them, hyperlinks can be added at the positions of the preset term and the paraphrase content respectively. The reader can trigger the hyperlink to achieve content jump viewing, which is also called a jump-link annotation.
[0048] However, using jump-link annotations for jump viewing between preset terms and paraphrase content often results in a poor browsing experience for readers. Therefore, the jump-link annotations in the electronic publication can be converted into bubble annotations. Among them, after being converted into bubble annotations, a preset icon of "Note" can be displayed at the position of the first term. When the reader clicks the preset icon, a preset bubble page can be displayed at the position of the first term, and the paraphrase content associated with the first term can be displayed in the bubble.
[0049] Optionally, the user can perform a search operation on the preset term and / or paraphrase content that needs to be converted according to actual needs. Perform an annotation style conversion operation based on the search result. Therefore, at least one search result associated with the preset term and / or paraphrase content in the electronic publication can be displayed on the preset first display interface. Among them, the search result can include the preset term and / or paraphrase content and the context associated with the preset term and / or paraphrase content.
[0050] To facilitate the user's annotation style conversion operation for the search result, a processing control associated with the search result can also be displayed in the display area associated with each search result.
[0051] Step 102: In response to the user triggering an operation on a processing control associated with any target search result, a first term associated with the target search result and a first interpretation content corresponding to the first term are determined.
[0052] In this embodiment, the user can trigger the processing control associated with any target search result according to actual needs. In response to the user's triggering operation, the first term associated with the target search result can be determined.
[0053] Optionally, there is a preset mapping relationship between the preset term and the interpretation content. Therefore, after determining the first term associated with the target search result, the first interpretation content corresponding to the first term can also be determined based on the preset mapping relationship.
[0054] Step 103: Display a first selection interface associated with the first term and a second selection interface associated with the first interpretation content in a preset second display interface, and display a preset conversion control, wherein the first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the first interpretation content.
[0055] In this embodiment, in order to facilitate the user to perform annotation style conversion operation on the first term, a second display interface can be displayed. The first selection interface associated with the first term and the second selection interface associated with the first interpretation content are respectively displayed in the second display interface. Thus, the user can select the hyperlink associated with the first term in the first selection interface, and can select at least part of the first interpretation content in the second selection interface.
[0056] Furthermore, after completing the content selection operation, the annotation style conversion operation can be performed based on the current selected content. Therefore, a conversion control can be set in the second display interface. In order to avoid the conversion control from blocking the first selection interface and the second selection interface, the conversion control can be set at the bottom of the second display interface.
[0057] Step 104: In response to the user's triggering operation on the conversion control, the jump chain annotation associated with the first term is switched to a bubble annotation, and the bubble annotation is configured to switch the hyperlink associated with the first term to a preset icon, and based on the user's triggering operation on the preset icon, at least part of the first interpretation content is displayed in the interface where the first term is located.
[0058] In this embodiment, in response to the user's triggering operation on the conversion control, the jump chain annotation associated with the first term can be quickly switched to a bubble annotation.
[0059] Figure 2The schematic diagram of interface interaction provided by an embodiment of the present disclosure is as Figure 2 shown. A user can perform a retrieval operation on preset terms and / or paraphrase content in an electronic publication according to actual needs, and at least one retrieval result 22 is displayed on a first display interface 21. Moreover, a processing control 23 can be displayed in a display area associated with each retrieval result 22. In response to a triggering operation of the user on the processing control 23 associated with any one of the retrieval results 22, a second display interface 24 can be displayed. The second display interface 24 can display a first selection interface associated with a first term corresponding to the retrieval result and a second selection interface associated with the first paraphrase content. Therefore, the user can select a hyperlink associated with the first term in the first selection interface, and can perform a selection operation on at least part of the paraphrase content that needs to be displayed in a bubble annotation in the second selection interface. In addition, a preset conversion control 25 is also displayed in the second display interface 24. In response to a triggering operation of the user on the conversion control 25, the jump-chain annotation associated with the first term is switched to a bubble annotation.
[0060] Among them, after being converted into a bubble annotation, a preset icon of "Note" can be displayed at the position of the first term. When the user clicks on the preset icon, a preset bubble page can be displayed at the position where the first term is located, and the paraphrase content associated with the first term is displayed in the bubble. Therefore, the viewing of the paraphrase content can be realized without performing a page jump operation, improving the reading experience of the user for the electronic publication.
[0061] Figure 3 The schematic diagram of bubble annotation provided by an embodiment of the present disclosure is as Figure 3 shown. An electronic publication can be displayed in a content display interface 31. The electronic publication includes a preset term 32, and a preset icon 33 can be displayed at the upper right corner position of the preset term 32. In response to a triggering operation of the user on the preset icon 33, a preset bubble 34 can be displayed on the current page, and the paraphrase content associated with the term is displayed in the preset bubble 34.
[0062] The annotation style conversion method provided in this embodiment can display at least one search result associated with a preset term and / or explanatory content in an electronic publication on a first display interface, and display a processing control associated with each search result. Therefore, the second display interface can be entered based on a trigger operation of the user on the processing control associated with any search result. In the second display interface, a first selection interface associated with a first term and a second selection interface associated with the first explanatory content can be displayed, so that the user can more flexibly perform a selection operation on the content displayed in the bubble annotation. In addition, a preset conversion control is further included in the second display interface, so that the user can perform a trigger operation on the conversion control according to actual needs. In response to this trigger operation, the jump link annotation can be quickly converted into a bubble annotation based on the content selected by the user. Therefore, after the user triggers a preset icon associated with the first term, the explanatory content associated with it can be more intuitively viewed in the display interface of the first term, improving the browsing experience of the user for the electronic publication.
[0063] Figure 4 As shown in the flowchart of the annotation style conversion method provided in another embodiment of the present disclosure, on the basis of any of the above embodiments, Figure 4 as shown, before step 101, it further includes:
[0064] Step 401: Obtain a document object model associated with the electronic publication.
[0065] Step 402: In response to the retrieval operation triggered by the user, obtain the retrieval keyword determined by the user and associated with the preset term and / or explanatory content.
[0066] Step 403: Retrieve at least one search result in the document object type that matches the retrieval keyword.
[0067] In this embodiment, in order to implement the annotation style conversion operation of the electronic publication, first, a document object model associated with the electronic publication can be obtained.
[0068] Among them, the electronic publication can be an EPUB file, and its chapter content can be stored by one or more HTML files. An HTML page can be parsed into a document object model (DOM). The DOM represents an HTML file as a tree structure of tags, which can also be called a DOM tree.
[0069] Furthermore, the user can set the retrieval keyword according to actual needs. Among them, the retrieval keyword can be an associated field in the hyperlink of the preset term and / or explanatory content. Or, it can be a regular expression specified by the user, etc.
[0070] After obtaining the search keywords determined by the user, at least one search result matching the search keywords can be traversed in the document object model. Therefore, the at least one search result can be displayed in the first display interface for the user to view later.
[0071] The annotation style conversion method provided in this embodiment can traverse the document object model based on the search keywords determined by the user by obtaining the document object model, so that the search results matching the search keywords can be accurately determined. This makes the conversion of the annotation style more in line with the personalized needs of users.
[0072] Further, based on any of the above embodiments, step 302 includes:
[0073] Display a preset third display interface, which includes at least one content determination channel, and the content determination channel includes at least one of a regular expression input channel, a preset regular expression selection channel, and a tag input channel.
[0074] In response to the selection operation triggered by the user for at least one content determination channel, determine the target content determination channel currently determined by the user.
[0075] Obtain the search keywords associated with the preset terms and / or paraphrase content determined by the user based on the target content determination channel.
[0076] In this embodiment, multiple different content determination channels can be provided for the user, so that the user can determine the search keywords more flexibly.
[0077] Optionally, in response to the search operation triggered by the user, a preset third display interface can be displayed, which includes at least one content determination channel, and the content determination channel includes at least one of a regular expression input channel, a preset regular expression selection channel, and a tag input channel.
[0078] Among them, when the user selects the regular expression input channel, the user can write the regular expression for user content retrieval according to actual needs; when the user is unable to write the regular expression by himself, the preset regular expression selection channel can be selected, and under this content determination channel, multiple preset regular expressions can be provided for the user to select, and the preset regular expression selected by the user is determined as the search keyword; or, when the user selects the tag input channel, the user can write the content tag for retrieval according to actual needs.
[0079] Therefore, after the third display interface is displayed, in response to a selection operation triggered by the user for at least one content determination channel, the target content determination channel currently determined by the user is determined. Moreover, the retrieval keywords associated with the preset terms and / or paraphrase content determined by the user based on the target content determination channel can be obtained.
[0080] Figure 5 Another schematic diagram of interface interaction provided by an embodiment of the present disclosure is shown in Figure 5 As shown, the third display interface 51 may include a regular expression input channel 52, a preset regular expression selection channel 53, and a tag input channel 54. The user can determine the retrieval keywords based on any of the above channels. For example, in response to a trigger operation by the user on the preset regular expression selection channel 53, multiple preset regular expressions 55 may be displayed, and the user can select any preset regular expression 55 as the current retrieval keyword according to actual needs.
[0081] The annotation style conversion method provided in this embodiment pre-sets multiple content determination channels, so that the user can more flexibly select the content determination channel, and then can quickly and accurately determine the retrieval keywords based on the selected content determination channel.
[0082] Optionally, on the basis of any of the above embodiments, step 103 includes:
[0083] Display the first selection interface in the first display area within the second display interface.
[0084] Display the second selection interface in the second display area within the second display interface.
[0085] In this embodiment, the second display interface includes a first display area and a second display area. The first display area and the second display area can be displayed side by side within the second display interface, and their corresponding display sizes are the same.
[0086] Display the first selection interface in the first display area within the second display interface. The first selection interface is used to select the hyperlink associated with the first term. Display the second selection interface in the second display area within the second display interface. The second selection interface is used to perform a selection operation on the first paraphrase content.
[0087] Further, on the basis of any of the above embodiments, after step 103, it further includes:
[0088] Display the first text segment associated with the first term in the electronic publication in the first selection interface, and highlight the first term in the first text segment.
[0089] In the second selection interface, display a second text segment in the electronic publication that is associated with the first paraphrased content, and highlight the currently selected content in the first paraphrased content within the second text segment.
[0090] In this embodiment, the second display interface may include a first selection interface and a second selection interface. The first selection interface is used to display a first text segment in the electronic publication that is associated with the first term.
[0091] Optionally, the first text segment may include the context paragraphs where the first term is located. For example, the first text segment may be the first N paragraphs and the last N paragraphs associated with the first term. These multiple paragraphs can be displayed within one screen.
[0092] To enable the user to more intuitively determine the current edited content, the first term may also be highlighted within the first text segment. Alternatively, a hyperlink associated with the first term may be highlighted within the first text segment.
[0093] Furthermore, a second text segment in the electronic publication that is associated with the first paraphrased content may be displayed in the second selection interface. The second text segment may be the context paragraphs associated with the first paraphrased content.
[0094] The first paraphrased content may be a paragraph or a sentence, etc. The user can perform a selection operation on the first paraphrased content according to actual needs. At least part of the content selected by the user is the display content in the bubble annotation. To enable the user to more intuitively determine the current edited content, the currently selected content in the first paraphrased content may also be highlighted within the second text segment.
[0095] The annotation style conversion method provided in this embodiment highlights the currently selected content within the second display interface, enabling the user to more intuitively view the currently selected content and more intuitively perform further editing operations such as extended selection and filtering, thereby improving the efficiency of annotation style conversion.
[0096] Furthermore, based on any of the above embodiments, after step 103, the method further includes:
[0097] Display a first editing area within the first selection interface, and display the first source code of the hyperlink associated with the first term and a preset first content extended selection control within the first editing area.
[0098] In response to the user's triggering operation on the first content extended selection control, determine the first source code, the parent node, and the grandparent node associated with the first source code as the first target source code associated with the first term.
[0099] And,
[0100] A second editing area is displayed within the second selection interface, and within the second editing area, a second source code associated with the currently selected content in the first paraphrase content and a preset second content expansion control are displayed.
[0101] In response to the user's triggering operation on the second expansion control, a selection operation is performed on all the text associated with the first paraphrase content to obtain a second target source code.
[0102] In this embodiment, the first selection interface includes a first editing area, which is specifically used for performing an editing operation on the currently selected content. Among them, the currently selected content can be a hyperlink associated with a first term. By triggering this hyperlink, it is possible to jump to the position of the first paraphrase content to view the first paraphrase content.
[0103] Optionally, a first source code of a hyperlink associated with the first term and a preset first content expansion control are displayed within the first editing area. Therefore, the user can view the source code associated with the currently selected content within the first editing area.
[0104] In order to implement the conversion of the annotation style, it is necessary to replace the hyperlink associated with the first term with an icon code associated with a preset icon. The first source code associated with the hyperlink may include a parent node and a grandparent node. If only the first source code is replaced during the replacement operation, it may cause some fields in the icon code to be repeated with the fields in its parent node and grandparent node. In order to accurately perform the replacement operation, in response to the user's triggering operation on the first content expansion control, the first source code, the parent node associated with the first source code, and the grandparent node are determined as the first target source code associated with the first term.
[0105] Furthermore, a second editing area is displayed within the second selection interface, and within the second editing area, a second source code associated with the currently selected content in the first paraphrase content and a preset second content expansion control are displayed. The user can perform an editing operation on the currently selected content according to actual needs.
[0106] Optionally, the currently selected content may only be a part of the first paraphrase content. Therefore, in response to the user's triggering operation on the second expansion control, a selection operation is performed on all the text associated with the first paraphrase content to obtain a second target source code.
[0107] Or, the currently selected content may be all the content of the first paraphrase content, and the user can also reduce the selected content according to actual needs. Therefore, the second editing area further includes a filtering control, and the user can reduce the selected content by triggering this filtering control.
[0108] The annotation style conversion method provided in this embodiment can display a first selection interface associated with a first term and a second selection interface associated with the first paraphrase content within the second display interface, so that users can more flexibly perform selection operations on the content displayed in the bubble annotation. This makes the annotation content displayed in the finally converted bubble annotation more in line with the actual needs of users, improving the efficiency and accuracy of annotation conversion.
[0109] Further, based on any of the above embodiments, the method further includes:
[0110] In response to a trigger operation by the user on the currently selected content, an editing interface is displayed, and the currently selected content is displayed within the editing interface.
[0111] Obtain the editing content determined by the user for the currently selected content, and perform an editing operation on the currently selected content based on the editing content. The editing operation includes one or more of an addition operation, a deletion operation, and a modification operation.
[0112] In this embodiment, during the selection process of the first annotation content, the user can also perform an editing operation on the paraphrase content according to actual needs, so that the annotation content displayed in the finally converted bubble annotation is more in line with the actual needs of the user.
[0113] Optionally, after at least part of the paraphrase content is selected within the second display interface, in response to a trigger operation by the user on the currently selected content, an editing interface is displayed, and the currently selected content is displayed within the editing interface. The user can determine the editing content within the editing interface. The editing content can be manually input by the user, or can also be determined by the user based on a preset editing control. The editing control is specifically used to remove the content selected at the starting position, or to remove the content selected at the ending position, etc.
[0114] Further, an editing operation can be performed on the currently selected content based on the editing content. The editing operation includes one or more of an addition operation, a deletion operation, and a modification operation.
[0115] The annotation style conversion method provided in this embodiment can display an editing interface in response to a trigger operation by the user on the currently selected content, so that the user can perform an editing operation on the selected paraphrase content according to actual needs, making the annotation content displayed in the finally converted bubble annotation more in line with the actual needs of the user, and improving the efficiency and accuracy of annotation conversion.
[0116] Figure 6 For the flowchart of the annotation style conversion method provided in another embodiment of the present disclosure, based on any of the above embodiments, step 104 includes:
[0117] Step 601: Replace the first target source code with the icon code associated with the preset icon.
[0118] Step 602: Add a text node at the position associated with the first target source code in the document object model associated with the electronic publication. The text node includes the second target source code.
[0119] Step 603: Replace the second target source code in the document object model with a preset empty code field.
[0120] In this embodiment, after the user completes the selection operation of the first target source code and the second target source code, since the first target source code is a hyperlink, or the codes corresponding to the parent node and the grandparent node associated with the hyperlink. To achieve style conversion, the first target source code can be replaced with the icon code associated with the preset icon. Therefore, the preset icon can be displayed at the first term position.
[0121] For example, in the jump chain annotation, a superscript of [1] can be displayed in the upper right corner of the first term. After replacing the first target source code with the icon code associated with the preset icon, a superscript of "Note" can be displayed in the upper right corner of the first term.
[0122] Furthermore, to achieve the display of the bubble annotation, a text node (section node) can also be added at the position associated with the first target source code in the document object model associated with the electronic publication. The text node includes the second target source code. Through the above addition operation, a preset bubble can be displayed within the page where the first term is located, and the first paraphrase content selected by the user can be displayed within the preset bubble.
[0123] After completing the addition of the bubble annotation, to avoid duplicate and redundant content in the electronic publication, an operation of deleting the original first paraphrase content in the document object model can also be performed. Therefore, the second target source code in the document object model can be replaced with a preset empty code field (null).
[0124] The annotation style conversion method provided in this embodiment can display the preset icon at the position associated with the first term by switching the hyperlink associated with the first term to the icon code associated with the preset icon. In addition, by adding a text node, when the user clicks on the preset icon, the first paraphrase content can be displayed in the form of a bubble within the page where the first term is located, without having to jump to other pages to view the paraphrase. In addition, by replacing the second target source code in the document object model with a preset empty code field, the deletion of the original first paraphrase content can be achieved to avoid duplicate and redundant content in the electronic publication.
[0125] Further, based on any of the above embodiments, a preset preview control is further included in the first display interface. After step 104, the following steps are further included:
[0126] In response to the user's triggering operation on the preview control, a preview interface is displayed.
[0127] The original document object model associated with the electronic publication is displayed in the first display area of the preview interface, and the updated document object model associated with the electronic publication is displayed in the second display area of the preview interface.
[0128] Among them, different text editing operations on the original document object model are highlighted in different colors.
[0129] In this embodiment, after the user completes the annotation style conversion operation for the first term, or after the user completes the annotation style conversion operation for a batch of preset terms, the user can also view the current modification situation according to actual needs.
[0130] Optionally, a preset preview control is further included in the first display interface. In response to the user's triggering operation on the preview control, a preview interface is displayed. Among them, the preview interface includes a first display area and a second display area. The first display area and the second display area can be horizontally displayed, so that the user can more intuitively determine the modification traces of each line.
[0131] Further, the original document object model associated with the electronic publication can be displayed in the first display area of the preview interface, and the updated document object model associated with the electronic publication can be displayed in the second display area of the preview interface. The user can view the original document object model and the updated document object model in the preview interface for comparison.
[0132] In order to enable the user to more intuitively view the current modification situation, different text editing operations on the original document object model are highlighted in different colors. For example, the area where an addition operation has been performed can be set to red highlight, and the area where a deletion operation has been performed can be set to green highlight, etc. The present disclosure does not limit this.
[0133] The annotation style conversion method provided in this embodiment displays a preview control, so that the user can more intuitively view the conversion situation of the current annotation conversion operation by clicking the preview control. This facilitates the user to perform operations such as modifying the code based on actual needs.
[0134] Figure 7A flowchart of a note style conversion method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the first display interface further includes a source code range associated with each search result, and the source code range is used to represent the position information of the search result in the document object model. As Figure 7 shown, after step 104, it further includes:
[0135] Step 701, determine the number of character changes caused by this note style conversion operation.
[0136] Step 702, perform an update operation on the source code ranges associated with multiple search results to be updated in the first display interface, where the search results to be updated are search results that are located behind the target search result triggered by the user in the document object model and do not overlap with the target search result triggered by the user.
[0137] In this embodiment, during the note conversion process, it is necessary to modify the source code in the document object model. And the modification operation will cause a change in the number of characters. For example, the note conversion operation may cause an increase or decrease in the number of source code characters in the document object model.
[0138] For multiple search results, they can be sorted and displayed according to their positions in the electronic publication. When performing note style conversion on the preset terms associated with the search results sorted later, it will not affect the source code ranges of their prior search results. However, when performing note style conversion on the preset terms associated with the search results sorted earlier, it will affect the source code ranges of the search results whose display positions are behind them.
[0139] Therefore, in order to be able to more accurately locate the preset terms and their associated paraphrase content, after completing the note style conversion of the first term, the number of character changes caused by this note style conversion operation can be determined.
[0140] Furthermore, multiple search results to be updated can be determined among multiple search results. Among them, the search results to be updated are search results that are located behind the target search result triggered by the user in the document object model and do not overlap with the target search result triggered by the user. Therefore, an update operation can be performed on the source code ranges associated with multiple search results to be updated in the first display interface based on the number of character changes.
[0141] Optionally, after converting the jump link note associated with the first term into a bubble note, the original first note content can be deleted. If the source code range of the first note content is behind the first term and it has been deleted, then the search result to be updated corresponding to the first note content becomes invalid and the conversion of its source code range cannot be performed.
[0142] Further, based on any of the above embodiments, step 602 includes:
[0143] Add the number of character changes to the numerical values of the left endpoint and the right endpoint associated with the source code range associated with the retrieval result to be updated, to obtain an updated source code range.
[0144] In this embodiment, the source code range associated with the retrieval result to be updated includes left and right endpoints. In order to accurately perform the positioning operation of the preset terms and the paraphrased content, it is necessary to update both the left and right endpoints.
[0145] Optionally, after determining the number of character changes corresponding to the annotation conversion operation, the number of character changes may be added to the numerical values of the left endpoint and the right endpoint associated with the source code range associated with the retrieval result to be updated, to obtain an updated source code range.
[0146] Taking an actual application as an example, assume that the source code range associated with the retrieval result to be updated is [100, 110], and the number of character changes corresponding to this annotation conversion operation is -10. Then the source code range can be updated to [100 - 10, 110 - 10] = [90, 100].
[0147] The annotation style conversion method provided in this embodiment can, after completing the annotation conversion operation on the terms located in the front, modify the source code range associated with the terms located behind it, so as to more accurately perform the positioning of the preset terms and their associated paraphrased content based on the updated source code range, and further improve the accuracy of subsequent annotation conversion operations.
[0148] Figure 8 It is a schematic structural diagram of an annotation style conversion device provided for an embodiment of the present disclosure, as Figure 8As shown in the figure, the device includes: a retrieval module 81, a determination module 82, a selection module 83, and a switching module 84. The retrieval module 81 is configured to display, on a preset first display interface, at least one retrieval result associated with a preset term and / or paraphrase content in an electronic publication, as well as a processing control associated with each retrieval result. The electronic publication includes a plurality of preset terms, and the preset terms are associated with jump-link annotations, which are configured to, in response to a triggering operation by the user, jump to the interface where the paraphrase content mapped by the preset term is located to display the paraphrase content. The determination module 82 is configured to, in response to the triggering operation by the user on the processing control associated with any target retrieval result, determine the first term associated with the target retrieval result and the first paraphrase content corresponding to the first term. The selection module 83 is configured to separately display, on a preset second display interface, a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content, and display a preset conversion control. The first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the content in the first paraphrase content. The switching module 84 is configured to, in response to the triggering operation by the user on the conversion control, switch the jump-link annotation associated with the first term to a bubble annotation, and the bubble annotation is configured to switch the hyperlink associated with the first term to a preset icon. Based on the triggering operation by the user on the preset icon, at least part of the content in the first paraphrase content is displayed on the interface where the first term is located.
[0149] Further, on the basis of any of the above embodiments, the device further includes: an acquisition module, configured to acquire a document object model associated with the electronic publication. A determination module, configured to, in response to a retrieval operation triggered by the user, acquire a retrieval keyword determined by the user and associated with the preset term and / or paraphrase content. A retrieval module, configured to retrieve at least one retrieval result that matches the retrieval keyword in the document object type.
[0150] Further, on the basis of any of the above embodiments, the determination module is configured to: display a preset third display interface, which includes at least one content determination channel, and the content determination channel includes at least one of a regular expression input channel, a preset regular expression selection channel, and a tag input channel. In response to the selection operation triggered by the user for at least one content determination channel, determine the target content determination channel currently determined by the user. Acquire the retrieval keyword determined by the user based on the target content determination channel and associated with the preset term and / or paraphrase content.
[0151] Further, based on any of the above embodiments, the selection module is configured to: display the first selection interface in a first display area within the second display interface; display the second selection interface in a second display area within the second display interface, wherein the first display area and the second display area are horizontally distributed within the second display interface.
[0152] Further, based on any of the above embodiments, the apparatus further includes: a first display module, configured to display a first text segment associated with the first term in the electronic publication in the first selection interface, and highlight the first term in the first text segment; a second display module, configured to display a second text segment associated with the first paraphrase content in the electronic publication in the second selection interface, and highlight the currently selected content in the first paraphrase content in the second text segment.
[0153] Further, based on any of the above embodiments, the apparatus further includes: a display module, configured to display a first editing area within the first selection interface, where a first source code of a hyperlink associated with the first term and a preset first content expansion control are displayed in the first editing area; a selection module, configured to, in response to a trigger operation of the user on the first content expansion control, determine the first source code, the parent node and the grandparent node associated with the first source code as a first target source code associated with the first term; and a display module, configured to display a second editing area within the second selection interface, where a second source code of a currently selected content associated with the first paraphrase content and a preset second content expansion control are displayed in the second editing area; a selection module, configured to, in response to a trigger operation of the user on the second expansion control, perform a selection operation on all the text associated with the first paraphrase content to obtain a second target source code.
[0154] Further, based on any of the above embodiments, the apparatus further includes: a display module, configured to display an editing interface in response to a trigger operation of the user on the currently selected content, and display the currently selected content in the editing interface; an editing module, configured to obtain the editing content determined by the user for the currently selected content, and perform an editing operation on the currently selected content based on the editing content, where the editing operation includes one or more of an addition operation, a deletion operation, and a modification operation.
[0155] Further, based on any of the above embodiments, the switching module is configured to: replace the first target source code with the icon code associated with the preset icon. Add a text node at the position associated with the first target source code in the document object model associated with the electronic publication, where the text node includes the second target source code. Replace the second target source code in the document object model with a preset empty code field.
[0156] Further, based on any of the above embodiments, the first display interface further includes a source code range associated with each search result, and the source code range is used to represent the position information of the search result in the document object model. The apparatus further includes: a determining module, configured to determine the number of character changes caused by the current annotation style conversion operation. An updating module, configured to perform an updating operation on the source code ranges associated with multiple search results to be updated in the first display interface based on the number of character changes, where the search results to be updated are search results that are located behind the target search result triggered by the user in the document object model and do not overlap with the target search result triggered by the user.
[0157] Further, based on any of the above embodiments, the updating module is configured to: add the number of character changes to the left endpoint value and the right endpoint value associated with the source code range associated with the search result to be updated, to obtain an updated source code range.
[0158] Further, based on any of the above embodiments, the first display interface further includes a preset preview control. The apparatus further includes: a display module, configured to display a preview interface in response to a trigger operation of the user on the preview control. A processing module, configured to display the original document object model associated with the electronic publication in the first display area of the preview interface, and display the updated document object model associated with the electronic publication in the second display area of the preview interface. Among them, different text editing operations on the original document object model are highlighted in different colors.
[0159] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here in this embodiment.
[0160] To implement the above embodiments, the present disclosure embodiments further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the annotation style conversion method as described in any of the above embodiments is implemented.
[0161] To implement the above embodiments, the embodiments of the present disclosure also provide a computer program product, including a computer program which, when executed by a processor, implements the annotation style conversion method described in any of the above embodiments.
[0162] To implement the above embodiments, the embodiments of the present disclosure also provide an electronic device, including: a processor and a memory;
[0163] The memory stores computer-executable instructions;
[0164] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the annotation style conversion method described in any of the above embodiments.
[0165] Figure 9 FIG. is a schematic structural diagram of the electronic device provided by the embodiments of the present disclosure. The electronic device 900 may be a terminal device or a server. Among them, the terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs for short), tablet computers, portable media players (PMPs for short), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 9 The illustrated electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
[0166] As Figure 9 shown, the electronic device 900 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 901, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0167] Typically, the following devices can be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and a communication device 909. The communication device 909 can allow the electronic device 900 to communicate with other devices wirelessly or wireline to exchange data. Although Figure 9 the electronic device 900 with various devices is shown, it should be understood that it is not required to implement or include all the shown devices. Instead, more or fewer devices can be implemented or included.
[0168] Specifically, according to an embodiment of the present disclosure, the processes described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above functions defined in the methods of the embodiments of the present disclosure are performed.
[0169] It should be noted that the above computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0170] The above computer-readable medium may be included in the above electronic device; or it may exist separately and not be assembled into the electronic device.
[0171] The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to execute the method shown in the above embodiments.
[0172] Computer program code for performing the operations of this disclosure may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0173] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0174] The units involved in the embodiments described in this disclosure may be implemented in software or in hardware. Among them, the name of the unit does not constitute a limitation to the unit itself in some cases. For example, the first acquisition unit may also be described as "the unit for acquiring at least two Internet protocol addresses".
[0175] The functions described above in this document may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on a chip (SOC), complex programmable logic devices (CPLD), and so on.
[0176] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0177] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0178] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment can also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0179] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for converting annotation styles, characterized in that, Including: Display, on a preset first display interface, at least one search result associated with a preset term and / or paraphrase content in an electronic publication, and a processing control associated with each search result. The electronic publication includes a plurality of preset terms, and a jump link note is associated with each preset term. The jump link note is configured to, in response to a triggering operation by the user, jump to the interface where the paraphrase content mapped by the preset term is located and display the paraphrase content; In response to the triggering operation by the user on the processing control associated with any target search result, determine the first term associated with the target search result and the first paraphrase content corresponding to the first term; On a preset second display interface, respectively display a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content, and display a preset conversion control. The first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the content in the first paraphrase content; In response to the triggering operation by the user on the conversion control, switch the jump link note associated with the first term to a bubble note. The bubble note is configured to switch the hyperlink associated with the first term to a preset icon, and based on the triggering operation by the user on the preset icon, display at least part of the content in the first paraphrase content on the interface where the first term is located; 2. The method according to claim 1, wherein Before displaying, on the preset first display interface, at least one search result associated with a preset term and / or paraphrase content in the electronic publication, and a processing control associated with each search result, further includes: Obtain a document object model associated with the electronic publication; In response to the search operation triggered by the user, obtain the search keyword determined by the user and associated with the preset term and / or paraphrase content; Search in the document object type for at least one search result that matches the search keyword; 3. The method according to claim 2, wherein The obtaining the search keyword determined by the user and associated with the preset term and / or paraphrase content includes: Display a preset third display interface, where the third display interface includes at least one content determination channel, and the content determination channel includes at least one of a regular expression input channel, a preset regular expression selection channel, and a tag input channel; In response to the selection operation triggered by the user for at least one content determination channel, determine the target content determination channel currently determined by the user; Obtain the search keyword determined by the user based on the target content determination channel and associated with the preset term and / or paraphrase content; 4. The method according to claim 1, wherein The respectively displaying, on the preset second display interface, the first selection interface associated with the first term and the second selection interface associated with the first paraphrase content includes: Display the first selection interface in a first display area within the second display interface; Display the second selection interface in a second display area within the second display interface; Wherein, the first display area and the second display area are horizontally distributed within the second display interface.
5. The method according to claim 1, wherein After respectively displaying the first selection interface associated with the first term and the second selection interface associated with the first paraphrase content in the preset second display interface, the following steps are further included: Display the first text fragment associated with the first term in the electronic publication in the first selection interface, and highlight the first term in the first text fragment; Display the second text fragment associated with the first paraphrase content in the electronic publication in the second selection interface, and highlight the currently selected content in the first paraphrase content in the second text fragment.
6. The method according to claim 1, wherein After respectively displaying the first selection interface associated with the first term and the second selection interface associated with the first paraphrase content in the preset second display interface, the following steps are further included: Display a first editing area in the first selection interface, and display the first source code of the hyperlink associated with the first term and a preset first content expansion selection control in the first editing area; In response to the triggering operation of the user on the first content expansion selection control, determine the first source code, the parent node and the grandparent node associated with the first source code as the first target source code associated with the first term; And, Display a second editing area in the second selection interface, and display the second source code associated with the currently selected content in the first paraphrase content and a preset second content expansion selection control in the second editing area; In response to the triggering operation of the user on the second expansion selection control, perform a selection operation on all the text associated with the first paraphrase content to obtain a second target source code.
7. The method according to claim 6, characterized in that, The method further includes: In response to the triggering operation of the user on the currently selected content, display an editing interface, and display the currently selected content in the editing interface; Obtain the editing content determined by the user for the currently selected content, and perform an editing operation on the currently selected content based on the editing content, where the editing operation includes one or more of an addition operation, a deletion operation, and a modification operation.
8. The method according to claim 6, wherein The switching of the jump link annotation associated with the first term to a bubble annotation includes: Replace the first target source code with the icon code associated with the preset icon; Add a text node at the position associated with the first target source code in the document object model associated with the electronic publication, and the text node includes the second target source code; Replace the second target source code in the document object model with a preset empty code field.
9. The method according to any one of claims 1-8, characterized in that, The first display interface further includes a source code range associated with each search result, and the source code range is used to represent the position information of the search result in the document object model; After switching the jump link annotation associated with the first term to a bubble annotation, the following steps are further included: Determine the number of character changes caused by this annotation style conversion operation; Perform an update operation on the source code ranges associated with multiple search results to be updated in the first display interface based on the number of character changes, where the search results to be updated are search results that are located behind the target search result triggered by the user in the document object model and do not overlap with the target search result triggered by the user.
10. The method according to claim 9, wherein Performing an update operation on the source code ranges associated with multiple target retrieval results in the first display interface based on the number of character changes, includes: Adding the number of character changes to the numerical values of the left endpoint and the right endpoint associated with the source code range associated with the retrieval result to be updated, to obtain an updated source code range.
11. The method according to any one of claims 1-8, characterized in that, The first display interface further includes a preset preview control; After switching the jump link annotation associated with the first term to a bubble annotation, further includes: In response to a trigger operation of the user on the preview control, displaying a preview interface; Displaying the original document object model associated with the electronic publication in the first display area of the preview interface, and displaying the updated document object model associated with the electronic publication in the second display area of the preview interface; Among them, different text editing operations on the original document object model are highlighted in different colors.
12. An annotation style conversion device, characterized in that, Includes: A retrieval module, configured to display at least one retrieval result associated with a preset term and / or paraphrase content in an electronic publication and processing controls associated with each retrieval result in a preset first display interface. The electronic publication includes multiple preset terms, and the preset terms are associated with jump link annotations, and the jump link annotations are configured to, in response to a trigger operation of the user, jump to the interface where the paraphrase content mapped by the preset term is located to display the paraphrase content; A determination module, configured to, in response to a trigger operation of the user on the processing control associated with any target retrieval result, determine the first term associated with the target retrieval result and the first paraphrase content corresponding to the first term; A selection module, configured to respectively display a first selection interface associated with the first term and a second selection interface associated with the first paraphrase content in a preset second display interface, and display a preset conversion control. The first selection interface is used to select a hyperlink associated with the first term, and the second selection interface is used to select at least part of the content in the first paraphrase content; A switching module, configured to, in response to a trigger operation of the user on the conversion control, switch the jump link annotation associated with the first term to a bubble annotation. The bubble annotation is configured to switch the hyperlink associated with the first term to a preset icon, and based on a trigger operation of the user on the preset icon, display at least part of the content in the first paraphrase content in the interface where the first term is located.
13. An electronic device, characterized in that, Includes: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the annotation style conversion method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium. When the processor executes the computer execution instructions, the annotation style conversion method according to any one of claims 1 to 11 is implemented.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the annotation style conversion method according to any one of claims 1 to 11 is implemented.