Method, apparatus, device and storage medium for editing a document
By receiving input content in the document viewing interface and determining the display position of the response content as the editing area or interactive panel, the problem of the inability to conduct question-and-answer interactions in mobile document editing is solved, thus improving the efficiency of document editing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2025-06-13
- Publication Date
- 2026-06-09
AI Technical Summary
Existing document editing applications cannot perform question-and-answer interactions on mobile devices and can only be edited on computers, making them unsuitable for mobile terminals.
In the document viewing interface, input content is received through input controls, and the display position of the response content is determined based on the input content, either as the editing area or the interactive panel, thus expanding the response method and display position of the input content.
It enables rapid response and interaction based on input content in document editing on mobile terminals, improving the efficiency of document editing.
Smart Images

Figure CN120706394B_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to methods, apparatus, devices, and computer-readable storage media for editing documents. Background Technology
[0002] With the development of computer technology, the application of intelligent generation and intelligent editing technologies is becoming increasingly widespread. For example, in interactive applications targeting media content, media content or media materials can be intelligently generated, and intelligent editing can be used to quickly process media content. Similarly, in interactive applications targeting document content, corresponding generation or editing tools can be invoked to quickly process documents. Summary of the Invention
[0003] In a first aspect of this disclosure, a method for editing a document is provided. The method includes: presenting a viewing interface of the document, the viewing interface including input controls and an editing area; receiving input content via the input controls; and providing response content in the viewing interface in response to the input content, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area.
[0004] In a second aspect of this disclosure, an apparatus for editing a document is provided. The apparatus includes: an interface presentation module, a first content receiving module, and a content response module. The interface presentation module is configured to present a viewing interface of the document, the viewing interface including input controls and an editing area; the first content receiving module is configured to receive input content via the input controls; and the content response module is configured to provide response content in the viewing interface in response to the input content, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area.
[0005] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. When executed by the at least one processor, the instructions cause the device to perform the method of the first aspect.
[0006] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of this disclosure, a computer program product is provided. The computer program product is tangibly stored in a computer storage medium and includes computer-executable instructions that, when executed by a device, cause the device to perform the method of the first aspect.
[0008] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0009] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram is shown of an example environment in which embodiments of the present disclosure may be implemented;
[0011] Figures 2A to 2H Example interfaces according to some embodiments of this disclosure are shown;
[0012] Figures 3A to 3F Example interfaces according to further embodiments of this disclosure are shown;
[0013] Figure 4 A flowchart illustrating an example process for editing a document according to some embodiments of this disclosure is shown;
[0014] Figure 5 A schematic structural block diagram of an example apparatus for editing a document according to some embodiments of the present disclosure is shown; and
[0015] Figure 6 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0016] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0017] It should be noted that the headings of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and embodiments of any type may be included under any section / subsection. Furthermore, embodiments described in any section / subsection may be combined in any way with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0018] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0019] The embodiments of this disclosure may involve user data, data acquisition, and / or use. All of these aspects comply with applicable laws, regulations, and relevant provisions. In the embodiments of this disclosure, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, in implementing the embodiments of this disclosure, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained in accordance with relevant laws and regulations through appropriate means. The specific methods of notification and / or authorization may vary depending on the actual situation and application scenario, and the scope of this disclosure is not limited in this respect.
[0020] In this specification and the embodiments, any processing of personal information will be carried out only under the premise of legality (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information other than that necessary for basic functions will not affect the user's use of basic functions.
[0021] As mentioned above, with the development of computer technology, the application of intelligent generation and intelligent editing technologies is becoming increasingly widespread. For example, intelligent generation and intelligent editing technologies can be applied in interactive applications for media content, and corresponding generation or editing tools can be called in interactive applications for document content to process the documents.
[0022] In document editing technologies, mobile interactive applications typically only support question-and-answer interactions. Documents generated within one application need to be copied to a third-party application for editing. Some applications do support generating and editing documents within the same application, but this is limited to desktop computers and not applicable to mobile devices.
[0023] In existing document editing applications, users can often only edit the document content, but cannot interact with the document content through questions and answers.
[0024] Embodiments of this disclosure propose a scheme for editing a document. The scheme includes: presenting a document viewing interface, the viewing interface including input controls and an editing area; receiving input content via the input controls; and providing response content in the viewing interface in response to the input content, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area.
[0025] In this way, embodiments of this disclosure can determine the corresponding response content based on the input content in the document viewing interface, and determine the presentation position of the response content as the editing area or interactive panel in the interface. Therefore, embodiments of this disclosure can effectively expand the response methods for input content and the presentation position of the response content, expand document-based interactive capabilities, and improve document editing efficiency.
[0026] The following section provides a detailed description of various example implementations of this scheme, with reference to the accompanying drawings.
[0027] Example Environment
[0028] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. For example... Figure 1 As shown, example environment 100 may include electronic device 110.
[0029] In this example environment 100, electronic device 110 can run an application 120 that supports document editing. Application 120 can be any suitable type of application for document editing, examples of which may include, but are not limited to, virtual interactive applications, content generation applications, content editing applications, or other suitable applications. User 140 can interact with application 120 via electronic device 110 and / or its attached devices.
[0030] exist Figure 1 In environment 100, if application 120 is active, electronic device 110 can present interface 150 for supporting document editing through application 120.
[0031] In some embodiments, electronic device 110 communicates with server 130 to provide services to application 120. Electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable gaming terminals, VR / AR devices, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, electronic device 110 can also support any type of user-facing interface (such as "wearable" circuitry).
[0032] Server 130 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms. Server 130 may include, for example, computing systems / servers such as mainframes, edge computing nodes, computing devices in a cloud environment, etc. Server 130 can provide background services for the document editing application 120 in electronic device 110.
[0033] A communication connection can be established between server 130 and electronic device 110. This communication connection can be established via wired or wireless means. The communication connection may include, but is not limited to, Bluetooth, mobile network, Universal Serial Bus (USB), and Wireless Fidelity (WiFi) connections; the embodiments of this disclosure are not limited in this respect. In the embodiments of this disclosure, server 130 and electronic device 110 can achieve signaling interaction through the communication connection between them.
[0034] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0035] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure.
[0036] Example Interaction
[0037] Figures 2A to 2H Example interfaces 200A to 200H according to some embodiments of the present disclosure are shown. Interfaces 200A to 200H may, for example, be provided by... Figure 1 The electronic device 110 shown is provided.
[0038] In some embodiments, such as Figure 2A As shown, the electronic device 110 can present an interactive interface 200A. As an example, the interactive interface 200A can be an interface for virtual interactive applications, such as a conversation interface, or an interface for presenting content including media content, documents, etc., or an interface for realizing virtual social interaction, content creation, and other interactive activities.
[0039] refer to Figure 2A As shown, the exemplary interactive interface 200A presented by the electronic device 110 is a session interface in an interactive application. As an example, this session interface 200A can correspond to the user 140 and the session partner 201. In this solution, the session partner 201 can correspond to a physical object or a virtual object; no limitation is made here.
[0040] In this approach, the virtual object can be any suitable processing entity, such as an agent or a bot. As an example, the virtual object can be implemented based on any suitable machine learning model, such as a generative model like a language model.
[0041] The session interface 200A may include a dialog area 205. The electronic device 110 provides a first interaction entry point 210 within the session interface 200A. As an example, via the first interaction entry point 210, the electronic device 110 can receive first interaction content 215 from the user, and the electronic device 110 can present the first interaction content 215 in the dialog area 205. As an example, the first interaction content 215 may include at least one of the following: text content, audio content, video content, image content, document content, etc.
[0042] In some scenarios, within the session interface 200A, the electronic device 110 can also receive a document generation request from the user 140 via the first interaction entry 210. As an example, the electronic device 110 can determine the user 140's document generation request based on the first interaction content 215. For instance, the document generation request may be associated with at least one of the following: document type, content topic, content type, or purpose corresponding to the first interaction content 215.
[0043] Taking session participant 201 as a virtual object as an example, session participant 201 can be associated with a pre-trained model. After determining the document generation request based on the first interaction content 215, electronic device 110 can call the pre-trained model to process the document generation request and present the processing information 215' corresponding to the document generation request in the session interface 200A. As an example, the processing information 215' may include at least one of the following: the processing status of the document generation request, the processing progress, the analysis process, etc.
[0044] In some embodiments, after the electronic device 110 calls the model to process the document generation request, it can also present a document viewing interface, where the document is generated based on the document generation request. As an example, the electronic device 110 can display information such as the processing status of the document generation request, processing progress, analysis process, and the content of the generated document in the document viewing interface. As an example, the electronic device 110 can stream the content of the generated document in the viewing interface.
[0045] Figure 2B Another example session interface 200B between user 140 and session partner 201 is shown. In session interface 200B, electronic device 110 can receive second interaction content 215a from user 140 via first interaction entry 210. As an example, the second interaction content 215a can indicate the conversation content between user 140 and session partner 201, and may include, for example, queries, prompt text, etc.
[0046] refer to Figure 2B As shown, in response to receiving the second interactive content 215a, the electronic device 110 can present a response content 215a' to the second interactive content 215a in the session interface 200B. As an example, the response content 215a' may include at least one of the following: text content, image content, video content, document content, etc.
[0047] In some embodiments, taking the reply content 215a' as text content as an example, the electronic device 110 can receive a preset operation on the target session content in the reply content 215a', such as a selection or trigger operation. In response to the preset operation on the target session content in the reply content 215a', the electronic device 110 can display an operation panel 220. The operation panel 220 provides at least one operation control.
[0048] As an example, the operation controls provided in operation panel 220 can indicate any of the following functions: like, dislike, copy, text to audio, voice playback, editing, creation, sharing, collection, etc.
[0049] In some scenarios, the electronic device 110 may provide an editing control 225 in the operation panel 220. As an example, the editing control 225 may indicate a document generation request associated with the selected target session content. For instance, via the editing control 225, the electronic device 110 may trigger processes such as generating a document based on the selected target session content and editing the generated document. This document generation request may be associated with at least one of the following: document type, content topic, content type, purpose, etc.
[0050] As an example, in response to a triggering of the editing control 225, the electronic device 110 can invoke a pre-trained model to process the document generation request.
[0051] In some embodiments, the electronic device 110 may present processing information corresponding to the document generation request in the session interface 200B. As an example, the processing information may include at least one of the following: the processing status of the document generation request, processing progress, analysis process, etc.
[0052] In some embodiments, after the electronic device 110 calls the model to process the document generation request, it can also present a document viewing interface, where the document is generated based on the document generation request. As an example, the electronic device 110 can display information such as the processing status of the document generation request, processing progress, analysis process, and the content of the generated document in the document viewing interface. As an example, the electronic device 110 can stream the content of the generated document in the viewing interface.
[0053] Figure 2C An exemplary document viewing interface 200C according to an embodiment of the present disclosure is shown. As an example, the electronic device 110 may present the viewing interface 200C based on a response to a first interactive content 215 in the session interface 200A, or based on a triggering of an editing control 225 in the session interface 200B.
[0054] refer to Figure 2C As shown, an exemplary document viewing interface 200C may include a document editing area 230. In the editing area 230, the electronic device 110 can present the generated document content. For example, the electronic device 110 can present the generated document content in the editing area 230 using a streaming output method.
[0055] As an example, if the generated document content exceeds one page of interface 200C, electronic device 110 can receive a first preset operation on the document content within interface 200C, such as in editing area 230, to allow the user to view the entire content of the generated document. For example, the first preset operation on the document content may include an up or down swipe operation.
[0056] In some embodiments, the electronic device 110 may also receive selection or trigger operations for at least a portion of the document in the editing area 230.
[0057] like Figure 2C As shown, in the viewing interface 200C, the electronic device 110 can also provide a first input control 240. Through the first input control 240, the electronic device 110 can receive input from the user 140. As an example, the received input can be associated with a portion of the document content selected in the editing area 230, or it can be associated with all the document content presented in the editing area 230.
[0058] In some embodiments, in response to determining a corresponding document generation request in the session interface 200A or 200B, the electronic device 110 may switch the session area 205 in the session interface to the corresponding editing area 230 in the viewing interface 200C to display the generated document. Furthermore, the electronic device 110 may also switch the first interaction entry 210 in the session interface 200A or 200B to the first input control 240 in the viewing interface 200C to receive input content for the generated document.
[0059] Continue to refer to Figure 2C As shown, the electronic device 110 can also provide a set of interactive controls 250 associated with the generated document in the viewing interface 200C. As an example, the set of interactive controls 250 may include at least one of the following: text-to-audio conversion, voice input, summarization, continuation writing, intelligent image matching, video generation, script generation, template referencing, template modification, etc.
[0060] As an example, in response to a triggering of a text-to-audio control, electronic device 110 can invoke a model to convert the generated document into audio content for user playback.
[0061] As an example, in response to a triggering of a voice input control, electronic device 110 can receive voice content for a generated document and trigger a corresponding interaction process based on the received voice content.
[0062] As an example, in response to the triggering of the summary control, the electronic device 110 can further generate text content that meets preset requirements based on the generated document content, such as descriptive text of no more than 50 words or no more than 200 words.
[0063] As an example, in response to the triggering of the continuation control, the electronic device 110 can continue to generate additional content based on the currently generated document to supplement or improve the current document content.
[0064] As an example, in response to the triggering of the smart image matching control, the electronic device 110 can generate or search for image content that matches the currently generated document content, and add the corresponding image content at the corresponding position in the document content, such as the initial position, the middle position, and / or the end position of the document.
[0065] As an example, in response to the triggering of the generate video control or generate script control, the electronic device 110 can generate video content or script content in a preset format based on the currently generated document content.
[0066] As an example, in response to a triggering of referencing or modifying a template control, electronic device 110 can call template data in the associated template library so that the user can find or select the corresponding template data, and adjust the current document content based on the selected template data to present the generated document content according to the presentation style corresponding to the selected template data.
[0067] In some embodiments, in response to a triggering of the first input control 240, the electronic device 110 can present a corresponding input panel and receive input content via the input panel. For example Figure 2D As shown.
[0068] refer to Figure 2D In the interface 200D shown, the electronic device 110 can receive first input content 245 via the input panel. The first input content 245 can correspond to the entire document content in the editing area 230, or it can correspond to a portion of the document content selected from the editing area 230.
[0069] In some scenarios, the first input 245 may indicate an editing request associated with the generated document. For example, the editing request may include performing at least one of the following operations on all or selected portions of the document content in the editing area 230: modifying, deleting, or replacing.
[0070] In some embodiments, before triggering the first input control 240, the electronic device 110 may receive a selection of a portion of document content 235 from the editing area 230. As an example, the selected portion of document content 235 may indicate at least one of the following in the generated document: a word, a sentence, or a paragraph. As an example, the electronic device 110 may provide a selection indicator at the presentation location of the selected portion of document content 235 to distinguish between selected and unselected document content. After selecting the portion of document content 235, in response to triggering the first input control 240, the electronic device 110 receives first input content 245 associated with the selected portion of document content 235.
[0071] In some embodiments, the partial document content 235 may be determined based on a user's selection or trigger, or it may be determined based on content entered by the user via the first input control 240. For example, the user may enter search information via the first input control 240, which may be "search for XXX". In response to receiving the search information, the electronic device 110 may search for the corresponding content in the document presented in the editing area 230 based on the search information, and use it as the partial document content 235.
[0072] In some embodiments, the first input content 245 may indicate the addition, modification, or deletion of a portion of the document content 235. As an example, the electronic device 110 may insert supplementary content generated based on the first input content 245 at a location in the editing area associated with the selected portion of the document content 235. As an example, the electronic device 110 may also modify the selected portion of the document content 235 in the editing area 230 into regenerated content, which may be generated based on the portion of the document content 235 and the first input content 245. As an example, the electronic device 110 may also delete the selected portion of the document content 235 from the editing area 230 based on the first input content 245.
[0073] like Figure 2D As shown, the electronic device 110 may also display a set of editing controls 260 at an associated location on the input panel, such as above. The set of editing controls 260 may correspond to the entire document content in the editing area 230, or to a portion of the document content 235 selected from the editing area 230.
[0074] As an example, a set of editing controls 260 may include at least one of the following: a description adjustment control, a continuation control, an expansion control, an abbreviation control, etc.
[0075] Taking the selected portion of document content 235 as an example, the description adjustment control can instruct the modification of the wording within the portion of document 235 to adjust the expression style, tone, etc., corresponding to the portion of document content 235. The continuation control can instruct the addition of supplementary content based on the portion of document content 235 to supplement or improve the information expressed in the portion of document content 235. The expansion control can instruct the expansion rewriting of the portion of document content 235 to increase the number of words or content details in the rewritten text, thereby enriching the description or information corresponding to the portion of document content 235. The abbreviation control can instruct the rewriting of the portion of document content 235 to reduce the number of words or content details in the rewritten text, making the modified content more concise than the portion of document content 235 and reducing redundant descriptions.
[0076] In some embodiments, after receiving a selection of a portion of document content 235, the electronic device 110 may determine an editing request associated with the portion of document content 235 in response to a confirmation operation of the first input content 245, or in response to a trigger operation of any of the editing controls in a set of editing controls 260.
[0077] In some embodiments, the electronic device 110 may invoke a pre-trained model to process the editing request and may present an information panel. For example... Figure 2E The information panel 270 shown.
[0078] refer to Figure 2E As shown, the electronic device 110 can provide descriptive information 275 for an editing request in the information panel 270. As an example, the descriptive information 275 may include the analysis and processing of the editing request. For instance, the electronic device 110 can present the descriptive information 275 in the information panel 270 in a streaming output format.
[0079] In some embodiments, in response to the completion of analysis and processing of the editing request, the electronic device 110 can obtain a response to the first input content 245, such as modified content after editing a portion of the document content 235. This modified content is obtained by modifying the portion of the document content 235 based on the editing request. As an example, this modified content could be obtained by calling a pre-trained model to edit the portion of the document content 235 based on the editing request; that is, the modified content could be the output content of the model.
[0080] refer to Figure 2F As shown, in response to the completion of analysis and processing of the editing request, or in response to the acquisition of the modified content 235', the electronic device 110 can stop displaying the information panel 270, and can also replace part of the document content 235 with the modified content 235' in the editing area 230.
[0081] In this way, the present invention can obtain the modified content 235' of a portion of the document content 235 based on the first input content 245 in the viewing interface, and can replace the selected portion of the document content 235 with the modified content 235' in the editing area 230, thereby realizing rapid editing of the document and improving document editing efficiency.
[0082] The above describes the process of inputting content 245 to edit the selected portion of the document content 235.
[0083] In some embodiments, if all document content in the editing area 230 is selected or no document content is selected before receiving the first input content 245, the electronic device 110 can determine that the first input content 245 instructs editing of all document content in the editing area 230 after receiving the first input content 245. For example, rewriting, rearranging, continuing, abbreviating, expanding, etc., of all document content in the editing area 230.
[0084] As an example, after receiving the first input content 245 associated with the entire document content, the electronic device 110 can provide response content to the first input content 245 and display that response content in the viewing interface. For example, the entire document content in the editing area 230 can be replaced with the response content to the first input content 245.
[0085] In some embodiments, in response to receiving a preset operation in the viewing interface, the electronic device 110 can switch the viewing interface to a session interface with the session partner 201. As an example, the preset operation may indicate a confirmation operation for the modified content 235', or a confirmation operation for the document content within the viewing interface 200F.
[0086] Comprehensive reference Figure 2F and Figure 2G As shown, in the viewing interface 200F, in response to confirmation of the modified content 235' or confirmation of the document content within the viewing interface 200F, the electronic device 110 can present the conversation interface 200G with the conversation partner 201.
[0087] refer to Figure 2G As shown, in response to confirmation of the modified content 235' or all document content in the document viewing interface 200F, the electronic device 110 can present the content item 280 associated with the generated document in the session interface 200G.
[0088] As an example, content item 280 may include the subject name of the generated document, at least part of the document content, etc.
[0089] In some embodiments, the electronic device 110 may also provide a set of interactive controls 285 associated with the generated document in the content item 280. As an example, the set of interactive controls 285 may include at least one of the following: copy control, save control, download control, expand control, etc.
[0090] As an example, the copy control can instruct the user to copy the generated document; the save control can instruct the user to save the generated document to a preset path; the download control can instruct the user to download the generated document to a preset path and save it; and the expand control can instruct the user to expand and display the full content of the generated document in the session interface, or it can instruct the user to jump to the document viewing interface to display the full content of the generated document.
[0091] In some embodiments, the electronic device 110 can receive a trigger on the content item 280 in the session interface and re-present the document viewing interface, and can also continue to edit the document content in the viewing interface. For example, it can receive modifications or replacements to the document content, or receive input or other interactive operations on the document content.
[0092] In some embodiments, during the processing of a document generation request, or after the document generation request has been processed, the electronic device 110 may present a content item 280 corresponding to the document to be generated or the generated document in the session interface. As an example, during the processing of a document generation request, the content item 280 may indicate the processing progress information of the document generation request; after the document generation request has been processed, the content item 280 may indicate the subject name of the generated document, at least part of the document content, etc.
[0093] In some embodiments, during the document generation request processing or after the document generation request has been processed, the electronic device 110 can continue to receive input information from the user 140 in the session interface. For example Figure 2H As shown, after the electronic device 110 presents the content item 280 in the session interface 200H, it can continue to receive input information 290 from the user 140 and trigger the session process based on the input information 290.
[0094] In some scenarios, in response to receiving input information 290, electronic device 110 can switch the first style corresponding to content item 280 to a second style, for example... Figure 2H The content item 280' is shown. In this way, the present embodiment can reduce the display area of content item 280 in the session interface and ensure the information presentation rate in the session interface 200H.
[0095] Figures 3A to 3F Example interfaces 300A to 300F according to some embodiments of the present disclosure are shown. Interfaces 300A to 300F may, for example, be provided by... Figure 1 The electronic device 110 shown is provided.
[0096] In some embodiments, such as Figure 3AAs shown, the electronic device 110 can present an interactive interface 300A. As an example, the interactive interface 300A can be an interface for virtual interactive applications, such as a conversation interface, or an interface for presenting content including media content, documents, etc., or an interface for realizing virtual social interaction, content creation, and other interactive activities.
[0097] refer to Figure 3A As shown, interface 300A can be the document management interface in application 120. As an example, electronic device 110 can display a document list 301 in interface 300A. The document list 301 can be empty or include at least one document description. The document description may include at least one of the following: image identifier, document name, topic description, creation time or update time, etc.
[0098] In some embodiments, the electronic device 110 may provide a second interaction entry 310 in the interface 300A. As an example, via the second interaction entry 310, the electronic device 110 may receive a third interaction content 315 from the user. As an example, the third interaction content 315 may include at least one of the following: text content, audio content, video content, image content, document content, etc.
[0099] In some embodiments, the electronic device 110 can receive a document generation request from the user 140 via a second interaction entry 310 in the interface 300A. As an example, the electronic device 110 can determine the document generation request from the user 140 based on the received third interaction content 315. For example, the document generation request may be associated with at least one of the following: document type, content topic, content type, purpose, etc., corresponding to the third interaction content 315.
[0100] In some embodiments, after determining a document generation request, the electronic device 110 may invoke a pre-trained model to process the document generation request and generate a document.
[0101] In some embodiments, the electronic device 110 may also present a document viewing interface to display processing information of the document generation request and the generated document. As an example, the processing information may include at least one of the following: the processing status of the document generation request, processing progress, analysis process, etc.
[0102] In some embodiments, the electronic device 110 can provide a template entry point in the document management interface 300A. In response to triggering the template entry point, the electronic device 110 can present at least one candidate template. For example... Figure 3B The interface shown is 300B.
[0103] refer to Figure 3BAs shown, the electronic device 110 can display a set of template tags 320 in the interface 300B. In response to the triggering of any tag in the set of template tags 320, the electronic device 110 can search for a set of candidate document templates associated with that tag and display them in the interface 300B.
[0104] In some embodiments, in response to a triggering of a target document template 325 from a set of candidate document templates, the electronic device 110 can determine a document generation request associated with the target document template 325. Furthermore, the electronic device 110 can also invoke a pre-trained model to process the document generation request to generate a document associated with the target document template 325.
[0105] Figure 3C An exemplary document viewing interface 300C according to an embodiment of the present disclosure is shown. As an example, the electronic device 110 may present the viewing interface 300C based on a response to a third interactive content 315 in the interface 300A, or it may present the viewing interface 300C based on a triggering of a target template 325 in the interface 300B.
[0106] refer to Figure 3C As shown, an exemplary document viewing interface 300C may include a document editing area 330. In the editing area 330, the electronic device 110 can present the generated document content. For example, the electronic device 110 can present the generated document content in the editing area 330 using a streaming output method.
[0107] As an example, if the generated document content exceeds one page of interface 300C, electronic device 110 can receive a second preset operation on the document content within interface 300C, such as in editing area 330, to allow the user to view the entire content of the generated document. For example, the second preset operation on the document content may include an up or down swipe operation.
[0108] In some embodiments, the electronic device 110 may also receive selection or trigger operations for at least a portion of the document in the editing area 330.
[0109] like Figure 3C As shown, in the viewing interface 300C, the electronic device 110 can also provide a second input control 340. Through the second input control 340, the electronic device 110 can receive second input content from the user 140. As an example, the received second input content can be associated with a portion of the document content selected in the editing area 330, or it can be associated with all the document content presented in the editing area 330.
[0110] In some embodiments, the electronic device 110 may also provide a set of interactive controls 350 associated with the generated document in the viewing interface 300C. As an example, the set of interactive controls 350 may include at least one of the following: text-to-audio conversion, voice input, summarization, continuation writing, intelligent image matching, video generation, script generation, template referencing, template modification, etc.
[0111] As an example, in response to a triggering of a text-to-audio control, electronic device 110 can invoke a model to convert the generated document into audio content for user playback.
[0112] As an example, in response to a triggering of a voice input control, electronic device 110 can receive voice content for a generated document and trigger a corresponding interaction process based on the received voice content.
[0113] As an example, in response to the triggering of the summary control, the electronic device 110 can further generate text content that meets preset requirements based on the generated document content, such as descriptive text of no more than 50 words or no more than 300 words.
[0114] As an example, in response to the triggering of the continuation control, the electronic device 110 can continue to generate additional content based on the currently generated document to supplement or improve the current document content.
[0115] As an example, in response to the triggering of the smart image matching control, the electronic device 110 can generate or search for image content that matches the currently generated document content, and add the corresponding image content at the corresponding position in the document content, such as the initial position, the middle position, and / or the end position of the document.
[0116] As an example, in response to the triggering of the generate video control or generate script control, the electronic device 110 can generate video content or script content in a preset format based on the currently generated document content.
[0117] As an example, in response to a triggering of referencing or modifying a template control, electronic device 110 can call template data in the associated template library so that the user can find or select the corresponding template data, and adjust the current document content based on the selected template data to present the generated document content according to the presentation style corresponding to the selected template data.
[0118] In some embodiments, in response to a triggering of the second input control 340, the electronic device 110 may present a corresponding input panel and receive second input content via the input panel. As an example, the second input content may indicate a query request associated with the generated document. For example, a query request associated with a portion or all of the document content selected in the editing area 330. For example, the core ideas, story summary, etc., of the document content.
[0119] In some embodiments, in response to confirmation of the second input content, the electronic device 110 may present an interactive panel associated with the second input content. For example... Figure 3D or Figure 3E The interactive panel shown is 360°.
[0120] refer to Figure 3D As shown in the interface 300D, the electronic device 110 can provide processing information 365 for the second input content 345 in the interactive panel 360. As an example, the processing information 275 may include analysis and processing procedures of the second input content 345. For example, semantic analysis of the second input content 345, processing progress, and processing results.
[0121] In some embodiments, the electronic device 110 may present the processing information 365 in the form of streaming output on the interactive panel 360.
[0122] refer to Figure 3E As shown in the interface 300E, in response to the completion of processing the second input content 345, the electronic device 110 obtains a second response content 365' for the second input content 345. As an example, the electronic device 110 can present the second response content 365' for the second input content 345 in the form of streaming output in the interactive panel 360.
[0123] In some embodiments, the electronic device 110 may also present a set of interactive controls 370 associated with the second response content 365' in the interactive panel 360. As an example, the set of interactive controls 370 may include at least one of the following: a copy control, a voice playback control, a text selection control, a share control, an update control, etc.
[0124] In some embodiments, the copy control may instruct the copying of the entire contents of the second response content 365'; the voice playback control may instruct the conversion of the second response content 365' into voice content and its playback; the text selection control may instruct the selection of a portion of the text in the second response content 365'; the share control may instruct the sharing of at least a portion of the text in the second response content 365', or may instruct the sharing of the second input content 345 and its second response content 365'; the update control may instruct the updating of the second response content 365', for example, by reprocessing the second input content 345 to update the second response content 365'.
[0125] In some embodiments, in response to receiving an adjustment operation on the interactive panel 360, the electronic device 110 may adjust the display position or display size of the interactive panel 360 based on the adjustment operation to change the display range of the editing area 330 in the viewing interface.
[0126] In some embodiments, in response to confirmation of the document content presented in the editing area 330, the electronic device 110 may present a document management interface, such as... Figure 3F The interface shown is 300F.
[0127] refer to Figure 3F As shown, in response to a confirmation operation of the document content generated in the editing area 330, the electronic device 110 can display a document description item 305 associated with the generated document content in the document list 301 of the interface 300F.
[0128] As an example, document description item 305 may include at least one of the following: document type identifier corresponding to the generated document content, document name, topic description, creation time or update time, etc. The document type identifier may include image identifiers and text identifiers (such as title suffixes).
[0129] The embodiments of this disclosure can directly trigger a document generation request in the document management interface and present a document viewing interface. In the document viewing interface, users can interact with the generated document, such as asking questions, summarizing, etc., and can also present corresponding document description items in the document association interface based on confirmation of the document content. In this way, the embodiments of this disclosure can effectively enrich the triggering path of document generation requests, expand the document generation path, improve the presentation efficiency and interaction efficiency of document content, enrich the interaction process based on the generated document content, and enhance the interactive capabilities based on document content.
[0130] It should be noted that the above Figures 2A to 2G as well as Figures 3A to 3FThe embodiments shown are only partial process descriptions of exemplary embodiments and are not intended to limit the entire process description of the corresponding embodiments. For example, in some implementation schemes, reference can be made to... Figures 2A to 2D Corresponding interface combination Figure 3D and Figure 3F The interface shown can also be referenced. Figures 3A to 3C Corresponding interface combination Figures 2D to 2F The interface shown is an example. For instance, in some implementations, before transitioning from interface 300C to interface 300D, the system can first transition to reference interface 200D to present the input panel and receive input content. After confirming the input content, the system then transitions to interface 300D. In other scenarios, the electronic device 110 can also combine the above interfaces in other ways, or present interfaces not shown above, which will not be elaborated upon here.
[0131] Example process
[0132] Figure 4 A flowchart of an example process 400 for editing a document according to some embodiments of the present disclosure is shown. Process 400 can be implemented at electronic device 110. Reference is made below. Figure 1 To describe process 400.
[0133] like Figure 4 As shown in box 410, the electronic device 110 presents a document viewing interface, which includes input controls and an editing area.
[0134] As an example, you can refer to the interface. Figures 2C to 2F The interface shown can also be referenced. Figures 3C to 3E The interface shown.
[0135] In box 420, electronic device 110 receives input content via input controls.
[0136] In frame 430, electronic device 110 provides response content to input content in the viewing interface, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes an editing area or an interactive panel independent of the editing area.
[0137] In this way, embodiments of this disclosure can determine the corresponding response content based on the input content in the document viewing interface, and determine the presentation position of the response content as the editing area or interactive panel in the interface. Therefore, embodiments of this disclosure can effectively expand the response methods for input content and the presentation position of the response content, expand document-based interactive capabilities, and improve document editing efficiency.
[0138] In some embodiments, in the viewing interface, response content is provided in response to the input content, including: presenting response content in the editing area in response to the input content indicating an editing request associated with the document.
[0139] As an example, you can refer to the input content. Figure 2D The first input content shown is 245. The response content can be referenced. Figure 2F The modification shown is 235'.
[0140] In this way, embodiments of this disclosure can obtain editing requests associated with a document through input controls in the viewing interface and present corresponding response content in the editing area, thereby quickly editing the content in the editing area and improving document editing efficiency.
[0141] In some embodiments, before presenting the response content in the editing area, process 400 further includes: the electronic device 110 presenting an information panel in the viewing interface; presenting descriptive information in the information panel, the descriptive information indicating the processing associated with the input content; and in response to completing the output of the descriptive information, stopping the presentation of the information panel and presenting the response content in the editing area.
[0142] As an example, the information panel can be referenced. Figure 2E The information panel 270 shown.
[0143] In this way, the present embodiment can display the processing process associated with the input content via an information panel before presenting the response content in the editing area, so that the user can understand the processing progress and processing method, etc., to clearly display the generation process of the response content and improve the user's interactive experience.
[0144] In some embodiments, presenting responsive content in the editing area includes at least one of the following: inserting first content generated based on the input content into the editing area; modifying second content in the editing area to third content; and deleting fourth content in the editing area.
[0145] In this way, the embodiments of this disclosure can supplement, modify or delete the document content presented in the editing area based on the input content, enriching the document editing methods and improving the flexibility and efficiency of document editing.
[0146] In some embodiments, the second content is determined based on the input content; or, the second content is determined based on the user's selection action.
[0147] In this way, the embodiments of this disclosure can determine the document content to be edited based on the input content or the user's selection, ensuring the relevance and relevance between the editing operation on the document and the content to be edited, thereby improving editing efficiency.
[0148] In some embodiments, the viewing interface provides response content in response to the input content, including: in response to an input content indicating an inquiry request associated with a document, presenting response content in an interactive panel, the response content being generated based on the document and the inquiry request.
[0149] As an example, you can refer to the input content. Figure 3D or Figure 3E The response content for the second input, 345, shown below can be found in the reference section. Figure 3E The second response content shown is 365'.
[0150] In this way, embodiments of this disclosure can receive query requests associated with a document in the document viewing interface and present corresponding response content in the interactive panel, which can effectively enrich the interaction methods for documents and thus improve the interactive capabilities for document content.
[0151] In some embodiments, process 400 further includes: in response to receiving an adjustment operation on the interactive panel, the electronic device 110 adjusts the display size of the interactive panel to change the display range of the editing area.
[0152] In this way, the present embodiment can change the display range of the editing area by adjusting the display size of the interactive panel, thereby ensuring the presentation effect of the content in the editing area or interactive panel and enriching the interactive capabilities of the document viewing interface.
[0153] In some embodiments, the document viewing interface includes: presenting a conversational interface with a virtual object, the conversational interface including a dialog area; and in response to receiving a first generation request in the conversational interface, switching the conversational area of the conversational interface to the editing area of the viewing interface to display the generated document.
[0154] As an example, the session interface can be referenced. Figure 2A or Figure 2B The interface shown.
[0155] In this manner, embodiments of the present disclosure can receive document-related generation requests via a session interface with a virtual object, and present the editing area of the document viewing interface to display the generated document. Therefore, embodiments of the present disclosure can effectively enrich the acquisition path of document generation requests, and enrich the document generation and display paths, thereby enhancing the interactive capabilities related to documents.
[0156] In some embodiments, the input content is a first input content, and the process 400 further includes: the electronic device 110 receiving a second input content indicating a first generation request via a session control in the session interface; or, based on receiving a selection of target session content in the session interface, obtaining a first generation request associated with the target session content.
[0157] In this way, embodiments of the present disclosure can determine a document generation request based on input received via a conversation control, or based on the selection of template conversation content in the conversation interface. Therefore, embodiments of the present disclosure can effectively enrich the ways and means of obtaining document generation requests, enrich the document generation and display paths, and enrich the interactive capabilities related to documents.
[0158] In some embodiments, process 400 further includes: electronic device 110 replacing a session control with an input control in response to a first generation request.
[0159] In this way, the present invention can replace the conversation control with the input control after switching the dialog area of the conversation interface to the editing area of the document viewing interface, effectively ensuring the correlation between the input control and the editing area, thereby ensuring the correlation between the input content received through the input control and the document content presented in the editing area, and thus ensuring the accuracy and efficiency of document editing.
[0160] In some embodiments, process 400 further includes: the electronic device 110 switching to a session interface that presents virtual objects in response to receiving a preset operation in the viewing interface; and presenting content items associated with the generated document in the session interface.
[0161] In this way, the embodiments of this disclosure can switch the interface back to the conversation interface based on the operation within the viewing interface, and present content items related to the document in the conversation interface, which can effectively ensure the continuity of the conversation process and the correlation between the conversation process and the generated document.
[0162] In some embodiments, presenting a document viewing interface includes: in response to receiving a second generation request in a document management interface, presenting a document viewing interface.
[0163] As an example, the document management interface can be referenced. Figure 3A and Figure 3B The interface shown.
[0164] In this way, embodiments of this disclosure can receive document generation requests within the document management interface and redirect to the document viewing interface to display the generated document. Therefore, embodiments of this disclosure can effectively enrich the acquisition path of document generation requests, and also enrich the document generation and display paths, thereby enhancing the interactive capabilities related to documents.
[0165] In some embodiments, the input control is a first input control, and the process 400 further includes: the electronic device 110 receiving third input content indicating a second generation request via a second input control in the file management interface.
[0166] As an example, the second input control can be referenced. Figure 3A The second interactive entry point 310 shown can be used as a reference for the third input content.
[0167] In this way, the embodiments of this disclosure can obtain document-related generation requests through input controls in the file management interface, which can effectively enrich the acquisition path of document generation requests, as well as the document generation path and display path, thereby enriching the interactive capabilities related to documents.
[0168] In some embodiments, process 400 further includes: electronic device 110 providing a set of candidate document templates in a document management interface; and in response to the selection of a target document template from the set of candidate document templates, obtaining a second generation request associated with the target document template.
[0169] In this way, the present invention can provide a set of candidate document templates in the document management interface, and obtain the corresponding document generation request based on the triggering of the target document template, which can effectively enrich the acquisition path of document generation request, and enrich the document generation path and display path, thereby enriching the interactive capabilities of the document.
[0170] Example devices and equipment
[0171] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 5 A schematic structural block diagram of an example device 500 for editing documents according to certain embodiments of the present disclosure is shown. Device 500 may be implemented as or included in electronic device 110. Various modules / components in device 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0172] like Figure 5 As shown, the device 500 includes: an interface presentation module 510, a first content receiving module 520, and a content response module 530. The interface presentation module 510 is configured to present a document viewing interface, which includes input controls and an editing area; the first content receiving module 520 is configured to receive input content via the input controls; and the content response module 530 is configured to provide response content in the viewing interface in response to the input content, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area.
[0173] In some embodiments, the content response module 530 is configured to present response content in the editing area in response to an editing request associated with an input content indication of a document.
[0174] In some embodiments, the device 500 further includes a module configured to perform the following processes: presenting an information panel in a viewing interface before presenting response content in the editing area; presenting descriptive information in the information panel, the descriptive information indicating the processing associated with the input content; and stopping the presentation of the information panel and presenting the response content in the editing area in response to the completion of the output descriptive information.
[0175] In some embodiments, presenting responsive content in the editing area includes at least one of the following: inserting first content generated based on the input content into the editing area; modifying second content in the editing area to third content; and deleting fourth content in the editing area.
[0176] In some embodiments, the second content is determined based on the input content; or, the second content is determined based on the user's selection action.
[0177] In some embodiments, the content response module 530 is configured to: in response to an input content indication of an inquiry request associated with a document, present response content in an interactive panel, the response content being generated based on the document and the inquiry request.
[0178] In some embodiments, the device 500 further includes a panel adjustment module configured to adjust the display size of the interactive panel in response to receiving an adjustment operation on the interactive panel, thereby changing the display range of the editing area.
[0179] In some embodiments, the interface presentation module is configured to: present a conversational interface with a virtual object, the conversational interface including a dialog area; and in response to receiving a first generation request in the conversational interface, switch the conversational area of the conversational interface to the editing area of the viewing interface to display the generated document.
[0180] In some embodiments, the input content is a first input content, and the device 500 further includes a first request acquisition module. The first request acquisition module is configured to receive a second input content indicating a first generation request via a session control in a session interface; or, based on receiving a selection of target session content in the session interface, acquire a first generation request associated with the target session content.
[0181] In some embodiments, the apparatus 500 further includes a control switching module configured to replace a session control with an input control in response to a first generation request.
[0182] In some embodiments, the device 500 further includes an interface switching module and a content item presentation module. The interface switching module is configured to switch to a session interface that presents virtual objects in response to receiving a preset operation in the viewing interface; and the content item presentation module is configured to present content items associated with the generated document in the session interface.
[0183] In some embodiments, the interface presentation module is configured to: in response to receiving a second generation request in the document management interface, present a document viewing interface.
[0184] In some embodiments, the input control is a first input control, and the device 500 further includes a third content receiving module, which is configured to receive third input content indicating a second generation request via a second input control in the file management interface.
[0185] In some embodiments, the apparatus 500 further includes a template providing module and a second request obtaining module. The template providing module is configured to provide a set of candidate document templates in a document management interface; and the second request obtaining module is configured to obtain a second generation request associated with the target document template in response to the selection of a target document template from the set of candidate document templates.
[0186] like Figure 6 As shown, electronic device 600 is in the form of a general-purpose electronic device. Components of electronic device 600 may include, but are not limited to, at least one processor 610 or processing unit, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processor 610 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multiprocessor system, multiple processors execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 600.
[0187] Electronic device 600 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 620 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 630 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data and can be accessed within electronic device 600.
[0188] Electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 6 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 620 may include computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0189] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 600 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0190] Input device 650 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 660 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 600 can also communicate with one or more external devices (not shown) via communication unit 640 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 600, or with any device that enables electronic device 600 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0191] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0192] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0193] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0194] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0195] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0196] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for editing a document, comprising: A document viewing interface is presented, which includes input controls and an editing area; Input content is received via the input control; as well as The viewing interface provides response content to the input content, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area; The provision of response content in the viewing interface in response to the input content includes: presenting the response content in the editing area in response to the input content indicating an editing request associated with the document; Presenting the response content in the editing area includes at least one of the following: inserting first content generated based on the input content in the editing area; modifying the second content in the editing area to a third content; and deleting the fourth content in the editing area.
2. The method according to claim 1, wherein, Before the response content is presented in the editing area, the method further includes: An information panel is displayed in the viewing interface; The information panel displays descriptive information indicating the processing procedure associated with the input content; and Upon completion of outputting the description information, the information panel is stopped from being displayed, and the response content is displayed in the editing area.
3. The method according to claim 1, wherein: The second content is determined based on the input content; or The second content is determined based on the user's selection action.
4. The method according to claim 1, wherein, The viewing interface provides response content to the input content, including: In response to the input content indicating an inquiry request associated with the document, the response content, generated based on the document and the inquiry request, is presented in the interactive panel.
5. The method according to claim 4, further comprising: In response to receiving an adjustment operation on the interactive panel, the display size of the interactive panel is adjusted to change the display range of the editing area.
6. The method according to claim 1, wherein, The document viewing interface includes: A session interface for presenting virtual objects, the session interface including a session area; and In response to receiving a first generation request in the session interface, the session area of the session interface is switched to the editing area of the viewing interface to display the generated document.
7. The method according to claim 6, wherein, The input content is the first input content, and the method further includes: The second input content, indicating the first generation request, is received via the conversation controls in the conversation interface; or Based on the selection of target session content received in the session interface, the first generation request associated with the target session content is obtained.
8. The method according to claim 7, further comprising: In response to the first generation request, the session control is replaced with the input control.
9. The method of claim 6, further comprising: In response to receiving a preset operation in the viewing interface, the system switches to a session interface that presents the virtual object. as well as The session interface displays content items associated with the generated document.
10. The method according to claim 1, wherein, The document viewing interface also includes: In response to receiving a second generation request in the document management interface, the viewing interface of the document is presented.
11. The method according to claim 10, wherein, The input control is a first input control, and the method further includes: The document management interface receives a third input that indicates the second generation request via a second input control.
12. The method of claim 10, further comprising: A set of candidate document templates is provided in the document management interface; as well as In response to the selection of a target document template from the set of candidate document templates, a second generation request associated with the target document template is obtained.
13. An apparatus for editing a document, comprising: The interface presentation module is configured to present a document viewing interface, which includes input controls and an editing area; The first content receiving module is configured to receive input content via the input control; as well as A content response module is configured to provide response content to the input content in the viewing interface, wherein the presentation position of the response content is determined based on the input content, and the presentation position includes the editing area or an interactive panel independent of the editing area; The provision of response content in the viewing interface in response to the input content includes: presenting the response content in the editing area in response to the input content indicating an editing request associated with the document; Presenting the response content in the editing area includes at least one of the following: inserting first content generated based on the input content in the editing area; modifying the second content in the editing area to a third content; and deleting the fourth content in the editing area.
14. An electronic device, comprising: At least one processor; as well as At least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions causing the electronic device to perform the method according to any one of claims 1 to 12 when executed by the at least one processor.
15. A computer-readable storage medium having stored thereon computer-executable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 12.
16. A computer program product tangibly stored in a computer storage medium and comprising computer-executable instructions that, when executed by a device, cause the device to perform the method according to any one of claims 1 to 12.