Network document processing method and apparatus applied to a mobile terminal, and mobile terminal

By displaying the search toolbar in the network document page of the mobile terminal and hiding the toolbar and displaying the search identifier after detecting the global search command, the problem of inconvenience in searching network documents caused by the small display screen of the mobile terminal is solved, and fast search of network document content is achieved.

CN114117182BActive Publication Date: 2025-08-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010902523.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2025-08-05
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The display screen of the mobile terminal is small, which leads to inconvenience in finding the content of the network document, and the existing technology lacks effective quick search methods.

Method used

The search toolbar is displayed in the network document page of the mobile terminal. Users can enter keywords, hide the toolbar after detecting the global search command and display the search identifier in the document to realize the positioning and display the keywords.

Benefits of technology

Even if the display screen is small, users can still quickly locate and find keywords in network documents, improving the efficiency and user experience of network documents searching for mobile terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117182B_ABST
    Figure CN114117182B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a network document processing method and apparatus applied to a mobile terminal. The method includes: displaying a network document page, where a loaded network document and an instruction trigger area are displayed in the network document page; when it is detected that a document content search instruction is triggered in the instruction trigger area, displaying a search toolbar above the network document displayed in the network document page; displaying the entered keyword in the search toolbar; if it is detected that a global search instruction is triggered in the search toolbar, hiding the search toolbar, and displaying a search mark at the page position where the keyword is located in the network document, where the search mark is used to perform positioning display for the page containing the keyword in the network document page. The technical solution of the embodiments of the present application can achieve quick search of network document content in a mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of information processing, and particularly relates to a network document method and device applied to a mobile terminal, and also relates to a mobile terminal and a computer-readable storage medium. Background Art

[0002] Network documents, also known as Web documents, are usually displayed in the form of web pages on terminal devices such as computers, smartphones, and tablets. Since the display screens of mobile terminals such as smartphones are small, the process of searching for document content in network documents is very inconvenient. Therefore, mobile terminals do not support searching for document content in network documents.

[0003] Therefore, how to quickly search for network document content on a mobile terminal is a technical problem to be solved in the prior art. Summary of the Invention

[0004] To solve the above technical problems, embodiments of the present application provide a network document processing method and device applied to a mobile terminal, and also provide a mobile terminal and a computer-readable storage medium, so as to facilitate searching for document content in network documents loaded on the mobile terminal.

[0005] Among them, the technical solution adopted by this application is as follows:

[0006] A network document processing method applied to a mobile terminal includes: displaying a network document page, where the network document page displays a loaded network document and an instruction trigger area; when it is detected that a document content search instruction is triggered in the instruction trigger area, displaying a search toolbar above the network document displayed in the network document page; displaying the entered keyword in the search toolbar; if it is detected that a global search instruction is triggered in the search toolbar, hiding the search toolbar, and displaying a search identifier at the page position of the keyword contained in the network document, where the search identifier is used to position and display the page containing the keyword in the network document page.

[0007] In another exemplary embodiment, the method further includes: determining the page position of the keyword found in the network document page; constructing a position index between each keyword and the display position of each keyword in the network document page according to the page positions of each keyword.

[0008] In another exemplary embodiment, the process of hiding the search toolbar includes: hiding the entire search toolbar at the edge of the network document page and displaying a hide control at the edge of the network document page; or, displaying a hide control at the edge of the network document page and displaying the keyword switching identifier and search quantity control contained in the search toolbar above the hide control. If the hide control is triggered, the search toolbar will be restored and displayed on the network document page.

[0009] In another exemplary embodiment, if the keyword is not found in the online document page, the keyword entered in the search toolbar is cleared, and the keyword entered in the search toolbar is continuously detected.

[0010] A network document processing device applied to a mobile terminal includes: a page display module for displaying a network document page, where a loaded network document and an instruction trigger area are displayed in the network document page; a toolbar display module for displaying a search toolbar above the network document displayed in the network document page when it is detected that a document content search instruction is triggered in the instruction trigger area; a search display module for displaying the entered keyword in the search toolbar; a global search module for hiding the search toolbar when it is detected that a global search instruction is triggered in the search toolbar, and displaying a search identifier at the page position where the keyword is located in the network document, where the search identifier is used to perform positioning display on the network document page containing the keyword.

[0011] A mobile terminal includes a processor and a memory, and a computer-readable instruction is stored on the memory. When the computer-readable instruction is executed by the processor, the network document processing method applied to the mobile terminal as described above is implemented.

[0012] A computer-readable storage medium stores a computer-readable instruction. When the computer-readable instruction is executed by a processor of a computer, the computer is caused to execute the network document processing method applied to the mobile terminal as described above.

[0013] In the above technical solution, a network document page is displayed on the display screen of the mobile terminal. The network document page displays the loaded network document and an instruction trigger area. When the instruction trigger area triggers a document content search instruction, a search toolbar is displayed above the network document shown on the network document page, enabling the user to enter keywords in the search toolbar. If a global search instruction triggered in the search toolbar is detected, the search toolbar is hidden, and a search identifier is displayed at the page position where the keyword is located in the network document. Based on this, the network document can be full-screen displayed on the display screen of the mobile terminal. Combining the search identifiers displayed at the page positions of each keyword in the network document, the user can conveniently locate and search for each keyword in the network document page, thus achieving a quick search for the content of the network document in the mobile terminal.

[0014] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and cannot limit this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application. Obviously, the accompanying drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. In the drawings:

[0016] Figure 1 is a schematic structural diagram of an exemplary network document processing application;

[0017] Figure 2 is Figure 1 the interaction flowchart between the client and the Web side when performing document content search in the shown network document processing application;

