CN112784542A - Document editing method and device - Google Patents

Document editing method and device Download PDF

Info

Publication number
CN112784542A
CN112784542A CN202010431310.4A CN202010431310A CN112784542A CN 112784542 A CN112784542 A CN 112784542A CN 202010431310 A CN202010431310 A CN 202010431310A CN 112784542 A CN112784542 A CN 112784542A
Authority
CN
China
Prior art keywords
text
target text
box
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010431310.4A
Other languages
Chinese (zh)
Other versions
CN112784542B (en
Inventor
刘欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202010431310.4A priority Critical patent/CN112784542B/en
Publication of CN112784542A publication Critical patent/CN112784542A/en
Application granted granted Critical
Publication of CN112784542B publication Critical patent/CN112784542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides a document editing method and a device, wherein the method comprises the following steps: receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: inserting a plurality of text boxes into a document page; displaying a text input dialog box corresponding to the continuous insertion instruction; and for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction aiming at the target text is received. By applying the document editing scheme provided by the embodiment of the application, a plurality of text boxes written with different target texts can be quickly inserted into a document page through the text input dialog box, so that the document editing efficiency of a user is improved.

Description

Document editing method and device
Technical Field
The present application relates to the field of office software technologies, and in particular, to a method and an apparatus for editing a document.
Background
When a user edits a document, it is often necessary to insert a plurality of text boxes in a page of the document and then to enter different texts in the plurality of text boxes, respectively. The current common document editing mode is as follows: the user repeatedly executes: clicking a text box insertion button and then inputting text in a popped-up document box, or copying the inserted and edited text box for multiple times and then modifying the text in the copied text box.
However, the above document editing method is complicated, and the user cannot edit the document quickly, which results in low editing efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for editing a document, so that a plurality of text boxes written with different target texts can be quickly inserted into a document page, thereby improving the efficiency of a user editing the document. The specific technical scheme is as follows:
in a first aspect, a document editing method is provided, where the method includes:
receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: inserting a plurality of text boxes into a document page;
displaying a text input dialog box corresponding to the continuous insertion instruction;
and for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction aiming at the target text is received.
Optionally, for each target text input in the text input dialog by the user, when a writing instruction for the target text is received, inserting a text box in which the target text is written into the document page, including:
judging whether a click instruction for a preset interactive key is received or not aiming at each target text input by a user in a text input dialog box; wherein, predetermine interactive key includes: presetting a keyboard key or a writing button arranged in a text input dialog box;
and if so, inserting a text box written with the target text into the document page.
Optionally, inserting a text box written with the target text into the document page includes:
calling a preset text box to be inserted into a preset position of a document page;
and writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field;
for each target text input in the text input dialog box by a user, when an insertion instruction for the target text is received, inserting a text box written with the target text in a document page, and the method comprises the following steps:
acquiring each target text input by a user in a target text input field;
and aiming at each input target text, obtaining a text box attribute value input by a user in a text box attribute value setting column, and inserting a text box which is written with the target text and accords with the text box attribute value into a document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field;
for each target text input in the text input dialog box by a user, when an insertion instruction for the target text is received, inserting a text box written with the target text in a document page, and the method comprises the following steps:
acquiring each target text input by a user in a target text input field;
and aiming at each input target text, acquiring a target text attribute value input by a user in a target text attribute value setting column, and inserting a text box written with the target text and conforming to the target text attribute value in a document page.
In a second aspect, there is provided a document editing apparatus, the apparatus comprising:
the receiving module is used for receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: inserting a plurality of text boxes into a document page;
the display module is used for displaying a text input dialog box corresponding to the continuous insertion instruction;
and the inserting module is used for inserting a text box written with the target text into the document page when receiving a writing instruction aiming at the target text for each target text input by the user in the text input dialog box.
Optionally, the insertion module includes:
the judging unit is used for judging whether a click instruction for a preset interactive key is received or not aiming at each target text input by a user in the text input dialog box; wherein, predetermine interactive key includes: presetting a keyboard key or a writing button arranged in a text input dialog box;
and the first inserting unit is used for inserting the text box written with the target text into the document page when the click instruction aiming at the preset interactive key is determined to be received.
Optionally, the first insertion unit is specifically configured to:
calling a preset text box to be inserted into a preset position of a document page;
and writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field; the insertion module includes:
a first obtaining unit configured to obtain each target text input by a user in a target text input field;
and the second inserting unit is used for acquiring the text box attribute value input by the user in the text box attribute value setting column aiming at each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field; the insertion module includes:
a second obtaining unit configured to obtain each target text input by the user in the target text input field;
and the third inserting unit is used for acquiring the target text attribute value input by the user in the target text attribute value setting column aiming at each input target text, and inserting a text box in which the target text is written and the target text conforms to the target text attribute value into the document page.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when being executed by a processor, carries out the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: a plurality of text boxes are inserted into a document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. And for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction aiming at the target text is received.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text into the document page. And the user can continue to edit another target text in the text input dialog box and send a writing instruction, and then the electronic equipment can continue to insert the text box written with the other target text in the document page. Therefore, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the document editing efficiency of a user is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a document editing method provided in an embodiment of the present application;
fig. 2 is a schematic interface diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a document editing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a document editing method, which can be applied to electronic equipment such as a mobile phone and a personal computer, wherein the electronic equipment has the functions of document display and document editing. A user may insert a text box into the Document to implement text editing, where the Document may be a Microsoft presentation Document (PPT) Document, a Portable Document Format (PDF) Document, a Microsoft Word processing program (Word) Document, or other types of electronic documents, and the embodiment of the present application is not limited thereto.
A document editing method provided in an embodiment of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
step 101, receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: a plurality of text boxes are inserted into a document page.
And 102, displaying a text input dialog box corresponding to the continuous insertion instruction.
In the embodiment of the application, a user can click a preset continuous insertion button in a document page and send a continuous insertion instruction. And after receiving the continuous insertion instruction, the electronic equipment displays a text input dialog box at a preset position of the document page. For example, the electronic device may display a text entry dialog box directly below a document page of the PPT document that may be hovering over the document page, or may display a text entry dialog box below and to the right of a document page of the PPT document that may be hovering over the document page. The user may then edit the target text in a text entry dialog box, in which the electronic device may display the corresponding target text.
The text input dialog box is displayed in the document page, so that the target text editing in the text input dialog box by a user is realized, the condition that the target text can be edited only by selecting the text box when the target text is edited in the text box is avoided, and the target text editing is convenient for the user; the text input dialog box can display the target text edited by the user, so that the user can conveniently look up the edited text in the text editing process.
And 103, for each target text input in the text input dialog box by the user, inserting a text box written with the target text into the document page when receiving a writing instruction for the target text.
For example, the user may click a preset successive insertion button in the document page to issue a successive insertion instruction. The electronic device, upon receiving the successive insertion instruction, displays a text entry dialog box directly beneath the document page that may hover over the document page. A user can edit a target text 1 in a text input dialog box, and after the editing is completed, a writing instruction aiming at the target text 1 is sent out, and the electronic equipment inserts a text box written with the target text 1 into a document page; the user can continue to edit the target text 2 in the text input dialog box, and after the editing is completed, a writing instruction aiming at the target text 2 is sent out, and the electronic equipment inserts the text box written with the target text 2 into the document page; the user may then continue editing the target text 3 in the text editing dialog box, and after the editing is completed, issue a writing instruction for the target text 3, insert a text box in which the target text 3 is written in a document page by the electronic device, and so on. In this way, the operations of editing the target text and inserting the text box can be continuously performed.
In the embodiment of the application, a user can edit each target text in the text input dialog box, after the editing is completed, the user can send a writing instruction aiming at the target text to instruct the electronic equipment to insert the text box written with the target text in the document page, and then the user can continue to edit the next target text, so that the operation of editing the target text and inserting the text box can be continuously executed, and the steps of continuously inserting the text boxes are simplified.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: a plurality of text boxes are inserted into a document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. And for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction aiming at the target text is received.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text into the document page. And the user can continue to edit another target text in the text input dialog box and send a writing instruction, and then the electronic equipment can continue to insert a text box written with another target text in the document page. Therefore, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the document editing efficiency of a user is improved.
Optionally, for each target text input in the text input dialog by the user, when a writing instruction for the target text is received, inserting a text box in which the target text is written into the document page, including:
judging whether a click instruction for a preset interactive key is received or not aiming at each target text input by a user in a text input dialog box; wherein, predetermine interactive key includes: a preset keyboard key or a write button provided in a text input dialog.
And if so, inserting a text box written with the target text into the document page.
In the embodiment of the application, when the user finishes editing the text, the user can click the preset interactive key to send the click instruction to instruct the electronic device to insert the text box written with the target text into the document page, so that the text box written with the target text is inserted into the document page, and then the user can continue editing the next target text, so that the operation of editing the target text and inserting the text box can be continuously executed, and the step of continuously inserting the text box is simplified.
The preset keyboard key may be a certain key in the keyboard, such as an "Enter" key; or may be a combination key in a keyboard, such as the "Ctrl + Enter" key. The preset interactive key may also be a write button provided in the text box input dialog. The user can indicate the electronic equipment to insert the text box written with the target text into the document page by clicking the preset interactive key, so that the user can quickly and simply indicate the electronic equipment to insert the text box into the document page, the steps of editing the text box are simplified, and the document editing efficiency is improved.
Optionally, inserting a text box written with the target text into the document page includes:
and calling a preset text box to be inserted into a preset position of the document page.
And writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
In the embodiment of the application, after receiving a writing instruction of a user for the target text, the electronic device may call a preset text box to be inserted into a preset position of a document page. Therefore, the preset text box is called to be inserted into the preset position in the document page, and the step of drawing the text box in the document is simplified. The electronic equipment can write the target text in the text input dialog box into the preset text box, and the text box written with the target document is inserted into the preset position of the document page.
The preset position can be a page position having a preset position relation with the position of the last text box; or at any preset position on the document page. For example, the preset position may be a position right below the position of the previous text box, or may be a position right below the position of the previous text box; or may be the center position of the document page, or may be the upper left position of the document page.
In addition, the insertion sequence of the text boxes can be set to correspond to the insertion positions of the text boxes, and the user can subsequently determine the insertion sequence of the text boxes according to the insertion positions of the text boxes, so that the text boxes can be consulted and edited according to the insertion sequence, and the document editing efficiency is improved.
Optionally, the text input dialog box includes: a target text entry field and a text box attribute value setting field.
For each target text input in the text input dialog box by a user, when an insertion instruction for the target text is received, inserting a text box written with the target text in a document page, and the method comprises the following steps:
each target text entered by the user in the target text entry field is obtained.
And aiming at each input target text, obtaining a text box attribute value input by a user in a text box attribute value setting column, and inserting a text box which is written with the target text and accords with the text box attribute value into a document page.
In the embodiment of the application, after the text editing is completed, the user can select the attribute of the text box in the text box attribute setting column and then send out the writing instruction for the target text, and the electronic equipment can insert the text box which is written with the target text and accords with the attribute value of the text box in the document page; the attribute value of the text box may be a text arrangement format in the text box, a size of the text box, a shape outline of the text box, a shape filling of the text box, a shape effect of the text box, and the like.
Therefore, when the user inserts the text box, the setting of the attribute value of the text box can be realized, so that when the text box is displayed in the document page, the attribute value of the text box meets the requirements of the user, the step of drawing the text box by the user is simplified, and the efficiency of editing the document by the user is improved.
The user can also send a writing instruction aiming at the target text after the text editing is finished, and the electronic equipment is indicated to insert a text box written with the target text into the document page; and then selecting the attribute value of the text box in a text box attribute value setting column in the text input dialog box or a text box attribute setting column in the document page to indicate that the electronic equipment correspondingly adjusts the text box with the target text written in the document page.
For example, after the text editing is completed, the user may select to insert a vertical text box with a width of 10 cm, a length of 2 cm and a shape effect as a light-emitting effect in the text property setting field, and then issue a write instruction for the target text, instructing the electronic device to insert a vertical text box with a width of 10 cm, a length of 2 cm and a shape effect as a light-emitting effect, in which the target text is written, in the document page. The user can also send a writing instruction aiming at the target text after the text editing is finished, and the electronic equipment is indicated to insert a text box written with the target text into the document page; then the user selects the attribute value of the text box in the text box attribute value setting column in the text input dialog box as follows: the outline of the shape is black, the shape is filled with the non-filled color, and the electronic equipment can correspondingly adjust the format of the text box written with the target text in the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field.
For each target text input in the text input dialog box by a user, when an insertion instruction for the target text is received, inserting a text box written with the target text in a document page, and the method comprises the following steps:
each target text entered by the user in the target text entry field is obtained.
And aiming at each input target text, acquiring a target text attribute value input by a user in a target text attribute value setting column, and inserting a text box written with the target text and conforming to the target text attribute value in a document page.
In the embodiment of the application, after the text editing is finished, the user can select the target text attribute in the target text attribute setting column; and then sending a writing instruction aiming at the target text. The electronic device may insert a text box in which the target text is written and the target text conforms to the attribute value of the target text into the document page. The target text attribute value may be a character font, a character size, a font color, and the like.
Therefore, when the user inserts the text box, the setting of the attribute value of the target text can be realized, so that when the text box is displayed in the document page, the attribute value of the target text already accords with the attribute of the target text, the step of editing the target text by the user is simplified, and the efficiency of editing the document by the user is improved.
The user can also send a writing instruction aiming at the target text after the text editing is finished, and the electronic equipment is indicated to insert a text box written with the target text into the document page; and then selecting a target text attribute value in a target text attribute value setting column in the text input dialog box or a target text attribute setting column in the document page to indicate the electronic equipment to correspondingly adjust the format of the target characters in the text box.
For example, fig. 2 is an interface schematic diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 2, the interface of the electronic device is displayed with a continuation insertion button, a document page, and a text entry dialog box hovering over the document page. Wherein the document page inserts a text box written with "AAAAAA" and a text box written with "BBBB". In addition, the text entry dialog includes: a text box attribute setting field, a target text attribute setting field, a write button, and a target text "CCC".
As shown in fig. 2, the user may click a successive insertion button in the document page to issue a successive insertion instruction, and the electronic device may display a corresponding text input dialog at a lower right position in the document page in response to the successive insertion instruction. The user may then edit the target text in the text entry dialog, for example the target text may be edited first: AAAAAA, clicking a target text attribute setting column in a text input dialog box, setting the font as Song style, clicking a write-in button in the text input dialog box, and sending a write-in instruction; the electronic device inserts a text box in which the target text "AAAAAA" is written at the upper left position of the document page in response to the writing instruction.
Next, the electronic device may continue editing the target text in the text entry dialog: BBBB, clicking a text box attribute setting column in a text input dialog box, selecting a text box attribute value as a vertical text box, clicking a preset keyboard key 'Enter' key, and sending a writing instruction; in response to the write command, the electronic device inserts the vertical text box in which the target text "BBBB" is written at a position directly below the text box in which the target text "AAAAAA" is written.
The editing of the target text in the text entry dialog box, such as the text "CCC" in the text entry dialog box in fig. 2, then continues. Therefore, the user can send a writing instruction when finishing editing the text, and instruct the electronic equipment to insert the text box written with the target text into the document page, so that the text box written with the target text is inserted into the document page, and then the user can continue editing the next target text, thereby realizing the operation of continuously editing the target text and inserting the text box, and simplifying the steps of continuously inserting the text boxes.
Based on the same technical concept, an embodiment of the present application further provides a document editing apparatus, as shown in fig. 3, the apparatus includes:
a receiving module 301, configured to receive a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: a plurality of text boxes are inserted into a document page.
The display module 302 is configured to display a text input dialog box corresponding to the continuous insertion instruction.
And an inserting module 303, configured to insert, for each target text input in the text input dialog by the user, a text box in which the target text is written in the document page when a writing instruction for the target text is received.
In the embodiment of the application, the electronic equipment receives a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: a plurality of text boxes are inserted into a document page. And displaying a text input dialog box corresponding to the continuous insertion instruction. And for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction aiming at the target text is received.
In this way, the user can edit the target text directly in the text input dialog box and issue a write instruction for the target text after the editing is completed. After receiving the writing instruction for the target text, the electronic device may insert a text box written with the target text into the document page. And the user can continue to edit another target text in the text input dialog box and send a writing instruction, and then the electronic equipment can continue to insert the text box written with the other target text in the document page. Therefore, the complexity of continuously inserting a plurality of text boxes recorded with different text contents into the document page is reduced, and the document editing efficiency of a user is improved.
Optionally, the inserting module 303 includes:
the judging unit is used for judging whether a click instruction for a preset interactive key is received or not aiming at each target text input by a user in the text input dialog box; wherein, predetermine interactive key includes: a preset keyboard key or a write button provided in a text input dialog.
And the first inserting unit is used for inserting the text box written with the target text into the document page when the click instruction aiming at the preset interactive key is determined to be received.
Optionally, the first insertion unit is specifically configured to:
and calling a preset text box to be inserted into a preset position of the document page.
And writing the target text in the text input dialog box into a preset text box to obtain the text box written with the target text.
Optionally, the text input dialog box includes: a target text input field and a text box attribute value setting field; the insertion module 303 includes:
a first obtaining unit configured to obtain each target text input by the user in the target text input field.
And the second inserting unit is used for acquiring the text box attribute value input by the user in the text box attribute value setting column aiming at each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
Optionally, the text input dialog box includes: a target text input field and a target text attribute value setting field; the insertion module 303 includes:
a second obtaining unit configured to obtain each target text input by the user in the target text input field.
And the third inserting unit is used for acquiring the target text attribute value input by the user in the target text attribute value setting column aiming at each input target text, and inserting a text box in which the target text is written and the target text conforms to the target text attribute value into the document page.
The embodiment of the present application further provides an electronic device, as shown in fig. 4, which includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement any of the method steps in the above-described method for editing a document when executing the program stored in the memory 403.
The communication bus mentioned in the network device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the network device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components.
Based on the same technical concept, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the method steps in the above-mentioned document editing method embodiments.
Based on the same technical concept, embodiments of the present application also provide a computer program product including instructions, which when run on a computer, cause the computer to perform any one of the method steps in the above-mentioned document editing method embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A method of document editing, the method comprising:
receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: inserting a plurality of text boxes into a document page;
displaying a text input dialog box corresponding to the continuous insertion instruction;
and for each target text input in the text input dialog box by the user, inserting a text box written with the target text in the document page when a writing instruction for the target text is received.
2. The method according to claim 1, wherein for each target text input by the user in the text input dialog box, when a writing instruction for the target text is received, inserting a text box written with the target text in the document page, and the method comprises:
judging whether a click instruction for a preset interactive key is received or not for each target text input in the text input dialog box by a user; wherein the preset interactive key comprises: presetting a keyboard key or a writing button arranged in the text input dialog box;
and if so, inserting a text box written with the target text into the document page.
3. The method according to claim 2, wherein inserting the text box written with the target text into the document page comprises:
calling a preset text box to be inserted into a preset position of the document page;
and writing the target text in the text input dialog box into the preset text box to obtain the text box written with the target text.
4. The method of claim 1, wherein the text entry dialog box comprises: a target text input field and a text box attribute value setting field;
when receiving an insertion instruction for each target text input in the text input dialog box by a user, inserting a text box written with the target text into the document page, wherein the text box comprises:
acquiring each target text input in the target text input field by a user;
and aiming at each input target text, obtaining a text box attribute value input by a user in the text box attribute value setting column, and inserting a text box which is written with the target text and accords with the text box attribute value into the document page.
5. The method of claim 1, wherein the text entry dialog box comprises: a target text input field and a target text attribute value setting field;
when receiving an insertion instruction for each target text input in the text input dialog box by a user, inserting a text box written with the target text into the document page, wherein the text box comprises:
acquiring each target text input in the target text input field by a user;
and aiming at each input target text, acquiring a target text attribute value input by a user in the target text attribute value setting column, and inserting a text box in which the target text is written and the target text conforms to the target text attribute value into the document page.
6. A document editing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a continuous insertion instruction sent by a user; wherein the successive insertion instruction is to indicate: inserting a plurality of text boxes into a document page;
the display module is used for displaying the text input dialog box corresponding to the continuous insertion instruction;
and the inserting module is used for inserting a text box written with the target text into the document page when a writing instruction aiming at the target text is received for each target text input by the user in the text input dialog box.
7. The apparatus of claim 6, wherein the insertion module comprises:
the judging unit is used for judging whether a click instruction for a preset interactive key is received or not aiming at each target text input by the user in the text input dialog box; wherein the preset interactive key comprises: presetting a keyboard key or a writing button arranged in the text input dialog box;
and the first inserting unit is used for inserting a text box written with the target text into the document page when the click instruction aiming at the preset interactive key is determined to be received.
8. The device according to claim 7, characterized in that the first insertion unit is specifically configured to:
calling a preset text box to be inserted into a preset position of the document page;
and writing the target text in the text input dialog box into the preset text box to obtain the text box written with the target text.
9. The apparatus of claim 6, wherein the text entry dialog box comprises: a target text input field and a text box attribute value setting field; the insertion module includes:
a first obtaining unit configured to obtain each target text input by a user in the target text input field;
and the second inserting unit is used for acquiring the text box attribute value input by the user in the text box attribute value setting column aiming at each input target text, and inserting the text box which is written with the target text and accords with the text box attribute value into the document page.
10. The apparatus of claim 6, wherein the text entry dialog box comprises: a target text input field and a target text attribute value setting field; the insertion module includes:
a second obtaining unit configured to obtain each target text input by the user in the target text input field;
and the third inserting unit is used for acquiring the target text attribute value input by the user in the target text attribute value setting column aiming at each input target text, and inserting a text box in which the target text is written and the target text conforms to the target text attribute value into the document page.
CN202010431310.4A 2020-05-20 2020-05-20 Document editing method and device Active CN112784542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010431310.4A CN112784542B (en) 2020-05-20 2020-05-20 Document editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010431310.4A CN112784542B (en) 2020-05-20 2020-05-20 Document editing method and device

Publications (2)

Publication Number Publication Date
CN112784542A true CN112784542A (en) 2021-05-11
CN112784542B CN112784542B (en) 2023-11-28

Family

ID=75750042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010431310.4A Active CN112784542B (en) 2020-05-20 2020-05-20 Document editing method and device

Country Status (1)

Country Link
CN (1) CN112784542B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153974A1 (en) * 2003-01-30 2004-08-05 Walker Kenneth A. Markup language store-and-paste
US20070061716A1 (en) * 2005-09-13 2007-03-15 Yutaka Kato Text editing method and apparatus
CN101419526A (en) * 2007-10-26 2009-04-29 捷讯研究有限公司 Text selection using a touch sensitive screen of a handheld mobile communication device
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document
US20130132813A1 (en) * 2011-06-27 2013-05-23 Adobe Systems Incorporated User interface element on mobile device for comb text field inputs
CN104813312A (en) * 2012-08-17 2015-07-29 微软公司 Stateful editing of rich content using a basic text box
CN108463822A (en) * 2016-04-25 2018-08-28 谷歌有限责任公司 Dynamic using visual style for the content element of information resources renders interaction statistics data
CN110688191A (en) * 2019-10-12 2020-01-14 苏州思必驰信息科技有限公司 Question and answer generating method and system for voice conversation platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153974A1 (en) * 2003-01-30 2004-08-05 Walker Kenneth A. Markup language store-and-paste
US20070061716A1 (en) * 2005-09-13 2007-03-15 Yutaka Kato Text editing method and apparatus
CN101419526A (en) * 2007-10-26 2009-04-29 捷讯研究有限公司 Text selection using a touch sensitive screen of a handheld mobile communication device
CN101706771A (en) * 2009-11-06 2010-05-12 北京理工大学 Template-based intelligent format checking method aiming at Word document
US20130132813A1 (en) * 2011-06-27 2013-05-23 Adobe Systems Incorporated User interface element on mobile device for comb text field inputs
CN104813312A (en) * 2012-08-17 2015-07-29 微软公司 Stateful editing of rich content using a basic text box
CN108463822A (en) * 2016-04-25 2018-08-28 谷歌有限责任公司 Dynamic using visual style for the content element of information resources renders interaction statistics data
CN110688191A (en) * 2019-10-12 2020-01-14 苏州思必驰信息科技有限公司 Question and answer generating method and system for voice conversation platform

Also Published As

Publication number Publication date
CN112784542B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US20200285356A1 (en) User interface for displaying selectable software functionality controls that are relevant to a selected object
US8832548B2 (en) System and method for selective control of zoom adjustments in an electronic publication
US9317186B2 (en) Document publishing model
US20160246764A1 (en) Font preloading
US20140115435A1 (en) Creating and publishing different versions of documents
KR100981653B1 (en) Input Method For A Numerical Formula Using A Medium Of Computing
CN109933322A (en) A kind of page editing method, apparatus and computer readable storage medium
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
CA2808949A1 (en) Method and apparatus for correcting document formatting based on source document
CN111476006B (en) PDF file online annotation method, device, equipment and readable storage medium
US20220229973A1 (en) Interactive tool for modifying an automatically generated electronic form
US11567635B2 (en) Online collaborative document processing method and device
WO2023236795A1 (en) Encyclopedia entry processing method and apparatus, and electronic device, medium and program product
CN114072787A (en) System and method for fast data entry to facilitate document review
CN112784542B (en) Document editing method and device
CN111553130A (en) Chapter title style conversion method and device, electronic equipment and storage medium
US20160320948A1 (en) Document and object manipulation
JP2011197983A (en) Information display device and information display program
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
KR101977208B1 (en) Document editor and method using the same
CN112783400B (en) Document content selection method and device, electronic equipment and storage medium
CN111897661A (en) Method and device for copying cell contents in spreadsheet and electronic equipment
JP7446558B2 (en) Document editing device, editing method for document editing device, document editing program for document editing device
JP6939473B2 (en) Document processing equipment and programs
CN112100122B (en) Method and device for storing picture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant