Document processing method and electronic equipment

By introducing a state switching mechanism into the document processing card, the problem of cumbersome multiple document processing interactions is solved, simplifying operations and improving user experience.

CN121785499APending Publication Date: 2026-04-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing technologies, the interactive process of multiple document processing steps is cumbersome, user operations are complex, and it is difficult to simplify.

Method used

Introduce a two-state document processing option in the document processing card. The first state receives and processes operations, while the other states do not receive operations. The state is automatically switched by updating the content, simplifying multiple processing steps.

Benefits of technology

It reduces the complexity of multiple document processing operations for users, improves user experience, and simplifies the interaction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121785499A_ABST
    Figure CN121785499A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a document processing method and electronic equipment. According to the method, the interaction process of performing document processing for multiple times can be simplified, and in the method, the electronic equipment provides a first state and a non-first state for document processing options in a document processing card. When the document processing option corresponding to the document processing function is in the first state, operation can be received through the document processing option, and document processing corresponding to the document processing option can be carried out for the target content. After one document processing, a document processing option in a non-first state may be displayed. And under the condition that the target content is updated, switching the document processing options in the document processing card from the non-first state to the first state. And in response to an operation for the document processing option in the first state, the electronic equipment can perform document processing on the updated target content. In this way, the complexity of user operation is reduced when multiple times of document processing are needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to document processing methods and electronic devices. Background Technology

[0002] Documents, also known as files, typically refer to recorded data and data media that can be stored on electronic devices for users to view.

[0003] Initially, electronic devices can provide rich document processing functions, including text input, formatting, paragraph layout, and image insertion. Users can interact with electronic devices through these document processing functions, allowing the devices to create and edit documents based on user actions.

[0004] Therefore, a well-designed document processing function can help optimize the quality of document processing by electronic devices and improve the user experience. Summary of the Invention

[0005] This application provides a document processing method and an electronic device for rationalizing document processing functions.

[0006] In a first aspect, this application provides a document processing method applied to an electronic device. The method includes: displaying a first interface; the first interface including a first display area and a first card; the first display area being used to display the body of a first document; the first card having the function of: displaying a first option in a first state or a non-first state; an option in a non-first state indicating that the option does not receive operation; in response to an operation on the first option in the first state, performing first intelligent processing on first content in the first document; the first intelligent processing being used to obtain a first processing result, the first processing result being allowed to be added to the first document; the first content indicating the selected content in the first document; displaying the first option in a non-first state in the first card; in response to an operation to update the first content, switching the first option in the first card from a non-first state to a first state; and in response to another operation on the first option in the first state, performing first intelligent processing on the updated first content.

