CN109492208B - Document editing method and device, equipment and storage medium thereof - Google Patents
Document editing method and device, equipment and storage medium thereof Download PDFInfo
- Publication number
- CN109492208B CN109492208B CN201811190516.1A CN201811190516A CN109492208B CN 109492208 B CN109492208 B CN 109492208B CN 201811190516 A CN201811190516 A CN 201811190516A CN 109492208 B CN109492208 B CN 109492208B
- Authority
- CN
- China
- Prior art keywords
- document
- block
- content
- information
- target
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the disclosure provides a document editing method, which comprises the following steps: acquiring the position of a file block inserted into a cursor to reach a target block in a file; receiving document content input in an input box associated with a document block insertion cursor, and a set document type corresponding to the document content; inserting the document content into the target block position generation target Wen Dangkuai; and generating block information of the target document block according to the target block position, the document content and the document type according to a preset format, and storing the block information in the document information. Therefore, clear separation of document contents is realized, error operation of a user is reduced, the content structure of the document is maintained, the editing efficiency of the document contents is improved, and the technical problems that the document editing is easy to make mistakes, the document content structure is destroyed and the efficiency is low in the prior art are solved.
Description
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a document editing method, a device, equipment and a storage medium thereof.
Background
Currently, a user can complete editing operations on various documents on an electronic device, and when the user edits a document, document contents such as a certain text or a certain picture are often required to be inserted into the current document being edited.
In the related art, different contents of the whole document are distinguished through line feeding symbols and paragraph shrinkage, so that a user can easily select an incorrect insertion position due to insufficient content separation during editing, the document content structure is damaged, and the document content editing efficiency is reduced.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present disclosure is to provide a document editing method to realize clear separation of document contents, reduce user error operations, maintain document content structure, improve document content editing efficiency, and solve the technical problems of easy error, damaged document content structure and low efficiency in document editing in the prior art.
A second object of the present disclosure is to propose a document editing apparatus.
A third object of the present disclosure is to propose an electronic device.
A fourth object of the present disclosure is to propose a storage medium.
To achieve the above object, a document editing method according to an embodiment of a first aspect of the present disclosure includes the steps of: acquiring the position of a file block inserted into a cursor to reach a target block in a file; receiving document content input in an input box associated with the document block insertion cursor, and a set document type corresponding to the document content; inserting the document content into the target block location generation target Wen Dangkuai; and generating block information of the target file block according to the target block position, the file content and the file type according to a preset format, and storing the block information in the file information.
In addition, the document editing method of the embodiment of the present disclosure further has the following additional technical features:
optionally, receiving a movement instruction for a first document block in the document, and moving the first document block from a first block position to a second block position before movement; and inquiring the document information to acquire the block information of the first document block, and replacing the first block position with the second block position.
Optionally, receiving an exchange instruction of a user on a first document block and a second document block in the document, moving the first document block from a first block position before moving to a second block position before moving the second document block, and moving the second document block from the second block position to the first block position; querying the document information to obtain block information of the first document block and the second document block, replacing the first block position with the second block position, and replacing the second block position with the first block position.
Optionally, acquiring a target word position of the document word insertion cursor in the first document block; receiving document content input in an input box associated with the document word insertion cursor, and inserting the document content into the target word position according to a sending instruction of the user to generate a modified first document block; inquiring the document information to obtain the block information of the first document block, and replacing the first document block content with the modified first document block content.
Optionally, acquiring a document transmission instruction; and transmitting the document and the document information to a target device.
An embodiment of a second aspect of the present disclosure provides a document editing apparatus including: the first acquisition module is used for acquiring the position of a target block in a document, which is reached by the document block insertion cursor; the second acquisition module is used for receiving the document content input in an input box associated with the document block insertion cursor and the set document type corresponding to the document content; an inserting module for inserting the document content into the target block position generation target Wen Dangkuai; and the generation and storage module is used for generating block information of the target document block according to the target block position, the document content and the document type according to a preset format and storing the block information in the document information.
Optionally, the document editing apparatus further includes: the moving module is used for receiving a moving instruction of a first document block in the document and moving the first document block from a first block position to a second block position before moving; and the first replacing module is used for inquiring the document information to acquire the block information of the first document block and replacing the first block position with the second block position.
Optionally, the document editing apparatus further includes: the exchange module is used for receiving an exchange instruction of a first document block and a second document block in the document, moving the first document block from a first block position before moving to a second block position before moving the second document block, and moving the second document block from the second block position to the first block position; and the second replacing module is used for inquiring the document information to acquire block information of the first document block and the second document block, replacing the first block position with the second block position and replacing the second block position with the first block position.
Optionally, the document editing apparatus further includes: the third acquisition module is used for acquiring the position of the target word, which is reached by the document word insertion cursor, in the first document block; a fourth obtaining module, configured to receive document content input in an input box associated with the document word insertion cursor, and insert the document content into the target word position to generate a modified first document block; and the third replacing module is used for inquiring the document information to acquire the block information of the first document block and replacing the first document block content with the modified first document block content.
Optionally, the document editing apparatus further includes: a fifth acquisition module for acquiring a document transmission instruction; and the sending module is used for sending the document and the document information to a target device.
An electronic device according to an embodiment of a third aspect of the present disclosure includes: the document editing method according to the embodiment of the method is realized by a memory, a processor and a computer program stored in the memory and capable of running on the processor when the processor executes the program.
A storage medium of an embodiment of the fourth aspect of the present disclosure has stored thereon a computer program which, when executed by a processor, implements the document editing method as described in the foregoing method embodiment.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the document contents belonging to the same content plate are collected into one document block, the insertion of the document contents is changed into the integral insertion of the document blocks by means of cursors and line changing symbols in the prior art, and the document blocks are edited and stored as a whole, so that the clear separation of the document contents is realized, the error operation of users is reduced, the content structure of the document is maintained, and the editing efficiency of the document contents is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram showing the effect of a document content insertion method in the prior art;
FIG. 2 is a schematic flow chart of a document editing method according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram showing the effect of one possible implementation of the insertion of a cursor into a document block according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of the effect of a user dragging a document block to insert a cursor according to an embodiment of the present disclosure;
FIG. 5 is a display view of different types of document content provided by embodiments of the present disclosure;
FIG. 6 is an effect diagram of one possible implementation of user input document content provided by embodiments of the present disclosure;
FIG. 7 is an effect diagram of another possible implementation of user input document content provided by an embodiment of the present disclosure;
FIG. 8 is an effect diagram of one possible implementation of block information preservation of a target document block provided by an embodiment of the present disclosure;
FIG. 9 is an effect diagram of another possible implementation of block information preservation of a target document block provided by an embodiment of the present disclosure;
FIG. 10 is a flow chart of another document editing method provided by an embodiment of the present disclosure;
FIG. 11 is an effect diagram of one possible implementation of the block information change of the document blocks before and after the position movement provided by the embodiments of the present disclosure;
FIG. 12 is a flow chart of yet another document editing method provided by an embodiment of the present disclosure;
FIG. 13 is an effect diagram of one possible implementation of a change in block information of a document block before and after a location exchange provided by an embodiment of the present disclosure;
FIG. 14 is a flow chart of yet another document editing method provided by an embodiment of the present disclosure;
FIG. 15 is an effect diagram of one possible implementation of the change of block information of a document block before and after content modification provided by an embodiment of the present disclosure;
FIG. 16 is a schematic view of a document editing apparatus according to an embodiment of the present disclosure;
FIG. 17 is a schematic diagram of a possible implementation of a document editing apparatus for implementing document transmission according to an embodiment of the present disclosure;
FIG. 18 is a schematic diagram of another document editing apparatus according to an embodiment of the present disclosure;
FIG. 19 is a schematic view of a further document editing apparatus provided by an embodiment of the present disclosure;
FIG. 20 is a schematic diagram of a document editing apparatus according to still another embodiment of the present disclosure;
FIG. 21 is a schematic diagram illustrating a storage medium according to an embodiment of the present disclosure;
fig. 22 is a schematic diagram illustrating a structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
The document editing method, the device, the apparatus and the storage medium according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
The existing document content editing method mainly distinguishes different contents of the whole document through line-feed characters and paragraph shrinkage. As shown in FIG. 1, a user wishes to insert a new text content after the Nth segment in the document content, but forgets to input a line feed, so that the insertion position is selected incorrectly, the original content and the new content structure are destroyed, the editing efficiency of the document content is reduced, and the editing experience of the document content is affected.
In the embodiment of the disclosure, the document contents belonging to the same content plate are collected into one document block, and the document block is edited and stored as a whole, so that clear separation of the document contents is realized, error operation of a user is reduced, the content structure of the document is maintained, and the editing efficiency of the document contents is improved.
Specifically, fig. 2 is a schematic flow chart of a document editing method according to an embodiment of the disclosure.
The method provided by the present embodiment can be performed by an application program for document editing. An application program for executing the method provided in this embodiment may be run on a PC (personal computer) side, and those skilled in the art will recognize that the PC side is only one possible implementation, and the application program is also applicable to other electronic devices, such as: mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, in-vehicle electronic devices, in-vehicle display electronics, in-vehicle electronic rear view mirrors, and the like.
As shown in fig. 2, the document editing method includes:
S101, acquiring Wen Dangkuai to insert the cursor to reach the target block position in the document.
Specifically, the document editing method in the embodiment of the disclosure is based on editing of document blocks, that is, dividing the whole document into different document blocks according to actual application needs, for example, dividing the whole document according to paragraph structures and sentence structures of the whole document to obtain at least one document block; or the whole document is processed through a preset document editing model to generate a JSON data form of the whole document formed by a plurality of corresponding document blocks.
Thus, the user can edit the document based on the document blocks according to the actual application requirements. First, the target block position where the drag Wen Dangkuai inserted cursor reaches in the document is obtained, that is, the user selects the position where the target document block needs to be inserted as the target block position by dragging the document block inserted cursor. Wherein the target document block is a document block to be inserted by the user.
The document block insertion cursor is a marking means for the target block position, and the position for prompting the user to insert the target document block may be a position marking mode such as a cursor, a line feed, a blank line, a special symbol, a font expansion or contraction mode, or a combination of the above modes, which is not limited in this embodiment.
As an example, as shown in fig. 3, the document block insertion cursor is a symmetrical graph of both left and right ends of the page, the user wants to insert a target document block between the document block 1 and the document block 2, move the document block insertion cursor between the document block 1 and the document block 2, and the line corresponding to the document block insertion cursor becomes blank so as to prompt the user of the insertion position of the target document block, clearly mark the position of the target block, and prevent the user from selecting an error in the insertion position.
It should be appreciated that the document block insertion cursor is used for document block insertion between document blocks, and does not involve modification of the internal content of existing document blocks.
It should be noted that, as shown in fig. 4, the user may drag the document block to insert the cursor to change the position of the target block, so as to change the position of the target document block after insertion, further improve the flexibility of document editing and improve the document editing experience of the user.
S102, receiving the document content input in an input box associated with the document block insertion cursor and the set document type corresponding to the document content.
The input box associated with the document block insertion cursor means that after the document block insertion cursor is acquired to reach the target block position in the document, the content input in the input box corresponds to the target block position reached by the document block insertion cursor.
Specifically, the document content input by the input box may be text, a picture, a link, etc., where the text may be a primary title, a secondary title, a tertiary title, a text, a note, etc., the picture may be a normal picture, a dynamic picture, etc., and the link may be an audio link, a video link, a web page link, etc.
It should be understood that the document content input in each document block is of the same type, and the corresponding document type is set at the same time when the document content is input, as shown in fig. 5, the document is an article, and the article primary title, the article secondary title, the article tertiary title, the article text and the article illustration are divided into different document blocks according to different types of the document content for input. Further, the document types corresponding to the different document blocks are set by the user.
S103, inserting the document content into the target block position to generate a target document block.
Specifically, the document content input by the user in the input box is inserted in the position where the cursor is inserted in the document block, and a target document block is generated.
One possible implementation manner is that, as shown in fig. 6, when the user inputs the document content in the input box, the input document content is only displayed in the input box, that is, the document block insertion cursor is located at a position where the input document content is not displayed, and when a sending instruction of the user is received, the document content generation target document block in the current input box is inserted into the target block position.
Another possible implementation manner is that, as shown in fig. 7, when the user inputs the document content in the input box, the input document content is not only displayed in the input box, but also synchronously displayed at the position where the cursor is inserted in the document block, and after receiving the sending instruction of the user, the document content synchronously displayed at the position where the cursor is inserted in the document block is sorted, so as to generate the target document block.
S104, generating block information of the target document block according to the target block position, the document content and the document type according to a preset format, and storing the block information in the document information.
Specifically, the preset format is a unified format in which block information of a document block is stored in document information, and is preset by a system or manually.
One possible implementation manner is to store the block information of the document block in the form of JSON data, and store the target block position, the document content and the document type in the form of a key value pair of index, text, type, where the key value pair such as text, id, index, level, type forms the block information of the target document block together, as shown in fig. 8.
Another possible implementation manner is to store the block information of the document block in the form of a database, set the target block position, the document content, and the document type as fields of the database, and the fields and the field values in the database together form the block information of the target document block, as shown in fig. 9.
Further, in order to transmit the document stored locally, a possible implementation manner is to acquire a document transmission instruction and send the document and document information to the target device, so that sharing of the local document is realized, collaborative office is realized, and work efficiency is improved.
It should be understood that when the application program in the target device reads the document, the document information is read and displayed according to the same preset format as the local.
In summary, in the document editing method according to one embodiment of the present disclosure, first, a target block position, where a Wen Dangkuai insert cursor reaches in a document, is obtained; then receiving the document content input in an input box associated with the document block insertion cursor and the set document type corresponding to the document content; then the document content is inserted into the target block position to generate a target Wen Dangkuai; and finally, generating block information of the target document block according to the target block position, the document content and the document type according to a preset format, and storing the block information in the document information. Therefore, clear separation of document contents is realized, error operation of a user is reduced, the content structure of the document is maintained, the editing efficiency of the document contents is improved, and the technical problems that the document editing is easy to make mistakes, the document content structure is destroyed and the efficiency is low in the prior art are solved.
Based on the description of the above embodiments, it can be understood how the document editing method according to the embodiments of the present disclosure implements the insertion of the target document blocks, and in order to make it clear to those skilled in the art how the document editing method according to the embodiments of the present disclosure implements the movement between document blocks, the movement between document blocks will be described below.
FIG. 10 is a flowchart of another document editing method according to an embodiment of the present disclosure, as shown in FIG. 10, where the document editing method further includes:
s201, receiving a moving instruction of a first document block in the document, and moving the first document block from a first block position to a second block position before moving.
Specifically, the movement operation of the user may take various forms. One possible implementation is that the user selects the first document piece and drags it directly from the first piece location to the second piece location. Another possible implementation is that the user selects the first document block, and operates it by an instruction to move up and down, so as to gradually move it from the first block position to the second block position. Yet another possible implementation is that the user selects the first document block, inputs a code instruction, such as "move to second block position", and moves it directly from the first block position to the second block position.
S202, inquiring the document information to obtain the block information of the first document block, and replacing the first block position with the second block position.
It should be appreciated that the position of the first document block is moved and, when saved in the document information, the block position in the block information embodied as the first document block is changed. One possible implementation is that before the position is moved, the index value of the text "hello" document block is 2, and after the position is moved, the index value of the text "hello" document block is 5.
Therefore, the whole flexible movement of the document block is realized, and the adjustment of the document structure is convenient.
Based on the description of the above embodiments, it can be understood how the document editing method according to the embodiments of the present disclosure achieves the movement between the target document blocks, and in order to make it clear to those skilled in the art how the document editing method according to the embodiments of the present disclosure achieves the exchange between the document blocks, the exchange between the document blocks will be described below.
FIG. 12 is a flowchart of another document editing method according to an embodiment of the present disclosure, as shown in FIG. 12, where the document editing method further includes:
s301, receiving an exchange instruction of a first document block and a second document block in a document, moving the first document block from a first block position before moving to a second block position before moving the second document block, and moving the second document block from the second block position to the first block position.
Specifically, the exchange operation of the user may take various forms. One possible implementation is that the user selects a first document block and drags it directly from the first block location to the second block location where a second document block is located. Another possible implementation is that the user selects the first document block, inputs a code instruction, such as "change to second Wen Dangkuai", and exchanges the first document block with the second document block. Yet another possible implementation is for the user to directly input code instructions, such as "exchange first document block second Wen Dangkuai", without selecting a document block, exchanging the first document block with a second document block.
S302, inquiring the document information to obtain block information of a first document block and a second document block, replacing the first block position with the second block position, and replacing the second block position with the first block position.
It should be understood that the exchanging operation of the first document block and the second document block, when stored in the document information, is embodied in that the block position in the block information of the first document block is exchanged with the block position in the block information of the second document block. One possible implementation way is that before the position is moved, the index value of the document block with text "me" is 2, the index value of the document block with text "you" is 3, after the document block with text "me" is moved to the document block with text "you", the index value of the document block with text "me" becomes 3, and the index value of the document block with text "you" becomes 2, as shown in fig. 13.
Therefore, flexible exchange among the document blocks is realized, local adjustment of the document structure is facilitated, compared with the scheme that two document blocks are respectively moved, the method and the device save operation steps, improve editing efficiency and provide editing experience for users.
Based on the description of the above embodiments, it can be understood how the document editing method according to the embodiments of the present disclosure implements the exchange between the target document blocks, and in order to make it clear to those skilled in the art how the document editing method according to the embodiments of the present disclosure implements the modification of the document block content, the modification of the document block content will be described below.
FIG. 14 is a flowchart of still another document editing method according to an embodiment of the present disclosure, as shown in FIG. 14, where the document editing method further includes:
s401, obtaining a target word position of the document word insertion cursor in the first document block.
Specifically, the document word insertion cursor is a marking means for prompting the user of the position of the target word insertion, and may be a manner capable of performing position marking, such as a cursor, a line feed, a blank line, a special symbol, a font expansion or contraction, or a combination of the above manners, which is not limited in this embodiment. A different marking means is typically used than the document block insertion cursor to facilitate user differentiation.
S402, receiving document content input in an input box associated with a document word insertion cursor, and inserting the document content into a target word position according to a sending instruction of a user to generate a modified first document block.
It should be emphasized that the document content input by the input box is the insertion of the current document block content, so that a new document block is not generated, and other existing document block contents are not affected, and the damage to the content structure of other parts of the document when the user inserts the current document block content can be prevented.
S403, inquiring the document information to obtain the block information of the first document block, and replacing the first document block content with the modified first document block content.
It should be appreciated that the modification of the first document block content, when stored in the document information, is embodied as a change in the content in the block information of the first document block. One possible implementation manner is that, as shown in fig. 15, before the content is modified, the text is "today's weather is clear and cloudless, and is good for a trip", and after the content is modified, the text is changed to "today's weather is clear and cloudless, and the weather is bad for a gentle wind, and is good for a trip".
Therefore, the content modification of the document block is realized, the document block is replaced as a whole, the error operation of a user is reduced, and the content structure of the document is maintained.
In order to achieve the above embodiments, the embodiments of the present disclosure further provide a document editing apparatus, and fig. 16 is a schematic structural diagram of a document editing apparatus provided in the embodiments of the present disclosure, as shown in fig. 16, the document editing apparatus includes: the first obtaining module 501, the second obtaining module 502, the first inserting module 503, and the generating and saving module 504.
A first obtaining module 501 is configured to obtain that a document block inserted cursor reaches a target block position in a document.
A second obtaining module 502, configured to receive the document content input in the input box associated with the document block insertion cursor, and the set document type corresponding to the document content.
An inserting module 503, configured to insert the document content into the target block position according to the sending instruction of the user to generate the target document block.
The generation and storage module 504 is configured to generate block information of the target document block according to the target block position, the document content and the document type according to a preset format, and store the block information in the document information.
Further, in order to transmit the document stored locally, as shown in fig. 17, one possible implementation manner is that the document editing apparatus further includes: a fifth obtaining module 901, a sending module 902.
A fifth obtaining module 901, configured to obtain a document transmission instruction;
a sending module 902, configured to send the document and the document information to the target device.
It should be noted that the foregoing explanation of the embodiment based on the online document restoring method is also applicable to the online document restoring apparatus of this embodiment, and will not be repeated here.
In summary, in the document editing apparatus according to one embodiment of the present disclosure, first, a target block position, at which a Wen Dangkuai insertion cursor reaches in a document, is obtained; then receiving the document content input in an input box associated with the document block insertion cursor and the set document type corresponding to the document content; then the document content is inserted into the target block position to generate a target Wen Dangkuai; and finally, generating block information of the target document block according to the target block position, the document content and the document type according to a preset format, and storing the block information in the document information. Therefore, clear separation of document contents is realized, error operation of a user is reduced, the content structure of the document is maintained, the editing efficiency of the document contents is improved, and the technical problems that the document editing is easy to make mistakes, the document content structure is destroyed and the efficiency is low in the prior art are solved.
In order to implement the above-mentioned embodiments, the present disclosure further proposes another document editing apparatus, and fig. 18 is a schematic structural view of another document editing apparatus provided in the embodiment of the present disclosure, as shown in fig. 18, the document editing apparatus further includes: the mobile module 601, the first replacement module 602.
A moving module 601, configured to receive a moving instruction for a first document block in a document, and move the first document block from a first block position to a second block position before moving;
the first replacing module 602 is configured to query the document information to obtain block information of a first document block, and replace the first block position with the second block position.
It should be noted that the foregoing explanation of the embodiment based on the online document restoring method is also applicable to the online document restoring apparatus of this embodiment, and will not be repeated here.
Therefore, the whole flexible movement of the document block is realized, and the adjustment of the document structure is convenient.
In order to implement the above-described embodiments, the present disclosure further proposes another document editing apparatus, and fig. 19 is a schematic structural view of another document editing apparatus provided in the embodiment of the present disclosure, and as shown in fig. 19, the document editing apparatus further includes: the exchange module 701, the second replacement module 702.
A swap module 701, configured to receive a swap instruction for a first document block and a second document block in a document, move the first document block from a first block position where the first document block was before moving to a second block position where the second document block was before moving, and move the second document block from the second block position to the first block position;
The second replacing module 702 is configured to query document information to obtain block information of a first document block and a second document block, replace a first block position with a second block position, and replace the second block position with the first block position.
It should be noted that the foregoing explanation of the embodiment based on the online document restoring method is also applicable to the online document restoring apparatus of this embodiment, and will not be repeated here.
Therefore, flexible exchange among the document blocks is realized, local adjustment of the document structure is facilitated, compared with the scheme that two document blocks are respectively moved, the method and the device save operation steps, improve editing efficiency and provide editing experience for users.
In order to achieve the above-mentioned embodiments, the present disclosure further proposes a further document editing apparatus, and fig. 20 is a schematic structural diagram of the further document editing apparatus provided in the embodiment of the present disclosure, as shown in fig. 20, the document editing apparatus further includes: a third acquisition module 801, a fourth acquisition module 802, and a third replacement module 803.
A third obtaining module 801, configured to obtain that a document word insertion cursor reaches a target word position in the first document block;
a fourth obtaining module 802, configured to receive the document content input in the input box associated with the document word insertion cursor, insert the document content into the target word position according to the sending instruction of the user, and generate the modified first document block.
A third replacing module 803 is configured to receive the document content input in the input box associated with the document word insertion cursor, insert the document content into the target word position according to the sending instruction of the user, and generate a modified first document block.
It should be noted that the foregoing explanation of the embodiment based on the online document restoring method is also applicable to the online document restoring apparatus of this embodiment, and will not be repeated here.
Therefore, the content modification of the document block is realized, the document block is replaced as a whole, the error operation of a user is reduced, and the content structure of the document is maintained.
In order to implement the above-described embodiments, the present disclosure also proposes a storage medium having stored thereon a computer program which, when executed by a processor, implements the online document retrieval method as described in the foregoing method embodiments.
Fig. 21 is a schematic diagram illustrating a storage medium according to an embodiment of the present disclosure. As shown in fig. 21, a storage medium 1000 according to an embodiment of the present disclosure has stored thereon computer readable instructions 1001. When executed by a processor, the computer readable instructions 1001 perform all or part of the steps of the online document retrieval method of embodiments of the present disclosure described previously.
Referring now to fig. 22, a schematic diagram of an electronic device 1100 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook 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 the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 22 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 22, the electronic device 1100 may include a processing means (e.g., a central processor, a graphics processor, etc.) 1101 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage means 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data necessary for the operation of the electronic device 1100 are also stored. The processing device 1101, ROM 1102, and RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
In general, the following devices may be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 1107 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 1108, including for example, magnetic tape, hard disk, etc.; and a communication device 1109. The communication means 1109 may allow the electronic device 1100 to communicate wirelessly or by wire with other devices to exchange data. While fig. 22 shows an electronic device 1100 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 1109, or from storage device 1108, or from ROM 1102. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 1101.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by the node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the above technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a non-transitory storage medium, such as a magnetic disk, an optical disk, a read-only memory (ROM) or a random-access memory (RAM), etc., comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are merely for illustrating the technical solution of the present disclosure, and are not limiting thereof; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.
Claims (10)
1. A document editing method, comprising the steps of:
aggregating document contents belonging to the same content plate in the document to determine at least one document block;
acquiring the position of a file block inserted into a cursor to reach a target block in a file;
receiving document content input in an input box associated with the document block insertion cursor, and a set document type corresponding to the document content;
inserting the document content into the target block location generation target Wen Dangkuai;
and generating block information of the target file block according to the target block position, the file content and the file type according to a preset format, and storing the block information in the file information.
2. The method as recited in claim 1, further comprising:
receiving a moving instruction of a first document block in the document, and moving the first document block from a first block position to a second block position before moving;
and inquiring the document information to acquire the block information of the first document block, and replacing the first block position with the second block position.
3. The method as recited in claim 1, further comprising:
receiving an exchange instruction for a first document block and a second document block in the document, moving the first document block from a first block position before moving to a second block position before moving the second document block, and moving the second document block from the second block position to the first block position;
Querying the document information to obtain block information of the first document block and the second document block, replacing the first block position with the second block position, and replacing the second block position with the first block position.
4. The method as recited in claim 1, further comprising:
obtaining the position of a target word, which is reached by a document word insertion cursor, in a first document block;
receiving document content input in an input box associated with the document word insertion cursor, and inserting the document content into the target word position to generate a modified first document block;
inquiring the document information to obtain the block information of the first document block, and replacing the first document block content with the modified first document block content.
5. The method of any one of claims 1-4, further comprising:
acquiring a document transmission instruction;
and transmitting the document and the document information to a target device.
6. A document editing apparatus, the apparatus comprising:
the first acquisition module is used for gathering document contents belonging to the same content plate in the document to determine at least one document block; acquiring the position of a file block inserted into a cursor to reach a target block in a file;
The second acquisition module is used for receiving the document content input in an input box associated with the document block insertion cursor and the set document type corresponding to the document content;
an inserting module for inserting the document content into the target block position generation target Wen Dangkuai;
and the generation and storage module is used for generating block information of the target document block according to the target block position, the document content and the document type according to a preset format and storing the block information in the document information.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the moving module is used for receiving a moving instruction of a first document block in the document and moving the first document block from a first block position to a second block position before moving;
and the first replacing module is used for inquiring the document information to acquire the block information of the first document block and replacing the first block position with the second block position.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the exchange module is used for receiving an exchange instruction of a first document block and a second document block in the document, moving the first document block from a first block position before moving to a second block position before moving the second document block, and moving the second document block from the second block position to the first block position;
And the second replacing module is used for inquiring the document information to acquire block information of the first document block and the second document block, replacing the first block position with the second block position and replacing the second block position with the first block position.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the document editing method according to any of claims 1-5 when the program is executed.
10. A storage medium having stored thereon a computer program, which when executed by a processor implements a document editing method as claimed in any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190516.1A CN109492208B (en) | 2018-10-12 | 2018-10-12 | Document editing method and device, equipment and storage medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190516.1A CN109492208B (en) | 2018-10-12 | 2018-10-12 | Document editing method and device, equipment and storage medium thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109492208A CN109492208A (en) | 2019-03-19 |
CN109492208B true CN109492208B (en) | 2023-06-23 |
Family
ID=65689835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811190516.1A Active CN109492208B (en) | 2018-10-12 | 2018-10-12 | Document editing method and device, equipment and storage medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109492208B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111753510B (en) * | 2019-03-28 | 2023-06-20 | 珠海金山办公软件有限公司 | Information input method, input device, electronic equipment and storage medium |
CN112100122B (en) * | 2019-06-18 | 2022-11-04 | 珠海金山办公软件有限公司 | Method and device for storing picture |
CN112637039B (en) * | 2020-07-24 | 2021-11-02 | 腾讯科技(深圳)有限公司 | Information processing method, device and storage medium |
CN112380819B (en) * | 2020-11-17 | 2024-06-21 | 北京字跳网络技术有限公司 | Document editing method and device and electronic equipment |
CN115081423A (en) * | 2022-06-30 | 2022-09-20 | 北京字跳网络技术有限公司 | Document editing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1853180A (en) * | 2003-02-14 | 2006-10-25 | 尼维纳公司 | System and method for semantic knowledge retrieval, management, capture, sharing, discovery, delivery and presentation |
US7167844B1 (en) * | 1999-12-22 | 2007-01-23 | Accenture Llp | Electronic menu document creator in a virtual financial environment |
CN101950289A (en) * | 2007-07-09 | 2011-01-19 | 孟智平 | Method and system for webpage semantics |
CN106937531A (en) * | 2014-06-14 | 2017-07-07 | 奇跃公司 | Method and system for producing virtual and augmented reality |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7546602B2 (en) * | 2001-07-10 | 2009-06-09 | Microsoft Corporation | Application program interface for network software platform |
US20050165829A1 (en) * | 2003-11-04 | 2005-07-28 | Jeffrey Varasano | Systems, Methods and Computer Program Products for Developing Enterprise Software Applications |
GB2433403B (en) * | 2005-12-16 | 2009-06-24 | Emil Ltd | A text editing apparatus and method |
CN107291683A (en) * | 2016-04-11 | 2017-10-24 | 珠海金山办公软件有限公司 | A kind of spell checking methods and device |
CN107977346B (en) * | 2017-11-23 | 2021-06-15 | 深圳市亿图软件有限公司 | PDF document editing method and terminal equipment |
-
2018
- 2018-10-12 CN CN201811190516.1A patent/CN109492208B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7167844B1 (en) * | 1999-12-22 | 2007-01-23 | Accenture Llp | Electronic menu document creator in a virtual financial environment |
CN1853180A (en) * | 2003-02-14 | 2006-10-25 | 尼维纳公司 | System and method for semantic knowledge retrieval, management, capture, sharing, discovery, delivery and presentation |
CN101950289A (en) * | 2007-07-09 | 2011-01-19 | 孟智平 | Method and system for webpage semantics |
CN106937531A (en) * | 2014-06-14 | 2017-07-07 | 奇跃公司 | Method and system for producing virtual and augmented reality |
Also Published As
Publication number | Publication date |
---|---|
CN109492208A (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109492208B (en) | Document editing method and device, equipment and storage medium thereof | |
CN107273083B (en) | Interaction method, device, equipment and storage medium between terminal equipment | |
CN109491742B (en) | Page table rendering method and device | |
CN109710905B (en) | Document collaborative editing method and device, storage medium and electronic equipment | |
CN111797603B (en) | Method and device for browsing table in document, electronic equipment and storage medium | |
CN112073307B (en) | Mail processing method, mail processing device, electronic equipment and computer readable medium | |
CN110545236A (en) | Instant messaging message modification method and device, storage medium and electronic equipment | |
CN112328927B (en) | Document processing method and device, readable medium and electronic equipment | |
CN109145272B (en) | Text rendering and layout method, device, equipment and storage medium | |
US20240193352A1 (en) | Electronic document processing method and apparatus, terminal and storage medium | |
CN109446199A (en) | Cell data processing method and device | |
CN109492200A (en) | Cooperated documents restoring method, device, storage medium and electronic equipment | |
CN109688051A (en) | Session list display methods, device and electronic equipment | |
CN114997114B (en) | Document updating method, device, equipment and medium | |
CN111782329A (en) | Node dragging method, device, equipment and computer readable medium | |
CN111641690B (en) | Session message processing method and device and electronic equipment | |
CN115174509B (en) | Information processing method, device, equipment and medium | |
CN116450129A (en) | Page layout method and device, electronic equipment and storage medium | |
CN111290861B (en) | Message processing method and device and electronic equipment | |
CN112507670A (en) | Text editing method and device, electronic equipment and storage medium | |
CN112258594A (en) | Character display method and device, electronic equipment and computer readable storage medium | |
CN115237291B (en) | Information processing method, device, equipment and medium | |
CN115270734B (en) | Method, device, equipment and medium for processing message based on session | |
CN111787043A (en) | Data request method and device | |
CN114997115B (en) | Document processing method, device, equipment and medium |
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 |