CN111563065B - Document storage method and device and computer readable storage medium - Google Patents

Document storage method and device and computer readable storage medium Download PDF

Info

Publication number
CN111563065B
CN111563065B CN202010654517.8A CN202010654517A CN111563065B CN 111563065 B CN111563065 B CN 111563065B CN 202010654517 A CN202010654517 A CN 202010654517A CN 111563065 B CN111563065 B CN 111563065B
Authority
CN
China
Prior art keywords
document
content object
file
content
segment
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
Application number
CN202010654517.8A
Other languages
Chinese (zh)
Other versions
CN111563065A (en
Inventor
程远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lenovo Synergy Technology Co Ltd
Original Assignee
Beijing Lenovo Synergy 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 Beijing Lenovo Synergy Technology Co Ltd filed Critical Beijing Lenovo Synergy Technology Co Ltd
Priority to CN202010654517.8A priority Critical patent/CN111563065B/en
Publication of CN111563065A publication Critical patent/CN111563065A/en
Application granted granted Critical
Publication of CN111563065B publication Critical patent/CN111563065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a document storage method, a document storage device and a computer readable storage medium, wherein the method comprises the following steps: reading a document to be edited; dividing a document to be edited into a plurality of content objects; according to the content object, correspondingly dividing a save file corresponding to the document into a plurality of source file segments, and constructing mapping between the content object and the source file segments; editing the document, and calibrating the modified content object to form an editing record; and saving the document according to the edit record of the content object, the source file segment and the mapping. In the embodiment of the invention, when only the file is slightly changed, only the content object related to the file modification needs to be regenerated for storing the file, so that the memory space required by the file storage is greatly reduced, the file storage time is shortened, and the file storage speed is effectively accelerated.

Description

Document storage method and device and computer readable storage medium
Technical Field
The present invention relates to information display technologies, and in particular, to a method and an apparatus for saving a document, and a computer-readable storage medium.
Background
At present, in the process of editing a document, all data in a memory needs to be converted and stored into a file with a fixed format to store the document. More common document editing software typically stores documents in xml formatted files, such as: both the OOXML document of Microsoft Office software and the ODF document format of Openoffice software are compressed packages of xml files.
When the document editing software stores the document, all data in the memory needs to be converted and stored into an xml file, more xml string operations are involved in the data conversion process, and the document storage speed is slower under the condition that the document is more complex. Currently, even if only minor changes are made to the document, for example: only individual words, paragraphs and the like in the document are modified, and for the completeness of the document xml, the editing software still needs to convert all data into an xml format from beginning to end and store the xml format. The document saving process wastes resources such as the memory for document editing, and the user waiting time is long and the user experience is poor in the conversion process.
Disclosure of Invention
In order to solve the above problems in the document saving process, embodiments of the present invention creatively provide a method and an apparatus for saving a document, and a computer-readable storage medium.
According to a first aspect of the present invention, there is provided a document saving method, the method comprising: reading a document to be edited; dividing a document to be edited into a plurality of content objects; according to the content object, correspondingly dividing a save file corresponding to the document into a plurality of source file segments, and constructing mapping between the content object and the source file segments; editing the document, and calibrating the modified content object to form an editing record; and saving the document according to the edit record of the content object, the source file segment and the mapping.
According to an embodiment of the present invention, said saving the document according to the edit record of the content object, the source file segment, and the mapping includes: constructing a blank target save file; traversing a plurality of content objects, and determining a saved file segment corresponding to each content object; and sequentially inputting the determined saved file segments into the target saved file so as to save the document.
According to an embodiment of the present invention, traversing a plurality of the content objects, and determining a saved file segment corresponding to each of the content objects includes: and for the unmodified content object, taking the corresponding source file segment as a save file segment corresponding to the content object according to the mapping.
According to an embodiment of the present invention, traversing a plurality of the content objects, and determining a saved file segment corresponding to each of the content objects includes: and when the editing record shows that the first content object in the content objects is calibrated and modified, generating a corresponding first save file segment according to the modified first content object.
According to an embodiment of the present invention, traversing a plurality of the content objects, and determining a saved file segment corresponding to each of the content objects includes: acquiring reference relations among a plurality of content objects; when the reference relation shows that a second content object in the content objects is referred by a third content object and the editing record shows that the second content object is calibrated and modified, generating a corresponding second saved file segment according to the second content object; and generating a third saved file segment corresponding to the third content object according to the second saved file segment and the source file segment of the third content object.
According to an embodiment of the present invention, the target save file and the save file fragment are XML formatted files.
According to a second aspect of the present invention, there is also provided a document saving apparatus, comprising: a reading unit for reading a document to be edited; the dividing unit is used for dividing the document to be edited into a plurality of content objects; the mapping unit is used for correspondingly dividing the saved file corresponding to the document into a plurality of source file segments according to the content object and constructing the mapping between the content object and the source file segments; the editing unit is used for editing the document and calibrating the modified content object to form an editing record; and a saving unit operable to save the document based on the edit record of the content object, the source file segment, and the mapping.
According to an embodiment of the present invention, the holding unit includes: the construction module is used for constructing a blank target storage file; the determining module is used for traversing a plurality of content objects and determining a saved file segment corresponding to each content object; and the storage module is used for sequentially inputting the determined saved file segments into the target saved file so as to save the document.
According to an embodiment of the invention, the determining module comprises: and the reservation submodule is used for regarding the unmodified content object, and taking the corresponding source file segment as a saved file segment corresponding to the content object according to the mapping.
According to an embodiment of the invention, the determining module comprises: and the first generation submodule is used for generating a corresponding first saving file fragment according to the modified first content object when the editing record shows that the first content object in the content objects is calibrated and modified.
According to an embodiment of the invention, the determining module comprises: the obtaining submodule is used for obtaining the reference relation among a plurality of content objects; the second generation submodule is used for generating a corresponding second saved file fragment according to the second content object when the reference relation shows that the second content object in the content objects is referred by a third content object and the editing record shows that the second content object is calibrated and modified; and a third generation submodule, configured to generate a third saved file segment corresponding to the third content object according to the second saved file segment and the source file segment of the third content object.
According to a third aspect of the present invention there is also provided a computer-readable storage medium comprising a set of computer-executable instructions which, when executed, are operable to perform any of the document saving methods described above.
The embodiment of the invention discloses a document storage method, a document storage device and a computer readable storage medium, wherein a document to be edited is divided into a plurality of content objects, a storage file corresponding to the document is correspondingly divided into a plurality of source file segments, and mapping between the content objects and the source file segments is constructed. In this way, if only minor changes are made to the file, only the content object related to the document modification needs to be regenerated by saving the file, and for the content object corresponding to the document content which is not modified, the source file segment corresponding to the content object can be directly copied. Therefore, the memory space required by document storage is greatly reduced, the document storage time is shortened, and the document storage speed is effectively accelerated.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a first schematic diagram illustrating a first implementation flow of a document saving method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a second implementation flow of the document saving method according to the embodiment of the present invention;
FIG. 3 is a first schematic diagram illustrating a first exemplary embodiment of a document storage apparatus;
fig. 4 is a schematic diagram showing a second composition structure of the document storage device according to the embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Fig. 1 shows a first implementation flow diagram of a document saving method according to an embodiment of the present invention.
Referring to fig. 1, a method for saving a document according to an embodiment of the present invention at least includes the following operation flows: operation 101, reading a document to be edited; operation 102, dividing a document to be edited into a plurality of content objects; operation 103, according to the content object, correspondingly dividing the save file corresponding to the document into a plurality of source file segments, and constructing a mapping between the content object and the source file segments; operation 104, editing the document, and calibrating the modified content object to form an editing record; and an operation 105 of saving the document according to the edit record, the source file segment, and the mapping of the content object.
In operation 101, a document to be edited is read.
Specifically, when a document needs to be edited, the document needs to be opened first, and the process of opening the document is essentially a process of reading the document.
In operation 102, a document to be edited is divided into a number of content objects.
Specifically, in the document storage process, it is usually necessary to perform document conversion according to the final content of the file, and store the converted document in the document storage format. For example, for a Word document, the saving format after the document editing is completed may be an xml format file. In each document storage process, the temporary content object of the document in the system memory needs to be converted into an xml document for document storage.
For example, paragraph symbols, periods, carriage returns, section breaks, line breaks, and the like in the document may be used as nodes for document division, and the document to be edited may be divided into a plurality of content objects. For example, each paragraph may be a content object for shorter Word documents and each chapter may be a content object for longer words. In addition, for the PPT document, one PPT page may be used as one content object, one editing object (e.g., text box, picture) in one page may be used as one editing object, and multiple pages may also be used as one editing object. Similarly, for other documents such as Excel documents and Visio, the documents can be flexibly divided according to the needs. The document division method is not limited in the present invention.
In operation 103, the save file corresponding to the document is divided into a number of source file segments according to the content object, and a mapping of the content object and the source file segments is constructed.
Specifically, if a document corresponds to a save file, for example: one Word corresponds to a save file in an xml format, and then after the Word file is edited, the xml file needs to be regenerated in full text to save the Word document. In the embodiment of the present invention, to overcome this problem, the document is divided in operation 102, that is, the saved files corresponding to the content objects of the document are respectively determined, so as to determine the saved file of the complete document. Thus, according to the division of the document in operation 102, the save file corresponding to the document is divided, the source file segment of the save file corresponding to each content object is determined, and a mapping of the content object and the source file segment is constructed.
At operation 104, the document is edited and the modified content objects are scaled to form an edit record.
Specifically, in a document editing process, especially a document modification process, a full-text change is not performed, so that in the document editing process, modified content objects are marked to form an editing record, and thus, a source file segment which needs to be updated in a saved file of the document can be determined.
In operation 105, the document is saved according to the edit record, the source file segment, and the mapping of the content object.
Specifically, the edit record of the content object can show the content object that has changed, and it can be determined from the mapping that the source file segment corresponding to the content object needs to be updated. In the document saving process, the source file segment of the content object which is not edited can be directly copied to be used as a saving file. And for the content object which is determined to be changed according to the editing record, the source file segment corresponding to the content object is regenerated, so that the document can be rapidly saved.
For example, in a Word, only the first segment of the document is modified, and the document is divided into paragraphs, so that in the document saving process, only the xml file corresponding to the content of the first segment of the document is regenerated, and the source file segments corresponding to the other content object objects are directly copied.
Fig. 2 shows a schematic flow chart of implementation of the document saving method according to the embodiment of the present invention.
Referring to fig. 2, based on operations 101-105 in fig. 1, operation 105 of the method for saving a document according to the embodiment of the present invention at least includes the following operation flows: operation 201, constructing a blank target save file; operation 202, traversing a plurality of content objects, and determining a saved file segment corresponding to each content object; and operation 203, sequentially inputting the determined save file segments into the target save file to save the document.
The specific implementation process of operations 101 to 105 refers to the embodiment shown in fig. 1, and is not described herein again.
In operation 201, a blank target save file is constructed.
When the document editing software saves a document, a blank save file needs to be established first, for example: an xml file.
At operation 202, a number of content objects are traversed and a saved file segment corresponding to each content object is determined.
In an embodiment of the present invention, for an unmodified content object, according to the mapping, a corresponding source file segment is used as a save file segment corresponding to the content object.
In an embodiment of the present invention, when the edit record shows that a first content object in the content objects is calibrated to be modified, a corresponding first save file segment is generated according to the modified first content object.
In one embodiment of the invention, a reference relationship among a plurality of content objects is obtained; when the reference relation shows that a second content object in the content objects is referred by a third content object and the editing record shows that the second content object is calibrated and modified, generating a corresponding second saved file segment according to the second content object; and generating a third saved file segment corresponding to the third content object according to the second saved file segment and the source file segment of the third content object.
For example, in a PPT document, there are 10 PPT pages, and one page is used as a content object to divide the document. In the editing process, the content objects of pages 1 to 4, 9 and 10 are not edited, the picture a of the content object of page 5 is replaced by the picture b, the picture a of page 5 is referred to in pages 6 and 7, the content of the text box of page 8 is changed, and other contents in the document are not changed. When the file is saved, after a blank xml file is created, the source file segments corresponding to pages 1 to 4, 9 and 10 can be directly copied and pasted to the xml file, and for pages 5 and 8, because the pages are edited, the source file segments in the xml format need to be regenerated when the file is saved. For pages 6 and 7, because the content objects referenced by the pages 6 and 7 are modified, the source file segments in xml format corresponding to the content objects of pages 6 and 7 need to be replaced or re-converted according to the modification of the content objects referenced by the pages 6 and 7. Here, the xml format source file segment corresponding to the picture a in the source file segment regenerated from the content object of page 5 may be directly copied, or the source file segments for pages 6 and 7 may be regenerated, which is not limited in the present invention.
In operation 203, the determined save file segments are sequentially input to the target save file to save the document.
For example, taking the storage of documents such as Word and Excel as an example, the format of the stored file is xml format. When a document needs to be saved, the document editing software firstly establishes a blank target xml file, and then traverses the content object of the document in the memory to perform the following operations: if the content object is not modified, directly copying the corresponding xml fragment from the source xml save file to the target xml save file; if the content object is calibrated and modified, converting the data of the content object into a new xml fragment and storing the xml fragment into a target xml storage file; if there is a reference between the content objects, for example, the content object 1 references the content object 2, when the content object 1 is calibrated and modified, the corresponding content in the content object 2 is replaced accordingly, or the data of the content object 2 is also converted into a new xml fragment and saved to the target xml save file. Therefore, for the document with less change, most of the storage process is the direct copy of the xml fragments, so that a large amount of xml conversion calculation time is saved, and the file storage speed is greatly improved.
Thus, the document saving method, the document saving device and the computer-readable storage medium according to the embodiments of the present invention divide a document to be edited into a plurality of content objects, correspondingly divide a saved file corresponding to the document into a plurality of source file segments, and construct a mapping between the content objects and the source file segments. In this way, if only minor changes are made to the file, only the content object related to the document modification needs to be regenerated by saving the file, and for the content object corresponding to the document content which is not modified, the source file segment corresponding to the content object can be directly copied. Therefore, the memory space required by document storage is greatly reduced, the document storage time is shortened, and the document storage speed is effectively accelerated.
Similarly, based on the above document saving method, an embodiment of the present invention further provides a computer-readable storage medium, where a program is stored, and when the program is executed by a processor, the processor is caused to perform at least the following operation steps: operation 101, reading a document to be edited; operation 102, dividing a document to be edited into a plurality of content objects; operation 103, according to the content object, correspondingly dividing the save file corresponding to the document into a plurality of source file segments, and constructing a mapping between the content object and the source file segments; operation 104, editing the document, and calibrating the modified content object to form an editing record; and an operation 105 of saving the document according to the edit record, the source file segment, and the mapping of the content object.
Further, based on the above document saving method, an embodiment of the present invention further provides a document saving apparatus, fig. 3 illustrates a schematic structural diagram of the document saving apparatus according to the embodiment of the present invention, and as shown in fig. 3, the apparatus 30 includes: a reading unit 301 for reading a document to be edited; a dividing unit 302, configured to divide a document to be edited into a plurality of content objects; a mapping unit 303, configured to correspondingly divide the save file corresponding to the document into a plurality of source file segments according to the content object, and construct a mapping between the content object and the source file segments; an editing unit 304 for editing the document and scaling the modified content object to form an edit record, and a saving unit 305 for saving the document based on the edit record, the source file segment and the mapping of the content object.
Fig. 4 is a schematic diagram showing a second composition structure of the document storage device according to the embodiment of the present invention.
Referring to fig. 4, in an embodiment of the present invention, the saving unit 305 includes: a construction module 401, configured to construct a blank target saving file; a determining module 402, configured to traverse a plurality of content objects, and determine a saved file segment corresponding to each content object; and a storage module 403, configured to sequentially input the determined save file segments into a target save file to save the document.
According to an embodiment of the present invention, the determining module 403 includes: and the reservation submodule is used for taking the corresponding source file segment as the saved file segment corresponding to the content object according to the mapping for the unmodified content object.
According to an embodiment of the present invention, the determining module 403 includes: and the first generation submodule is used for generating a corresponding first saved file segment according to the modified first content object when the editing record shows that the first content object in the content objects is calibrated and modified.
According to an embodiment of the present invention, the determining module 403 includes: the obtaining submodule is used for obtaining the reference relation among a plurality of content objects; the second generation submodule is used for generating a corresponding second saved file segment according to the second content object when the reference relation shows that the second content object in the content objects is referred by the third content object and the editing record shows that the second content object is calibrated and modified; and the third generation submodule is used for generating a third saved file segment corresponding to the third content object according to the second saved file segment and the source file segment of the third content object.
According to a third aspect of the present invention there is provided a computer-readable storage medium comprising a set of computer-executable instructions which, when executed, are operable to perform any of the document saving methods described above.
Here, it should be noted that: the above description of the embodiment of the document saving device is similar to the description of the embodiment of the method shown in fig. 1 to 2, and has similar beneficial effects to the embodiment of the method shown in fig. 1 to 2, and therefore, the description is omitted. For technical details not disclosed in the embodiment of the document storage apparatus of the present invention, please refer to the description of the method embodiment shown in fig. 1 to 2 of the present invention for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A document saving method applied to document editing software, the method comprising:
reading a document to be edited;
dividing a document to be edited into a plurality of content objects;
according to the content object, correspondingly dividing a save file corresponding to the document into a plurality of source file segments, and constructing mapping between the content object and the source file segments;
editing the document, and calibrating the modified content object to form an editing record; and
saving the document according to the editing record of the content object, the source file segment and the mapping;
wherein said saving said document in accordance with said edit record of said content object, said source file segment, and said mapping comprises:
constructing a blank target save file;
traversing a plurality of content objects, and determining a saved file segment corresponding to each content object; and
and sequentially inputting the determined saved file segments into the target saved file so as to save the document.
2. The method of claim 1, wherein traversing a plurality of the content objects to determine a segment of the saved file corresponding to each of the content objects comprises:
and for the unmodified content object, taking the corresponding source file segment as a save file segment corresponding to the content object according to the mapping.
3. The method of claim 1, wherein traversing a plurality of the content objects to determine a segment of the saved file corresponding to each of the content objects comprises:
and when the editing record shows that the first content object in the content objects is calibrated and modified, generating a corresponding first save file segment according to the modified first content object.
4. The method of claim 1, wherein traversing a plurality of the content objects to determine a segment of the saved file corresponding to each of the content objects comprises:
acquiring reference relations among a plurality of content objects;
when the reference relation shows that a second content object in the content objects is referred by a third content object and the editing record shows that the second content object is calibrated and modified, generating a corresponding second saved file segment according to the second content object; and
and generating a third saved file segment corresponding to the third content object according to the second saved file segment and the source file segment of the third content object.
5. The method of any of claims 1-4, wherein the target saved file and the saved file fragment are XML formatted files.
6. A document saving apparatus, applied to document editing software, the apparatus comprising:
a reading unit for reading a document to be edited;
the dividing unit is used for dividing the document to be edited into a plurality of content objects;
the mapping unit is used for correspondingly dividing the saved file corresponding to the document into a plurality of source file segments according to the content object and constructing the mapping between the content object and the source file segments;
the editing unit is used for editing the document and calibrating the modified content object to form an editing record; and
a saving unit operable to save the document based on the edit record of the content object, the source file segment, and the mapping,
wherein the saving unit includes:
the construction module is used for constructing a blank target storage file;
the determining module is used for traversing a plurality of content objects and determining a saved file segment corresponding to each content object; and
and the storage module is used for sequentially inputting the determined saved file segments into the target saved file so as to save the document.
7. The apparatus of claim 6, wherein the determining module comprises:
and the reservation submodule is used for regarding the unmodified content object, and taking the corresponding source file segment as a saved file segment corresponding to the content object according to the mapping.
8. A computer-readable storage medium comprising a set of computer-executable instructions that, when executed, perform the document retention method of any of claims 1-5.
CN202010654517.8A 2020-07-09 2020-07-09 Document storage method and device and computer readable storage medium Active CN111563065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010654517.8A CN111563065B (en) 2020-07-09 2020-07-09 Document storage method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010654517.8A CN111563065B (en) 2020-07-09 2020-07-09 Document storage method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111563065A CN111563065A (en) 2020-08-21
CN111563065B true CN111563065B (en) 2020-12-11

Family

ID=72072812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010654517.8A Active CN111563065B (en) 2020-07-09 2020-07-09 Document storage method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111563065B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036133B (en) * 2020-09-01 2024-03-26 珠海豹趣科技有限公司 File storage method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001243222A (en) * 2000-02-23 2001-09-07 Internatl Business Mach Corp <Ibm> Method, system and medium recording program for preparing display rule of structured document as well as method, system and medium recording program for changing structured document and document type definition
CN104102652A (en) * 2013-04-08 2014-10-15 国家电网公司 Unstructured data storage system and method
CN106855866A (en) * 2015-12-09 2017-06-16 北大方正集团有限公司 XML document storage method and device
CN108763483A (en) * 2018-05-25 2018-11-06 南京大学 A kind of Text Information Extraction method towards judgement document
CN109815243A (en) * 2019-02-18 2019-05-28 北京仁和汇智信息技术有限公司 A kind of structured storage method and apparatus when document interfaceization is modified

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8341514B2 (en) * 2007-01-31 2012-12-25 Microsoft Corporation Using static data in a markup language
CN102646102A (en) * 2011-02-22 2012-08-22 青岛海信电器股份有限公司 XML (Extensible Markup Language) file generating method and device as well as terminal equipment
CN103177064B (en) * 2012-12-05 2016-10-05 师建中 A kind of method automatically enrolling given content in electronic document
CN110347384B (en) * 2019-07-17 2023-06-23 广东好太太智能家居有限公司 Method for realizing multi-style popup window based on object_C language classification
CN111090396A (en) * 2019-12-10 2020-05-01 联想(北京)有限公司 File processing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001243222A (en) * 2000-02-23 2001-09-07 Internatl Business Mach Corp <Ibm> Method, system and medium recording program for preparing display rule of structured document as well as method, system and medium recording program for changing structured document and document type definition
CN104102652A (en) * 2013-04-08 2014-10-15 国家电网公司 Unstructured data storage system and method
CN106855866A (en) * 2015-12-09 2017-06-16 北大方正集团有限公司 XML document storage method and device
CN108763483A (en) * 2018-05-25 2018-11-06 南京大学 A kind of Text Information Extraction method towards judgement document
CN109815243A (en) * 2019-02-18 2019-05-28 北京仁和汇智信息技术有限公司 A kind of structured storage method and apparatus when document interfaceization is modified

Also Published As

Publication number Publication date
CN111563065A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN111753500B (en) Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
US7149963B2 (en) Document revision support program and computer readable medium on which the support program is recorded and document revision support device
US5530794A (en) Method and system for handling text that includes paragraph delimiters of differing formats
US10437428B2 (en) Scatter copy supporting partial paste functionality
JP5072845B2 (en) Programmability for XML data store for documents
JP2003114882A (en) System and method for formatting contents for publication
US20090079729A1 (en) Rendering three-dimensional objects on a server computer
JP2006172450A (en) System and method for converting formatted documents into web page
JP2006178945A (en) File format for representing presentation, method and computer program product
JP2006178946A (en) File format, method and computer program product for representing workbook
US8082494B2 (en) Rendering markup language macro data for display in a graphical user interface
US20080052619A1 (en) Spell Checking Documents with Marked Data Blocks
CN111563065B (en) Document storage method and device and computer readable storage medium
US7730388B2 (en) Converting an enhanced metafile into a chronologically independent object property list for conversion into a PDF document
CN110674084A (en) Method, apparatus, and computer-readable storage medium for data protection
US20110320927A1 (en) Methods and Apparatus Utilizing XooML: Cross (X) Tool Markup Language
CN103853697A (en) Mobile terminal and back-up method for application data thereof
CN113157261B (en) Code generation method and device
JPS6177969A (en) Paging system for correction
JP2006072571A (en) Method for designing assembly configuration, program for designing assembly configuration, recording medium for recording the program, and apparatus for designing assembly configuration
JP5842437B2 (en) Information processing apparatus and information processing program
US7739591B2 (en) Structuring graphics with placeholders
JP2004139142A (en) Information processing apparatus, its control process, medium providing control program, and control program
US20130318072A1 (en) Searching apparatus, and searching method
CN114065727A (en) Information duplication eliminating method, apparatus and computer readable 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