[0018] Figure 3 is a flowchart of a network document processing method applied to a mobile terminal shown in an exemplary embodiment;

[0019] Figure 4 is a schematic diagram of an exemplary network document page;

[0020] Figure 5 is a schematic diagram of another exemplary network document page;

[0021] Figure 6 is a schematic diagram of another exemplary network document page;

[0022] Figure 7 is a schematic diagram of another exemplary network document page;

[0023] Figure 8 It is a flowchart of a network document processing method applied to a mobile terminal shown in another exemplary embodiment;

[0024] Figure 9 It is a schematic diagram of another exemplary network document page;

[0025] Figure 10 It is a schematic diagram of another exemplary network document page;

[0026] Figure 11 It is a schematic diagram of another exemplary network document page;

[0027] Figure 12 It is a schematic diagram of another exemplary network document page;

[0028] Figure 13 It is a schematic diagram of another exemplary network document page;

[0029] Figure 14 It is a block diagram of a network document processing apparatus applied to a mobile terminal shown in an exemplary embodiment;

[0030] Figure 15 It is a schematic diagram of the structure of a mobile terminal shown according to an exemplary embodiment. Detailed implementation manners

[0031] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all the implementation manners consistent with the present application. On the contrary, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0033] The flowcharts shown in the drawings are only exemplary descriptions, and do not necessarily include all the content and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined. Therefore, the actual execution order may be changed according to the actual situation.

[0034] In the description of the present application, unless otherwise specified, the meaning of "plurality" is at least two.

[0035] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the architecture of an exemplary network document processing application. The network document processing application can be installed and run on mobile terminals such as smart phones and tablet computers to implement the processing of network documents by the mobile terminals.

[0036] As Figure 1 shown, in an exemplary embodiment, the network document processing application consists of two parts: a client 10 and a Web side 20. Among them, the client 10 is a native program developed by using the official development language, development libraries, and development tools on mobile terminal operating systems such as Android and IOS, and the Web side 20 is a web program developed by using web technologies.

[0037] Specifically, the client 10 includes an instruction management module 11 and a UI loading and updating module 12. The instruction management module 11 mainly implements business functions such as the status management of network documents, the search management of network documents, the parsing of protocol instruction data, and the parsing of result sending and receiving. The status of network documents can include states such as browsing, searching, editing, and commenting. The UI loading and updating module 12 mainly implements business functions such as the management of the extended menu entry for local search, the management of the global search toolbar, and the management of network document loading and updating.

[0038] The Web side 20 includes an instruction processing module 21 and a content synchronization module 22. Among them, the instruction processing module 21 and the instruction management module 11 load and synchronize the document data content to implement the relevant business functions of the instruction management module 11. The content synchronization module 22 and the UI loading and updating module 12 transmit data such as real-time search instructions and search results of network documents to implement the relevant business functions of the UI loading and updating module 12.

[0039] Thus, the network document processing application proposed in this embodiment is developed based on a hybrid development mode. In the hybrid development mode, the client 10 provides a web container and loads the document content contained in the network document in the form of a web page on the client 10. Therefore, the main business functions and UI (User Interface) display of the client 10 depend on the Web side 20 to implement.

[0040] In an exemplary embodiment, the network document processing application can specifically be an online document processing application. An online document is a document tool developed based on the Web side, which supports multiple users to share the document, and users can also jointly edit the document.

[0041] Please refer to Figure 2 ,Figure 2 Yes Figure 1 The interaction flowchart between the client and the Web side when the network document processing application shown searches for document content.

[0042] As Figure 2 shown, if the client opens and enters the network document page, the UI loading and updating module correspondingly loads the extended menu bar. The extended menu bar contains a search entry for the network document content, and the instruction management module correspondingly starts the search management function.

[0043] If the user triggers the search entry in the extended menu bar, the client sends a search initialization start instruction to the instruction management module, so that the instruction management module starts the initialization of the search function according to the initialization start instruction. If the initialization starts successfully, an initialization instruction is sent to the instruction processing module. The instruction processing module analyzes the received initialization instruction, switches the network document from the browsing state to the search state, and notifies the client that the initialization is complete, causing the client to display a search toolbar in the display interface and enter the search mode for the network document content.

[0044] If the user enters the keyword to be searched in the search toolbar, the UI loading and updating module obtains the entered keyword content based on the status of the entered keyword monitored in real time. The instruction management module assembles the entered keyword content into a search instruction message in accordance with a pre-agreed instruction format, and calls the JS (JavaScript, a programming language) call interface provided by the Web side to send the search instruction message to the Web side. After receiving the search instruction message, the Web side analyzes the search instruction message through the instruction processing module, extracts the keyword to be searched, and performs a global search for the keyword on the network document page to obtain each keyword contained in the network document page and the page position where each keyword is located. The content synchronization module performs a highlighted display rendering at the page position where the keyword is located according to the keyword search result, so that all keywords contained in the network document page are highlighted in the UI interface. The instruction processing module also feeds back the keyword search result to the instruction management module, so that the instruction management module analyzes the keyword search result to obtain each keyword contained in the network document page and the page position where each keyword is located. The UI loading module then refreshes the display status of the search toolbar based on the information analyzed by the instruction management module, such as refreshing the total number of keywords displayed in the search toolbar, the trigger status of the keyword switching identifier, etc.

[0045] If the user triggers the search completion control in the search toolbar, the UI loading and updating module automatically shrinks the search toolbar to the bottom of the previous document page to hide the search toolbar and fully display the web document page, thus entering the full-screen search state of the web document. And based on the keyword search results provided by the Web side, the page positions where each keyword is located are still highlighted in the fully displayed web document page.

