CN109492208A - Document edit method and its device, equipment, storage medium - Google Patents

Document edit method and its device, equipment, storage medium Download PDF

Info

Publication number
CN109492208A
CN109492208A CN201811190516.1A CN201811190516A CN109492208A CN 109492208 A CN109492208 A CN 109492208A CN 201811190516 A CN201811190516 A CN 201811190516A CN 109492208 A CN109492208 A CN 109492208A
Authority
CN
China
Prior art keywords
document
block
piece
content
vernier
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
CN201811190516.1A
Other languages
Chinese (zh)
Other versions
CN109492208B (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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811190516.1A priority Critical patent/CN109492208B/en
Publication of CN109492208A publication Critical patent/CN109492208A/en
Application granted granted Critical
Publication of CN109492208B publication Critical patent/CN109492208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0484Interaction 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 present disclosure proposes that a kind of document edit method, the document edit methods include: the target block positions obtained in document block insertion vernier arrival document;It receives and is being inserted into the document content inputted in the associated input frame of vernier, and the Doctype corresponding with document content of setting with document block;Document content is inserted into target block positions and generates destination document block;The block message of destination document block is generated according to target block positions, document content and Doctype according to preset format and is stored in document information.Thus, the clearly separation for realizing document content, reduces the faulty operation of user, keeps the content structure of document, the editorial efficiency for improving document content, solves the technical issues of documents editing in the prior art is error-prone, document content architecture is destroyed, inefficiency.

Description

Document edit method and its device, equipment, storage medium
Technical field
This disclosure relates to field of computer technology more particularly to a kind of document edit method and its device, equipment, storage Jie Matter.
Background technique
Currently, user can complete the edit operation to various documents on an electronic device, documents editing is carried out in user When, it generally requires for the document contents such as certain section of text or certain width picture to be inserted into the current document edited.
In the related technology, the different content that entire document is distinguished by newline, paragraph indentation, exists so as to cause user Since content separation is not clear enough when editor, the insertion position of mistake is easily chosen, document content architecture is destroyed, reduces document Edition Contains efficiency.
Summary of the invention
The disclosure is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the disclosure is to propose a kind of document edit method, to realize defining for document content Separate, reduces the faulty operation of user, keep the content structure of document, improve the editorial efficiency of document content, solve existing The technical issues of documents editing is error-prone in technology, document content architecture is destroyed, inefficiency.
Second purpose of the disclosure is to propose a kind of document editing device.
The third purpose of the disclosure is to propose a kind of electronic equipment.
4th purpose of the disclosure is to propose a kind of storage medium.
In order to achieve the above object, the document edit method of disclosure first aspect embodiment, comprising the following steps: obtain document Block is inserted into the target block positions in vernier arrival document;Receive with the document block insertion the associated input frame of vernier in input Document content, and setting Doctype corresponding with the document content;The document content is inserted into the mesh It marks block position and generates destination document block;According to preset format according to the target block positions, the document content and the text Shelves type generates the block message of the destination document block and is stored in document information.
In addition, the document edit method of the embodiment of the present disclosure, also has following additional technical characteristic:
Optionally, the move to the first document block in the document is received, by the first document block before movement First piece of position be moved to second piece of position;The block message that the document information obtains the first document block is inquired, by institute It states first piece of position and replaces with second piece of position.
Optionally, user is received to the exchange instruction of the first document block and the second document block in the document, by described the First piece position of the one document block where before movement is moved to second piece of position at the mobile preceding place of the second document block, with And the second document block is moved to first piece of position from second piece of position;It inquires the document information and obtains institute First piece of position is replaced with second piece of position by the block message for stating the first document block and the second document block, with And second piece of position is replaced with into first piece of position.
Optionally, the target word location in document words insertion vernier the first document block of arrival is obtained;Receive with the text The document content inputted in the shelves word insertion associated input frame of vernier, instructs according to the transmission of the user by the document content It is inserted into the target word location and generates modified first document block;It inquires the document information and obtains the first document block Block message, the first document block content is replaced with into modified first document block content.
Optionally, document transmission instruction is obtained;The document and the document information are sent to target device.
The document editing device of disclosure second aspect embodiment, comprising: first obtains module, inserts for obtaining document block Enter the target block positions in vernier arrival document;Second obtains module, is associated with for receiving with document block insertion vernier Input frame in the document content that inputs, and the Doctype corresponding with the document content of setting;It is inserted into module, is used for The document content is inserted into the target block positions and generates destination document block;Preserving module is generated, for according to default lattice Formula generates the block message of the destination document block simultaneously according to the target block positions, the document content and the Doctype It is stored in document information.
Optionally, the document editing device further include: mobile module, for receiving to the first document block in the document Move, the first document block is moved to second piece of position from first piece of position before movement;First replacement module, First piece of position is replaced with described second by the block message that the first document block is obtained for inquiring the document information Block position.
Optionally, the document editing device further include: Switching Module, for receiving to the first document block in the document With the exchange instruction of the second document block, the first document block is moved to described second from first piece of position at mobile preceding place Second piece of position where before document block is mobile, and the second document block is moved to described the from second piece of position One piece of position;Second replacement module obtains the first document block and the second document block for inquiring the document information Block message, first piece of position is replaced with into second piece of position, and second piece of position replaced with described First piece of position.
Optionally, the document editing device further include: third obtains module, reaches for obtaining document words insertion vernier Target word location in first document block;4th obtains module, for receiving associated defeated with document words insertion vernier Enter the document content inputted in frame, the document content is inserted into the target word location and generates modified first document Block;Third replacement module obtains the block message of the first document block for inquiring the document information, by first document Block content replaces with modified first document block content.
Optionally, the document editing device further include: the 5th obtains module, for obtaining document transmission instruction;It sends Module, for the document and the document information to be sent to target device.
The electronic equipment of disclosure third aspect embodiment, comprising: memory, processor and storage are on a memory and can The computer program run on a processor when the processor executes described program, is realized as described in preceding method embodiment Document edit method.
The storage medium of disclosure fourth aspect embodiment, is stored thereon with computer program, which is held by processor The document edit method as described in preceding method embodiment is realized when row.
The embodiment of the present disclosure provide technical solution may include it is following the utility model has the advantages that
The document content collection for belonging to same content plate is combined into a document block, will in the prior art by cursor, change The insertion that row symbol carries out document content becomes the whole insertion of document block, and document block is edited and protected as a whole It deposits, realizes the clearly separation of document content, reduce the faulty operation of user, keep the content structure of document, improve in document The editorial efficiency of appearance.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the effect diagram of document content insertion method in the prior art;
Fig. 2 is a kind of flow diagram of document edit method provided by the embodiment of the present disclosure;
Fig. 3 is a kind of effect signal for possible implementation that document block provided by the embodiment of the present disclosure is inserted into vernier Figure;
Fig. 4 is the effect diagram that user provided by the embodiment of the present disclosure drags that document block is inserted into vernier;
Fig. 5 is the display diagram of different type document content provided by the embodiment of the present disclosure;
Fig. 6 is that a kind of effect for possible implementation that user provided by the embodiment of the present disclosure inputs document content is shown It is intended to;
Fig. 7 is the effect for the alternatively possible implementation that user provided by the embodiment of the present disclosure inputs document content Schematic diagram;
Fig. 8 is a kind of possible implementation that the block message of destination document block provided by the embodiment of the present disclosure saves Effect diagram;
Fig. 9 is the alternatively possible implementation that the block message of destination document block provided by the embodiment of the present disclosure saves Effect diagram;
Figure 10 is the flow diagram of another kind document edit method provided by the embodiment of the present disclosure;
Figure 11 is that one kind of the block message variation of the mobile context link stopper in position provided by the embodiment of the present disclosure is possible The effect diagram of implementation;
Figure 12 is the flow diagram of another document edit method provided by the embodiment of the present disclosure;
Figure 13 is that one kind of the block message variation of place-exchange context link stopper provided by the embodiment of the present disclosure is possible The effect diagram of implementation;
Figure 14 is the flow diagram of another document edit method provided by the embodiment of the present disclosure;
Figure 15 is that one kind of the block message variation of content modification context link stopper provided by the embodiment of the present disclosure is possible The effect diagram of implementation;
Figure 16 is a kind of structural schematic diagram of document editing device provided by the embodiment of the present disclosure;
Figure 17 is a kind of a kind of possible reality of document editing device realization document transmission provided by the embodiment of the present disclosure The structural schematic diagram of existing mode;
Figure 18 is the structural schematic diagram of another kind document editing device provided by the embodiment of the present disclosure;
Figure 19 is the structural schematic diagram of another document editing device provided by the embodiment of the present disclosure;
Figure 20 is the structural schematic diagram of another document editing device provided by the embodiment of the present disclosure;
Figure 21 is the schematic diagram for illustrating storage medium according to an embodiment of the present disclosure;
Figure 22 is the structural schematic diagram for illustrating the electronic equipment according to the embodiment of the present disclosure.
Specific embodiment
Embodiment of the disclosure is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings the document edit method and its device, equipment, storage medium of the embodiment of the present disclosure are described.
Existing document content edit methods are mainly distinguished by newline, paragraph indentation in the difference of entire document Hold.As shown in Figure 1, user wishes to be inserted into one section of new content of text after N sections into document content, but because forget to input Newline causes insertion position selection mistake to reduce document content editor so that original content and new content are destructurized Efficiency is experienced with document content editor is affected.
In the embodiment of the present disclosure, by the way that the document content collection for belonging to same content plate is combined into a document block, and will Document block is edited and is saved as a whole, to realize the clearly separation of document content, reduces the faulty operation of user, The content structure for keeping document, improves the editorial efficiency of document content.
Specifically, Fig. 2 is a kind of flow diagram of document edit method provided by the embodiment of the present disclosure.
Method provided by the present embodiment can be executed by the application program for documents editing.The present embodiment is executed to be mentioned It may operate in PC (PC) end for the application program of method, those skilled in the art could be aware that, the end PC is only one kind Possible implementation, the application program are equally applicable to other electronic equipments, such as: mobile phone, smart phone, notebook electricity Brain, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), is led at digit broadcasting receiver The mobile electronic device of boat device, vehicle electronic device, car-mounted display electronics, vehicle electronics rearview mirror etc. and such as number The stationary electronic devices of TV etc..
As shown in Fig. 2, the document edit methods include:
S101 obtains the target block positions in document block insertion vernier arrival document.
Specifically, the document edit method of the embodiment of the present disclosure is the editor based on document block, i.e., by entire document according to Practical application needs to be divided into different document blocks, for example divides entire text according to the paragraph structure and sentence structure of entire document Shelves, obtain at least one document block;Processing is either carried out to entire document by preset documents editing model and generates correspondence Multiple document blocks composition entire document JSON data mode.
To which user can according to the actual application edit document based on document block.Dragging text is obtained first Link stopper is inserted into the target block positions in vernier arrival document, that is, user is inserted into vernier selection needs by dragging document block and inserts Enter the position of destination document block as target block positions.Wherein, destination document block is the document block that user will be inserted into.
Wherein, document block insertion vernier is the indicia means of target block positions, for prompting ownership goal document block to be inserted into Position, can be cursor, newline, null, additional character, font and the side for being able to carry out position mark such as zoom in or out Formula can also be the combination of the above several ways, not limit this in the present embodiment.
As an example, as shown in figure 3, document block insertion vernier is the symmetric figure of page left and right ends, user thinks Destination document block is inserted between document block 1 and document block 2, by document block insertion vernier be moved to document block 1 and document block 2 it Between, that corresponding row of document block insertion vernier becomes null, to prompt the insertion position of ownership goal document block, clearly indicates Target block positions prevent user insertion position from selecting mistake.
It should be understood that document block insertion vernier is not related to for the document block insertion between document block to existing text The modification of the inner content of link stopper.
It should be strongly noted that as shown in figure 4, user can drag document block insertion vernier to change object block position It sets, is changed the position at place after the insertion of destination document block, further increases the flexibility of documents editing, improve user's text Shelves editor's experience.
S102, receive with the document content that inputs in the document block insertion associated input frame of vernier, and setting with The corresponding Doctype of document content.
Wherein, refer to the document block insertion associated input frame of vernier in obtaining document block insertion vernier arrival document After target block positions, the content inputted in input frame is corresponding with the target block positions that document block insertion vernier reaches.
Specifically, the document content of input frame input can be text, picture, link etc., and wherein text can be grade mark Topic, second level title, three-level title, text, note etc., picture can be normal picture, dynamic picture etc., and link can be audio Link, video link, web page interlinkage etc..
It should be understood that the document content inputted in each document block is same type of, and in input document Corresponding Doctype is set simultaneously when content, as shown in figure 5, being an article in document, not according to the type of document content Together, article level-one title, article second level title, article three-level title, article text, article illustration are divided into different document blocks It is inputted.Further, the corresponding Doctype of different document block is user setting.
Document content is inserted into target block positions and generates destination document block by S103.
Specifically, user is inserted into the document content that input frame inputs in document block insertion vernier position, Generate destination document block.
It is a kind of it is possible is achieved in that, as shown in fig. 6, user is when input frame inputs document content, the document of input Content only shows that is, document block insertion vernier position does not show the document content of input in input frame, when receiving use After the transmission instruction at family, the document content in current input frame is generated into destination document block and is inserted into target block positions.
Alternatively possible is achieved in that, as shown in fig. 7, user input frame input document content when, the text of input Shelves content is not only shown in input frame, but also is inserted into vernier position simultaneous display in document block, when receiving user's After sending instruction, the document content of document block insertion vernier position simultaneous display is arranged, destination document block is generated.
S104 generates destination document block according to target block positions, document content and Doctype according to preset format Block message is simultaneously stored in document information.
Specifically, preset format is that the block message of document block is stored in the unified format used in document information, by system Or it manually presets.
One kind is possible to be achieved in that, as shown in figure 8, the block message of document block is deposited with JSON data mode Storage, target block positions, document content, Doctype are stored in the form of the key-value pair of index, text, type respectively, The key-value pairs such as text, id, index, level, type have collectively constituted the block message of destination document block.
Alternatively possible is achieved in that, as shown in figure 9, the block message of document block is deposited in the form of database Storage, sets target block positions, document content, Doctype to the field of database, and the field and field value in database are total It is same to constitute the block message of destination document block.
Further, it is transmitted in order to which local document will be stored in, one kind is possible to be achieved in that, document is obtained Transmission instruction, is sent to target device for document and document information, realizes the shared of local document, realizes synergetic office work, Improve working efficiency.
It should be understood that the application program in target device is when reading document, according to local identical default lattice Formula is read out and shows to document information.
In conclusion the document edit method of an embodiment of the present disclosure, acquisition document block insertion vernier first reaches text Target block positions in shelves;Then the document content for receiving and being inputted in the document block insertion associated input frame of vernier, Yi Jishe The Doctype corresponding with document content set;Document content is inserted into target block positions again and generates destination document block;Finally The block message of destination document block is generated according to target block positions, document content and Doctype according to preset format and is stored in In document information.Hereby it is achieved that the clearly separation of document content, reduces the faulty operation of user, the content knot of document is kept Structure improves the editorial efficiency of document content, solve documents editing in the prior art is error-prone, document content architecture is destroyed, The technical issues of inefficiency.
Description based on the above embodiment, it can be realized that how the document edit method of the embodiment of the present disclosure realizes target The insertion of document block, in order to those skilled in the art more understand the embodiment of the present disclosure document edit method how to realize document block it Between movement, the movement between document block will be illustrated below.
Figure 10 is the flow diagram of another kind document edit method provided by the embodiment of the present disclosure, as shown in Figure 10, The document edit methods further include:
S201 receives move to the first document block in document, by the first document block from first piece of position before movement It sets and is moved to second piece of position.
Specifically, the moving operation of user can be there are many form.One kind is possible to be achieved in that, user chooses first It is directly dragged to second piece of position from first piece of position by document block.Alternatively possible is achieved in that, user chooses One document block, is operated on it by the instruction moved up and down, it is gradually moved to second piece of position by first piece of position. Another is possible to be achieved in that, user chooses the first document block, input code instruction, such as " the second piece of position move to ", It is directly moved to second piece of position by first piece of position.
S202, inquiry document information obtain the block message of the first document block, first piece of position are replaced with second piece of position.
It should be understood that the position of the first document block is mobile, when being stored in document information, it is presented as the first document block Block message in block position be changed.One kind is possible to be achieved in that, as shown in figure 11, before position is mobile, text is The index value of the document block of " hello " is 2, and after position is mobile, text is that the index value of the document block of " hello " becomes 5.
To realize the flexible movement of document block entirety, facilitate the adjustment of file structure.
Description based on the above embodiment, it can be realized that how the document edit method of the embodiment of the present disclosure realizes target Movement between document block, in order to which those skilled in the art more understand how the document edit method of the embodiment of the present disclosure realizes document Exchange between block below will be illustrated the exchange between document block.
Figure 12 is the flow diagram of another document edit method provided by the embodiment of the present disclosure, as shown in figure 12, The document edit methods further include:
S301, receives to the exchange instruction of the first document block and the second document block in document, by the first document block from movement First piece of position at preceding place be moved to the second document block it is mobile before where second piece of position, and by the second document block from the Two pieces of positions are moved to first piece of position.
Specifically, the swap operation of user can be there are many form.One kind is possible to be achieved in that, user chooses first Document block, second piece of position where it is directly dragged to the second document block from first piece of position.Alternatively possible realization side Formula is, user chooses the first document block, input code instruction, such as " the second document of change to block ", by the first document block and the Two document blocks swap.Another is possible to be achieved in that, user directly inputs code command without choosing document block, Such as " exchange the first document the second document of block block ", the first document block and the second document block are swapped.
S302, inquiry document information obtain the block message of the first document block and the second document block, first piece of position are replaced For second piece of position, and second piece of position replaced with into first piece of position.
It should be understood that the swap operation of the first document block and the second document block, when being stored in document information, embodies It is swapped for the block position in the block message of the first document block with the block position in the block message of the second document block.A kind of possibility Be achieved in that, as shown in figure 13, before position is mobile, it be 2, text is " you " that text, which is the index value of the document block of " I ", Document block index value be 3, the document block that text be " I " is moved to after the document block that text is " you ", position shifting After dynamic, text is that the index value of the document block of " I " becomes the index value of the document block that 3, text is " you " and becomes 2.
To realize the flexible exchange between document block, facilitate the local directed complete set of file structure, and to two document blocks The scheme for carrying out moving operation respectively is compared, and is saved operating procedure, is improved editorial efficiency, and editor's experience of user is provided.
Description based on the above embodiment, it can be realized that how the document edit method of the embodiment of the present disclosure realizes target Exchange between document block, in order to which those skilled in the art more understand how the document edit method of the embodiment of the present disclosure realizes document The modification of block content below will be illustrated the modification of document block content.
Figure 14 is the flow diagram of another document edit method provided by the embodiment of the present disclosure, as shown in figure 14, The document edit methods further include:
S401 obtains the target word location in document words insertion vernier the first document block of arrival.
Specifically, document words insertion vernier is the indicia means of target word location, for prompting ownership goal word to be inserted into Position can be cursor, newline, null, additional character, font and the mode for being able to carry out position mark such as zoom in or out, It can also be the combination of the above several ways, do not limited this in the present embodiment.Usually with document block insertion vernier using not Same indicia means are in order to user's differentiation.
S402 is received and is being inserted into the document content inputted in the associated input frame of vernier with document words, according to the hair of user It send instruction that document content is inserted into target word location and generates modified first document block.
It is emphasized that the document content of input frame input is the insertion to current document block content, will not generate new Document block, other existing document block contents will not be had an impact, can prevent user carry out current document block content The content structure of document other parts is damaged when insertion.
S403, inquiry document information obtains the block message of the first document block, after the first document block content is replaced with modification The first document block content.
It should be understood that the modification of the first document block content, when being stored in document information, is presented as the first document block Block message in content be changed.One kind is possible to be achieved in that, as shown in figure 15, before content modification, text is " modern It is fine, cloudless, is the fair weather gone on a tour ", after content modification, text becomes that " today is fine, Wan Liwu Cloud, a gentle breeze is blowing, is the fair weather gone on a tour ".
To realize the content modification of document block, document block is replaced as a whole, reduce the mistake of user Maloperation keeps the content structure of document.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes that a kind of document editing device, Figure 16 are that the disclosure is real A kind of structural schematic diagram of document editing device provided by example is applied, as shown in figure 16, the document editing device includes: first to obtain Modulus block 501, second obtains module 502, and the first insertion module 503 generates preserving module 504.
First obtains module 501, for obtaining the target block positions in document block insertion vernier arrival document.
Second obtains module 502, is inserted into the document inputted in the associated input frame of vernier for receiving with document block Hold, and the Doctype corresponding with document content of setting.
It is inserted into module 503, generates target for document content to be inserted into target block positions according to the transmission of user instruction Document block.
Preserving module 504 is generated, for raw according to target block positions, document content and Doctype according to preset format At destination document block block message and be stored in document information.
Further, it is transmitted in order to which local document will be stored in, one kind is possible to be achieved in that, such as Figure 17 institute Show, the document editing device further include: the 5th obtains module 901, sending module 902.
5th obtains module 901, for obtaining document transmission instruction;
Sending module 902, for document and document information to be sent to target device.
It should be noted that aforementioned be also applied for the implementation to the explanation based on online document restoration methods embodiment The online document recovery device of example, details are not described herein again.
In conclusion the document editing device of an embodiment of the present disclosure, acquisition document block insertion vernier first reaches text Target block positions in shelves;Then the document content for receiving and being inputted in the document block insertion associated input frame of vernier, Yi Jishe The Doctype corresponding with document content set;Document content is inserted into target block positions again and generates destination document block;Finally The block message of destination document block is generated according to target block positions, document content and Doctype according to preset format and is stored in In document information.Hereby it is achieved that the clearly separation of document content, reduces the faulty operation of user, the content knot of document is kept Structure improves the editorial efficiency of document content, solve documents editing in the prior art is error-prone, document content architecture is destroyed, The technical issues of inefficiency.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes another document editing device, and Figure 18 is the disclosure The structural schematic diagram of another kind document editing device provided by embodiment, as shown in figure 18, the document editing device further include: Mobile module 601, the first replacement module 602.
Mobile module 601, for receiving the move to the first document block in document, by the first document block before movement First piece of position be moved to second piece of position;
First replacement module 602 obtains the block message of the first document block for inquiring document information, first piece of position is replaced It is changed to second piece of position.
It should be noted that aforementioned be also applied for the implementation to the explanation based on online document restoration methods embodiment The online document recovery device of example, details are not described herein again.
To realize the flexible movement of document block entirety, facilitate the adjustment of file structure.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes that another document editing device, Figure 19 are the disclosure The structural schematic diagram of another document editing device provided by embodiment, as shown in figure 19, the document editing device further include: Switching Module 701, the second replacement module 702.
Switching Module 701, for receiving the exchange instruction to the first document block and the second document block in document, by the first text First piece position of the link stopper where before mobile be moved to the second document block it is mobile before where second piece of position, and by second Document block is moved to first piece of position from second piece of position;
Second replacement module 702 obtains the block message of the first document block and the second document block for inquiring document information, will First piece of position replaces with second piece of position, and second piece of position is replaced with first piece of position.
It should be noted that aforementioned be also applied for the implementation to the explanation based on online document restoration methods embodiment The online document recovery device of example, details are not described herein again.
To realize the flexible exchange between document block, facilitate the local directed complete set of file structure, and to two document blocks The scheme for carrying out moving operation respectively is compared, and is saved operating procedure, is improved editorial efficiency, and editor's experience of user is provided.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes that another document editing device, Figure 20 are the disclosure The structural schematic diagram of another document editing device provided by embodiment, as shown in figure 20, the document editing device further include: Third obtains module 801, and the 4th obtains module 802, third replacement module 803.
Third obtains module 801, for obtaining the target word location in document words insertion vernier the first document block of arrival;
4th obtains module 802, is inserted into the document inputted in the associated input frame of vernier for receiving with document words Hold, document content is inserted by target word location according to the transmission of user instruction and generates modified first document block.
Third replacement module 803 is inserted into the document inputted in the associated input frame of vernier for receiving with document words Hold, document content is inserted by target word location according to the transmission of user instruction and generates modified first document block.
It should be noted that aforementioned be also applied for the implementation to the explanation based on online document restoration methods embodiment The online document recovery device of example, details are not described herein again.
To realize the content modification of document block, document block is replaced as a whole, reduce the mistake of user Maloperation keeps the content structure of document.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes a kind of storage medium, is stored thereon with computer journey Sequence realizes the online document restoration methods as described in preceding method embodiment when the program is executed by processor.
Figure 21 is the schematic diagram for illustrating storage medium according to an embodiment of the present disclosure.As shown in figure 21, according to the disclosure The storage medium 1000 of embodiment, is stored thereon with computer-readable instruction 1001.When the computer-readable instruction 1001 by When managing device operation, all or part of the steps of the online document restoration methods of each embodiment of the disclosure above-mentioned is executed.
Below with reference to Figure 22, it illustrates the structural representations for the electronic equipment 1100 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Figure 22 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 22, electronic equipment 1100 may include processing unit (such as central processing unit, graphics processor etc.) 1101, it can be loaded at random according to the program being stored in read-only memory (ROM) 1102 or from storage device 1108 It accesses the program in memory (RAM) 1103 and executes various movements appropriate and processing.In RAM 1103, it is also stored with electricity Sub- equipment 1100 operates required various programs and data.Processing unit 1101, ROM 1102 and RAM1103 pass through bus 1104 are connected with each other.Input/output (I/O) interface 1105 is also connected to bus 1104.
In general, following device can connect to I/O interface 1105: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 1106 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 1107 of dynamic device etc.;Storage device 1108 including such as tape, hard disk etc.;And communication device 1109.Communication Device 1109 can permit electronic equipment 1100 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although Figure 22 shows The electronic equipment 1100 with various devices is gone out, it should be understood that being not required for implementing or having all dresses shown It sets.It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 1109, or from storage device 1108 are mounted, or are mounted from ROM 1102.When the computer program is executed by processing unit 1101, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product can store in non-transient storage media, as magnetic disk, CD, read-only memory (ROM) or with Machine storage memory (RAM) etc., including some instructions are used so that a computer equipment (can be personal computer, take Business device or the network equipment etc.) execute method described in certain parts of each embodiment or embodiment.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the disclosure, rather than its limitations;Although The disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, each embodiment technical solution of the disclosure that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of document edit method, which comprises the following steps:
Obtain the target block positions in document block insertion vernier arrival document;
Receive with the document content that inputs in the document block insertion associated input frame of vernier, and setting with the text The corresponding Doctype of shelves content;
The document content is inserted into the target block positions and generates destination document block;
The target text is generated according to the target block positions, the document content and the Doctype according to preset format The block message of link stopper is simultaneously stored in document information.
2. the method as described in claim 1, which is characterized in that further include:
Move to the first document block in the document is received, by the first document block from first piece of position before movement It is moved to second piece of position;
The block message that the document information obtains the first document block is inquired, first piece of position is replaced with described second Block position.
3. the method as described in claim 1, which is characterized in that further include:
The exchange instruction to the first document block and the second document block in the document is received, by the first document block before movement First piece of position at place be moved to the second document block it is mobile before where second piece of position, and by second document Block is moved to first piece of position from second piece of position;
The block message that the document information obtains the first document block and the second document block is inquired, by first piece of position It sets and replaces with second piece of position, and second piece of position is replaced with into first piece of position.
4. the method as described in claim 1, which is characterized in that further include:
Obtain the target word location in document words insertion vernier the first document block of arrival;
It receives and is being inserted into the document content inputted in the associated input frame of vernier with the document words, the document content is inserted into Modified first document block is generated to the target word location;
The block message that the document information obtains the first document block is inquired, the first document block content is replaced with into modification The first document block content afterwards.
5. the method as described in claim 1-4 is any, which is characterized in that further include:
Obtain document transmission instruction;
The document and the document information are sent to target device.
6. a kind of document editing device, which is characterized in that described device includes:
First obtains module, for obtaining the target block positions in document block insertion vernier arrival document;
Second obtains module, is being inserted into the document content inputted in the associated input frame of vernier with the document block for receiving, And the Doctype corresponding with the document content of setting;
It is inserted into module, generates destination document block for the document content to be inserted into the target block positions;
Preserving module is generated, is used for according to preset format according to the target block positions, the document content and the document Type generates the block message of the destination document block and is stored in document information.
7. device as claimed in claim 6, which is characterized in that described device further include:
Mobile module, for receiving the move to the first document block in the document, by the first document block from movement First piece of preceding position is moved to second piece of position;
First replacement module obtains the block message of the first document block for inquiring the document information, by described first piece Position replaces with second piece of position.
8. device as claimed in claim 6, which is characterized in that described device further include:
Switching Module, for receiving the exchange instruction to the first document block and the second document block in the document, by described first First piece position of the document block where before movement is moved to second piece of position at the mobile preceding place of the second document block, and The second document block is moved to first piece of position from second piece of position;
Second replacement module obtains the block letter of the first document block and the second document block for inquiring the document information Breath, replaces with second piece of position for first piece of position, and second piece of position is replaced with described first piece Position.
9. a kind of electronic equipment characterized by comprising memory, processor and storage are on a memory and can be in processor The computer program of upper operation when the processor executes described program, realizes such as document as claimed in any one of claims 1 to 5 Edit methods.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor Such as document edit method as claimed in any one of claims 1 to 5.
CN201811190516.1A 2018-10-12 2018-10-12 Document editing method and device, equipment and storage medium thereof Active CN109492208B (en)

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 true CN109492208A (en) 2019-03-19
CN109492208B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753510A (en) * 2019-03-28 2020-10-09 珠海金山办公软件有限公司 Information input method, input device, electronic equipment and storage medium
CN112100122A (en) * 2019-06-18 2020-12-18 珠海金山办公软件有限公司 Method and device for storing picture
CN112380819A (en) * 2020-11-17 2021-02-19 北京字跳网络技术有限公司 Document editing method and device and electronic equipment
CN112637039A (en) * 2020-07-24 2021-04-09 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
WO2024002051A1 (en) * 2022-06-30 2024-01-04 北京字跳网络技术有限公司 Document editing method and apparatus, and electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177282A1 (en) * 2001-07-10 2003-09-18 Andres Hejlsberg 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
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
CN101361064A (en) * 2005-12-16 2009-02-04 Emil有限公司 A text editing apparatus and method
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
CN107291683A (en) * 2016-04-11 2017-10-24 珠海金山办公软件有限公司 A kind of spell checking methods and device
CN107977346A (en) * 2017-11-23 2018-05-01 万兴科技股份有限公司 A kind of PDF document edit methods and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
US20030177282A1 (en) * 2001-07-10 2003-09-18 Andres Hejlsberg Application program interface for network software platform
CN1853180A (en) * 2003-02-14 2006-10-25 尼维纳公司 System and method for semantic knowledge retrieval, management, capture, sharing, discovery, delivery and presentation
US20050165829A1 (en) * 2003-11-04 2005-07-28 Jeffrey Varasano Systems, Methods and Computer Program Products for Developing Enterprise Software Applications
CN101361064A (en) * 2005-12-16 2009-02-04 Emil有限公司 A text editing apparatus and method
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
CN107291683A (en) * 2016-04-11 2017-10-24 珠海金山办公软件有限公司 A kind of spell checking methods and device
CN107977346A (en) * 2017-11-23 2018-05-01 万兴科技股份有限公司 A kind of PDF document edit methods and terminal device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753510A (en) * 2019-03-28 2020-10-09 珠海金山办公软件有限公司 Information input method, input device, electronic equipment and storage medium
CN111753510B (en) * 2019-03-28 2023-06-20 珠海金山办公软件有限公司 Information input method, input device, electronic equipment and storage medium
CN112100122A (en) * 2019-06-18 2020-12-18 珠海金山办公软件有限公司 Method and device for storing picture
CN112100122B (en) * 2019-06-18 2022-11-04 珠海金山办公软件有限公司 Method and device for storing picture
CN112637039A (en) * 2020-07-24 2021-04-09 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN112637039B (en) * 2020-07-24 2021-11-02 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
US11972205B2 (en) 2020-07-24 2024-04-30 Tencent Technology (Shenzhen) Company Limited Method, apparatus and storage medium for loading message into target position in target document
CN112380819A (en) * 2020-11-17 2021-02-19 北京字跳网络技术有限公司 Document editing method and device and electronic equipment
WO2024002051A1 (en) * 2022-06-30 2024-01-04 北京字跳网络技术有限公司 Document editing method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN109492208B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN109492208A (en) Document edit method and its device, equipment, storage medium
CN109408685A (en) Mind map methods of exhibiting and device
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN109375918A (en) Interface rendering method, device, electronic equipment and the storage medium of small routine
CN109871388A (en) Data cache method, device, whole electronic equipment and storage medium
JP2020504865A (en) Application data processing method, apparatus, and storage medium
US9971480B2 (en) Methods and apparatus for providing graphical view of digital content
CN109710905A (en) Document synergic editing method, device, storage medium and electronic equipment
CN110287473A (en) Electrical form edit methods and device
CN109495792A (en) A kind of subtitle adding method, device, electronic equipment and the readable medium of video
CN109491742A (en) Page tabular rendering method and device
CN109359281A (en) Dynamic list generation method and device
CN103701909A (en) Rapid generation method and system for video application
CN108733317A (en) Date storage method and device
CN109688051A (en) Session list display methods, device and electronic equipment
CN109861904A (en) Nametags display methods and device
CN109885654A (en) Online document modifies treating method and apparatus
CN109492200A (en) Cooperated documents restoring method, device, storage medium and electronic equipment
WO2016067849A1 (en) Map update system, navigation device, server device, map update method, navigation method, control method for server device, computer program, and recording medium having computer program recorded thereon
CN110516222A (en) Method for editing text, device, equipment, storage medium
CN113609419A (en) Information display method and device, electronic equipment and computer readable medium
CN104980813A (en) Restriction information distribution apparatus and restriction information distribution system
CN108108392A (en) Commodity data management method, device, computer equipment and storage medium
CN110147283A (en) A kind of display content switching display methods, device, equipment and medium
CN105279221A (en) Link preview management

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