[0007] In the above embodiments, the first content refers to the target content involved in the following embodiments. The first interface can be an interface such as interface b1 or interface b2 involved in the following embodiments, which includes both a first card and a first display area. Here, the first card in the first interface also displays a first option. The function of the first card includes displaying the first option, but it does not mean that the first card should always display the first option, but rather that the first card has the ability to display the first option. Because in some cases, the first option in the first card can be hidden (for example, in the non-bottom state, the first option may not be displayed in the first card, but the document processing result and the add control for the document processing result may be displayed, see Figure 6B (See attached figures, such as (a)). The first option is a document processing option. For example, the intelligent polishing option described below. Here, the first card refers to the document processing card used to display document processing options in the embodiments described below; when document processing card 2 exists, the first card refers to document processing card 1.

[0008] The description of the above embodiments can be found in the following appendix. Figures 3A-8B This system provides a first state and a non-first state for the first option. After the first content undergoes document processing corresponding to the first option once, the first option is in the non-first state. Upon updating the first content, the first option's state is switched from the non-first state to the first state, allowing the user to trigger the electronic device to execute the document processing function corresponding to that first option again after using it in the first state. This simplifies the interaction flow of multiple document processing operations (corresponding to the first option).

[0009] In conjunction with the first aspect, in some embodiments, in response to the operation of updating the first content, the method further includes:

[0010] If the selected content indicated by the updated first content does not overlap with the selected content indicated by the first content before the update, the selected content indicated by the updated first content is marked with a first mark, and the mark of the selected content indicated by the first content before the update is changed from the first mark to a second mark.

[0011] In the above embodiments, the selected content indicated by the first content is displayed in the first document. Therefore, marking the selected content indicated by the first content before the update in the first document with a second mark can easily remind the user that the first content before the update has already been processed. Marking the selected content indicated by the updated first content with a first mark can remind the user that the currently processed content, or the content that can be processed, is the selected content indicated by the updated first content.

[0012] In conjunction with the first aspect, in some embodiments, the first card is displayed side by side with the first display area, or the first card is displayed floating on the first display area.

[0013] In the above embodiments, side-by-side display can be implemented on electronic devices with larger screens, while floating display can be implemented on electronic devices with smaller screens. This allows the methods in the embodiments to be adapted to different electronic devices.

[0014] In conjunction with the first aspect, in some embodiments, when the first card and the first display area are displayed side by side, the method further includes: when the first processing result is displayed in the first card, displaying a first option in a non-first state and displaying a first control in the first state in the first card; the first control in the first state is used to trigger the addition of the first processing result to the first document.

[0015] In the above embodiments, when displayed side-by-side, the first card is typically larger (compared to the first card in floating display). Therefore, it supports simultaneously displaying the first processing result, the first option, and the first control in the first card under side-by-side display without affecting the display effect in the first card. The first control can be an added control as described in the following embodiments. For example, replacing or inserting a text control.

[0016] In conjunction with the first aspect, in some embodiments, when the first card is floating on the first display area, before displaying the first option in a non-first state on the first card, the method further includes: setting the display state of the first card to a second state; the first processing result is not displayed on the first card in the second state. Displaying the first option in a non-first state on the first card specifically includes: displaying the first option in a non-first state on the first card in the second state.

[0017] In the above embodiments, the second state is the bottom state described in the following embodiments. In the second state, the first card is smaller and does not display the first processing result. Here, the first processing result refers to the document processing result described in the following embodiments, such as a polishing result. The smaller size of the first card in the second state prevents it from occupying too much screen area, allowing more content to be displayed in the document display area and facilitating user updates of the first content. The first card in the second state needs to display the first option from the previous state because after updating the first content, the first option from the previous state can be changed to the first option in the previous state, facilitating document processing of the updated first content using the first option in the previous state.

[0018] In conjunction with the first aspect, in some embodiments, before setting the display state of the first card to the second state, the method further includes: displaying the first processing result and the first control in the first state on the first card in the third state; the first option is not displayed in the first card in the third state, and the height of the first card in the third state is greater than the height of the first card in the second state.

[0019] In the above embodiments, the third state is the non-bottom state involved in the following embodiments. In the third state, the first option is not displayed on the first card because the first card already occupies a large area of ​​the screen, resulting in less visible content in the document display area. Users typically do not need to update the target content in this situation, so the first option does not need to be displayed, but the first control can be displayed to facilitate the user adding the first processing result to the document. If the target content needs to be updated, the first card can be swiped down to switch from the third state to the second state (smaller than the third state), and then the target content can be updated.

[0020] In conjunction with the first aspect, in some embodiments, when the display state of the first card is set to the second state, after performing the first intelligent processing on the updated first content, the method further includes: displaying a second card in the first interface, the second card being used to display the first processing result; the second card being displayed floating on the first display area; and replacing the first option in the first card with a first control.

[0021] In the above embodiments, the second card is the document processing card 2 involved in the following embodiments. When the second card is displayed, the second card and the first card occupy a large area of ​​the screen, resulting in less visible content in the document display area. Users typically do not need to update the target content under these circumstances, so the first option can be omitted and the first control can be displayed instead. This facilitates the user adding the first processing result to the document via the first control.

[0022] In conjunction with the first aspect, in some embodiments, the second card is displayed floatingly in the first display area, specifically including: the second card is displayed floatingly on part or all of the first content, or the second card is displayed floatingly around the first content.

[0023] In the above embodiments, the second card is close to the first content display position, which makes it easier for users to understand the correspondence between the first processing result and the first content.

[0024] In conjunction with the first aspect, in some embodiments, the method further includes: in response to a sliding operation on the first display area, the first content and the second card slide simultaneously, and their positional relationship remains unchanged.

[0025] In the above embodiments, the first content and the second card can still be close together when sliding, which makes it easier for the user to understand the correspondence between the first processing result and the first content.

[0026] In conjunction with the first aspect, in some embodiments, the method further includes: in response to an operation that modifies the selected content in the first document, the state of the first control switches from a first state to a non-first state, wherein a control in a non-first state indicates that the control does not receive an operation.

[0027] In the above embodiments, the selected content indicated by the first content has been modified, and the first processing result is generated based on the selected content before modification. However, the selected content before modification no longer exists, so the first processing result cannot be added to the document to avoid errors. For example, if the selected content before modification is 'a' and the selected content after modification is 'b', the first processing result corresponding to 'a' cannot be added to the document because 'a' no longer exists in the document. Switching the first control to a non-first state means prohibiting the addition of the first processing result to the document.

[0028] In conjunction with the first aspect, in some embodiments, before displaying the first interface, the method further includes: displaying a second interface in response to an operation of opening the first document; the second interface includes a second control and the first display area; displaying the first interface specifically includes: displaying the first interface in response to an operation on the second control.

[0029] In the above embodiments, the second control can be the document processing startup control involved in the following embodiments. The above embodiments provide a method of displaying a second interface by opening a first document, and then displaying a document processing card (included in the first interface) through the second control in the second interface. Here, the second interface can be interface a involved in the following embodiments.

[0030] In conjunction with the first aspect, in some embodiments, the first interface is provided by a first application. Before displaying the first interface, the method further includes: displaying a third interface provided by a second application; the third interface includes a first option; in response to an operation on the first option in the third interface, performing a first intelligent processing on a portion of the content in the first document, and displaying a fourth interface; the fourth interface includes a first prompt message and a third control; the first prompt message is used to prompt that a more comprehensive first intelligent processing than that in the second application is allowed in the first application; displaying the first interface specifically includes: in response to an operation on the third control, launching the first application and displaying the first interface.

[0031] In the above embodiments, an example of the second application can be the smart document application involved in the following embodiments. An example of the first application is the "Honor Document" application. The third interface can be as described in the following embodiments. Figure 15A The user interface involved in (a). The fourth interface is... Figure 15B The user interface involved in (a) above. The above embodiment provides a method for launching a first application through another application, and the first interface displayed after launching is the first interface.

[0032] In conjunction with the first aspect, in some embodiments, the first interface and the second interface are provided by a first application. Before displaying the first interface, the method further includes: displaying a third interface provided by a second application; the third interface includes a first option; in response to an operation on the first option in the third interface, performing a first intelligent processing on a portion of the content in the first document, and displaying a fourth interface; the fourth interface includes a first prompt message and a third control; the first prompt message is used to prompt that more comprehensive first intelligent processing than that in the second application is allowed in the first application; in response to an operation to open the first document, displaying the second interface specifically includes: in response to an operation on the third control, launching the first application; opening the first document in the first application and displaying the second interface.

[0033] The above embodiments provide a method to launch a first application through another application, and the first interface displayed after launching is the second interface.

[0034] Secondly, this application provides a document processing method applied to an electronic device. The method includes: displaying a first interface; the first interface including a first display area and a first card; the first card being displayed floating on the first display area, the first display area being used to display the body text of a first document; the first card having the function of: displaying a first option in a first state or a non-first state; an option being in a non-first state indicating that the option does not receive operation; in response to an operation on the first option in the first state, performing a first intelligent processing on first content in the first document and displaying a second interface; the second interface including a first display area, a first card, and a second card; the second card being displayed floating on the first display area; the first content indicating the selected content in the first document; displaying a first processing result corresponding to the first intelligent processing in the second card; displaying a first control in the first state in the first card or the second card; the first control in the first state being used to trigger the addition of the first processing result to the first document.

[0035] In the above embodiments, the first content is the target content involved in the following embodiments. The first interface can be an interface b1 or interface b2 involved in the following embodiments, which includes both the first card and the first display area, but does not include the second card. The second interface can be an interface involved in the following embodiments that includes both the first card and the second card as well as the first display area. Here, the first card in the first interface also displays a first option. The function of the first card includes displaying the first option, but it does not mean that the first card should always display the first option, but rather that the first card has the ability to display the first option. Wherein, the first option is a document processing option. The first card is the document processing card 1 involved in the following embodiments, and the second card is the document processing card 2 involved in the following embodiments. The first control can be the add control involved in the following embodiments. For example, replacing the original text control or inserting the original text control. The first processing result is the document processing result involved in the following embodiments.

[0036] By implementing the above embodiments, the first processing result can be displayed separately in the second card, which is beneficial for presenting the first processing result. Alternatively, the first processing result and the first control can be displayed separately in the second card, which is beneficial for presenting the first processing result and adding the first processing result to the document.

[0037] In conjunction with the second aspect, in some embodiments, the first card in the second interface is in a second state, and the first card in the first interface is in a third state; the height of the first card in the third state is greater than the height of the first card in the second state.

[0038] In conjunction with the second aspect, in some embodiments, the method further includes: in response to an operation that modifies the selected content in the first document, the state of the first control switches from a first state to a non-first state; a control being in a non-first state indicates that the control does not receive operations.

[0039] In the above embodiments, the selected content indicated by the first content has been modified, and the first processing result is generated based on the selected content before modification. However, the selected content before modification no longer exists, so the first processing result cannot be added to the document to avoid errors. For example, if the selected content before modification is 'a' and the selected content after modification is 'b', the first processing result corresponding to 'a' cannot be added to the document because 'a' no longer exists in the document. Switching the first control to a non-first state means prohibiting the addition of the first processing result to the document.

[0040] In conjunction with the second aspect, in some embodiments, when the first control in the first card is displayed in the first state, the method further includes: responding to an operation to close the second card, closing the second tab and switching the first control in the first card to a first option in a non-first state; the first card is in the second state; responding to an operation to update the first content, switching the first option in the first card from a non-first state to the first state; and responding to another operation on the first option in the first state, performing a first intelligent processing on the updated first content.

[0041] In the above embodiments, the second state is the bottom state described in the following embodiments. After the second card is closed, the first card in the second state occupies a smaller screen area, making it easier for the user to update the first content. Correspondingly, the first option can be displayed in the first card. After the first content is updated, the state of the first option is switched from a non-first state to the first state, so that the user can use the first option in the first state to trigger the electronic device to execute the document processing function corresponding to the first option. This simplifies the interactive process of multiple document processing operations (corresponding to the first option).

[0042] In conjunction with the second aspect, in some embodiments, in response to the operation of updating the first content, the method further includes: if the selected content indicated by the updated first content does not overlap with the selected content indicated by the first content before the update, marking the selected content indicated by the updated first content with a first mark, and changing the mark of the selected content indicated by the first content before the update from the first mark to a second mark.

[0043] In the above embodiments, the selected content indicated by the first content is displayed in the first document. Therefore, marking the selected content indicated by the previous first content in the first document with a second mark can easily remind the user that the previous first content has already been processed. Marking the selected content indicated by the updated first content with a first mark can remind the user that the currently processed or processable content is the selected content indicated by the updated first content.

[0044] In conjunction with the second aspect, in some embodiments, the second card is displayed floatingly in the first display area, specifically including: the second card is displayed floatingly on part or all of the first content, or the second card is displayed floatingly around the first content.

[0045] In the above embodiments, the second card is close to the first content display position, which makes it easier for users to understand the correspondence between the first processing result and the first content.

[0046] In conjunction with the second aspect, in some embodiments, the method further includes: in response to a sliding operation on the first display area, the first content and the second card slide simultaneously, and their positional relationship remains unchanged.

[0047] In the above embodiments, the first content and the second card can still be close together when sliding, which makes it easier for the user to understand the correspondence between the first processing result and the first content.

[0048] In conjunction with the second aspect, in some embodiments, before displaying the first interface, the method further includes: displaying a third interface in response to an operation of opening the first document; the third interface includes a second control and the first display area; displaying the first interface specifically includes: displaying the first interface in response to an operation on the second control.

[0049] In the above embodiments, the second control can be the document processing startup control involved in the following embodiments. The above embodiments provide a method of displaying a third interface by opening a first document, and then displaying a document processing card (included in the first interface) through the second control in the third interface. Here, the third interface can be interface a involved in the following embodiments.

[0050] In conjunction with the second aspect, in some embodiments, the first interface and the second interface are provided by a first application. Before displaying the first interface, the method further includes: displaying a fourth interface provided by the second application; the fourth interface includes a first option; in response to an operation on the first option in the fourth interface, performing a first intelligent processing on a portion of the content in the first document, and displaying a fifth interface; the fifth interface includes a first prompt message and a third control; the first prompt message is used to prompt that a more comprehensive first intelligent processing than that in the second application is allowed in the first application; displaying the first interface specifically includes: in response to an operation on the third control, launching the first application and displaying the first interface.

[0051] In the above embodiments, an example of the second application can be the smart document application involved in the following embodiments. An example of the first application is the "Honor Document" application. The fourth interface can be as described in the following embodiments. Figure 15A The user interface involved in (a). The fifth interface is... Figure 15B The user interface involved in (a) above. The above embodiment provides a method for launching a first application through another application, and the first interface displayed after launching is the first interface.

[0052] In conjunction with the second aspect, in some embodiments, the first interface, second interface, and third interface are provided by a first application. Before displaying the first interface, the method further includes: displaying a fourth interface provided by a second application; the fourth interface includes a first option; in response to an operation on the first option in the fourth interface, performing a first intelligent processing on a portion of the content in the first document, and displaying a fifth interface; the fourth interface includes a first prompt message and a third control; the first prompt message is used to prompt that more comprehensive first intelligent processing than that in the second application is allowed in the first application; in response to an operation to open the first document, displaying the third interface specifically includes: in response to an operation on the third control, launching the first application; opening the first document in the first application and displaying the third interface.

[0053] The above embodiments provide a method to launch the first application through other applications, and the first interface displayed after launching is the third interface.

[0054] Thirdly, embodiments of this application provide an electronic device comprising: one or more processors and a memory; the memory is coupled to the one or more processors and is used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the electronic device to perform the method implemented in the first aspect.

[0055] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method as implemented in the first aspect.

[0056] Fifthly, embodiments of this application provide a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the method as implemented in the first aspect.

[0057] In a sixth aspect, embodiments of this application provide a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the method as implemented in the first aspect.

[0058] It is understood that the electronic device provided in the third aspect, the computer storage medium provided in the fourth aspect, the chip system provided in the fifth aspect, and the computer program product provided in the sixth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, other beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0059] Figure 1A as well as Figure 1BThis illustrates an exemplary scenario involving polishing in one implementation.