[0046] If the user triggers the close operation of the web document page, the UI loading and updating module automatically retracts the search toolbar, the instruction management module exits the search state of the web document page, and sends a search state exit instruction to the Web side to notify the Web side to synchronously switch the state of the web document page. After receiving the exit instruction, the Web side controls the creation state of the web document to be switched to the browsing state through the instruction module, and controls the cancellation of the highlighting of the keywords in the web document page through the content synchronization module, so that the web document page returns to the normal browsing mode.

[0047] Based on Figure 2 the interaction process between the client and the Web side as shown, the entire process of content search for web documents in the web document processing application is realized, including the switching of the search state, the search for input keywords, the display of search results, and the response to search exit, etc. Even if the display screen of the mobile terminal is very small, based on the web document content search process provided in this embodiment, it is convenient for users to search for document content in the web documents loaded on the mobile terminal.

[0048] Figure 3 is a flowchart of a web document processing method applied to a mobile terminal shown in an exemplary embodiment. The mobile terminal can be a terminal device such as a smart phone or a tablet computer, in which a web document processing application is running, and the web document processing application has a program architecture as Figure 1 shown. This method corresponds to the code execution logic of the client part configured in the web document processing application, so this method is specifically executed by the mobile terminal.

[0049] Since the display screen of the mobile terminal is very small, the process of searching for document content in the web document is very convenient. Therefore, existing mobile terminals do not have the function of searching for web document content. However, when there is a large amount of document content in the web document, it is difficult for users to quickly obtain the content they want to view based on the web document page displayed on the mobile terminal, which increases the user's ineffective browsing time and also affects the user's online browsing experience.

[0050] To solve this problem, this embodiment proposes a network document processing method applied to a mobile terminal. By executing this method on the mobile terminal, the mobile terminal has the function of searching for network document content. Even if the display screen of the mobile terminal is small, users can still conveniently search for document content in the network documents displayed on the mobile terminal.

[0051] As Figure 3 described, in an exemplary embodiment, the method at least includes the following steps:

[0052] Step 110, display a network document page, which displays the loaded network document and an instruction trigger area.

[0053] First, it should be noted that the method proposed in this embodiment is applied to a mobile terminal. Therefore, all display operations performed in this embodiment can be reflected on the display screen of the mobile terminal.

[0054] The display of the network document page in this embodiment means that the document content of the network document is displayed in the form of a web page on the display screen of the mobile terminal. As described above, based on the web page container provided by the client configured in the network document processing application, the document content of the network document loaded on the Web side can be displayed in the form of a web page, so as to display the network document page on the display screen of the mobile terminal. Thus, the loaded network document is displayed in the network document page.

[0055] The instruction trigger area displayed in the network document page is used to trigger a document content search instruction. According to the triggered document content search instruction, the search for the network document content can be started.

[0056] In addition, a device status display bar can also be displayed in the network document page. For example, the device status display bar is displayed at the top of the network document page. The device status display bar can be used to display status information such as the clock, SIM (Subscriber Identity Module) card signal strength, and remaining battery power of the device. This does not list all the content displayed in the network document page one by one.

[0057] As Figure 4 shown, in a schematic diagram of an exemplary network document page, the instruction trigger area is displayed on the upper right side of the network document for easy triggering by the user. By triggering this instruction trigger area, the user can change the document status of the network document displayed in the network document page from the browsing state to the search state, thereby starting the search for the network document content.

[0058] Step 130, when it is detected that a document content search instruction is triggered in the instruction trigger area, display a search toolbar above the network document displayed in the network document page.

[0059] Among them, the document content search instruction triggered in the instruction trigger area can be generated after the user triggers the instruction trigger area by clicking, double-clicking, long-pressing, etc.; or after the user triggers the instruction trigger area, an extended menu bar will pop up on the upper layer of the network document page, and a content search entry corresponding to the network document is provided in the extended menu bar. If the user triggers the content search entry, a document content search instruction will be generated accordingly. This embodiment does not limit this.

[0060] It should be noted that after the user triggers the content search entry in the extended menu bar and generates a document content search instruction, the extended menu bar needs to be closed to facilitate the subsequent display of the search toolbar. Moreover, one or several document function entries such as document forwarding, document sharing, document link acquisition, and document permission management settings can also be set in the extended menu bar to perform corresponding function processing on the network document through the triggering of these document function entries. This is not limited here either.

[0061] When a document content search instruction is triggered in the instruction trigger area, the search toolbar displayed above the network document can be as Figure 5 shown. The search toolbar contains an information input box and a keyboard area. Through the triggering operation of the user in the keyboard area, the keyword to be searched entered by the user is correspondingly displayed in the information input box.

[0062] For the network document processing application running on the mobile terminal, if a document content search instruction is triggered in the instruction trigger area, the native program needs to send an initialization instruction to the page program according to the document content search instruction to instruct the page program to switch the document state of the network document from the browsing state to the search state. If the native program receives an initialization success message returned by the page program for the initialization instruction, the search toolbar is displayed above the network document.

[0063] It should be noted that the native program refers to Figure 2 the client in the program architecture shown, and the web page program refers to Figure 2 the Web side in the program architecture shown. Therefore, the page program is used to load the network document. The initialization success message is a notification message returned by the Web side to the client after switching the document state of the network document from the browsing state to the search state according to the initialization instruction. Based on this process, it can be ensured that the client and the Web side synchronously respond to the network document content search operation triggered in the network document page, so that the running process of the network document processing application will not go wrong.

[0064] Step 150, display the entered keyword in the search toolbar.

[0065] Such as Figure 4As shown, the search toolbar contains an information input box and a keyboard area. Based on the triggering operation of the user in the keyboard area, the keyword to be searched entered by the user will be correspondingly displayed in the information input box.

