Document processing method, device, electronic device and storage medium
By displaying interface options in electronic documents and directly modifying the inserted fields, the problem of cumbersome insertion operation in the prior art is solved, and the efficiency of document processing is improved.
Patent Information
- Application Number
- CN202210203176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-03-03
AI Technical Summary
When inserting text into electronic documents, the prior art requires first deleting the wrong text and then recomposing it, which leads to cumbersome operations and inefficient efficiency.
Provides a document processing method that allows direct modification of inserted fields to avoid deletion and reinsertion operations by displaying interface options in electronic documents.
Improves the operation efficiency of document processing, simplifies the document editing process, and reduces the cumbersome deletion and reinsertion operation steps.
Smart Images

Figure CN114580361B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a document method, device, electronic device, and storage medium. Background Art
[0002] With the development of computer technology, electronic documents are widely used. Texts can be inserted into electronic documents. When the inserted texts need to be modified, the inserted texts need to be deleted first and then new texts need to be written. Summary of the Invention
[0003] The present disclosure provides a document processing method, device, electronic device and storage medium.
[0004] The present disclosure adopts the following technical solutions.
[0005] In some embodiments, the present disclosure provides a document processing method, including:
[0006] In response to the first operation event, a first interface is displayed in the associated area of the input identifier in the first document, wherein the first interface displays field options;
[0007] In response to the second operation event, inserting a first field corresponding to the second operation event at the current position of the input identifier in the first document;
[0008] In response to a third operation event on the first field, displaying the first interface again;
[0009] In response to a fourth operation event on the first interface that is displayed again, the first field is modified to a second field corresponding to the fourth operation event.
[0010] In some embodiments, the present disclosure provides a document processing device, comprising:
[0011] A display unit, configured to display a first interface in an area associated with a first document input identifier in response to a first operation event, wherein the first interface displays field options;
[0012] a control unit, configured to, in response to a second operation event, insert a first field corresponding to the second operation event at a current position of the input identifier in the first document;
[0013] The display unit is further configured to display the first interface again in response to a third operation event on the first field;
[0014] The control unit is further configured to, in response to a fourth operation event on the first interface that is displayed again, modify the first field to a second field corresponding to the fourth operation event.
[0015] In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
[0016] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.
[0017] In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code, which, when executed by a processor, prompts the processor to perform the above method.
[0018] The document processing method provided by the embodiment of the present disclosure can insert a first field into a first document. If the first field cannot be correctly inserted due to reasons such as no operation, there is no need to delete the first field. The first field can be directly replaced with the second field, avoiding tedious deletion and reinsertion operations and improving operational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0020] Figure 1 This is a flowchart of a document processing method according to an embodiment of the present disclosure.
[0021] Figure 2 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0022] Figure 3 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0023] Figure 4 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0024] Figure 5 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0025] Figure 6 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0026] Figure 7 This is a schematic diagram of displaying a first document according to an embodiment of the present disclosure.
[0027] Figure 8 Schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed sequentially and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as “one or more”.
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0035] like Figure 1 As shown, Figure 1 4 is a flowchart of a document processing method according to an embodiment of the present disclosure, comprising the following steps S11 to S14.
[0036] S11: In response to a first operation event, a first interface is displayed in an associated area of the input identifier in a first document.
[0037] In some embodiments, the first operation event may include one or more operations. The first operation event may be an operation performed in the first document. The first interface may be displayed in the first document, which may be a pop-up window. The first interface displays a field option. The field option is used to insert a corresponding field in the first document after being triggered. The field corresponding to the field option may be pre-set. The field may be, for example, preset content, such as preset text, and may have a preset format, such as a fill-in-the-blank field. In some embodiments, such as Figure 2 As shown, the input mark is located in the content area of the first document, which can be a cursor. After executing the first operation event, such as inputting a preset shortcut key or shortcut key combination, as shown in FIG. Figure 3 As shown, the first interface is displayed in an area associated with the input identifier, for example, below the input identifier.
[0038] S12: In response to the second operation event, insert a first field corresponding to the second operation event at the current position of the input identifier in the first document.
[0039] In some embodiments, the second operation event may include one or more operations. The second operation event may be an operation event related to the first interface. Different second operation events may insert different first fields. The input identifier of the first document may be an input cursor. The input identifier is used to indicate where the input content will be displayed. In some embodiments, reference may be made to Figure 3 and Figure 3 , where “|” is the input identifier. Figure 2 The input mark is displayed in Figure 3 The first interface is displayed, wherein the first interface displays multiple field options, and the field options corresponding to the second operation event are Figure 3 Therefore, Figure 4 Insert the first field "other party information" into the .
[0040] S13: In response to a third operation event on the first field, display the first interface again.
[0041] In some embodiments, after the first field is inserted into the first document, a third operation event may be performed on the first field. The third operation event may be, for example, a click operation. By performing the third operation event, the first interface may be called up again. Figure 5 , displaying the first interface in the associated area of the first field.
[0042] S14: In response to a fourth operation event on the first interface that is displayed again, modify the first field to a second field corresponding to the fourth operation event.
[0043] In some embodiments, the fourth reference event may include a click event on a field option in the displayed first interface. After the fourth operation event is executed, such as Figure 5 As shown, the first field will no longer be displayed, but the second field will be displayed, that is, the second field of the user replaces the first field and is displayed in the first document summary.
[0044] In some embodiments of the present disclosure, a first field can be inserted into a first document. If the first field cannot be correctly inserted due to no operation or other reasons, there is no need to delete the first field. The first field can be directly replaced with the second field. In related technologies, after writing text content in a document, if the written content is incorrect, the incorrect content needs to be deleted and written again, which makes the operation cumbersome. In this embodiment, the first interface can be directly displayed through the first field to modify the first field to the second field, thereby improving operational efficiency.
[0045] In some embodiments of the present disclosure, in response to a second operation event, a first field corresponding to the second operation event is inserted at the current position of the input identifier in the first document, including: in response to a triggering operation on a field option in the first interface, inserting a field corresponding to the triggered field option at the current position of the input identifier in the first document; or, in response to the first interface not being triggered within a preset time length, or in response to the control identifier triggering an area outside the first interface, inserting an empty field at the current position of the input identifier in the first document.
[0046] In some embodiments of the present disclosure, please refer to Figure 3 After executing the second operation event, the following is displayed: Figure 3 As shown in the first interface, field options are displayed in the first interface. Field options can be divided into two categories, including custom types and default types. Field options can be triggered by clicking on the field options. Field options correspond to fields, so the field corresponding to the triggered field option will be determined as the first field and displayed in the first document. If the field option is not clicked within the preset time, or other document areas of the first document are directly clicked without clicking on the first interface, an empty field will be inserted. The field can have text content, and the empty field can be a placeholder without any text content, or a field with only a placeholder (such as an underline). In this way, when the user wants to insert a field but is not sure which field to insert, he can use an empty field as a placeholder first and then modify it later.
[0047] In some embodiments of the present disclosure, a first interface is displayed in an associated area of an input identifier in a first document, including: creating a blank first content input area at the current position of the input identifier in the first document, and displaying the first interface at an associated position of the first content input area, wherein the first content input area has a different display state from other areas of the first document, and the first interface includes at least one field option and a search control.
[0048] In some embodiments, such as Figure 3 As shown, a blank first content input area is created at the current position of the input identifier, and the first interface is located around the first content input area, for example, below the first content input area. The first content input area is distinguished from other areas in the first document to indicate that the first content input area is different from other content in the first document. Compared with the display status of other areas, the display status of the first content input area is different, for example, the background color may be different, such as Figure 3 As shown, the first interface displays field options for selecting fields corresponding to the field options entered in the first content input area, and the first interface displays a search control so that users can find the field options they want by searching. In some embodiments, the options in the first interface are displayed according to categories, such as user-defined field options and default type field options are displayed separately. In some embodiments, the position of the input identifier can be identified for the arrangement order of the field options, and the field options that are most likely to be relevant to the context can be displayed first in combination with the context. For example, if the previous sentence mentions the bank where the account is opened, the field options corresponding to the account number, account name, etc. can be displayed first.
[0049] In some embodiments of the present disclosure, different display states include: the first content input area has a boundary area different from the first document. In some embodiments, such as Figure 3 As shown, a boundary area is displayed in the first content input area, and the boundary area is used to distinguish the display from the contents of the remaining areas. In some embodiments of the present disclosure, different display states include: the first content input area has a display level different from that of the first document. In some embodiments, the document content may have a display level, and the display level refers to the layer where the content is located. For display, different content may be located in different layers, and the content in the upper layer is displayed above the content in the lower layer. The first content input area may be set at the topmost layer to prevent the first content input area from being blocked by other content. In some embodiments, the first content input area has background information different from that of the first document. For example, the background color of the first content input area may be different from that of other areas, and the first content input area may display prompt text when it is in an empty state.
[0050] In some embodiments of the present disclosure, in response to a second operation event, a first field corresponding to the second operation event is inserted at the current position of the input identifier in the first document, including: generating first content information matching the first field in the first content input area; the method also includes: in response to receiving an input operation in the first content input area, replacing the first content information with the second content information.
[0051] For some examples, please refer to Figure 6 After executing the second operation event, for example, after selecting the field option in the first interface, content information matching the first field is generated in the first content input area, for example, the content of the field corresponding to the field option is written into the first content input area. At this time, the first content input area can still be edited, and the first content input area can be made into an editable state by, for example, double-clicking the first content input area. At this time, input operations can be performed in the first content input area to change the content information displayed in the first content input area. That is, in some embodiments of the present disclosure, when a field is inserted into the first document, the content corresponding to the field is written into the content input area, and the content input area is in an editable state, so that the user can edit it as needed based on the inserted field.
[0052] In some embodiments of the present disclosure, the method further includes: again responding to the first operation event, creating a blank second content input area at the current position of the input mark in the first document, the second content input area having a different display state than the first content input area. In some embodiments, please refer to Figure 6 ,exist Figure 6 In the state of , if the first operation event is executed again, Figure 7 As shown, a blank second content input area will be created at the current position of the input identifier. The display status of the second content input area is different from that of the first content input area to avoid confusion. For example, the background colors of the two may be different. In some embodiments of the present disclosure, when responding to the first operation event for the second time, a blank second content input area is directly inserted instead of displaying the first interface again. This can facilitate user operations. For example, the user inserts certain text through the first first operation event, and the text is, for example, user information. In order to reserve an area for filling in this information, a blank content input area needs to be inserted. At this time, the first operation event can be executed again to insert a blank content input area.
[0053] In some embodiments of the present disclosure, a first document has a second interface, or a first control in the first document is triggered to display the second interface; the second interface displays field options and also displays at least one of an associated control of the field option and associated information of the field option, and the associated control is used to operate the associated field option after being triggered.
[0054] For some examples, please refer to Figure 3 ,exist Figure 3 The second interface is displayed on the right side. The second interface can display field options and can also display associated information and associated controls. Specifically, the associated information can be used to introduce the field options, and the associated controls are used to operate the field options. The second interface is different from the first interface. In the second interface, the field options can be modified to achieve user personalized operations.
[0055] In some embodiments of the present disclosure, the associated control includes a second control for locating the position of the associated field option in the first document after being triggered. In some embodiments, the field option in the second interface is associated with the second control, and the second control is triggered by clicking or other means, thereby locating the position of the field corresponding to the field option associated with the second control in the first document. If there are multiple fields corresponding to the field option associated with the second control in the first document, then when the second control is triggered for the first time, the position of the first field from top to bottom is located, and when it is triggered again, the position of the next field is located. In this way, the position of the field corresponding to the field option in the first document can be quickly found through the second control.
[0056] In some embodiments of the present disclosure, the associated control includes a third control for editing the associated field options after being triggered. In some embodiments, the specific text content of the field options, the type of content allowed to be input, whether the field options are necessary, the order of the field options, etc. need to be set. When you want to modify these settings, you can edit the field options through the third control. In some embodiments, after editing the field options through the third control, the fields corresponding to the field options in the first document will be automatically updated accordingly. If the original fields cannot meet the requirements of the edited field options, a prompt message will be issued.
[0057] In some embodiments of the present disclosure, the associated control includes a fourth control for deleting the associated field option after being triggered. In some embodiments, when the field option is no longer needed, the fourth control can be triggered by clicking or other means to delete the associated field option.
[0058] In some embodiments of the present disclosure, the associated information includes at least one of the following: the number of fields corresponding to the field options in the first document, and the importance of the field options. Figure 3 As shown, the second interface displays related information, which shows, for example, "3 used", which is used to identify the number of fields corresponding to the field option in the first document, so that the user can intuitively determine the frequency of use of each field option, so that the field options with high frequency of use can be displayed first in the first interface. In some embodiments, please continue to refer to Figure 3Some of the field options display asterisks, which means that the field option is important or required, thereby showing the importance of the field option.
[0059] In some embodiments of the present disclosure, the field options include: field options corresponding to the fill-in-the-blank field; the fill-in-the-blank field includes an input area, and the input area is used to enter information. In some embodiments, the fill-in-the-blank field refers to a field that needs to be filled in, such as Figure 4 As shown in "Other party information: __", it can be seen that there is an input area in the fill-in-the-blank field for entering information. In some embodiments, the fill-in-the-blank field is divided into a non-blank field and an empty field; the non-blank field has a corresponding preset type, and the input area of the non-blank field is used to enter data of the preset type; the input area of the empty field is used to enter data of any type. In some embodiments, a corresponding type can be set for the non-blank field, so that for the field corresponding to the field option, only information of this type can be received. For example, for an account opening, it can be set to a numeric type, and the length can be set. For an empty field, any type of information can be entered in its input area. In this way, when the input information needs to be verified, the non-blank field is selected, and when no verification is required, the empty field can be selected.
[0060] In some embodiments, the first interface has a fifth control, which is used to create a custom field option, such as Figure 3 As shown, the fifth control is Figure 3 Click "Add custom field" in the dialog box to create a custom field option for users if they cannot find a suitable field.
[0061] In some embodiments of the present disclosure, the first operation event includes at least one of the following: pressing a preset key, pressing a preset key combination, triggering a target control, and triggering a right button. In some embodiments, three different ways to trigger the first operation event can be provided. One is to input a shortcut key. For example, when the first document is open, a specific shortcut key or combination is input to display the first interface. The shortcut key combination can be Ctrl+N. Another way is to trigger the target control. The target control can be Figure 4 Click "Insert Field" in the upper right corner of the first document and click the target control to display the first interface. Alternatively, you can right-click to trigger the display of the first interface. You can set the entry of the first interface in the right-click menu list or set it to display the first interface when you right-click.
[0062] In some embodiments of the present disclosure, the above-mentioned method can be used for template editing, such as contract template editing. The first document can be a template, such as a contract template. For the template, fill-in-the-blank fields need to be reserved for filling in information. Therefore, the first interface can be triggered to display and fill-in-the-blank fields can be inserted by shortcut keys, clicking controls, right-clicking, etc. When entering fill-in-the-blank fields, empty fields can be entered, and when an input error is made, the first interface can be evoked by triggering the input field, and the previously incorrectly entered field can be replaced with the field corresponding to the field option in the first interface. Therefore, there is no need for tedious operations, which improves the user experience.
[0063] In some embodiments of the present disclosure, a document processing device is provided, comprising:
[0064] A display unit, configured to display a first interface in an area associated with a first document input identifier in response to a first operation event, wherein the first interface displays field options;
[0065] a control unit, configured to, in response to the second operation event, insert a first field corresponding to the second operation event at a current position of the input identifier in the first document;
[0066] The display unit is further configured to display the first interface again in response to a third operation event on the first field;
[0067] The control unit is further configured to, in response to a fourth operation event on the first interface that is displayed again, modify the first field to a second field corresponding to the fourth operation event.
[0068] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art can understand and implement them without paying creative work.
[0069] The method and apparatus of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.
[0070] Reference below Figure 8, which shows a schematic diagram of the structure of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0071] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0072] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0073] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0074] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0075] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0076] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0077] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0078] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0079] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0081] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0082] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0083] According to one or more embodiments of the present disclosure, a document processing method is provided, including:
[0084] In response to the first operation event, a first interface is displayed in the associated area of the input identifier in the first document, wherein the first interface displays field options;
[0085] In response to the second operation event, inserting a first field corresponding to the second operation event at the current position of the input identifier in the first document;
[0086] In response to a third operation event on the first field, displaying the first interface again;
[0087] In response to a fourth operation event on the first interface that is displayed again, the first field is modified to a second field corresponding to the fourth operation event.
[0088] According to one or more embodiments of the present disclosure, a document processing method is provided, which, in response to a second operation event, inserts a first field corresponding to the second operation event at a current position of an input identifier in a first document, including:
[0089] In response to a triggering operation on a field option in the first interface, inserting a field corresponding to the triggered field option at the current position of the input identifier in the first document; or,
[0090] In response to the first interface not being triggered within a preset time period, or the control marker triggering an area outside the first interface, an empty field is inserted at the current position of the input marker in the first document.
[0091] According to one or more embodiments of the present disclosure, a document processing method is provided, wherein a first document has a second interface, or the second interface is displayed in response to a first control in the first document being triggered;
[0092] The second interface displays a field option and at least one of an associated control of the field option and associated information of the field option. The associated control is used to operate the associated field option after being triggered.
[0093] According to one or more embodiments of the present disclosure, a document processing method is provided, in which a first interface is displayed in an associated area of an input identifier in a first document, comprising: creating a blank first content input area at the current position of the input identifier in the first document, and displaying the first interface at an associated position of the first content input area, wherein the first content input area has a different display state from other areas of the first document, and the first interface includes at least one field option and a search control.
[0094] According to one or more embodiments of the present disclosure, a document processing method is provided, wherein different display states include:
[0095] The first content input area has a boundary area different from that of the first document; or,
[0096] The first content input area has a display level different from that of the first document; or,
[0097] The first content input area has background information different from that of the first document.
[0098] According to one or more embodiments of the present disclosure, there is provided a document processing method, which, in response to a second operation event, inserts a first field corresponding to the second operation event at a current position of an input identifier in a first document, including: generating first content information matching the first field in a first content input area;
[0099] The method further includes replacing the first content information with the second content information in response to receiving an input operation in the first content input region.
[0100] According to one or more embodiments of the present disclosure, a document processing method is provided, which further includes: again responding to the first operation event, creating a blank second content input area at the current position of the input identifier in the first document, and the second content input area has a different display state from the first content input area.
[0101] According to one or more embodiments of the present disclosure, a document processing method is provided, wherein the associated control includes at least one of the following: a second control for locating the position of the field corresponding to the associated field option in the first document after being triggered; a third control for editing the associated field option after being triggered; and a fourth control for deleting the associated field option after being triggered;
[0102] The associated information includes at least one of the following: the number of fields corresponding to the field options in the first document, and the importance of the field options.
[0103] According to one or more embodiments of the present disclosure, a document processing method is provided, wherein the field options include: field options corresponding to fill-in-the-blank fields;
[0104] The fill-in-the-blank field includes an input area, and the input area is used to input information.
[0105] According to one or more embodiments of the present disclosure, a document processing method is provided, wherein the blank-filling fields are divided into non-blank fields and blank fields;
[0106] The non-empty field has a corresponding preset type, and the input area of the non-empty field is used to input data of the preset type;
[0107] The input area of the empty field is used to input any type of data.
[0108] According to one or more embodiments of the present disclosure, a document processing method is provided, which satisfies at least one of the following requirements:
[0109] The first interface has a fifth control, and the fifth control is used to create a custom field option.
[0110] The first operation event includes at least one of the following: pressing a preset key, pressing a preset key combination, triggering a target control, and triggering a right button.
[0111] According to one or more embodiments of the present disclosure, there is provided a document processing apparatus, comprising:
[0112] A display unit, configured to display a first interface in an area associated with a first document input identifier in response to a first operation event, wherein the first interface displays field options;
[0113] a control unit, configured to, in response to a second operation event, insert a first field corresponding to the second operation event at a current position of the input identifier in the first document;
[0114] The display unit is further configured to display the first interface again in response to a third operation event on the first field;
[0115] The control unit is further configured to, in response to a fourth operation event on the first interface that is displayed again, modify the first field to a second field corresponding to the fourth operation event.
[0116] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;
[0117] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the above methods.
[0118] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.
[0119] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0120] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0121] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A document processing method, characterized in that: include: In response to the first operation event, a first interface is displayed in the associated area of the input identifier in the first document, wherein the first interface displays field options, wherein the field options correspond to fields, and the fields have text content; In response to the second operation event, inserting a first field corresponding to the second operation event at the current position of the input identifier in the first document; In response to a third operation event on the first field, displaying the first interface again; In response to a fourth operation event on the first interface that is displayed again, modifying the first field to a second field corresponding to the fourth operation event; In response to the first operation event again, a blank second content input area is created at the current position of the input mark in the first document.
2. The method according to claim 1, characterized in that In response to the second operation event, inserting a first field corresponding to the second operation event at the current position of the input identifier in the first document includes: In response to a triggering operation on a field option in the first interface, inserting a field corresponding to the triggered field option at the current position of the input identifier in the first document; or, In response to the first interface not being triggered within a preset time period, or in response to the control marker triggering an area outside the first interface, an empty field is inserted at the current position of the input marker in the first document.
3. The method according to claim 1, characterized in that The display of the first interface in the associated area of the input identifier in the first document includes: A blank first content input area is created at the current position of the input identifier in the first document, and the first interface is displayed at an associated position of the first content input area, wherein the first content input area has a different display state from other areas of the first document, and the first interface includes at least one field option and a search control.
4. The method according to claim 3, characterized in that The different display states include: The first content input area has a boundary area different from that of the first document; or, The first content input area has a display level different from that of the first document; or, The first content input area has background information different from that of the first document.
5. The method according to claim 3, characterized in that In response to the second operation event, inserting a first field corresponding to the second operation event at the current position of the input identifier in the first document includes: generating first content information matching the first field in the first content input area; The method further comprises: In response to receiving an input operation in the first content input area, the first content information is replaced with second content information.
6. The method according to claim 3, characterized in that The method further comprises: The second content input area and the first content input area have different display states.
7. The method according to claim 1, characterized in that The first document has a second interface, or the first control in the first document is triggered to display the second interface; The second interface displays a field option and at least one of an associated control of the field option and associated information of the field option. The associated control is used to operate the associated field option after being triggered.
8. The method according to claim 7, characterized in that The associated control includes at least one of the following: a second control for locating the position of the field corresponding to the associated field option in the first document after being triggered; a third control for editing the associated field option after being triggered; and a fourth control for deleting the associated field option after being triggered; The associated information includes at least one of the following: the number of fields corresponding to the field options in the first document, and the importance of the field options.
9. The method according to any one of claims 1 to 8, characterized in that The field options include: field options corresponding to the blank fields; The fill-in-the-blank field includes an input area, and the input area is used to input information.
10. The method according to claim 9, characterized in that The fill-in-the-blank fields are divided into non-blank fields and empty fields; The non-empty field has a corresponding preset type, and the input area of the non-empty field is used to input data of the preset type; The input area of the empty field is used to input any type of data.
11. The method according to claim 1, wherein Satisfy at least one of the following: The first interface has a fifth control, and the fifth control is used to create a custom field option; The first operation event includes at least one of the following: pressing a preset key, pressing a preset key combination, triggering a target control, and triggering a right button.
12. A document processing device, wherein: include: A display unit, configured to display a first interface in an area associated with the first document input identifier in response to a first operation event, wherein the first interface displays field options, wherein the field options correspond to fields, and the fields have text content; a control unit, configured to, in response to a second operation event, insert a first field corresponding to the second operation event at a current position of the input identifier in the first document; The display unit is further configured to display the first interface again in response to a third operation event on the first field; The control unit is further configured to, in response to a fourth operation event on the first interface that is displayed again, modify the first field to a second field corresponding to the fourth operation event; The document processing apparatus is further configured to create a blank second content input area at the current position of the input mark in the first document in response to the first operation event again.
13. An electronic device comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 11. 14 . A computer-readable storage medium for storing program code, wherein when the program code is executed by a processor, the processor is prompted to execute the method according to claim 1 .
Citation Information
Patent Citations
Method and device for inserting multimedia object in text, and terminal
CN105988981A
Convenient method and device for changing multimedia resources in document, and electronic equipment
CN108733731A