[0060] Figure 2A as well as Figure 2B This illustrates another exemplary scenario involving polishing in one implementation;

[0061] Figures 3A-3D This illustrates an exemplary scenario involving multiple polishing processes in a document processing method;

[0062] Figure 4A as well as Figure 4B The image shows another exemplary scenario involving polishing in a document processing method;

[0063] Figures 5A-5C This illustrates an exemplary scenario involving multiple translation processes in a document processing method;

[0064] Figure 6A as well as Figure 6B This illustrates another exemplary scenario involving multiple polishing processes in a document processing method;

[0065] Figure 7A as well as Figure 7B This illustrates another exemplary scenario involving multiple translation processes in a document processing method;

[0066] Figure 8A as well as Figure 8B This illustrates another exemplary scenario involving multiple expansion processes in a document processing method;

[0067] Figure 9 This illustrates an exemplary scenario involving the proper tagging of target content;

[0068] Figure 10 This illustrates another exemplary scenario involving the proper tagging of target content;

[0069] Figure 11 This illustrates an exemplary scenario involving the proper setting of whether document processing results can be added to a document;

[0070] Figure 12 This illustrates another exemplary scenario involving the appropriate setting of whether document processing results can be added to a document;

[0071] Figure 13A as well as Figure 13B This illustrates an exemplary scenario involving an electronic device displaying two document processing cards;

[0072] Figure 14This illustrates another exemplary scenario involving an electronic device displaying two document processing cards;

[0073] Figure 15A as well as Figure 15B This illustrates an exemplary scenario where a document application is launched from another application;

[0074] Figure 16 This illustrates an exemplary scenario involving embedding document processing functionality provided by Smart Assistant in a note-taking application;

[0075] Figure 17 An exemplary document processing system according to an embodiment of this application is shown;

[0076] Figure 18 An exemplary flowchart is shown, illustrating the process involved in document processing by an electronic device.

[0077] Figure 19 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0078] In one possible implementation, document processing functionality provided by a smart assistant can be embedded within the document application. This functionality offers the document application artificial intelligence (AI) services for document processing. After embedding this functionality, a unified entry point for these functions can be added to the document application. For example, this could include a unified entry point for functions such as obtaining summaries, polishing, generating mind maps, expanding or shortening documents, rewriting styles, formatting, or translating. Once the electronic device launches the document application, in response to the user's action through this unified entry point, the device can provide document processing options corresponding to the chosen functions within the application. Each document processing option can trigger the electronic device to execute the corresponding function, thus providing the user with an intelligent document processing approach.

[0079] The term "smart assistant" is merely one example shown in the embodiments of this application, and the smart assistant may have other names. For example, smart document, document assistant, document assistant, AI assistant, etc., are not limited thereto.

[0080] The electronic devices involved in the embodiments of this application can be smartphones, personal digital assistants (PDAs), laptops, tablets, handheld computers, laptop computers, ultra-mobile personal computers (UMPCs), personal computers (PCs), etc. This application does not limit these devices.

[0081] Taking a tablet as an example, the aforementioned implementation method, particularly the exemplary scenario of implementing document processing functions through a unified entry point in document applications, can be found in the following... Figure 1A , Figure 1B , Figure 2A as well as Figure 2B The content shown.

[0082] Figure 1A as well as Figure 1B An exemplary scenario involving retouching is shown.

[0083] Figure 1A The user interface shown in (a) is an exemplary user interface after a document (e.g., document a) is opened in a document application on a tablet. This user interface may include a document display area and a unified entry point for document processing functions provided by the smart assistant (e.g., document processing launch control 111). The document processing launch control 111 can be used to trigger the electronic device (here, the tablet) to provide document processing options corresponding to the document processing functions. The document display area is used to display the document, in this case, document a.

[0084] It should be noted that in this embodiment, the document processing startup control 111 is named "Document Assistant". In actual use, it is not limited to "Document Assistant" and can also be named other names, such as "Document Helper" or "AI Assistant". This application embodiment does not limit this.

[0085] Continue to refer to Figure 1A In (a), in response to an operation on the document processing initiation control 111, the tablet can display as shown in (a). Figure 1A The user interface shown in (b) is a scaled-down version. The document display area in this interface is minimized. The tablet displays document processing cards side-by-side on one side of the minimized document display area. These document processing cards provide document processing options corresponding to the document processing functions.

[0086] Continue to refer to Figure 1AIn (b), the document processing card displays an interactive toolbar 112 and a document processing option bar 113, which may include document processing options corresponding to at least one document processing function. By swiping the document processing option bar 113 left or right, the tablet can update the document processing options displayed in the document processing option bar 113.

[0087] In response to an action taken on the Smart Polishing Options (also known as Polishing Options), the tablet can polish the target content to obtain a polished result. The target content indicates the selected content to be processed. Here, the target content indicates the selected content located at cursors 114a to 114b.

[0088] Then, refer to Figure 1B As shown in (a), the tablet can display the polishing results in a document processing card (see reference). Figure 1B The display box 115 shown in (a) is displayed, and the document processing options bar 113 is hidden. At this point, the tablet has completed a polishing process for the target content.

[0089] For further reference Figure 1B As shown in (b), if a user wants to refine other selected content, they can update the selected content indicated by the target content via the electronic device. For example, the target content can be updated by moving the position of cursor 114a and / or cursor 114b. Then, a request for refinement is entered into the tablet via the interactive toolbar 112. In response to this request, the tablet can refine the updated target content again.

[0090] Figure 2A as well as Figure 2B Another exemplary scenario involving polishing is shown, in which the target content for polishing is quickly updated within the polishing function.

[0091] like Figure 2A As shown in (a), the target content is the cursor. In response to an operation on the Smart Polishing Options (also known as Polishing Options) in the document processing options bar 113, the tablet can display a pop-up 211 in the document processing card (see...). Figure 2A (As shown in (b)). This pop-up 211 provides users with the ability to quickly update the target content and then refine it based on the updated target content.

[0092] refer to Figure 2A As shown in (b), in response to an operation on cursor 114b, the tablet updates the target content. See also... Figure 2BAs shown in (a), after the target content is updated, the user can trigger the tablet to refine the updated target content using the confirmation control in pop-up 211. After the refinement of the updated target content is completed, the tablet can display the refinement result as shown in (a). Figure 2B In the document processing card shown in (b).

[0093] Figure 2A as well as Figure 2B In the scenario shown, the process of performing further retouching after one round of polishing can be referenced in the preceding text. Figure 1B The content shown in (b) is accessed through the interactive toolbar 112. Further details will not be provided here.

[0094] It's important to note that the display position and style of the icons related to the unified entry point, document processing cards, and document processing options mentioned above within the document application can be adjusted based on the device type. For example, when the electronic device is a mobile phone, the document processing card can be displayed floating in the document display area, rather than displayed side-by-side with it. While the display position and style can be adjusted based on the device type...

[0095] It should also be noted that the foregoing description uses the intelligent polishing option as an example of document processing options; other options are also possible. For example, options such as expanding the document length, shortening the document length, rewriting the style, formatting, or translating. Refer to the foregoing description of polishing processes; this application's embodiments will not repeat them.

[0096] Therefore, in the aforementioned implementation, after a document processing step (such as polishing) is completed, the corresponding document processing options are hidden, requiring further document processing of the updated target content to be performed via the interactive toolbar 112. This makes the interactive process for multiple document processing steps rather cumbersome. Although Figure 2A as well as Figure 2B In the scenario shown, an opportunity to update the target content is provided before document processing, but the interactive flow when processing the document again is still not simplified.

[0097] This application proposes a document processing method that simplifies the interactive process of multiple document processing operations. Compared to the aforementioned implementations, this method also embeds document processing functions provided by a smart assistant within the document application. The document processing options corresponding to these functions (such as the aforementioned smart polishing options) are still provided in the document processing card. The difference lies in that the electronic device provides two states for the document processing options in the document processing card: a first state and a non-first state. When a document processing option corresponding to a document processing function is in the first state, the electronic device can receive operations through that option and perform document processing corresponding to that option on the target content. After one document processing operation, the document processing option in the first state is not displayed in the document processing card; instead, the option in the non-first state can be displayed. A document processing option in the non-first state indicates that it does not receive operations. When the target content is updated, the document processing option in the document processing card is switched from the non-first state to the first state. In response to operations on the document processing options in the first state, the electronic device can perform document processing on the updated target content. This reduces the complexity of user operations and improves the user experience when multiple document processing operations are required.