[0066] In this embodiment, it is also necessary to search for the keywords contained in the network document page according to the keywords entered in the search toolbar. This search process also depends on Figure 2 the interaction between the client and the Web side in the program architecture shown.

[0067] Specifically, the client needs to send the keywords entered in the search toolbar to the Web side so that the Web side can perform a global search for keywords in the network document and obtain all the keywords contained in the network document and the page positions where each keyword is located.

[0068] Exemplarily, according to the data transmission protocol pre-agreed with the page program, the client assembles the keywords entered in the search toolbar into the data transmission protocol, and then sends the data transmission protocol carrying the keywords to the Web side by calling the call interface provided by the Web side. The Web side obtains the keywords to be queried by parsing the data transmission protocol, and then matches the keywords with all the document contents contained in the network document to obtain all the keywords contained in the network document and the page positions where each keyword is located, thereby implementing the global search for keywords in the network document.

[0069] The Web side displays search marks at the page positions where each found keyword is located. For example, it renders these page positions to make these pages highlighted. Therefore, in the display interface provided by the mobile terminal, search marks will be displayed at the page positions where each found keyword is located.

[0070] In another embodiment, if no keyword is found in the network document, the display state of the search toolbar is reset, and the keywords entered in the search toolbar are continuously detected. When keywords are detected to be entered in the search toolbar, the process of searching for the keywords contained in the network document according to the keywords entered in the search toolbar in step 150 and displaying search marks at the page positions where the found keywords are located is executed.

[0071] Exemplarily, resetting the display state of the search toolbar may include clearing the keywords entered in the information input box for the user to re-enter new keywords, so as to search for the keywords re-entered by the user in the network document.

[0072] Step 170, if a global search instruction triggered in the search toolbar is detected, hide the search toolbar and display a search identifier at the page position where the keyword is located in the network document. The search identifier is used to locate and display the keyword in the network document page.

[0073] First, it should be noted that in this embodiment, global search means searching for all keywords in the entire network document.

[0074] The global search instruction triggered in the search toolbar is generated when the user triggers the global search control provided in the search toolbar. Exemplarily, the global search control can be Figure 5 the search control in the keyboard area as shown. After entering a keyword in the information input box, if the user clicks this search control, a global search instruction is generated. Alternatively, a global search control can be set on the right side of the information input box. If the user clicks this global search control, a global search instruction is generated.

[0075] According to the global search instruction triggered in the search toolbar, hiding the search toolbar can be to hide the entire search toolbar to the edge of the network document page and display a hide control at the edge of the network document page. If the user triggers this hide control, the search toolbar is restored and displayed on the network document page. Here, the edge of the network document page can be the bottom, top or side of the network document page, and this embodiment does not limit this.

[0076] Alternatively, the search toolbar can also be partially hidden at the edge of the network document page. Specifically, a hide control can be displayed at the edge of the network document page, and the keyword switching identifier and the information input box contained in the search toolbar are displayed above the hide control.

[0077] As Figure 6 shown, in an exemplary embodiment, the search toolbar is partially hidden to the bottom of the network document page. At the bottom of the network document page, the information input box is still displayed, and the keyword displayed in step 150 is still displayed in this information input box. The keyword switching identifier is also displayed at the bottom of the network document page. If the keyword switching identifier is triggered, the page positions where each keyword is located are jumped and displayed in the network document page.

[0078] It should be understood that the document content contained in the network document is usually a large amount, and the size of the interface area provided by the mobile terminal is limited. Therefore, all the document content cannot be displayed on one display page. When the user browses the document content, different display pages need to be switched to obtain all the document content. Therefore, in this embodiment, by triggering the keyword switching identifier, the display page containing the keyword to be switched can be jumped in the network document page, so as to facilitate the user to obtain all the keywords contained in the network document.

[0079] After the search toolbar is hidden, the network document is displayed full screen on the network document page, facilitating users to view the document content. Moreover, on the network document page, the page positions where each keyword is located still display search marks, enabling the positioning display of each keyword in the network document on the network document page, which is very convenient for users to locate and view each keyword contained in the network document on the network document page.

[0080] Thus, even though the display screen of the mobile terminal is very small, based on the method provided in this embodiment, it is still possible to quickly search for network document content on the mobile terminal, enabling the mobile terminal to have the function of searching for network document content, thereby meeting the user's usage requirements for network documents.

[0081] In some other embodiments, the user can trigger the search mark by clicking, long-pressing, etc., so that the text information associated with the page position where the triggered search mark is located is displayed above the network document, enabling the user to quickly locate important information in the network document page based on the displayed text information, further enhancing the user experience.

[0082] Among them, the text information can be obtained by performing text feature processing on the context information corresponding to the keyword marked by the triggered search mark. Exemplarily, the context information corresponding to the keyword can be all the content of the entire paragraph where the keyword is located, or the content of the sentence where the keyword is located, or the text content composed of the sentence where the keyword is located and several adjacent sentences to the sentence where the keyword is located. No limitation is imposed here.

[0083] Specifically, the text information can include summary information obtained by extracting a summary of the context information, or include translation information obtained by translating the context information, or can also include key information obtained by extracting information from the context information. These text information can be obtained by performing text feature processing on the context information based on artificial intelligence models such as summary extraction algorithm models. Moreover, in different application scenarios, the text information can be specifically selected according to user needs, and no limitation is imposed here.

[0084] As Figure 7 shown, if the user clicks on the search mark 1 displayed on the network document page, a text information pop-up window will appear on the network document page, and the text information associated with the page position where the search mark 1 is located is displayed in the text information pop-up window. The context information corresponding to the keyword marked by the search mark 1 can also be displayed in the text information pop-up window. By browsing the text content displayed in the text information pop-up window, the user can quickly obtain important content such as the summary information of the document paragraph where the keyword marked by the search mark 1 is located, facilitating the user to obtain important information contained in the network document.

