Document processing method and device
By displaying the target document and its functional controls in different areas of the electronic device and receiving user input to associate the target document with the application, the problem of weak cross-screen collaboration capabilities in the prior art is solved, and cross-screen operation is simplified and multi-tasking efficiency is improved.
Patent Information
- Application Number
- CN202510419955.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-08
AI Technical Summary
In multitasking, existing electronic devices have isolation between tasks, weak cross-screen collaboration capabilities, and complex cross-screen operations, which reduces operation efficiency.
By displaying the target document and its functional controls in different areas of the electronic device, and receiving user input to associate the target document with the application, cross-screen collaborative operation is achieved, and related content is automatically extracted and displayed.
It improves the ability of electronic devices to cooperate across screens, simplifies cross-screen operations, and improves multi-task processing efficiency.
Smart Images

Figure CN120276636A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of document processing, and particularly relates to a document processing method and apparatus thereof. Background Art
[0002] With the development of electronic device technology, users can perform multiple tasks simultaneously through an electronic device. For example, a user can view a document and take notes at the same time through an electronic device, or can view a document and search for reference materials at the same time through an electronic device, and so on.
[0003] For the above multi-task scenarios, the current multi-task processing solutions of electronic devices mainly include: split-screen mode, in which the screen of the electronic device is divided into fixed areas and different applications are run respectively, so that the electronic device can perform different tasks simultaneously; floating window mode, in which multiple windows are displayed in a stacked manner, so that the electronic device can perform different tasks simultaneously; application relay, in which cross-screen task switching is achieved through screen mirroring and other means, so that the electronic device can perform different tasks.
[0004] However, for the above multi-task processing solutions, there is isolation between tasks, each task is executed independently, and the cross-screen collaboration ability of the electronic device is weak, the cross-screen operation is complex, which reduces the cross-screen operation efficiency of the electronic device, and thus reduces the efficiency of the electronic device in processing multiple tasks. Summary of the Invention
[0005] The purpose of the embodiments of this application is to provide a document processing method and apparatus thereof, which can improve the cross-screen collaboration ability of an electronic device, simplify the cross-screen operation, and improve the cross-screen operation efficiency and multi-task processing efficiency of the electronic device.
[0006] In a first aspect, the embodiments of this application provide a document processing method, which is executed by an electronic device. The document processing method includes: when a target document is being displayed, receiving a first input from a user; in response to the first input, displaying the target document in a first area and displaying at least one function control corresponding to the target document in a second area; receiving a second input from the user for a first function control among the at least one function controls, the first function control corresponding to a first application program; in response to the second input, associating the target document with the first application program and displaying a first application interface of the first application program in the second area, the first application interface including content associated with the target document.
[0007] In a second aspect, an embodiment of the present application provides a document processing apparatus, which is applied to an electronic device. The document processing apparatus includes: a receiving unit, configured to receive a first input from a user when a target document is being displayed; a display unit, configured to, in response to the first input, display the target document in a first area and display at least one function control corresponding to the target document in a second area; the receiving unit is further configured to receive a second input from the user for a first function control among the at least one function controls, where the first function control corresponds to a first application program; a processing unit, configured to, in response to the second input, associate the target document with the first application program; the display unit is further configured to display a first application interface of the first application program in the second area, and the first application interface includes content associated with the target document.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the document processing method as in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the document processing method as in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the steps of the document processing method as in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the document processing method as in the first aspect.
[0012] In the document processing method provided in the embodiments of the present application, when displaying a target document, a first input from a user is received; in response to the first input, the target document is displayed in a first area, and at least one function control corresponding to the target document is displayed in a second area; a second input from the user to a first function control among the at least one function controls is received, and the first function control corresponds to a first application; in response to the second input, the target document is associated with the first application, and a first application interface of the first application is displayed in the second area, and the first application interface includes content associated with the target document. Through the above document processing method, when the user views the target document, the target document and the function controls corresponding to the target document are displayed in different areas based on the user input, and then, based on the first function control selected by the user, the target document is associated with the first application corresponding to the first function control, and the content associated with the target document in the first application is displayed. In this way, the tasks executed in different areas are interrelated, and the display contents of different tasks are related, which can reduce the steps for the user to execute different tasks, simplify cross-screen operations, improve the cross-screen collaboration ability of the electronic device, and thus improve the cross-screen operation efficiency and multi-task processing efficiency of the electronic device. Description of the Drawings
[0013] Figure 1 One of the schematic flowcharts of the document processing method provided in the embodiments of the present application;
[0014] Figure 2 One of the schematic flowcharts of the document processing method provided in the embodiments of the present application;
[0015] Figure 3 One of the schematic flowcharts of the document processing method provided in the embodiments of the present application;
[0016] Figure 4 One of the schematic flowcharts of the document processing method provided in the embodiments of the present application;
[0017] Figure 5 One of the schematic diagrams of the operation interface of the document processing method provided in the embodiments of the present application;
[0018] Figure 6 One of the schematic diagrams of the operation interface of the document processing method provided in the embodiments of the present application;
[0019] Figure 7 One of the schematic diagrams of the operation interface of the document processing method provided in the embodiments of the present application;
[0020] Figure 8 One of the schematic diagrams of the operation interface of the document processing method provided in the embodiments of the present application;
[0021] Figure 9 One of the schematic diagrams of the operation interface of the document processing method provided in the embodiments of the present application;
[0022] Figure 10 The sixth schematic diagram of the operation interface of the document processing method provided by the embodiment of the present application;
[0023] Figure 11 The structural block diagram of the document processing device provided by the embodiment of the present application;
[0024] Figure 12 The structural block diagram of the electronic device provided by the embodiment of the present application;
[0025] Figure 13 The schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application. Detailed implementation manners
[0026] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope protected by the present application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. generally belong to the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.
[0028] Next, the document processing method and its device provided by the embodiments of the present application will be described in detail in conjunction with the accompanying drawings through specific embodiments and their application scenarios.
[0029] As Figure 1 shown, the embodiment of the present application provides a document processing method, which may include the following S102 to S108:
[0030] S102: Receive a first input from the user when the target document is displayed.
[0031] The document processing method proposed by the embodiment of the present application is executed by an electronic device, which can be a single-screen device or a multi-screen device. In actual application, the above-mentioned electronic device can specifically be intelligent electronic devices such as an unfolded single-screen mobile phone, a foldable single-screen mobile phone, a tablet computer, a double-folded screen mobile phone, and a triple-folded screen mobile phone, etc., and no specific limitation is made here.
[0032] Among them, the above first input is a touch input by the user to the electronic device. The touch input can specifically be a single - click input, a long - press input, a double - click input, a swipe input, an input along a preset trajectory, etc. Those skilled in the art can set the specific form of the above first input according to the actual situation, and no specific limitation is made here.
[0033] S104: In response to the first input, display the target document in the first area and display at least one function control corresponding to the target document in the second area.
[0034] Among them, the above first area and second area can be different display areas of the same display screen of the electronic device, and the above first area and second area can also be different display screens of the electronic device. No specific limitation is made here.
[0035] Furthermore, the application program corresponding to each function control can perform tasks based on the target document. For example, the function control can be a service card of a browser, and the user can search in the browser according to the content of the target document. The function control can also be a service card of an instant messaging program, and the user can share the content of the target document with friends in the instant messaging program. Among them, the service card is a lightweight task unit that can run independently or in combination, such as a video player, a document editor, an instant messaging window, etc.
[0036] Furthermore, the above first input is used to trigger the split - screen display of the electronic device. The first input can specifically be a two - finger split - screen gesture input. By binding the two - finger split - screen gesture to the split - screen display operation, the electronic device automatically performs split - screen display based on the first input.
[0037] In the actual application process, for a single - screen device, the above first input can be an input where, when the display screen of the electronic device is in the unfolded state, the user slides two fingers from the mid - line of the display screen, such as the folding - screen hinge area, to both sides; for a multi - screen device, the above first input can be an input where, when the multiple display screens of the electronic device are in the tiled state, the user slides two fingers from the boundary line between different display screens to both sides.
[0038] Specifically, in the document processing method provided in the embodiments of the present application, when the display screen of the electronic device is in the tiled state or the unfolded state, and during the process of the user viewing the target document through the electronic device, the electronic device can receive the first input of the user to the display screen of the electronic device. The electronic device responds to the first input, triggers split - screen display, and displays the target document in the first area and at least one function control corresponding to the target document in the second area.
[0039] S106: Receive a second input from the user to the first function control among at least one function control.
[0040] Among them, the first function control corresponds to the first application program.
[0041] Furthermore, the above second input is a touch input by the user on the first function control. This touch input can specifically be a click input, a long - press input, a double - click input, a slide input, an input along a preset trajectory, etc. Those skilled in the art can set the specific form of the above second input according to the actual situation, and no specific limitation is made here.
[0042] S108: In response to the second input, associate the target document with the first application program, and display the first application interface of the first application program in the second area. The first application interface includes content associated with the target document.
[0043] Among them, the second input is used to bind the target document and the first application program. The second input can specifically include a movement input and a pressing input by the user on the first function control. During the process of the user moving the first function control, if it is detected that the touch pressure value on the display screen of the electronic device by the user is greater than or equal to the pressure threshold, then display the collaborative operation menu corresponding to the first function control. The collaborative operation menu includes multiple collaborative operation options, such as sharing the screen, associating documents, etc. Furthermore, the second input can also include a selection input by the user on the collaborative operation option. The user can associate the target document with the first application program by clicking the "associate document" collaborative operation option.
[0044] Among them, for the specific value of the above pressure threshold, those skilled in the art can set it according to the actual situation. For example, set the pressure threshold to 1.5N, and no specific limitation is made here.
[0045] In the actual application process, the electronic device can obtain the touch pressure value on the display screen of the electronic device through the internally set screen pressure - sensing module.
[0046] Specifically, in the document processing method provided in the embodiments of the present application, after the target document and at least one function control corresponding to it are displayed in different areas, the electronic device can receive the second input by the user on the first function control among the at least one function control. The electronic device obtains the input parameters of the second input, and when the input parameters of the second input meet the preset input parameters, in response to this second input, display the collaborative operation menu corresponding to the first function control, and then in response to the selection input by the user on the collaborative operation option for triggering the association operation in the collaborative operation menu, associate the target document with the first application program, and display the first application interface of the first application program in the second area. The first application interface includes content associated with the target document.
[0047] Exemplarily, such as Figure 5As shown, during the process of a user viewing a target document 502 through an electronic device with two display screens, when the two display screens of the electronic device are in a tiled state, the electronic device responds to the input of the user's two fingers sliding outward from the boundary line between the two display screens, and displays the target document 502 in the first area 504, i.e., the left screen of the electronic device, and at least one function control 508 corresponding to the target document 502 in the second area 506, i.e., the right screen of the electronic device. Further, the electronic device receives the movement input and the pressing input of the user on the first function control 510, and the electronic device responds to this input, as Figure 6 shown, displays a collaborative operation menu 512. Further, the electronic device receives and responds to the click input of the user on the "associated document" collaborative operation option in the collaborative operation menu 512, associates the target document 502 with the first application, and displays the first application interface 514 of the first application in the second area 506, and the first application interface 514 includes content associated with the target document 502.
[0048] The above-mentioned document processing method provided by the embodiments of the present application, when displaying a target document, receives a first input from the user; in response to the first input, displays the target document in the first area and at least one function control corresponding to the target document in the second area; receives a second input from the user on the first function control among the at least one function control, and the first function control corresponds to the first application; in response to the second input, associates the target document with the first application, and displays the first application interface of the first application in the second area, and the first application interface includes content associated with the target document. Through the above-mentioned document processing method, when the user views the target document, the target document and the function control corresponding to the target document are displayed in different areas based on the user input, and then based on the first function control selected by the user, the target document is associated with the first application corresponding to the first function control, and the content associated with the target document in the first application is displayed. In this way, the tasks executed in different areas are interrelated, and the display content of different tasks is related, which can reduce the steps for the user to execute different tasks, simplify cross-screen operations, improve the cross-screen collaboration ability of the electronic device, and thus improve the cross-screen operation efficiency and multitasking processing efficiency of the electronic device.
[0049] In the embodiments of the present application, the above step of displaying the first application interface of the first application in the second area may specifically include the following S110 to S114:
[0050] S110: When the first application has an information search function, extract the key entity information in the target document.
[0051] Among them, the first application has an information search function. For example, the first application can be a Baidu application, a Google application, a browser, etc.
[0052] Further, the key entity information may specifically be information such as hyperlinks, icon titles, and technical terms in the target document.
[0053] S112: Search for key entity information in the first application to obtain an information search result.
[0054] Among them, the information search result may specifically be popular science information, interpretation information, noun explanation information, etc. of the key entity information.
[0055] S114: Display a first application interface including the information search result in the second area.
[0056] Specifically, in the document processing method provided in the embodiments of the present application, after associating the target document with the first application, when the first application has an information search function, the electronic device automatically analyzes the content of the target document, extracts the key entity information in the target document, searches for the key entity information in the first application to obtain an information search result, and then when displaying the first application interface of the first application in the second area, directly displays the searched information search result in the second area.
[0057] Exemplarily, after associating the target document with the first application, the electronic device extracts the key entity information in the target document, such as "tomato", and searches for the extracted key entity information in the first application, and then displays the information search result of the key entity information, such as the popular science information of "tomato", in the second area.
[0058] In the above embodiments provided by the present application, when the first application has an information search function, the key entity information in the target document is extracted; the key entity information is searched in the first application to obtain an information search result; a first application interface including the information search result is displayed in the second area. In this way, the information search result of the key entity information in the target document is automatically displayed without the user manually searching, reducing the user operation and improving the convenience for the user to view the target document.
[0059] In the embodiments of the present application, after the above S114, the document processing method may specifically further include the following S116 to S120:
[0060] S116: Match the key entity information with the information search result, and highlight the key entity information in the target document that successfully matches the information search result.
[0061] Specifically, in the document processing method provided in the embodiments of the present application, after obtaining the information search result, the key entity information in the target document is matched with the obtained information search result. When the information search result of the key entity information is successfully searched in the first application, the key entity information and the information search result are successfully matched. On this basis, in the target document, the key entity information that successfully matches the information search result is highlighted, such as highlighted, so that the user can distinguish and find the key entity information that successfully matches the information search result.
[0062] S118: In response to the third input of the user on the highlighted key entity information, switch the display content of the first application interface to the information search result that matches the key entity information.
[0063] Among them, the above-mentioned third input is the touch input of the user on the key entity information, and the touch input can specifically be a click input, a long press input, a double click input, a slide input, an input along a preset trajectory, etc. Those skilled in the art can set the specific form of the above-mentioned third input according to the actual situation, and no specific limitation is made here.
[0064] Specifically, in the document processing method provided in the embodiments of the present application, after highlighting the key entity information in the target document that successfully matches the information search result, the electronic device can receive and respond to the third input of the user on the highlighted key entity information, and jump the display content of the first application interface to the information search result that matches the key entity information. In this way, the rapid positioning and jumping of the information search result are realized, which is convenient for the user to quickly find the information search result of the key entity information.
[0065] Exemplarily, as Figure 7 shown, for the key entity information 520 in the target document 502 that successfully matches the information search result 518, the electronic device highlights it. The electronic device receives the click input of the user on the highlighted key entity information 520 such as "tomato". In response to the click input, the electronic device full-screen displays the information search result 518 of the key entity information 520, such as the popular science information of "tomato", in the second area 506. At the same time, the electronic device shrinks the originally displayed interface content in the second area 506 and displays it in the first window 522, and floats the first window 522 above the target document 502.
[0066] S120: In response to the fourth input of the user on the highlighted key entity information, display an information prompt window on the target document.
[0067] Among them, the above fourth input is a touch input of the user to the key entity information, and the touch input can specifically be a click input, a long - press input, a double - click input, a slide input, an input along a preset trajectory, etc. Those skilled in the art can set the specific form of the above fourth input according to the actual situation, and no specific limitation is made here.
[0068] Further, the fourth input is different from the third input.
[0069] Further, the display content of the information prompt window is the information search result matching the key entity information.
[0070] Specifically, in the document processing method provided in the embodiment of the present application, after highlighting the key entity information in the target document that successfully matches the information search result, the electronic device can receive and respond to the fourth input of the user to the highlighted key entity information, and display the information search result matching the key entity information on the target document in the form of an information prompt window. In this way, it is convenient for the user to quickly obtain the information search result of the key entity information.
[0071] Exemplarily, as Figure 7 shown, for the key entity information 520 in the target document 502 that successfully matches the information search result 518, the electronic device highlights it. The electronic device receives the long - press input of the user to the highlighted key entity information 520 such as "foldable screen", and the electronic device responds to the long - press input, floatingly displays the information window 524 on the target document 502, and displays the information search result 518 of the key entity information 520 in the information window 524, such as the popular science information of "foldable screen".
[0072] In the above - mentioned embodiment provided by the present application, after displaying the first application interface including the information search result in the second region, the key entity information and the information search result are matched, and the key entity information in the target document that successfully matches the information search result is highlighted; in response to the third input of the user to the highlighted key entity information, the display content of the first application interface is switched to the information search result matching the key entity information; in response to the fourth input of the user to the highlighted key entity information, an information prompt window is displayed on the target document, and the display content of the information prompt window is the information search result matching the key entity information. In this way, it is convenient for the user to quickly obtain the information search result matching the key entity information, so as to facilitate the user to view and process the target document.
[0073] In the embodiment of the present application, after the above S108, the above - mentioned document processing method may specifically further include the following S122 and S124:
[0074] S122: When it is detected that the device state of the electronic device meets the target condition, a display operation bar is added in the first area.
[0075] Among them, the above-mentioned target condition indicates that the device state of the electronic device meets the hovering state. The hovering state means that the electronic device is fixed at a specific angle and forms an upper and lower split screen or a left and right split screen form.
[0076] Furthermore, the above-mentioned target condition is different for different types of electronic devices. For example, for a non-foldable single-screen device, the above-mentioned target condition can be that the single-screen device is in a flat state and lasts for a first duration such as 2 seconds. For a foldable device such as a foldable single-screen device or a multi-screen device, the above-mentioned target condition can be that the display screen of the electronic device is at a target angle such as 120° and lasts for a second duration such as 3 seconds.
[0077] In the actual application process, for the specific content of the above-mentioned target condition, those skilled in the art can set it according to the actual situation, and no specific limitation is made here.
[0078] Furthermore, in the actual application process, the electronic device can obtain the device state of the electronic device through devices such as a gyroscope and a Hall sensor set inside.
[0079] Furthermore, the operation bar includes application program icons associated with the target document.
[0080] Specifically, in the document processing method provided in the embodiment of the present application, the electronic device can detect its own device state in real time, and when the device state meets the target condition, a display operation bar is added in the first area, and application program icons associated with the target document are displayed in the operation bar. In this way, it is convenient for the user to timely understand the application programs that have been associated with the target document currently.
[0081] S124: Display a first application interface in the first sub-area of the second area, and display at least one function control corresponding to the target document in the second sub-area of the second area.
[0082] Specifically, in the document processing method provided in the embodiment of the present application, when it is detected that the device state of the electronic device meets the target condition, the electronic device will continue to divide the second area, divide the second area into a first sub-area and a second sub-area, and display a first application interface in the first sub-area of the second area, and display at least one function control corresponding to the target document in the second sub-area of the second area. In this way, it is convenient for the user to select other application programs to run in parallel with the target document, increases the number of tasks that the user can synchronously process through the electronic device, and further improves the convenience for the user to view and process the target document.
[0083] Exemplarily, such as Figure 7As shown, the device state of the electronic device meets the hover state. At this time, as Figure 8 shown, the electronic device adds a display operation bar 526 in the first area 504, and displays application icons 528 associated with the target document 502 on the operation bar 526. At the same time, the electronic device divides the second area 506 into a first sub-area 530 and a second sub-area 532, and displays a first application interface 514 in the first sub-area 530 of the second area 506, and displays a second application interface 534 of a second application selected by the user in the second sub-area 532 of the second area 506. Among them, when the second application is an instant messaging program, the displayed content of the second application interface 534 is the unread messages of the instant messaging program.
[0084] Regarding the display ratios of the first sub-area and the second sub-area, those skilled in the art can set them according to the actual situation. For example, the display ratios of the first sub-area and the second sub-area are set to 6:4.
[0085] Furthermore, the user can manually adjust the display ratios of the first sub-area and the second sub-area by pressing and dragging the boundary line between the first sub-area and the second sub-area. During the adjustment process, the target document displayed in the first area can be scaled synchronously to prevent the user from blocking the document content.
[0086] Furthermore, the displayed content of both the first sub-area and the second sub-area supports sliding switching, such as up and down sliding switching, left and right sliding switching.
[0087] In the actual application process, a cross-screen operation guidance control can also be added to the display in the second area to instruct the user to perform cross-screen operations through corresponding gestures. For example, data copying, migration, etc. between different screens can be achieved through a three-finger grab gesture, and the application interfaces displayed in different areas can be switched through a two-finger sliding gesture.
[0088] In addition, after dividing the second area and displaying the corresponding content, the user can also store the current split-screen layout, the association relationship between application programs or service cards as a collaborative template through voice input, such as inputting a voice command "save the current combination", so as to save the current collaborative workflow for one-key restoration of the current collaborative workflow later.
[0089] Among them, the collaborative workflow refers to a dynamic combination formed by multiple service cards based on user operations or task logics, which supports cross-screen data flow and interaction.
[0090] In the actual application process, for the stored collaborative template, it supports cross-device expansion, that is, the stored collaborative template can be synchronized to other electronic devices to support cross-device task relay. For example, the first device is associated with the second device, and the collaborative template is stored in the first device. After synchronizing the collaborative template to the second device, when the second device meets the hover state, the second device automatically resumes the collaborative workflow corresponding to the collaborative template. In this way, the operation steps of cross-device task relay are reduced, and the efficiency of cross-device task relay is improved.
[0091] Furthermore, in the actual application process, when the electronic device is in the hover state, the above-mentioned function control, that is, the service card, also supports cross-screen mobile anchoring. That is, the user can trigger the cross-screen collaboration mode by moving the function control, that is, the service card, to the anchor point on the display screen. For example, the user moves the video player on the right screen of the electronic device to the anchor point on the left screen, and the left screen will automatically display the subtitle editor.
[0092] Among them, the anchor point is a specific position on the screen edge or the folding area, such as the folding screen hinge area. The anchor point is used to trigger the cross-screen collaboration behavior of the service card.
[0093] In the above embodiments provided by the present application, after the first application interface of the first application is displayed in the second area, when it is detected that the device state of the electronic device meets the target condition, an operation bar is added and displayed in the first area. The operation bar includes an application icon associated with the target document; the first application interface is displayed in the first sub-area of the second area, and at least one function control corresponding to the target document is displayed in the second sub-area of the second area. In this way, on the one hand, the split screen is automatically triggered in combination with the device state, which improves the diversity of cross-screen interaction triggering and reduces the steps of cross-screen interaction triggering, thereby improving the operation efficiency; on the other hand, the number of tasks that the user can synchronously process through the electronic device is increased, further improving the convenience of the user to view and process the target document and improving the multi-task processing efficiency.
[0094] In the embodiment of the present application, after the above S108, the above document processing method may specifically further include the following S126 to S130:
[0095] S126: Receive a fifth input from the user to the first application interface.
[0096] Among them, the fifth input is a touch input of the user to the first application interface. The fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document.
[0097] In the actual application process, the above-mentioned fifth input can specifically be a three-finger touch input by the user on the display content in the first application interface. This three-finger touch input can specifically include a three-finger grab input by the user on the display content in the first application interface to select the target content in the first application interface. Among them, the selected target content will be placed in a virtual container, and the electronic device will display a movable second window in the area where the user touches with three fingers. This second window is associated with the target content placed in the virtual container, and a summary and source information of the target content can be displayed in the second window. On this basis, when the user keeps three fingers touching the second window, the above-mentioned three-finger touch input can specifically further include a movement input of the second window by the user. After the second window is moved to the target position of the target document, the user can release the fingers to complete the above-mentioned three-finger touch input.
[0098] S128: In response to the fifth input, when the document content at the target position is in the same content format as the target content, add the target content to the target document.
[0099] Among them, the above-mentioned content format can specifically include text format, picture format, etc., and no specific limitation is made here.
[0100] Specifically, in the document processing method provided in the embodiments of the present application, when the first application interface is displayed, such as when the first application interface is displayed in the second area or in the first sub-area of the second area, after the user selects the target content in the first application interface through the fifth input and moves the target content to the target position of the target document, the electronic device responds to this fifth input. When the document content at the target position is in the same content format as the target content, add the target content to the target document.
[0101] S130: When the document content at the target position is not in the same content format as the target content, display a prompt message and operation controls.
[0102] Among them, the operation controls are used to perform format conversion on the target content, such as converting text to a picture, or converting a picture to text, etc.
[0103] Furthermore, the prompt message is used to prompt the user that the target content cannot be inserted at the target position. For example, the prompt message can be "Inserting text is not supported here. Please select a paragraph or a table."
[0104] Specifically, in the document processing method provided in the embodiments of the present application, after the user selects the target content in the first application interface through the fifth input on the first application interface and moves the target content to the target position of the target document, in response to the fifth input, when the content format of the document content at the target position is inconsistent with the content format of the target content, that is, when the target content cannot be inserted at the target position, a prompt message is displayed in the first area, and a second window and operation controls are displayed in the second area. At this time, the user can, through the operation controls, select to convert the content format of the target content into the content format of the document content at the target position, and then insert the converted target content into the target position of the target document.
[0105] In the actual application process, the user can also, through the operation controls, select to save the target content only to the local database, which is not specifically limited here.
[0106] In the above embodiments provided by the present application, after the first application interface of the first application program is displayed in the second area, the user's fifth input on the first application interface is received. The fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document; in response to the fifth input, when the content format of the document content at the target position is consistent with the content format of the target content, the target content is added to the target document; when the content format of the document content at the target position is inconsistent with the content format of the target content, a prompt message and operation controls are displayed. The operation controls are used to perform format conversion on the target content. In this way, cross-screen migration of data is realized, and the convenience of the user in processing documents is improved.
[0107] In the embodiments of the present application, the above step of adding the target content to the target document may specifically include the following S132 and S134:
[0108] S132: Add the target content to the target document in the display format corresponding to the document paragraph position according to the document paragraph position of the target document corresponding to the target position.
[0109] Among them, the document paragraph position may specifically include the positions of the beginning of the paragraph, in the middle of the paragraph, and at the end of the paragraph.
[0110] Specifically, in the document processing method provided in the embodiments of the present application, in response to the user's fifth input, when the content format of the document content at the target position is consistent with the content format of the target content, the electronic device will add the target content to the target document in the display format corresponding to the document paragraph position according to the document paragraph position of the target document corresponding to the target position.
[0111] For example, when the target position is the end position of a paragraph in the target document, the target content is inserted into the target document in the form of a footnote; when the target position is the middle position of a paragraph in the target document, the target content is inserted into the target document in the form of the main text.
[0112] Exemplarily, as Figure 9 shown, in response to a three-finger grab input by the user on the first application interface 514, the electronic device selects the target content 536 in the first application interface 514, that is, "Data source: Research report, reference link: [example link]", and generates and displays a second window 538. Further, when the user keeps three fingers in contact with the second window 538, in response to the user's movement input on the second window 538, the electronic device moves the second window 538 to the target position 540 of the target document 502. The document content at the target position 540 is in the same content format as the target content 536, and the target position 540 is the end position of a paragraph in the target document 502. After the user releases the finger, as Figure 10 shown, the electronic device inserts the target content 536 into the target document 502 in the form of a footnote.
[0113] S134: Add the target content to the target document in the display format corresponding to the document type according to the document type of the target document.
[0114] Among them, the document types include types such as tables and texts.
[0115] Specifically, in the document processing method provided in the embodiments of the present application, in response to the fifth input by the user, when the document content at the target position is in the same content format as the target content, the electronic device adds the target content to the target document in the display format corresponding to the document type according to the document type of the target document.
[0116] For example, if the target content is in text format, after the user moves the second window to a table cell, the electronic device converts the target content into a chart format and then inserts it into the target document, and adds the source information of the target content.
[0117] In the actual application process, during the process of the user adding information to the target document, the electronic device can also adjust the display format of the added information according to the editing state of the target document. For example, when the target document is in the "draft mode", the added information is displayed in gray italics.
[0118] Further, when the target document is in the "final draft mode", the target document can automatically apply a preset citation format, such as APA (American Psychological Association, a journal guideline, a widely accepted format for writing research papers), GB / T (recommended national standard, GB is the Chinese pinyin abbreviation of "national standard", representing "national standard", and T is the first letter of the Chinese pinyin of "recommend" in "recommended", indicating that this standard is a recommended standard) format.
[0119] In the above embodiments provided by the present application, during the process of adding the target content to the target document, according to the document paragraph position of the target document corresponding to the target position, the target content is added to the target document in the display format corresponding to the document paragraph position; according to the document type of the target document, the target content is added to the target document in the display format corresponding to the document type. In this way, after automatically adjusting the data format and inserting it into the document, the convenience of the user in processing the document is improved.
[0120] In summary, in the document processing method provided by the embodiments of the present application, taking the above first application as a browser and the second application as an instant messaging program as an example, as Figure 2 shown, the process of service card binding and data linkage may specifically include the following S202 to S218:
[0121] S202: Judge: The user long-presses and moves the service card of the browser. If so, execute S204. If not, end the process.
[0122] S204: Judge: The touch pressure value ≥ 1.5 N. If so, execute S206. If not, end the process.
[0123] S206: Display the collaborative operation menu.
[0124] S208: The user selects "associated document".
[0125] S210: Highlight the key entity information in the target document.
[0126] S212: The user clicks on the highlighted key entity information.
[0127] S214: The browser jumps to display the information search results of the key entity information, and the original interface content of the browser is floatingly displayed on the target document through the first window.
[0128] S216: The user long-presses the highlighted key entity information.
[0129] S218: A message prompt window is floatingly displayed on the target document, and the information search results of the key entity information are displayed in the message prompt window.
[0130] Furthermore, in the document processing method provided by the embodiments of the present application, as Figure 3 shown, the process of the hover state split screen may specifically include the following S302 to S312:
[0131] S302: Judge: Whether the display screen of the electronic device is at 120°. If yes, execute S304; if not, end the process.
[0132] S304: Judge: Whether the electronic device maintains the device state for 2 seconds. If yes, execute S306; if not, end the process.
[0133] S306: Confirm that the electronic device is in the hover state.
[0134] S308: Display the target document in the first area, and add a display operation bar, and display the application icon associated with the target document in the operation bar.
[0135] S310: Display the browser interface in the first sub-area of the second area, and display the instant messaging interface in the second sub-area of the second area.
[0136] S312: Add a display of a cross-screen operation guide control in the second area.
[0137] Furthermore, in the document processing method provided by the embodiments of the present application, as Figure 4 shown, the process of cross-screen content migration may specifically include the following S402 to S424:
[0138] S402: Judge: Whether the user grabs the browser interface with three fingers. If yes, execute S404; if not, end the process.
[0139] S404: Select the target content in the browser interface and display the second window.
[0140] S406: Judge: Whether the user keeps three-finger touch and moves the second window to the target document. If yes, execute S408 or S418; if not, end the process.
[0141] S408: The second window is moved to the valid area of the target document.
[0142] S410: Generate annotation information according to the target content.
[0143] S412: Trigger format adaptation.
[0144] S414: In the case where the second window is moved to the end position of the target document, insert the annotation information into the target document in the form of a footnote.
[0145] S416: When the second window is moved to a table cell, convert the annotation information into a chart and insert it into the target document.
[0146] S418: The second window is moved to an invalid area of the target document.
[0147] S420: Display the second window in the second area.
[0148] S422: Display a prompt message in the first area.
[0149] S424: Add display operation controls in the second area for the user to perform format conversion on the target content.
[0150] In summary, the system architecture of the document processing method provided by the embodiments of the present application may specifically include a state perception layer, a service card layer, and a collaboration engine. Among them, the state perception layer is used to obtain the device state of the electronic device and the touch pressure value of the user on the electronic device in real time through a gyroscope, a Hall sensor, and a screen pressure sensing module. Further, the service card layer is used to convert the application functions of the application program into combinable service cards, and the service cards support dynamic scaling, cross-screen migration, and data sharing. Further, the collaboration engine is used to automatically generate service card combination rules and cross-screen interaction logics based on user behaviors and device states.
[0151] Based on the above system architecture, the document processing method provided by the embodiments of the present application achieves: dynamically service combination with form perception, that is, automatically adapting the service card layout through the device posture and screen touch pressure area of the electronic device; cross-screen collaborative workflow, that is, realizing data and operation linkage between tasks through operations such as mobile anchoring and gesture binding; multi-modal interaction enhancement, that is, integrating a composite interaction method of two-finger split screen, pressure touch such as heavy pressure triggering a collaborative operation menu, and voice interaction. In this way, on the one hand, through form perception and collaborative workflow, the task switching steps can be reduced by 50%, improving the multi-task processing efficiency; on the other hand, using natural gestures such as two-finger split screen and three-finger grab, and physical feedback such as pressure triggering for interaction is convenient for users to remember and operate, reducing the learning cost.
[0152] For the document processing method provided by the embodiments of the present application, the execution subject may be a document processing device. In the embodiments of the present application, taking the document processing device executing the above document processing method as an example, the document processing device provided by the embodiments of the present application is described.
[0153] As Figure 11 shown, the embodiments of the present application provide a document processing device 600, and the device may include the following receiving unit 602, display unit 604, and processing unit 606.
[0154] A receiving unit 602, configured to receive a first input from a user when a target document is being displayed;
[0155] A display unit 604, configured to, in response to the first input, display the target document in a first area and display at least one function control corresponding to the target document in a second area;
[0156] The receiving unit 602 is further configured to receive a second input from the user for a first function control among the at least one function controls, where the first function control corresponds to a first application;
[0157] A processing unit 606, configured to, in response to the second input, associate the target document with the first application;
[0158] The display unit 604 is further configured to display a first application interface of the first application in the second area, where the first application interface includes content associated with the target document.
[0159] The document processing apparatus 600 provided in an embodiment of the present application, when a target document is being displayed, receives a first input from a user; in response to the first input, displays the target document in a first area and displays at least one function control corresponding to the target document in a second area; receives a second input from the user for a first function control among the at least one function controls, where the first function control corresponds to a first application; in response to the second input, associates the target document with the first application and displays a first application interface of the first application in the second area, where the first application interface includes content associated with the target document. Through the above document processing apparatus 600, when a user views a target document, the target document and function controls corresponding to the target document are displayed in different areas based on the user input, and then, based on the first function control selected by the user, the target document is associated with the first application corresponding to the first function control, and the content associated with the target document in the first application is displayed. In this way, the tasks executed in different areas are interrelated, and the display contents of different tasks are related, which can reduce the steps for the user to execute different tasks, simplify cross-screen operations, improve the cross-screen collaboration ability of the electronic device, and thus improve the cross-screen operation efficiency and multitasking processing efficiency of the electronic device.
[0160] In an embodiment of the present application, the processing unit 606 is specifically configured to: when the first application has an information search function, extract key entity information from the target document; search for the key entity information in the first application to obtain an information search result; the display unit 604 is specifically configured to: display a first application interface including the information search result in the second area.
[0161] In the above embodiments provided by the present application, when the first application has an information search function, key entity information in the target document is extracted; the key entity information is searched in the first application to obtain an information search result; and a first application interface including the information search result is displayed in the second region. In this way, the information search result of the key entity information in the target document is automatically displayed without the user manually searching, reducing user operations and improving the convenience for the user to view the target document.
[0162] In an embodiment of the present application, after displaying the first application interface including the information search result in the second region, the display unit 604 is further configured to: match the key entity information with the information search result, and highlight the key entity information in the target document that successfully matches the information search result; in response to a third input of the user to the highlighted key entity information, switch the display content of the first application interface to the information search result matching the key entity information; and in response to a fourth input of the user to the highlighted key entity information, display an information prompt window on the target document, and the display content of the information prompt window is the information search result matching the key entity information.
[0163] In the above embodiments provided by the present application, after displaying the first application interface including the information search result in the second region, the key entity information is matched with the information search result, and the key entity information in the target document that successfully matches the information search result is highlighted; in response to a third input of the user to the highlighted key entity information, the display content of the first application interface is switched to the information search result matching the key entity information; and in response to a fourth input of the user to the highlighted key entity information, an information prompt window is displayed on the target document, and the display content of the information prompt window is the information search result matching the key entity information. In this way, it is convenient for the user to quickly obtain the information search result matching the key entity information, thereby facilitating the user to view and process the target document.
[0164] In an embodiment of the present application, after displaying the first application interface of the first application in the second region, the display unit 604 is further configured to: add a display operation bar in the first region when detecting that the device state of the electronic device meets the target condition, and the operation bar includes an application icon associated with the target document; display the first application interface in the first sub-region of the second region, and display at least one function control corresponding to the target document in the second sub-region of the second region.
[0165] In the above embodiments provided by the present application, after the first application interface of the first application is displayed in the second region, when it is detected that the device state of the electronic device meets the target condition, an operation bar is added and displayed in the first region, and the operation bar includes an application icon associated with the target document; the first application interface is displayed in the first sub-region of the second region, and at least one function control corresponding to the target document is displayed in the second sub-region of the second region. In this way, on the one hand, the split screen is automatically triggered in combination with the device state, which improves the diversity of cross-screen interaction triggering and reduces the steps of cross-screen interaction triggering, thereby improving the operation efficiency; on the other hand, the number of tasks that the user can synchronously process through the electronic device is increased, further improving the convenience for the user to view and process the target document and improving the processing efficiency of multi-tasks.
[0166] In the embodiments of the present application, after the first application interface of the first application is displayed in the second region, the receiving unit 602 is further configured to: receive a fifth input from the user on the first application interface, where the fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document; the display unit 604 is further configured to: in response to the fifth input, when the content format of the document content at the target position is consistent with the content format of the target content, add the target content to the target document; when the content format of the document content at the target position is inconsistent with the content format of the target content, display a prompt message and an operation control, and the operation control is used to perform format conversion on the target content.
[0167] In the above embodiments provided by the present application, after the first application interface of the first application is displayed in the second region, a fifth input from the user on the first application interface is received, where the fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document; in response to the fifth input, when the content format of the document content at the target position is consistent with the content format of the target content, add the target content to the target document; when the content format of the document content at the target position is inconsistent with the content format of the target content, display a prompt message and an operation control, and the operation control is used to perform format conversion on the target content. In this way, cross-screen migration of data is realized, and the convenience for the user to process documents is improved.
[0168] In the embodiments of the present application, the display unit 604 is specifically configured to: add the target content to the target document in a display format corresponding to the document paragraph position according to the document paragraph position of the target document corresponding to the target position; add the target content to the target document in a display format corresponding to the document type according to the document type of the target document.
[0169] In the above embodiments provided by the present application, during the process of adding target content to a target document, according to the document paragraph position of the target document corresponding to the target position, the target content is added to the target document in the display format corresponding to the document paragraph position; according to the document type of the target document, the target content is added to the target document in the display format corresponding to the document type. In this way, after automatically adjusting the data format and inserting it into the document, the convenience of users in processing the document is improved.
[0170] The document processing device 600 in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0171] The document processing device 600 in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0172] The document processing device 600 provided by the embodiments of the present application can implement Figures 1 to 4 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0173] Optionally, as Figure 12 shown, the embodiments of the present application further provide an electronic device 700, including a processor 702 and a memory 704. A program or instruction that can run on the processor 702 is stored on the memory 704. When the program or instruction is executed by the processor 702, it implements each step of the above-mentioned document processing method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0174] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0175] Figure 13 Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0176] The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc.
[0177] Those skilled in the art can understand that the electronic device 800 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 810 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 13 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0178] Among them, the user input unit 807 is used to receive a first input from the user when a target document is displayed.
[0179] The display unit 806 is used to, in response to the first input, display the target document in a first area and display at least one function control corresponding to the target document in a second area.
[0180] The user input unit 807 is further used to receive a second input from the user for a first function control among at least one function control, and the first function control corresponds to a first application program.
[0181] The processor 810 is used to, in response to the second input, associate the target document with the first application program.
[0182] The display unit 806 is further used to display a first application interface of the first application program in the second area, and the first application interface includes content associated with the target document.
[0183] In an embodiment of the present application, when displaying a target document, a first input of a user is received; in response to the first input, the target document is displayed in a first area, and at least one function control corresponding to the target document is displayed in a second area; a second input of the user to a first function control among the at least one function controls is received, and the first function control corresponds to a first application; in response to the second input, the target document is associated with the first application, and a first application interface of the first application is displayed in the second area, and the first application interface includes content associated with the target document. In the embodiment of the present application, when the user views the target document, the target document and function controls corresponding to the target document are displayed in different areas based on the user input, and then, based on the first function control selected by the user, the target document is associated with the first application corresponding to the first function control, and the associated content of the target document in the first application is displayed. In this way, the tasks executed in different areas are interrelated, and the display contents of different tasks are related, which can reduce the steps for the user to execute different tasks, simplify cross-screen operations, improve the cross-screen collaboration ability of the electronic device, and thus improve the cross-screen operation efficiency and multitasking processing efficiency of the electronic device.
[0184] Optionally, the processor 810 is specifically configured to: extract key entity information from the target document when the first application has an information search function; search for the key entity information in the first application to obtain an information search result; the display unit 806 is specifically configured to: display the first application interface including the information search result in the second area.
[0185] In the above embodiment provided by the present application, when the first application has an information search function, key entity information in the target document is extracted; the key entity information is searched in the first application to obtain an information search result; the first application interface including the information search result is displayed in the second area. In this way, the information search result of the key entity information in the target document is automatically displayed without the user manually searching, reducing user operations and improving the convenience for the user to view the target document.
[0186] Optionally, after displaying the first application interface including the information search result in the second area, the display unit 806 is further configured to: match the key entity information with the information search result and highlight the key entity information in the target document that successfully matches the information search result; in response to a third input of the user to the highlighted key entity information, switch the display content of the first application interface to the information search result matching the key entity information; in response to a fourth input of the user to the highlighted key entity information, display an information prompt window on the target document, and the display content of the information prompt window is the information search result matching the key entity information.
[0187] In the above embodiments provided by the present application, after displaying a first application interface including information search results in the second region, the key entity information is matched with the information search results, and the key entity information in the target document that successfully matches the information search results is highlighted; in response to a third input by the user on the highlighted key entity information, the display content of the first application interface is switched to the information search results that match the key entity information; in response to a fourth input by the user on the highlighted key entity information, an information prompt window is displayed on the target document, and the display content of the information prompt window is the information search results that match the key entity information. In this way, it is convenient for the user to quickly obtain the information search results that match the key entity information, so as to facilitate the user to view and process the target document.
[0188] Optionally, after displaying the first application interface of the first application in the second region, the display unit 806 is further configured to: when it is detected that the device state of the electronic device meets the target condition, add a display operation bar in the first region, and the operation bar includes an application icon associated with the target document; display the first application interface in the first sub-region of the second region, and display at least one function control corresponding to the target document in the second sub-region of the second region.
[0189] In the above embodiments provided by the present application, after displaying the first application interface of the first application in the second region, when it is detected that the device state of the electronic device meets the target condition, add a display operation bar in the first region, and the operation bar includes an application icon associated with the target document; display the first application interface in the first sub-region of the second region, and display at least one function control corresponding to the target document in the second sub-region of the second region. In this way, on the one hand, the split screen is automatically triggered in combination with the device state, which improves the diversity of cross-screen interaction triggering and reduces the steps of cross-screen interaction triggering, thereby improving the operation efficiency; on the other hand, the number of tasks that the user can synchronously process through the electronic device is increased, further improving the convenience of the user to view and process the target document and improving the processing efficiency of multi-tasks.
[0190] Optionally, after displaying the first application interface of the first application in the second region, the user input unit 807 is further configured to: receive a fifth input from the user on the first application interface, and the fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document; the display unit 806 is further configured to: in response to the fifth input, when the document content at the target position is consistent with the content format of the target content, add the target content to the target document; when the document content at the target position is inconsistent with the content format of the target content, display a prompt message and an operation control, and the operation control is used to perform format conversion on the target content.
[0191] In the above embodiments provided by the present application, after the first application interface of the first application is displayed in the second region, a fifth input of the user to the first application interface is received. The fifth input is used to select the target content in the first application interface and move the target content to the target position of the target document. In response to the fifth input, when the document content at the target position is in the same content format as the target content, the target content is added to the target document. When the document content at the target position is not in the same content format as the target content, a prompt message and an operation control are displayed. The operation control is used to perform format conversion on the target content. In this way, cross-screen migration of data is achieved, improving the convenience of users in processing documents.
[0192] Optionally, the display unit 806 is specifically configured to: add the target content to the target document in the display format corresponding to the document paragraph position according to the document paragraph position of the target document corresponding to the target position; add the target content to the target document in the display format corresponding to the document type according to the document type of the target document.
[0193] In the above embodiments provided by the present application, during the process of adding the target content to the target document, the target content is added to the target document in the display format corresponding to the document paragraph position according to the document paragraph position of the target document corresponding to the target position; the target content is added to the target document in the display format corresponding to the document type according to the document type of the target document. In this way, the data format is automatically adjusted and then inserted into the document, improving the convenience of users in processing documents.
[0194] It should be understood that in the embodiments of the present application, the input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061. The display panel 8061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. The other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.
[0195] The memory 809 can be used to store software programs and various data. The memory 809 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 can include volatile memory or non-volatile memory, or the memory 809 can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 809 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
[0196] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 810.
[0197] The embodiments of the present application also provide a readable storage medium. A program or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above document processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0198] Among them, the processor is the processor in the electronic device in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0199] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above embodiment of the document processing method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0200] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0201] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above embodiment of the document processing method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0202] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0203] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.
[0204] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A document processing method, characterized in that, Executed by an electronic device, the document processing method includes: When displaying a target document, receiving a first input from a user; In response to the first input, displaying the target document in a first area and displaying at least one function control corresponding to the target document in a second area; Receiving a second input from the user for a first function control among at least one of the function controls, where the first function control corresponds to a first application; In response to the second input, associating the target document with the first application and displaying a first application interface of the first application in the second area, where the first application interface includes content associated with the target document; 2. The document processing method according to claim 1, wherein The displaying the first application interface of the first application in the second area includes: When the first application has an information search function, extracting key entity information from the target document; Searching for the key entity information in the first application to obtain an information search result; Displaying the first application interface including the information search result in the second area.
3. The document processing method according to claim 2, wherein After displaying the first application interface including the information search result in the second area, the document processing method further includes: Matching the key entity information with the information search result and highlighting the key entity information in the target document that successfully matches the information search result; In response to a third input from the user for the highlighted key entity information, switching the display content of the first application interface to the information search result that matches the key entity information; In response to a fourth input from the user for the highlighted key entity information, displaying an information prompt window on the target document, where the display content of the information prompt window is the information search result that matches the key entity information.
4. The document processing method according to claim 1, characterized in that After displaying the first application interface of the first application in the second area, the document processing method further includes: When detecting that the device state of the electronic device meets a target condition, adding a display operation bar in the first area, where the operation bar includes an application icon associated with the target document; Displaying the first application interface in a first sub - area of the second area and displaying at least one function control corresponding to the target document in a second sub - area of the second area.
5. The document processing method according to claim 1, wherein After displaying the first application interface of the first application in the second area, the document processing method further includes: Receiving a fifth input from the user for the first application interface, where the fifth input is used to select target content in the first application interface and move the target content to a target position in the target document; In response to the fifth input, when the document content at the target position has the same content format as the target content, adding the target content to the target document; When the document content at the target position has a different content format from the target content, displaying a prompt message and operation controls for formatting the target content.
6. A document processing apparatus, characterized in that, Applied to an electronic device, the document processing apparatus includes: A receiving unit, configured to receive a first input from a user when a target document is being displayed; A display unit, configured to, in response to the first input, display the target document in a first area and display at least one function control corresponding to the target document in a second area; The receiving unit is further configured to receive a second input from the user for a first function control among at least one of the function controls, where the first function control corresponds to a first application; A processing unit, configured to, in response to the second input, associate the target document with the first application; The display unit is further configured to display a first application interface of the first application in the second area, where the first application interface includes content associated with the target document.
7. The document processing apparatus according to claim 6, wherein Specifically, the processing unit is configured to: Extract key entity information from the target document when the first application has an information search function; Search for the key entity information in the first application to obtain an information search result; Specifically, the display unit is configured to: Display the first application interface including the information search result in the second area.
8. The document processing apparatus according to claim 7, wherein After displaying the first application interface including the information search result in the second area, the display unit is further configured to: Match the key entity information with the information search result, and highlight the key entity information in the target document that successfully matches the information search result; In response to a third input from the user for the highlighted key entity information, switch the display content of the first application interface to the information search result that matches the key entity information; In response to a fourth input from the user for the highlighted key entity information, display an information prompt window on the target document, where the display content of the information prompt window is the information search result that matches the key entity information.
9. The document processing apparatus according to claim 6, wherein After displaying the first application interface of the first application in the second area, the display unit is further configured to: Add a display operation bar in the first area when it is detected that the device state of the electronic device meets a target condition, where the operation bar includes an application icon associated with the target document; Display the first application interface in a first sub-area of the second area and display at least one function control corresponding to the target document in a second sub-area of the second area.
10. The document processing apparatus according to claim 6, characterized in that, After displaying the first application interface of the first application in the second area, the receiving unit is further configured to: Receive a fifth input from the user for the first application interface, where the fifth input is used to select target content in the first application interface and move the target content to a target position in the target document; The display unit is further configured to: In response to the fifth input, add the target content to the target document when the content format of the document content at the target position is consistent with the content format of the target content; In response to the fifth input, display a prompt message and an operation control when the content format of the document content at the target position is inconsistent with the content format of the target content, where the operation control is used to perform format conversion on the target content.
Citation Information
Cited By
Display method and display apparatus
US12511088B2
Display method and display apparatus
US20240086136A1