[0098] It should be noted that the positional relationship between the document processing card and the document display area includes, but is not limited to: the document processing card and the document display area being displayed side by side, or the document processing card being displayed floating on the document display area. The specific positional relationship can be set based on the screen size of the electronic device, and this application embodiment does not limit this. For example, when the screen of the electronic device is large (e.g., tablets, PCs, etc.), a side-by-side display method can be adopted. When the screen of the electronic device is small, a floating display method can be adopted.

[0099] The following explanation uses the Smart Polishing option as an example. For an example description of multiple polishing processes, please refer to the following... Figures 3A-3D The description.

[0100] like Figures 3A-3B The electronic devices shown are illustrated using a tablet as an example.

[0101] In response to an action of opening a document (e.g., document 1) in a document application, the tablet can display interface a. Interface a may include document processing initiation controls and a document display area for displaying the document. An exemplary representation of interface a on the tablet can be seen... Figure 3A As shown in (a).

[0102] refer to Figure 3AIn (a), an exemplary representation of the document processing startup control can be document processing startup control 111. This document processing startup control can serve as a unified entry point for the document processing functions provided by a smart assistant.

[0103] In response to an action on the document processing launch control, the tablet can display interface b1. Interface b1 includes not only a document display area but also document processing cards displayed alongside the document display area. An exemplary representation of interface b1 can be seen... Figure 3A As shown in (b).

[0104] like Figure 3A As shown in (b), a document processing card may include at least one document processing option. For example, a smart summary option (also known as a summary option), a viewpoint summary option, a smart formatting option (also known as a formatting option), a smart translation option (also known as a translation option), a mind mapping option, a smart polishing option (also known as a polishing option), an expanded document option, a shortened document option, and a style rewriting option.

[0105] like Figure 3B (a) and Figure 3B As shown in (b), in response to the user's operation of moving cursors 321a and 321b, the electronic device determines the selected content indicated by the target content as... Figure 3B The content between cursors 321a and 321b in (b). After the selected content indicated by the target content is determined, the tablet can perform polishing processing on the target content by selecting the Smart Polishing option in the first state of the document processing card. The polishing processing progress is then displayed in the document processing card.

[0106] like Figure 3C (a) and Figure 3C As shown in (b), this is an exemplary scenario involving a tablet computer retouching target content. Among them, Figure 3C The document processing card shown in (a) illustrates an example of a situation where the polishing results have not yet been obtained, which may occur when network conditions are poor or the selected content indicated by the target content is long. Figure 3C The document processing card shown in (b) displays the result of the polishing process after it has been completed. At this point, the document processing card also includes a smart polishing option for non-first-state applications.

[0107] refer to Figure 3C (b) and Figure 3DAs shown in (a), in response to a user's action of updating the target content, the tablet can switch the Smart Polish option from a non-first state to a first state. This means that the user can trigger the tablet to polish the updated target content through the Smart Polish option in the first state. Here, the action of updating the target content can be the action of moving the cursor 321b.

[0108] refer to Figure 3D (a) and Figure 3D As shown in (b), in response to an operation on the Smart Polishing option in the first state, the tablet polishes the updated target content. The polishing result, as well as the Smart Polishing option in the non-first state, are displayed in the document processing card.

[0109] It should be noted here that... Figure 3B The smart polishing options shown not only polish target content but also allow document processing cards to navigate to the corresponding smart polishing option page. For example, Figure 3C as well as Figure 3D The document processing cards shown are all on the corresponding Smart Editing options page. When a document processing card enters the corresponding Smart Editing options page, the style of the Smart Editing options displayed in the document processing card can be the same as... Figure 3B The styles of the smart polishing options shown are different. Although the styles are different, any smart polishing option that can be used to trigger the polishing process can be called a smart polishing option in the first state.

[0110] It should also be noted that, when displaying the polishing results, the electronic device can also display operation controls related to the polishing results in the document processing card. For example, refer to the aforementioned... Figure 3C (b) and Figure 3D As shown, the document processing card displays not only the Smart Polishing options but also operation controls related to the polishing results. These include controls for style adjustment, copying, further processing, and replacing the original text. Different operation controls trigger different processing of the polishing results. For example, the replace the original text control triggers the electronic device to replace the selected content indicated by the target content with the polished result.

[0111] The foregoing Figures 3A-3D The example shown assumes that the target content has been determined before the intelligent polishing operation is detected. In some cases, if the target content has not been determined before the intelligent polishing operation is detected, the electronic device can use the default content (such as the content of the first paragraph of the document) as the target content. Alternatively, the electronic device can display a pop-up window prompting the user to select the target content, and then perform polishing processing after the target content is selected. An example of this process can be found in the following... Figure 4A as well as Figure 4B The description.

[0112] Figure 4A as well as Figure 4B The example will still be a tablet computer.

[0113] like Figure 4A (a) and Figure 4A As shown in (b), in response to an operation on the smart polishing option in the first state, the tablet can pop up a pop-up 411 to prompt the user to select the target content.

[0114] like Figure 4B As shown in (a), after the user confirms the target content, they can trigger the tablet to refine the target content through the confirmation control in pop-up 411. (Reference) Figure 4B As shown in (b), after the tablet obtains the polishing results, it can display the polishing results and the smart polishing options in the document processing card, which are not in the first state.

[0115] The foregoing explanation uses the Smart Polishing option as an example. Other document processing options involve similar content; simply modify Smart Polishing or Polishing to other document processing options, or adapt the corresponding operation controls and prompts. These other document processing options include, but are not limited to: Smart Formatting, Smart Translation, Expanding Length, Shortening Length, and Style Rewriting.

[0116] This section uses other document processing options as an example to describe the intelligent translation process. The process of performing multiple translation processes can be referenced below. Figures 5A-5C The description.

[0117] like Figures 5A-5C As shown in the content, the process of the tablet performing multiple translations on the document is similar to the aforementioned... Figures 3B-3D The process of performing multiple polishing processes on a document is similar to that described above; you can refer to the aforementioned steps. Figures 3B-3D The description can be adapted accordingly. For example, the aforementioned Figures 3B-3D The text describes various modifications to a translation process, including changing "smart polishing" or "polishing" to "smart translation" and modifying the controls and prompts for polishing results to match those for translation. Figures 5B-5C As shown, the operation controls for the translation processing result differ from those for the polishing processing result. The operation controls for the translation processing result do not include a style adjustment control; instead, they are replaced with a share control. Furthermore, the operation controls for the translation processing result do not include a replace original text control; instead, they include an insert original text control.

[0118] Therefore, the corresponding operation controls for different document processing options are adapted to the document processing results. For example, the translation result corresponds to the insert control because it is more user-friendly for the translation result to coexist with the selected content indicated by the target content, so it can be added to the document by insertion. However, the polishing result corresponds to the replacement of the original text because the polishing result and the selected content indicated by the target content have the same semantics. If they coexist, there would be a problem of redundant description, so replacing the original text is more user-friendly.

[0119] The foregoing Figures 3A-5C This describes an exemplary scenario that simplifies the interactive flow of multiple document processing operations when document processing cards and document display areas are displayed side-by-side. The following is based on... Figures 6A-8B This describes an exemplary scenario where a document processing card is displayed floating in the document display area, simplifying the interactive flow of multiple document processing operations.

[0120] When a document processing card is displayed floating in the document display area, its display state can change to adapt to different needs. The document processing card's display state includes a bottom state and a non-bottom state. The non-bottom state can be further divided into a top-aligned state and a middle state. In the bottom state, the document processing card's height is less than its height in the non-bottom state, and in the top-aligned state, the document processing card's height is greater than its height in the middle state.

[0121] After selecting a document processing option, the electronic device can perform the corresponding document processing function based on the target content to obtain the document processing result. Displaying the document processing result in the document processing card typically requires a larger display area. In this case, the electronic device can set the document processing card to a non-bottom state to better display the document processing result. Considering that users may need to add the document processing result to the document, the addition control can also be placed in the document processing card. If there is still free display area when the document processing card is in a non-bottom state, the electronic device can display other operation controls and / or prompts related to the document processing result in the free display area. It should be noted that whether the document processing card is displayed in a top-aligned or intermediate state (non-bottom state) when displaying the document processing result can be determined based on the amount of content in the document processing result. For example, if the document processing result has a lot of content, the document processing card can be displayed in a top-aligned state. If the document processing result has a little content, the document processing card can be displayed in an intermediate state.

[0122] After processing a document, the electronic device can set the document processing card to the bottom display state, allowing more content in the document display area to be presented to the user, making it easier for the user to reselect the selected content and update the target content. Before the target content is updated, the document processing card in the bottom state displays document processing options that are not in the first state. As the target content is updated, the electronic device can switch the document processing options from the second state to the first state. Through the document processing options in the first state, the electronic device can perform the document processing function corresponding to that option on the updated target content.

[0123] refer to Figure 6A as well as Figure 6B Taking the document processing option as the Smart Polishing Option (also known as Polishing Option) as an example, this paper describes a scenario where multiple document processing operations are performed when the document processing card is displayed floating in the document display area.

[0124] Figure 6A as well as Figure 6B In this example, we will use a mobile phone as an example.