[0085] In some other embodiments, after hiding the search toolbar, the search toolbar can also be closed according to the search exit instruction triggered in the web document page, and the search identifier displayed in the web document page can be cleared, so as to close the search function of the web document content.

[0086] Exemplarily, the search exit instruction triggered in the web document page can be generated when the user clicks on the document body of the web document or when the user triggers scrolling of the document body. This embodiment does not limit this.

[0087] The closing of the web document content search still depends on Figure 2 the interaction between the client and the Web end shown. Specifically, according to the search exit instruction triggered in the web document page, the client sends a search exit notification message to the Web end, so as to instruct the Web end to switch the document status of the web document from the search status to the browsing status according to the search exit notification message.

[0088] For the client, by closing the search toolbar and clearing the search identifier displayed in the web document page, the web document can be restored to the browsing state, thus closing the search function of the web document content.

[0089] In another exemplary embodiment, as Figure 8 shown, Figure 3 the method shown can further include the following steps before step 170:

[0090] Step 210, determining the total number of keywords found in the web document and the page positions corresponding to each keyword.

[0091] Since all the keywords contained in the web document are found according to the keywords input in the search toolbar in step 150, the total number of keywords found in the web document and the page positions corresponding to each keyword can be determined.

[0092] Step 230, updating the display state of the search toolbar according to the total number of keywords and the page positions corresponding to each keyword. The updated search toolbar is used for jump display of each keyword contained in the web document page.

[0093] In this embodiment, the total number of keywords can be displayed in the search toolbar, and the display state of the keyword switching identifier in the search toolbar is updated to a triggerable state. The keyword switching identifier is used to jump to display the keywords contained in the network document page. Therefore, when no keyword is found in the network document page, the keyword switching identifier is in a non-trigger state, and the keyword switching identifier in the non-trigger state cannot be triggered by the user. When several keywords are found in the network document page, the keyword switching identifier is updated to a triggerable state. When the user triggers the keyword switching identifier, the user can jump and display between the respective keywords contained in the corresponding network document page.

[0094] In addition, according to the page positions corresponding to each keyword, a position index is also constructed between each keyword and the display positions of each keyword in the network document page. If it is detected that the keyword switching identifier is triggered, the target keyword to be switched indicated by the keyword switching identifier can be determined, and according to the position index corresponding to the target keyword, the network document page is jumped to the display page containing the target keyword, and an index identifier is added at the page position where the target keyword is located.

[0095] As Figure 9 shown, in the updated search toolbar, a search quantity control is displayed in the information input box, and the total number of keywords contained in the network document is displayed as 3 on the search quantity control, and it is displayed that the first keyword is currently positioned and displayed based on the index identifier.

[0096] The keyword switching identifier includes a backward switching identifier and a forward switching identifier. The backward switching identifier is used to switch to the page position of the keyword after the current keyword in the network document, and the forward switching identifier is used to switch to the page position of the keyword before the current keyword in the network document. Since the first keyword is currently positioned and displayed, only the second and third keywords can be jumped and displayed backward. Therefore, the backward switching identifier needs to be updated to a trigger state, and the forward switching identifier is updated to a non-trigger state.

[0097] As Figure 10 shown, if the user clicks the backward switching identifier once, an index identifier is displayed at the page position of the second keyword, and at the same time, the search identifier is restored to be displayed at the page position of the first keyword. Since the second keyword is currently positioned and displayed, it is possible to jump backward to locate the page position of the third keyword or jump forward to locate the page position of the first keyword. Therefore, both the forward switching identifier and the backward switching identifier are updated to a trigger state.

[0098] If the user clicks the backward switching identifier again, since the current displayed page of the network document page does not contain the third keyword, it is necessary to first jump the network document page to the displayed page containing the third keyword, and then display the index identifier at the page position where the third keyword is located, and at the same time restore the display of the search identifier at the page position where the second keyword is located.

[0099] Therefore, based on the update of the display state of the search toolbar in this embodiment, the user can trigger the jump display of each keyword contained in the network document page according to the updated search toolbar, which further facilitates the user to search for the content of the network document on the mobile terminal.

[0100] In another embodiment, when it is detected that the keyword switching identifier in the search toolbar is triggered and the network document page is switched and jumped to the page positions where each keyword is located, the text information associated with the target page position obtained by the jump switching is also displayed on the upper layer of the network document.

[0101] This text information is also obtained by performing text feature processing on the context information corresponding to the keyword located at the target page position. For example, when the text information is summary information, the context information corresponding to the keyword located at the target page position can be obtained according to the text content contained in the network document, and then the summary information corresponding to the keyword located at the target page position is obtained by performing summary extraction on the context information based on the summary extraction algorithm model, and the association relationship between the summary information and the target page position is constructed. Thus, when it is detected that the keyword switching identifier is triggered, based on the constructed association information, the text information associated with the target page position obtained by the jump switching can be obtained and displayed.

[0102] In addition, the text information can also be the translation information obtained by performing text translation on the context information, or the key information obtained by performing information extraction on the context information. These text information can be obtained by performing text feature processing on the context information based on an artificial intelligence model, and can be selected and determined according to the actual application scenario.

[0103] As Figure 11 shown, if the user triggers the backward switching identifier in the network document page Figure 9 shown, not only will the index identifier be displayed at the page position where the second keyword is located, but also a text information pop-up window will be displayed on the upper layer of the network document. The text information pop-up window displays the text information associated with the page position where the second keyword is located. For example, this text information can be the summary information obtained by performing summary extraction on the context information corresponding to the second keyword. In addition, the context information corresponding to this keyword can also be displayed in the text information pop-up window.

[0104] Thus, by browsing the text content displayed in the text information pop-up window, the user can quickly obtain important information such as the abstract information of the document paragraph where the second keyword obtained by jumping and switching is located, facilitating the user to obtain the important information contained in the network document.

[0105] In another embodiment, after hiding the search toolbar, the method further includes the following steps:

[0106] Display a text information display bar on the network document page. The text information display bar has a text information display area, and the text information display area displays the text information associated with the page positions of at least one default keyword in the network document.

[0107] If a text information switching instruction triggered in the text information display bar is detected, then jump to display the specified page position where the keyword indicated by the text information switching instruction is located on the network document page, and switch to display the text information associated with the specified page position in the text information display area.

[0108] As Figure 12 shown, after the search toolbar is hidden, a text information display bar pops up on the network document page. The text information display bar contains a text information display area, and the text information display area displays the text information corresponding to the first and second keywords contained in the network document, enabling the user to quickly obtain important information such as the abstract information of the document paragraphs where the first and second keywords are located by browsing the text content displayed in the text information display area.

[0109] The user can also trigger a forward or backward sliding operation in the text information display to generate a text information switching instruction based on this sliding operation. Alternatively, the text information display bar may also contain a text information switching space. If the text information switching control is triggered, a text information switching instruction is generated.

[0110] The text information switching control may specifically include a forward text information switching control and a backward text information switching control. Both the forward text information switching control and the backward text information switching control are used to trigger the switching display of the text information associated with the page positions of each keyword contained in the network document in the text information display area, but the switching directions indicated by the two are different.

[0111] As Figure 13 shown, if the user clicks the forward text information switching control, a text information switching instruction indicating forward keyword switching is triggered, and the text information corresponding to the third and fourth keywords is switched and displayed in the text information display area. At the same time, the page positions where the third and fourth keywords are located are jumped and displayed on the network document page. If the user clicks the backward text information switching control at this time, the display is restoredFigure 12 The network document page shown above.

[0112] Alternatively, only the text information corresponding to one keyword may be displayed in the text information display area. When a text information switching instruction is detected, the text information corresponding to each keyword is switched one by one in the text information display area. This embodiment does not limit this.

[0113] Thus, based on the method provided in this embodiment, the user can perform the display switching of the text information corresponding to each keyword in the network document through simple operations on the network document page, and can conveniently obtain the important information contained in the entire network document from the text information display area, further improving the user experience.

[0114] Figure 14 It is a block diagram of a network document processing device applied to a mobile terminal shown in an exemplary embodiment. The device is specifically configured in the mobile terminal to enable the mobile terminal to have the function of searching for network document content.

[0115] As Figure 14 shown, in an exemplary embodiment, the device includes a page display module 310, a toolbar display module 330, a search display module 350, and a global search module 370.

[0116] Among them, the page display module 310 is used to display the network document page, and the loaded network document and an instruction trigger area are displayed in the network document page. The toolbar display module 330 is used to display a search toolbar above the network document displayed in the network document page when it is detected that a document content search instruction is triggered in the instruction trigger area. The search display module 350 is used to display the input keyword in the search toolbar. The global search module 370 is used to hide the search toolbar when it is detected that a global search instruction is triggered in the search toolbar, and display a search mark at the page position where the keyword is located in the network document. The search mark is used to perform a positioning display of the keyword in the network document page.

[0117] In another exemplary embodiment, the device further includes a toolbar update module and a keyword switching response module. The toolbar update module is used to display a keyword switching mark and a search quantity control in the search toolbar, and display the total number of keywords found in the network document page on the search quantity control. The keyword switching response module is used to jump and switch to the page position where each keyword is located in the network document page when it is detected that the keyword switching mark is triggered.

[0118] In another exemplary embodiment, the device includes a text information display module for displaying, on top of a network document, the text information associated with the target page position obtained by jump switching, where the text information is obtained by performing text feature processing on the context information corresponding to the keyword at the target page position.

[0119] In another exemplary embodiment, the device further includes a context acquisition module, a summary extraction module, and an association relationship construction module. The context acquisition module is used to acquire the context information corresponding to the keyword at the target page position according to the text content included in the network document. The summary extraction module is used to perform summary extraction on the context information based on a summary extraction algorithm model to obtain the summary information corresponding to the keyword at the target page position. The association relationship construction module is used to construct the association relationship between the summary information and the target page position.

[0120] In another exemplary embodiment, the device further includes a display bar display module and a text information jump module. The display bar display module is used to display a text information display bar on the network document page, where a text information display area is displayed in the text information display bar, and the text information associated with the page position of the default keyword in the network document is displayed in the text information display area. The text information jump module is used to, when detecting a text information switching instruction triggered in the text information display bar, jump to display, on the network document page, the specified page position of the keyword indicated by the text information switching instruction, and switch to display the text information associated with the specified page position in the text information display area.

[0121] In another exemplary embodiment, the device further includes a page position determination module and a position index module. The page position determination module is used to determine the page position of the keyword found in the network document page. The position index module is used to construct a position index between each keyword and each keyword display position in the network document page according to the page position of each keyword.

[0122] In another exemplary embodiment, the global search module 370 includes a toolbar hiding unit, and the toolbar hiding unit is used to hide the entire search toolbar at the edge of the network document page and display a hiding control at the edge of the network document page; or, display a hiding control at the edge of the network document page and display the keyword switching identifier and the search quantity control above the hiding control.

[0123] In another exemplary embodiment, the device further includes a toolbar restoration module for restoring and displaying the search toolbar on the network document page when detecting that the hiding control is triggered.