[0125] In response to an action of opening a document (e.g., document 1) in a document application, the mobile phone can display interface a. Interface a may include document processing initiation controls and a document display area for displaying the document. An exemplary display of interface a on the mobile phone can be seen... Figure 6A As shown in (a). Figure 6A As shown in (a), an exemplary representation of the document processing startup control can be document processing startup control 111.

[0126] In response to an action on the document processing launch control, the mobile phone can display interface b2. Interface b2 includes not only the document display area but also a document processing card that floats on top of that display area. An exemplary representation of interface b2 can be found... Figure 6A As shown in (b). Here, the content displayed in the document processing card is the same as described above. Figure 3A The content displayed on the document processing cards shown in (b) can be the same; please refer to the aforementioned points. Figure 3A The description of the document processing card shown in (b) will not be repeated here.

[0127] refer to Figure 6A (b) and Figure 6A As shown in (c), the user selects the content between cursors 321a and 321b as the selected content, and the electronic device determines the selected content indicated by the target content as the content between cursors 321a and 321b.

[0128] refer to Figure 6A As shown in (c), in response to an action on the Smart Editing option, the phone can edit the target content and obtain the edited result. (See reference) Figure 6B As shown in (a), the mobile phone can display the polishing results in a document processing card that is not at the bottom. In this case, the document processing card in the non-bottom state can also include a "Replace Original Text" control. This "Replace Original Text" control is an add control under the Smart Polishing option, used to add the polishing results to the document.

[0129] After displaying the polishing results, if there is still free display area in the document processing card, operation controls and / or prompts related to the polishing results can be displayed. Furthermore, the larger the free display area, the more operation controls can be displayed, providing users with more operation options. For example, refer to... Figure 6B As shown in (a), the document processing card may also include prompts to indicate the progress of the polishing process. The document processing card also includes style adjustment controls, copy controls, and further processing controls.

[0130] When the document processing card is not at the bottom, to simplify its display, controls unrelated to the document processing result can be omitted. For example, when the document processing card obscures most of the document display area, it becomes difficult for the user to update the target content. Therefore, refer to... Figure 6B As shown in (a), the Smart Polishing option can be hidden in the document processing card at this time.

[0131] Continue to refer to Figure 6B In (a), in response to a swipe down on a document processing card that is not in the bottom position, the phone sets the document processing card to the bottom position (e.g., ...). Figure 6B As shown in (b), the Smart Polishing option (not in the first state) is displayed in the document processing card at the bottom. In this case, the Smart Polishing option can be simply called Polishing on the phone.

[0132] refer to Figure 6B (b) and Figure 6B As shown in (c), in response to the user's action of updating the target content, the mobile phone can switch the Smart Polishing option in the document processing card from a non-first state to a first state. This means that the user can trigger the mobile phone to polish the updated target content through the Smart Polishing option in the first state. Here, the action of updating the target content can be the action of moving the cursor 321b.

[0133] refer to Figure 6B (c) and Figure 6BAs shown in (d), in response to an operation on the Smart Polishing option in the first state, the phone polishes the updated target content. Furthermore, the display state of the document processing card is set to a non-bottom state, and the polishing result is displayed in the document processing card in the non-bottom state.

[0134] It should be noted here that... Figure 6A The smart polishing options shown not only polish target content but also allow document processing cards to navigate to the corresponding smart polishing option page. For example, Figure 6B The document processing cards shown are all on the corresponding Smart Editing options page. When a document processing card enters the corresponding Smart Editing options page, the style of the Smart Editing options displayed in the document processing card can be the same as... Figure 6A The styles of the smart polishing options shown are different. Although the styles are different, any smart polishing option that can be used to trigger the polishing process can be called a smart polishing option in the first state.

[0135] Figure 6A as well as Figure 6B The content shown uses the "Smart Polishing" option as an example. Other document processing options are similar; simply modify "Smart Polishing" or "Polishing" to other document processing options, or adapt the corresponding operation controls and prompts. These other document processing options include, but are not limited to: Smart Formatting, Smart Translation, Expanding Length, Shortening Length, and Style Rewriting.

[0136] This section uses other document processing options as examples for the intelligent translation option and the extended document length option. The process of performing multiple translation processes can be referenced below. Figure 7A as well as Figure 7B The description. The process of expanding the text multiple times can be referenced below. Figure 8A as well as Figure 8B The description.

[0137] For the translation processing corresponding to the smart translation option, such as Figure 7A as well as Figure 7B As shown in the content, the process of the mobile phone performing multiple translations on the document is similar to the aforementioned... Figure 6A as well as Figure 6B The process for multiple polishing processes in Chinese is similar and can be found in the aforementioned documents. Figure 6A as well as Figure 6B The description in the text can be adapted accordingly. For example, the aforementioned... Figure 6A as well as Figure 6BThe text describes various modifications to a translation process, including changing "smart polishing" or "polishing" to "smart translation" and modifying the controls and prompts for polishing results to match those for translation. Figure 7A as well as Figure 7B As shown, the operation controls for the translation processing result differ from those for the polishing processing result. The operation controls for the translation processing result do not include a style adjustment control; instead, they are replaced with a share control. Furthermore, the operation controls for the translation processing result do not include a replace original text control; instead, they include an insert original text control.

[0138] Regarding the handling of extended text options, such as... Figure 8A as well as Figure 8B As shown in the content, the process of the mobile phone expanding the document multiple times is similar to the aforementioned... Figure 6A as well as Figure 6B The process of performing multiple polishing processes on a document is similar and can be referred to the above. Figure 6A as well as Figure 6B The description in the text can be adapted accordingly. For example, the aforementioned... Figure 6A as well as Figure 6B The solution involves using intelligent polishing or modifying the polishing process to expand the text, and changing the prompt message corresponding to the polishing result to the prompt message corresponding to the expanded text processing. For example... Figure 8A as well as Figure 8B As shown, the operation controls corresponding to the expanded page processing result and the polishing processing result can be the same.

[0139] It should be noted that the aforementioned simplified interactive process for multiple document processing operations is one method of rationalizing document processing functions in this application embodiment. In addition, this application embodiment also provides other methods for rationalizing document processing functions, including but not limited to at least one of the following methods.

[0140] Appropriately label target content: After the target content is updated, assign different labels to the updated target content and the target content before the update, so that users can remember the target content before the update and distinguish the target content after the update.

[0141] Reasonably configure whether document processing results can be added to the document: After displaying the document processing results and adding controls in the document processing card, if the selected content indicated by the target content is modified, the electronic device can switch the added control from the first state to a non-first state to prevent the document processing results from being added to the document.

[0142] Displaying document processing results appropriately: For scenarios where document processing cards are displayed floating in the document display area, the document processing results and some or all of the controls involved in the document processing can be displayed in different document processing cards to optimize the display effect of the document processing results.

[0143] The following describes several ways to rationally configure document processing functions.

[0144] Regarding the appropriate marking of target content, in scenarios involving multiple document processing sessions, if there is no overlap between the selected content indicated by the target content before the update and the selected content indicated by the updated target content, the electronic device can first mark the selected content indicated by the updated target content, and change the mark of the selected content indicated by the target content before the update from the first mark to a second mark. The second mark can be a lighter highlight than the first mark. This helps the user remember the selected content indicated by the target content during the last document processing session.

[0145] Figure 9 This example uses a tablet computer as an example and document processing as a polishing process. Other document processing methods can be referred to here, and will not be elaborated further.

[0146] like Figure 9 (a) and Figure 9 As shown in (b), the selected content indicated by the target content before the update is content 601. The user moves the cursor 321a and the cursor 321b to update the target content. The selected content indicated by the target content after the update is updated to content 602. Figure 9 As shown in (b), the tablet changes the highlight of content 601 from a darker color to a lighter color, while highlighting content 602 with a darker color. As the target content is updated, the status of the Smart Polish option also changes from... Figure 9 The non-first state transition shown in (a) is as follows: Figure 9 The first state is shown in (b). This means that users can quickly polish content 602 using the smart polishing options in the first state.

[0147] It should be noted here that the aforementioned Figure 9 The document and its related content describe scenarios for appropriately marking target content when document processing cards are side-by-side with the document display area. For scenarios where document processing cards are displayed floating above the document display area, the following examples illustrate how to appropriately mark target content. Figure 10 The description.

[0148] Figure 10This example uses a mobile phone as the electronic device and document editing as the document processing method. Other document processing methods can be referred to here, and will not be elaborated further.

[0149] like Figure 10 As shown in (a), after a polishing process is completed, the phone displays the polishing result in the document processing card, which is not in the bottom position. In response to a swipe down on the polishing card, the phone switches the display state of the document processing card from the bottom position to the bottom position (see Figure 1). Figure 10 (as shown in (b)).

[0150] like Figure 10 (b) and Figure 10 As shown in (c), the selected content indicated by the target content before the update is content 1101. The user moves the cursor 321a and the cursor 321b to update the target content. The selected content indicated by the updated target content is updated to content 1102. Figure 10 As shown in (c), the phone changes the highlight of content 1101 from a darker color (a first highlight) to a lighter color (a second highlight), and uses a darker color to highlight content 1102 (a first highlight). As the target content is updated, the status of the Smart Polishing option also changes from... Figure 10 The non-first state transition shown in (b) is for Figure 10 The first state is shown in (c). This means that users can quickly polish content 1102 using the smart polishing options in the first state.