[0124] In another exemplary embodiment, the device further includes a search response module, which is configured to clear the keyword entered in the search toolbar and continue to detect the keyword entered in the search toolbar when the keyword is not found in the network document page.

[0125] In another exemplary embodiment, the device further includes a search exit module, which is configured to close the search toolbar and clear the search identifier displayed on the network document page according to the search exit instruction triggered in the network document page.

[0126] In another exemplary embodiment, the search exit module includes a notification message sending unit and a status switching unit. The notification message sending unit is configured to send a search exit notification message to the page program according to the search exit instruction, and the page program is used to load the network document. The status switching unit is configured to instruct the page program to switch the document status of the network document from the search status to the browsing status according to the search exit notification message.

[0127] In another exemplary embodiment, the toolbar display module 330 includes an initialization instruction sending unit, which is configured to send an initialization instruction to the page program according to the document content search instruction to instruct the page program to switch the document status of the network document from the browsing status to the search status. If an initialization success message returned by the page program for the initialization instruction is received, the search toolbar is displayed on the upper layer of the network document page.

[0128] In another exemplary embodiment, the toolbar display module 330 further includes an extended menu control unit, which is configured to display an extended menu bar on the upper layer of the network document page when the instruction trigger area is triggered. The extended menu bar contains a content search entry corresponding to the network document. If the content search entry is triggered, a document content search instruction is generated and the extended menu bar is closed.

[0129] In another exemplary embodiment, the device further includes a keyword assembly module and a keyword transmission module. The keyword assembly module is configured to assemble the keyword entered in the search toolbar into the data transmission protocol according to the data transmission protocol pre-agreed with the page program. The keyword transmission module is configured to call the call interface provided by the page program and send the data transmission protocol carrying the keyword to the page program, so that the page program performs a global search for the keyword in the network document.

[0130] In another exemplary embodiment, the device further includes a global search module, which is configured to parse the data transmission protocol to obtain the keyword to be queried, and match the keyword with all the document contents contained in the network document page to obtain all the keywords contained in the network document page and the page positions where each keyword is located.

[0131] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept. The specific manners in which each module and unit perform operations have been described in detail in the method embodiment, and will not be elaborated herein.

[0132] An embodiment of the present application further provides a mobile terminal, including a processor and a memory. Among them, computer-readable instructions are stored on the memory, and when the computer-readable instructions are executed by the processor, the network document processing method applied to the mobile terminal as described above is implemented.

[0133] Figure 15 It is a schematic structural diagram of a mobile terminal shown according to an exemplary embodiment.

[0134] It should be noted that this mobile terminal is only an example adapted to the present application and cannot be considered as providing any limitation to the scope of use of the present application. This mobile terminal cannot also be interpreted as needing to depend on or necessarily having Figure 15 one or more components in the exemplary mobile terminal shown.

[0135] As Figure 15 shown, in an exemplary embodiment, the mobile terminal includes a processing component 801, a memory 802, a power supply component 803, a multimedia component 804, an audio component 805, a sensor component 807, and a communication component 808. Among them, not all of the above components are necessary, and the mobile terminal can add other components or reduce some components according to its own functional requirements. This embodiment is not limited.

[0136] The processing component 801 generally controls the overall operation of the mobile terminal, such as operations associated with display, data communication, and log data processing. The processing component 801 may include one or more processors 809 to execute instructions to complete all or part of the above operations. In addition, the processing component 801 may include one or more modules to facilitate the interaction between the processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate the interaction between the multimedia component 804 and the processing component 801.

[0137] The memory 802 is configured to store various types of data to support the operation of the mobile terminal. Examples of these data include instructions for any application or method for operating on the mobile terminal. One or more modules are stored in the memory 802, and the one or more modules are configured to be executed by the one or more processors 809 to complete all or part of the steps in the network document processing method applied to the mobile terminal described in the above embodiment.

[0138] The power supply component 803 provides power for various components of the mobile terminal. The power supply component 803 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the mobile terminal.

[0139] The multimedia component 804 includes a screen that provides an output interface between the mobile terminal and the user. In some embodiments, the screen may include a TP (Touch Panel) and an LCD (Liquid Crystal Display). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation.

[0140] The audio component 805 is configured to output and / or input audio signals. For example, the audio component 805 includes a microphone that is configured to receive external audio signals when the mobile terminal is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. In some embodiments, the audio component 805 also includes a speaker for outputting audio signals.

[0141] The sensor component 807 includes one or more sensors for providing status evaluations of various aspects of the mobile terminal. For example, the sensor component 807 can detect the on / off state of the mobile terminal and can also detect changes in the temperature of the mobile terminal.

[0142] The communication component 808 is configured to facilitate communication between the mobile terminal and other devices in a wired or wireless manner. The mobile terminal can access a wireless network based on a communication standard, such as Wi-Fi (Wireless-Fidelity).

[0143] It can be understood that Figure 15 The structure shown is only schematic, and the mobile terminal may further include more or fewer components than those shown in Figure 15 or may have components different from those shown in Figure 15 Each component shown. Figure 15 Each component shown in can be implemented using hardware, software, or a combination thereof.

[0144] Another aspect of the present application also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor implements the network document processing method applied to a mobile terminal as described above. The computer-readable storage medium may be included in the mobile terminal described in the above embodiments, or may exist separately and not be assembled into the mobile terminal.

[0145] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network document processing method applied to the mobile terminal provided in each of the above embodiments.

[0146] The above content is only a preferred exemplary embodiment of the present application and is not used to limit the implementation of the present application. Those of ordinary skill in the art can make corresponding changes or modifications very conveniently according to the main concept and spirit of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope required by the claims.

Claims