[0151] It should be noted here that... Figure 9 as well as Figure 10 The example described above assumes that there is no overlap between the selected content indicated by the target content before the update and the selected content indicated by the target content after the update. In other possible embodiments, in scenarios involving multiple document processing, if there is a portion of the selected content indicated by the target content before the update (denoted as content a) that is not overlapped with the selected content indicated by the target content after the update, the electronic device can also mark the selected content indicated by the updated target content with a first mark and change the mark of content a from the first mark to the second mark. The relevant descriptions of this process can be found in the foregoing description. Figure 9 or Figure 10 The description will not be repeated here.

[0152] Regarding the reasonable setting of whether document processing results can be added to a document, based on the foregoing, after the selected content indicated by the target content is determined, in response to the operation on the document processing option, the electronic device performs the document processing operation corresponding to that option on the target content, and can then display the document processing result in the document processing card. This document processing result can be considered as the document processing result corresponding to the selected content. This document processing result can be added to the document via an add control, which is an operation control corresponding to the document processing result mentioned above, adapted to the document processing result, and used to add the document processing result to the document. For example, when the document processing result is a polishing result, the add control is the aforementioned replacement of original text control; when the document processing result is a translation result, the add control is the aforementioned insertion of original text control.

[0153] However, after performing the document processing operation corresponding to the document processing option on the target content, displaying the document processing result in the document processing card, and adding controls, if the selected content indicated by the target content is modified, the electronic device can switch the added controls from the first state to a non-first state. A control in a non-first state indicates that the control does not receive operations. This makes the document processing function more efficient.

[0154] A description of this process can be found below. Figure 11 As shown, Figure 11 This example uses document polishing as an illustration. Other document processing functions can be found in the documentation. Figure 11 The description will not be repeated here.

[0155] Figure 11 The electronic device shown is a tablet computer.

[0156] like Figure 11 As shown in (a), the selected content indicated by the target content includes content 701. At this time, the document processing card includes the polishing result after polishing the target content. In response to the operation of modifying content 701, the tablet generates the modified content 701. The polishing result in the document processing card at this time is the polishing result corresponding to the original content 701. However, the original content 701 no longer exists in the document, so it is no longer suitable to add the polishing result corresponding to the original content 701 to the document. (Reference) Figure 11 (a) and Figure 11 As shown in (b), the tablet can switch the Replace Original Text control from the first state to a non-first state. This indicates that the Replace Original Text control no longer accepts operations and does not support adding the polishing result corresponding to the previous content 701 to the document.

[0157] It's important to clarify here that modifying the selected content indicated by the target content means changing the selected content within the document, resulting in a change to the document itself. This differs from updating the target content mentioned earlier. Updating the target content does not modify the selected content within the document; it simply reselects the selected content, and the document itself remains unchanged.

[0158] It should be noted here that the aforementioned Figure 11 The related content describes scenarios where, when document processing cards are displayed alongside the document display area, it's appropriate to configure whether document processing results can be added to the document. For scenarios where document processing cards are floating above the document display area, the following guidelines can be used as a reference for configuring whether document processing results can be added to the document. Figure 12 The description.

[0159] Figure 12 This example uses a mobile phone as the electronic device and "Smart Editing" as the document processing option. Other document processing functions can be found in the documentation. Figure 12 The description will not be repeated here.

[0160] like Figure 12 As shown in (a), the selected content indicated by the target content includes content 1201. At this time, the document processing card includes the polishing result after polishing the target content. In response to the operation of modifying content 1201, the mobile phone generates the modified content 1201. At this time, the polishing result in the document processing card is the polishing result corresponding to the original content 1201. However, the original content 1201 no longer exists in the document, so it is no longer suitable to add the polishing result corresponding to the original content 1201 to the document. (Reference) Figure 12 (a) and Figure 12 As shown in (b), the mobile phone can switch the Replace Original Text control from the first state to a non-first state. This indicates that the Replace Original Text control no longer accepts operations and does not support adding the polishing result corresponding to the original content 1201 to the document.

[0161] Regarding the proper display of document processing results, when document processing cards are floating above the document display area, the electronic device can display two document processing cards: Document Processing Card 1 and Document Processing Card 2. Document Processing Card 1 is positioned at the bottom of the screen (meaning its display state is at the bottom) and is used to display some or all controls related to document processing. Document Processing Card 2 is positioned above Document Processing Card 1 and can be used to display the document processing results. Alternatively, Document Processing Card 1 can be positioned at the top of the screen and can be used to display some or all controls related to document processing. Document Processing Card 2 is positioned below Document Processing Card 1 and is used to display the document processing results. Document Processing Card 2 is only needed when document processing results exist.

[0162] In some possible scenarios, document processing card 2 may float on the document display area, including: document processing card 2 may float on part or all of the target content, or document processing card 2 may float around the target content. This makes it easier for users to understand the correspondence between the document processing results and the target content.

[0163] In response to a sliding operation on the document display area or document processing card 2, the target content and document processing card 2 slide simultaneously, and their positional relationship remains unchanged during the sliding.

[0164] An exemplary scenario regarding the proper display of document processing results can be found in the following example. Figure 13A as well as Figure 13B The description.

[0165] Figure 13A as well as Figure 13B This explanation uses the document processing option of expanding document length as an example. For the display of document processing results related to other document processing options, please refer to [link / reference]. Figure 13A as well as Figure 13B The content shown will not be repeated here.

[0166] Figure 13A as well as Figure 13B The example given is a mobile phone.

[0167] like Figure 13A As shown in (a), in response to an action on the expanded content option, the phone can expand the target content. Figure 13A The document processing card 2 in (b) shows an exemplary diagram when the extended document processing result has not yet been obtained, which may occur when network conditions are poor or the selected content indicated by the target content is long. Since the target content is near the top of the screen, the initial position of the document processing card 2 is also closer to the top of the screen.

[0168] After obtaining the results of the extended text processing, the phone can display something like this: Figure 13A The content shown in (c) is as follows. At this time, document processing card 1 and document processing card 2 are displayed floating on the document display area. Document processing card 1 is located at the bottom of the screen and is used to display some or all of the controls related to document processing. Document processing card 2 is used to display the document processing results.

[0169] contrast Figure 13A (a)- Figure 13A As shown in (d), when the initial position of document processing card 2 is closer to the top of the screen, the top edge of document processing card 2 remains unchanged, while the bottom edge of document processing card 2 extends towards the bottom edge of the screen as the content in the extended page processing result increases, thus increasing the height of document processing 2 and allowing more content in the extended page processing result to be displayed.

[0170] In some cases, the bottom edge of document processing card 2 can extend to a position close to the top edge of document processing card 1. If, when extended to a position close to the top edge of document processing card 1, document processing card 2 still doesn't have enough space to display the expanded processing results, and some content in the expanded processing results is not visible (cannot be displayed in document processing card 2), then a sliding control can be set on the side of the document processing card. Users can drag or scroll the slider of this sliding control to view the invisible content in document processing card 2.

[0171] In other possible scenarios, after the bottom edge of document processing card 2 extends to a position close to the top edge of document processing card 1, the phone can also scroll the target content upwards along with document processing card 2 before setting the sliding control, until the first or last row of the target content is at the top of the document display area.

[0172] like Figure 13B As shown in (a), in response to a sliding operation (here, a downward sliding operation) on document processing card 2, both the target content and document processing card 2 slide downwards simultaneously, and the positional relationship between document processing card 2 and target content remains unchanged compared to before the sliding. The positional relationship between document processing card 2 and target content refers to the positional relationship between document processing card 2 and the selected content indicated by the target content.

[0173] When document processing card 1 and document processing card 2 are displayed simultaneously, the document processing-related controls displayed in document processing card 1 may include a "Replace Original Text" control (an add control) for adding the document processing result to the document. In this case, the "Expand Length" option may not be displayed in document processing card 1. However, in some possible cases, the "Expand Length" option may be displayed, and this embodiment does not limit this. Figure 13A as well as Figure 13B The example shown is when the document processing card 1 does not display the "Expand Length" option during document processing 2.

[0174] like Figure 13B As shown in (b), document processing card 2 may also include a close control 1301 for closing the document processing card. After document processing card 2 is closed, the replace original text control in document processing card 1 can be replaced with the extended text option (see reference). Figure 13B (as shown in (c)).

[0175] Continue to refer to Figure 13B As shown in (c), in response to the user's operation of updating the selected content indicated by the target content, the mobile phone updates the target content and switches the expanded content option in document processing card 1 from a non-first state to a first state (see reference). Figure 13B (as shown in (d)). For example, a user can update the target content by moving the position of cursor 321a and / or cursor 321b.

[0176] refer to Figure 13B As shown in (d), in response to the operation of the expanded content option in the first state, the mobile phone can expand the updated target content. Then, document processing card 2 is displayed, showing the expanded content processing result obtained from the second expansion processing. The expanded content option in document processing card 1 is replaced with a replace original text control (an add control). Optionally, whether the replace original text control is in the first state or a non-first state depends on whether an expanded content processing result exists in document processing card 2. If an expanded content processing result exists, the replace original text control is in the first state; otherwise, it is in a non-first state. Alternatively, the replace original text control can be directly set to the first state to indicate to the user that there is a function to add the expanded content processing result to the document.

[0177] refer to Figure 14 The diagram shown illustrates the process of expanding the updated target content on a mobile phone. Figure 14 In (a), document processing card 1 is shown, but document processing card 2 is not shown. Figure 14The document processing card 2 in (b) is an example diagram when the extended document processing result has not yet been obtained, which may occur when network conditions are poor or the selected content indicated by the target content is long. Since the target content is near the bottom of the screen, the initial position of the document processing card 2 is also closer to the bottom of the screen.

[0178] After obtaining the results of the extended text processing, the phone can display something like this: Figure 14 The content shown in (c) is as follows. At this time, document processing card 1 and document processing card 2 are still floating in the document display area. Since the extended text processing result already exists in document processing card 2, the mobile phone can switch the replace original text control in document processing card 1 from the non-first state to the first state.

[0179] refer to Figure 14 (b) Figure 14 As shown in (d), when the initial position of the document processing card 2 is close to the bottom of the screen, the bottom edge of the document processing card 2 remains unchanged, and the top edge of the document processing card 2 extends towards the top edge of the screen as the content in the extended page processing result increases, thereby increasing the height of the document processing card 2 and allowing more content in the extended page processing result to be displayed.

[0180] Optionally, when the top edge of document processing card 2 extends towards the top edge of the screen, the positional relationship between the top edge of document processing card 2 and the target content remains unchanged. The positional relationship between the top edge of document processing card 2 and the target content refers to the positional relationship between the top edge of document processing card 2 and the selected content indicated by the target content.

[0181] It should be noted here that the aforementioned Figure 13A , Figure 13B as well as Figure 14 The close control 1301 displayed in the Chinese document processing card 2 is optional. The close control 1301 may also not be displayed, and this embodiment does not limit this. When the close control 1301 is not displayed, the document processing card 2 can be closed in other ways. For example, dragging and releasing the document processing card 2 will close it.

[0182] It should be noted here that the aforementioned Figures 13A-14 This example illustrates how to display document processing results in document processing card 2, without showing some or all of the controls related to document processing. In some possible implementations, controls strongly related to the document processing results (such as add controls) can also be displayed in document processing card 2. This facilitates adding the document processing results from document processing card 2 to the document.

[0183] It should be noted that the above explanation assumes that a document is opened in a document application (e.g., document 1), and then processed using the document processing functions provided by the Smart Assistant. In some cases, electronic devices can use the document processing functions provided by the Smart Assistant in other ways. For example, the document application can be launched from an application other than the document application, and then the document processing functions provided by the Smart Assistant in the document application can be used to process the document.

[0184] Among them, the exemplary scenario of launching a document application through other applications can be referred to in the following sections. Figure 15A as well as Figure 15B The description.

[0185] This other application can be a smart document body application, such as... Figure 15A As shown in (a), this is an exemplary user interface after an electronic device launches the Smart Document Body application. In response to an action on the Smart Editing options, the electronic device can display, as shown in (a). Figure 15A The content shown in (b) prompts the user to select a document to be polished. After selecting a document, the user can then polish it. An example image illustrating the polishing process can be found below. Figure 15B As shown in (a).

[0186] refer to Figure 15B In the user interface shown in (a), the electronic device intelligently polishes portions of a document within a smart document body application. Therefore, the electronic device can display a prompt (prompt 1) suggesting that a more refined polishing process is allowed in a document application (e.g., the "Honor Document Application") than in the smart document body application. In response to an operation on control 1501, the electronic device can launch the document application.

[0187] At this point, the operation on control 1501 can be viewed as opening a document in a document application, and the electronic device can display the aforementioned interface a (such as...). Figure 15B As shown in (b), or, the operation on control 1501 can be regarded as an operation to open a control for document processing in a document application. The electronic device can display the aforementioned interface b2 or interface b1. When displaying interface b2, as shown in (b) Figure 15B As shown in (c).

[0188] What should be understood here is that... Figure 15A as well as Figure 15B The example given is the Smart Polishing option. For other document processing options, please refer to this description and replace the Smart Polishing option with other document processing options. It will not be elaborated here.

[0189] It should also be noted that the document processing functionality provided by Hui Assistant can be embedded not only into the aforementioned document applications, but also into applications with text recording capabilities, such as note-taking applications. The controls involved in document processing within a note-taking application can be adjusted according to the specific note-taking application.

[0190] Figure 16 This illustrates an exemplary scenario involving embedding document processing functionality provided by Smart Assistant in a note-taking application.

[0191] like Figure 16 As shown in (a), this is an exemplary interface in a note-taking application when displaying the polishing results in a document processing card. In response to a swipe down on the document processing card, the electronic device can display... Figure 16 The content shown in (b) indicates this. At this point, the document processing card's state switches from the non-bottom state to the bottom state. The smart polishing options (not in the first state) can be displayed in the document processing card in the bottom state. Here, the smart polishing option is named "Polish".

[0192] refer to Figure 16 (a) and Figure 16 As shown in (b), this is in response to an operation that updates the target content. For example, in response to an operation on cursor 321b, the electronic device can switch the Smart Polishing option from a non-first state to a first state, so that the Smart Polishing option can receive user input (see reference). Figure 16 As shown in (c), this allows the electronic device to refine the updated target content.

[0193] It should be noted that the above content is based on the example of using the Smart Editing option in a note-taking application. When using other document processing options in the note-taking application, please refer to the description above, which will not be repeated here.

[0194] Figure 17 An exemplary document processing system according to an embodiment of this application is shown.

[0195] The document processing system may include electronic devices and a document processing server.

[0196] The electronic device can be a smartphone, PC, tablet, laptop, or other smart device. The electronic device can establish a link with a document processing server to implement the document processing method described in this application. An exemplary process involved in this procedure can be found below. Figure 18 Steps S101-S104 are shown in the diagram.

[0197] S101. Electronic device uploads document 1 to document processing server.

[0198] S102. In response to an operation on a document processing option, the electronic device sends a document processing request corresponding to the document processing option to a document processing server, the document processing request possibly carrying an identifier of the target content.

[0199] In response to an operation on a document processing option, the electronic device processes target content. This process includes: sending a document processing request corresponding to the document processing option to a document processing server, the document processing request potentially carrying an identifier of the target content; and the document processing server processing the target content through the document processing request.

[0200] The target content identifier is used by the document processing server to determine the selected content indicated by the target content in document 1.

[0201] S103. The document processing server performs document processing on the target content according to the document processing options and returns the document processing results to the electronic device.

[0202] The document processing server can use a preset model to process the target content, obtain the document processing result, and return the document processing result to the electronic device. Here, the document processing result transmitted by the document processing server to the electronic device can be all the document processing results or a part of the document processing results. The document processing will stop when all the document processing results have been transmitted to the electronic device.

[0203] S104. The electronic device displays the document processing results in the document processing card.

[0204] The scenarios involved in displaying document processing results in a document processing card using electronic devices can be referenced in the aforementioned section. Figures 3A-16 The relevant descriptions are omitted here.

[0205] It should be noted that the smart assistant can be a functional module of the document application itself, or it can be an application other than the document application. This application embodiment does not limit this.

[0206] The electronic device has a document application installed. This document application can be a system-level application that comes with the electronic device or a third-party application. This application does not limit the specific application.

[0207] In the document processing card display states mentioned above, the height of the bottom state is less than the height of the middle state, and the height of the middle state is less than the height of the top state. Therefore, in some possible cases, the bottom state can be the mini state, and the top state can be the maximum state.

[0208] In the embodiments of this application, the document format may include: Word format, portable document format (PDF), extensible markup language (XML) format, txt format, presentation document (PowerPoint, PPT) format, Excel format, etc., without limitation.

[0209] Optionally, Word, PDF, and TXT format documents support at least one of the document processing functions mentioned above. PPT format documents support the editing functions mentioned above.

[0210] In this embodiment of the application, once the selected content indicated by the updated target content is determined, the selected content indicated by the target content before the update is no longer the target content to be processed in the document. The selected content indicated by the updated target content is the target content to be processed in the document. The aforementioned content is only referred to as "target content before the update" for ease of description.

[0211] The preceding explanation assumes that the added controls in their first state can be displayed immediately after the document processing results are started. In practice, however, after the document processing results are started but before the processing ends, the added controls in their first state may not be displayed, or they may be displayed in a state other than the first state. The added controls in their first state are only displayed after the document processing is complete.

[0212] The document processing options involved in the embodiments of this application are described below, with reference to Table 1 below.

[0213] Table 1

[0214]

[0215]

[0216] The following describes an exemplary electronic device provided in the embodiments of this application.

[0217] Figure 19 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.

[0218] The following uses an electronic device as an example to illustrate the embodiments in detail. It should be understood that the electronic device may have more than Figure 19 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 19The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0219] The electronic device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0220] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0221] In this embodiment of the application, the processor 110 can call computer instructions stored in the internal memory 121 to cause the electronic device to execute the method in this embodiment of the application.