1. A network document processing method applied to a mobile terminal, characterized in that: The mobile terminal is installed with a web document processing application to enable the mobile terminal to process web documents. The web document processing application is composed of a native program and a web page program. The native program includes an instruction management module and a UI loading and updating module, and the web page program includes an instruction processing module and a content synchronization module. The method includes: Displaying a network document page, wherein the network document page displays a loaded network document and a command triggering area; When it is detected that a document content search instruction is triggered in the instruction trigger area, a search toolbar is displayed on the upper layer of the network document displayed in the network document page; Displaying the input keyword in the search toolbar; The native program obtains the input keyword through the UI loading and updating module, assembles the keyword input in the search toolbar into the data transmission protocol according to the data transmission protocol pre-agreed with the page program through the instruction management module, and calls the calling interface provided by the page program to send the data transmission protocol carrying the keyword to the page program; The page program parses the data transmission protocol through the instruction processing module to obtain the keyword to be queried; and matches the keyword with all document contents contained in the web document page through the content synchronization module to obtain all keywords contained in the web document page and the page location of each keyword; If a global search instruction is detected to be triggered in the search toolbar, the search toolbar is hidden, and a search mark is displayed at the page location of the keyword contained in the network document through the content synchronization module in the page program. The search mark is used to locate and display the keyword in the network document page.

2. The method according to claim 1, characterized in that Before hiding the search toolbar, the method further includes: Displaying a keyword switching control and a search quantity control in the search toolbar, and displaying the total number of keywords found in the web document page on the search quantity control; If it is detected that the keyword switching control is triggered, the web document page is switched to the page location where each keyword is located.

3. The method according to claim 2, characterized in that After detecting that the keyword switching control is triggered, the method further includes: The text information associated with the target page position obtained by the jump switch is displayed on the upper layer of the web document. The text information is obtained by performing text feature processing on context information corresponding to the keyword located at the target page position.

4. The method according to claim 3, characterized in that The text information includes summary information; the method further includes: Obtaining context information corresponding to the keyword located at the target page location based on the text content contained in the web document; Extracting a summary of the context information based on a summary extraction algorithm model to obtain summary information corresponding to the keyword located at the target page position; An association relationship is established between the summary information and the target page location.

5. The method according to claim 1, wherein After hiding the search toolbar, the method further includes: Displaying a text information display bar on the web document page, wherein the text information display bar displays a text information display area, and the text information display area displays text information associated with a default keyword in the web document. If a text information switching instruction is detected in the text information display bar, the designated page position where the keyword indicated by the text information switching instruction is located is displayed in the web document page, and the text information associated with the designated page position is displayed in the text information display area.

6. The method according to claim 2, characterized in that Hide the Find toolbar, including: Hide the search toolbar entirely at the edge of the web document page, and display a hidden control at the edge of the web document page; Alternatively, a hidden control is displayed at the edge of the web document page, and the keyword switching control and the search quantity control are displayed above the hidden control.

7. The method according to claim 1, characterized in that After hiding the search toolbar, the method further includes: According to the search exit instruction triggered in the network document page, the search toolbar is closed, and the search indicator displayed in the network document page is cleared.

8. The method according to claim 7, characterized in that Before closing the search toolbar, the method further includes: sending a search exit notification message to a page program according to the search exit instruction, wherein the page program is used to load the network document; According to the search exit notification message, the page program is instructed to switch the document state of the network document from the search state to the browsing state.

9. The method according to claim 1, characterized in that When it is detected that a document content search instruction is triggered in the instruction triggering area, a search toolbar is displayed above the web document displayed in the web document page, including: sending an initialization instruction to a page program according to the document content search instruction to instruct the page program to switch the document state of the web document from a browsing state to a search state, wherein the page program is used to load the web document; If an initialization success message returned by the page program in response to the initialization instruction is received, the search toolbar is displayed on the upper layer of the web document page.

10. The method according to claim 9, characterized in that Before searching for instructions according to the document content and sending an initialization instruction to the page program, the method further includes: When the instruction trigger area is triggered, an extended menu bar is displayed on the upper layer of the web document page, and the extended menu bar contains a content search entry corresponding to the web document; If the content search entry is triggered, the document content search instruction is generated and the extended menu bar is closed.

11. A network document processing device applied to a mobile terminal, characterized in that: The device is specifically configured in a mobile terminal so that the mobile terminal has a function of searching for network document content; the device includes: A page display module, configured to display a web document page, wherein the web document page displays a loaded web document and an instruction triggering area; A toolbar display module, configured to display a search toolbar on the web document displayed in the web document page when detecting that a document content search instruction is triggered in the instruction trigger area; A search display module, configured to display the input keywords in the search toolbar; A global search module, configured to, upon detecting that a global search instruction is triggered in the search toolbar, hide the search toolbar and display a search indicator at the page location of the keyword in the web document, wherein the search indicator is used to locate and display the keyword on the web document page; The device further includes a keyword assembly module and a keyword transmission module. The keyword assembly module is used to assemble the keywords input in the search toolbar into the data transmission protocol according to the data transmission protocol pre-agreed with the page program; the keyword transmission module is used to call the calling interface provided by the page program and send the data transmission protocol carrying the keywords to the page program, so that the page program can perform a global search for keywords in the network document. The device also includes a global search module, which is used to parse the data transmission protocol, obtain the keywords to be queried, and match the keywords with all document contents contained in the network document page to obtain all keywords contained in the network document page and the page location of each keyword.

12. A mobile terminal, characterized in that: include: a memory storing computer-readable instructions; A processor reads the computer-readable instructions stored in the memory to execute the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the method for processing a network document applied to a mobile terminal according to any one of claims 1 to 10 is implemented.