[0222] This application also provides a chip system including at least one processor for implementing the functions involved in the methods performed by the electronic device in any of the above embodiments.

[0223] In one possible design, the chip system also includes a memory for storing program instructions and data, which may be located within or outside the processor.

[0224] The chip system can consist of chips or include chips and other discrete components.

[0225] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0226] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or separated from it; this application does not limit the specific implementation.

[0227] For example, the memory can be a non-transient processor, such as a read-only memory (ROM), which can be integrated on the same chip as the processor or set on different chips. This application does not specifically limit the type of memory or the way the memory and processor are set.

[0228] This application also provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the method executed by the electronic device in any of the above embodiments.

[0229] This application also provides a computer-readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is run, it causes the computer to perform the method executed by the electronic device in any of the above embodiments.

[0230] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0231] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0232] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0233] The terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0234] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0235] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A document processing method, characterized in that, Applied to electronic devices, the method includes: Display a first interface; the first interface includes a first display area and a first card; the first display area is used to display the body of a first document; the first card has the function of displaying a first option in a first state or a non-first state; an option in a non-first state indicates that the option does not accept operation; In response to an operation on a first option in a first state, a first intelligent process is performed on first content in the first document; the first intelligent process is used to obtain a first processing result, which allows the content to be added to the first document; the first content indicates the selected content in the first document. The first option in the non-first state is displayed in the first card; In response to the operation of updating the first content, the first option in the first card is switched from a non-first state to a first state; In response to the operation on the first option in the first state again, perform the first intelligent processing on the updated first content.

2. The method according to claim 1, characterized in that, In response to the operation of updating the first content, the method further includes: If the selected content indicated by the updated first content does not overlap with the selected content indicated by the first content before the update, the selected content indicated by the updated first content is marked with a first mark, and the mark of the selected content indicated by the first content before the update is changed from the first mark to a second mark.

3. The method according to claim 1 or 2, characterized in that, The first card is displayed side-by-side with the first display area, or the first card is displayed floating on the first display area.

4. The method according to claim 3, characterized in that, When the first card is displayed side-by-side with the first display area, the method further includes: When the first processing result is displayed in the first card, a first option in a non-first state and a first control in the first state are displayed in the first card; the first control in the first state is used to trigger the addition of the first processing result to the first document.

5. The method according to claim 3, characterized in that, When the first card is suspended in the first display area, before displaying the first option (not in the first state) in the first card, the method further includes: Set the display state of the first card to the second state; the first processing result is not displayed on the first card in the second state; The first option in the non-first state is displayed in the first card, specifically including: The first option in the non-first state is displayed in the first card in the second state.

6. The method according to claim 5, characterized in that, Before setting the display state of the first card to the second state, the method further includes: The first processing result and the first control in the first state are displayed on the first card in the third state; the first option is not displayed in the first card in the third state, and the height of the first card in the third state is greater than the height of the first card in the second state.

7. The method according to claim 5, characterized in that, When the display state of the first card is set to the second state, after performing the first intelligent processing on the updated first content, the method further includes: A second card is displayed in the first interface, and the second card is used to display the first processing result; the second card is displayed floating on the first display area. Replace the first option in the first card with the first control.

8. The method according to claim 7, characterized in that, The second card is displayed floating in the first display area, specifically including: The second card is displayed floating over part or all of the first content, or the second card is displayed floating around the first content.

9. The method according to claim 8, characterized in that, The method further includes: In response to a swipe operation on the first display area, the first content and the second card swipe simultaneously, while their positional relationship remains unchanged.

10. The method according to any one of claims 4, 6-9, characterized in that, The method further includes: In response to an operation that modifies the selected content in the first document, the state of the first control switches from a first state to a non-first state. A control in a non-first state indicates that the control does not receive operations.

11. The method according to any one of claims 1-10, characterized in that, Before displaying the first interface, the method further includes: In response to the operation of opening the first document, a second interface is displayed; the second interface includes a second control and the first display area; The first interface is displayed, which includes: In response to an operation on the second control, the first interface is displayed.

12. The method according to claims 1-10, characterized in that, The first interface is provided by the first application. Before displaying the first interface, the method further includes: The third interface provided by the second application is displayed; the third interface includes the first option. In response to an operation on the first option in the third interface, a first intelligent processing is performed on a portion of the content in the first document, and a fourth interface is displayed; the fourth interface includes a first prompt message and a third control; the first prompt message is used to indicate that more sophisticated first intelligent processing than that in the second application is allowed in the first application. The first interface is displayed, which includes: In response to an operation on the third control, the first application is launched and the first interface is displayed.

13. The method according to claim 12, characterized in that, The first interface and the second interface are provided by the first application. Before displaying the first interface, the method further includes: The third interface provided by the second application is displayed; the third interface includes the first option. In response to an operation on the first option in the third interface, a first intelligent processing is performed on a portion of the content in the first document, and a fourth interface is displayed; the fourth interface includes a first prompt message and a third control; the first prompt message is used to indicate that more sophisticated first intelligent processing than that in the second application is allowed in the first application. In response to the operation of opening the first document, a second interface is displayed, specifically including: In response to an operation on the third control, the first application is launched; The first document is opened in the first application and the second interface is displayed.

14. A document processing method, characterized in that, Applied to electronic devices, the method includes: The first interface is displayed; the first interface includes a first display area and a first card; the first card is displayed floating on the first display area, and the first display area is used to display the body of the first document; the function of the first card includes: displaying a first option in a first state or a non-first state; an option in a non-first state indicates that the option does not receive operation; In response to an operation on a first option in a first state, a first intelligent processing is performed on the first content in the first document and a second interface is displayed; the second interface includes a first display area, a first card, and a second card; the second card is displayed floating on the first display area; the first content indicates the selected content in the first document; The first processing result corresponding to the first intelligent processing is displayed in the second card; A first control in a first state is displayed in the first card or the second card; the first control in the first state is used to trigger the addition of the first processing result to the first document.

15. The method according to claim 14, characterized in that, The first card in the second interface is in the second state, and the first card in the first interface is in the third state; the height of the first card in the third state is greater than the height of the first card in the second state.

16. The method according to claim 14 or 15, characterized in that, The method further includes: In response to an operation that modifies the selected content in the first document, the state of the first control switches from a first state to a non-first state; a control being in a non-first state indicates that the control does not receive operations.

17. The method according to any one of claims 14-16, characterized in that, When displaying the first control in the first state in the first card, the method further includes: In response to the operation of closing the second card, the second pull tab is closed and the first control in the first card is switched to the first option in a non-first state; the first card is in the second state; In response to the operation of updating the first content, the first option in the first card is switched from a non-first state to a first state; In response to the operation on the first option in the first state again, perform the first intelligent processing on the updated first content.

18. The method according to claim 17, characterized in that, In response to the operation of updating the first content, the method further includes: If the selected content indicated by the updated first content does not overlap with the selected content indicated by the first content before the update, the selected content indicated by the updated first content is marked with a first mark, and the mark of the selected content indicated by the first content before the update is changed from the first mark to the second mark.

19. The method according to any one of claims 14-18, characterized in that, The second card is displayed floating in the first display area, specifically including: The second card is displayed floating over part or all of the first content, or the second card is displayed floating around the first content.

20. The method according to claim 19, characterized in that, The method further includes: In response to a swipe operation on the first display area, the first content and the second card swipe simultaneously, while their positional relationship remains unchanged.

21. The method according to any one of claims 14-20, characterized in that, Before displaying the first interface, the method further includes: In response to the operation of opening the first document, a third interface is displayed; the third interface includes a second control and the first display area; The first interface is displayed, which includes: In response to an operation on the second control, the first interface is displayed.

22. The method according to any one of claims 14-20, characterized in that, The first interface and the second interface are provided by the first application. Before displaying the first interface, the method further includes: The fourth interface provided by the second application is displayed; the fourth interface includes the first option. In response to an operation on the first option in the fourth interface, a first intelligent processing is performed on a portion of the content in the first document, and a fifth interface is displayed; the fifth interface includes a first prompt message and a third control; the first prompt message is used to indicate that more comprehensive first intelligent processing than that in the second application is allowed in the first application. The first interface is displayed, which includes: In response to an operation on the third control, the first application is launched and the first interface is displayed.

23. The method according to claim 21, characterized in that, The first interface, the second interface, and the third interface are provided by the first application. Before displaying the first interface, the method further includes: The fourth interface provided by the second application is displayed; the fourth interface includes the first option. In response to an operation on the first option in the fourth interface, a first intelligent processing is performed on a portion of the content in the first document, and a fifth interface is displayed; the fourth interface includes a first prompt message and a third control; the first prompt message is used to indicate that more sophisticated first intelligent processing than that in the second application is allowed in the first application. In response to the operation of opening the first document, a third interface is displayed, specifically including: In response to an operation on the third control, the first application is launched; The first document is opened in the first application and the third interface is displayed.

24. An electronic device, characterized in that, include: One or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-23.

25. A computer-readable storage medium comprising computer instructions, characterized in that, When the computer instructions are executed on the electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-23.

26. A chip system applied to an electronic device, characterized in that, The chip system includes one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-23.

27. A computer program product containing instructions, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-23.