CN116719774A - Directory code generation method of electronic file container and method for retrieving container storage file - Google Patents

Directory code generation method of electronic file container and method for retrieving container storage file Download PDF

Info

Publication number
CN116719774A
CN116719774A CN202211583848.2A CN202211583848A CN116719774A CN 116719774 A CN116719774 A CN 116719774A CN 202211583848 A CN202211583848 A CN 202211583848A CN 116719774 A CN116719774 A CN 116719774A
Authority
CN
China
Prior art keywords
container
electronic file
directory
electronic
page
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.)
Pending
Application number
CN202211583848.2A
Other languages
Chinese (zh)
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.)
Shanghai Tianyong Technology Development Co ltd
Original Assignee
Shanghai Tianyong Technology Development 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 Shanghai Tianyong Technology Development Co ltd filed Critical Shanghai Tianyong Technology Development Co ltd
Priority to CN202211583848.2A priority Critical patent/CN116719774A/en
Publication of CN116719774A publication Critical patent/CN116719774A/en
Pending legal-status Critical Current

Links

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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • 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/13File access structures, e.g. distributed indices
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to a method for generating a directory page code of an electronic document container and a method for searching a document stored in the electronic document container. And after the electronic file container accommodating operation, recoding and generating the electronic file container catalog page data. The method comprises the following specific steps: recoding to generate a directory entry array of the storage file; automatically sorting the catalog entry array by bubbling according to the needs of a user; erasing directory page trace to generate a directory page array of the blank electronic file container; according to typesetting information, a directory entry array is arranged in a directory page array of a blank electronic file container; finally, the electronic file container is formatted into the electronic file container to form a component part of the electronic file container. Opening, displaying and turning over the electronic file containers one by one; and retrieving, opening, displaying and copying the storage file in the electronic file container without the assistance of software and hardware environments such as a system server, a database, a network, routing equipment and the like. The application field is wide.

Description

Directory code generation method of electronic file container and method for retrieving container storage file
Technical Field
The invention relates to the field of retrieval of electronic file containers, in particular to a catalog code generation method of an electronic file container and a method for retrieving a container storage file.
Background
With the vigorous development of electronic government and electronic commerce, the systems and applications of electronic file containers are increasing; there are also increasing methods for creating directory codes for electronic document containers and for retrieving stored documents in electronic document containers.
The catalog generation, storage, retrieval and opening display process of the electronic document management system in the prior art comprises the following steps: the system server is used for storing and containing electronic files, installing a system database and the like in a concentrated manner; the system database is used for storing directory entries (generated when storing or deleting files) for retrieving electronic files. The user inputs index information through client software and uploads the index information to a system server through a network; the system server generates an electronic file directory entry list (for reducing the search range) from the electronic files meeting the index condition in the database according to the received search command; and returned to the client software. Client software displays a list of electronic file directory entries; the user finds out the electronic file needed by the user; downloading or opening it, and completing one electronic file search. The minimum unit of directory entry expression is an electronic file. The list of directory entries of such electronic file containers is temporarily generated at the time of retrieval; displaying the catalog page by codes; the required electronic file is retrieved using the database logical address. Wherein, the directory entry is changed by the system adding and deleting electronic file change. The advantages are that: numerous legitimate users can share numerous electronic files in a database through the system retrieval function. However, the disadvantages are: the code generation, storage, presentation and retrieval of the catalogue all need strong support of system software and hardware and network, and the cost is high.
The prior art electronic book (electronic journal) catalog generation and retrieval process: the content and chapters of an electronic book cannot be changed, such as books, albums, technical materials and the like; therefore, the list of directory entries is fixed (because the chapters are less, it can be made into a fixed directory page) and customized by the e-book designer. A label technology is generally adopted to establish a corresponding relation with the related chapter catalogs; the minimum unit of directory entry expression is a chapter of an electronic file. The required electronic file is retrieved using the database logical address. The advantages are that: the method is operated without temporarily generating a catalog entry list; network access is not needed; the searching is easy and quick, and the personal electronic file container is provided. The disadvantages are also very pronounced: the function is simple; in general, a simple database needs to be used; the special reading software is required to be opened for display; the application scene is less.
The electronic bookshelf (file-level container) in the prior art is a superposition of the two technical schemes. That is, a plurality of books are stored on the bookshelf, and the user searches and obtains books, an album and technical data (collectively called as electronic books) of the user heart instrument through the bookshelf catalog; this process is similar to a simple document management system review. However, the storage file format is specific. Then, a chapter, even a page, in the electronic book is found by opening the electronic book catalog; reading is started. The application scene is wider; typically serving individual users; but also inherits the advantages and disadvantages of the two electronic file containers related to the catalogs.
The main problems of the electronic document container are as follows: firstly, if a configuration file is adopted, the method is equivalent to developing a simple database; index technology, operating system memory management technology, etc. of the database need to be mastered and developed; from a commercial standpoint, an installation database is typically employed; for storing directory entry information; computer software and hardware costs. Second, most container function operations cannot be "taken in offline"; application scenarios are limited. Thirdly, storing the directory index information of the electronic file container in a database; is stirred and bound. Fourth, the electronic file container directory page, container cover, storage file cover, container examination list and the like are all required to be read by special reading software. Fifthly, typesetting the directory pages of the electronic file container by adopting codes; therefore, the formats of the electronic file containers of all manufacturers cannot be standardized. Sixth, the addresses of the index storage files are all logical addresses, and the searching speed is low. Seventh, the electronic bookshelf is application software, is not an electronic file, and has application cost. Eighth, the actions of turning over, searching, opening, copying and the like of the storage files in the container are seriously dependent on special client software. Ninth, the electronic book is similar to the electronic file container of the invention when being watched from outside the electronic book rack; however, there are essential differences: the electronic file container is an electronic file and is objectively stored; the method has vitality and application value. And the electronic bookshelf is application software, and is not viable and valuable to run.
Disclosure of Invention
The electronic document container herein, hosted in the mainstream electronic document (host); it is an electronic file. At the same time, it can be considered a virtual storage device for personal use; for receiving electronic documents of various kinds and formats. And after each time of file storage operation and file deletion operation of the electronic file container, recoding to generate an electronic file container directory page array.
The invention provides a method for generating a catalog page of an electronic file container when the electronic file container is used for containing and deleting the electronic file, which comprises the following implementation steps: firstly, acquiring an array of storage files; reordering the storage file array according to the electronic file container directory ordering flag (such as the flag according to the sequence of the storage date and the like); to accommodate the personalized needs of the user for ordering the container catalogs. Secondly, acquiring opening parameters of an electronic file container cover from an storage file array, such as the total number of storage files, the number of storage text files (containing script files and binary files), the number of storage image files, the number of storage CAD files, the number of storage audio files, the number of storage video files, the total number of storage file pages of the container, the total playing time of the storage file of the container, the volume of the electronic file container and the like, and opening the parameters on the electronic file container cover according to master typesetting information, so that a user can know the container profile by seeing the electronic file container cover (hereinafter referred to as the container cover); and encoding the opening parameters to generate an electronic file container envelope parameter structure formatted in the container envelope master attribute structure (for future data sharing). Thirdly, analyzing the storage files in the storage file array to obtain parameters including directory serial numbers, storage file names, file suffixes (expressing electronic file types), interval character strings, storage file pages or storage file playing time and the like, and coding to form a directory entry of an electronic file container; then analyze one by one, encode and integrate into the catalogue entry array of the electronic file container (hereinafter referred to as catalogue entry array). By means of the container directory page, the profile of the electronic file container can be known. Fourthly, according to the opened electronic file container directory page; encoding to generate a blank electronic file container catalog page; then, preparing a blank electronic file container directory page array according to the directory entry array; the closed loop circulation processing is realized between the opened electronic file container directory page and the blank electronic file container directory page. Fifthly, analyzing the blank electronic file container directory page to obtain an electronic file container directory page typesetting parameter structure (also called electronic file container directory page master typesetting information); according to the typesetting parameter structure body of the electronic file container directory page, sequentially and gradually opening directory entries in the directory entry array on blank electronic file container directory pages; until all the directory entries of the directory entry array are completely opened; the encoding generates a new array of electronic file container directory pages. The electronic file container catalog page has the basic characteristics of a digital product, namely the unified format specification. Sixthly, according to typesetting information of the bottom version of the container catalog page of the electronic file, analyzing and obtaining the maximum quantity of the opened catalog items of the container catalog page; splitting the directory entry array into a directory entry page array corresponding to the blank electronic file container directory page array; and formatting the directory entry page array in a corresponding blank electronic file container directory page. Seventhly, according to the actual storage conditions of the electronic file container for storing the electronic file and the like, sequentially replacing index information (comprising the storage start address and the word length of a search object) into the corresponding directory entry of the electronic file container by technical means of accumulating the start physical address of the stored file, exchanging the word length of the stored file and the like; further replacing all directory entries in the directory page array of the electronic file container; thereby enabling the electronic document container to retrieve each page of electronic document container master using physical address indexing techniques. Eighth, the electronic file container directory page array is one of the important components of the electronic file container, which is formatted in the electronic file container.
The invention also provides a technical scheme for retrieving, opening, displaying and copying the storage file of the electronic file container, which has the working principle that: step one, a worker clicks a directory entry in a directory page array of an electronic file container; thereby activating the processing functions of retrieving, opening and displaying, copying and storing files and the like of the electronic file container. Step two, the electronic file container processing software (special client software) detects that a worker clicks the directory entry in the directory page array of the electronic file container, and analyzes the directory page to obtain the corresponding directory entry; and further obtaining storage file index information corresponding to the directory entries. Analyzing the index information of the storage file to obtain the initial physical address of the storage file, the word length of the storage file and the like; the electronic file container processing software adopts index information of the storage file, and further obtains: the full path of the stored document and the content of the stored document. And fourthly, analyzing the content codes of the storage files to generate a bitmap array, and displaying the bitmap array on a computer screen. Fifthly, selecting directory entries of the storage files by staff, and clicking a copy key; the electronic document container processing software stores the whole path of the storage document and the content of the storage document in the operating system.
Description: searching behaviors from the first step to the third step; step one to step four are opening behaviors; step one to step five are copy actions. Another more simplified copying behaviour may eliminate step four.
Another method for expressing the storage file of the electronic file container comprises the following steps: the electronic document container automatically assigns a cover sheet (the size of which is the same as the container cover) to each of the storage documents. The index of the directory entry (the third step) is split into two-step nested indexes; (1) Analyzing the previous storage file cover to obtain index information such as the initial physical address of the next storage file cover and the word length of the storage file cover; and then searching to obtain the cover of the storage file. (2) The cover of the storage file is analyzed to obtain index information such as the initial physical address of the corresponding storage file and the word length of the storage file, and then the full path of the storage file and the content of the storage file are obtained through searching.
The invention provides a method for generating directory page codes of an electronic file container, wherein the electronic file container takes main stream electronic files as parasitic hosts; after the electronic file container accommodating operation, recoding to generate an electronic file container catalog entry array; in the electronic file container, each storage file corresponds to one storage file catalog entry; obtaining a blank electronic file container catalog page array; the blank electronic file container catalog page number group at least comprises one blank electronic file container catalog page; the electronic file container directory entries in the electronic file container directory entry array are opened one by one in the corresponding blank electronic file container directory page array, and an electronic file container directory page array is generated by encoding; formatting the electronic file container directory entry array in an electronic file container.
In an improved scheme, obtaining an opened electronic file container directory page; obtaining a directory entry opening range of the electronic file container directory page; obtaining the background color pixels of the blank electronic file container catalog page; replacing all non-ground color pixels within the directory entry opening range of the electronic file container directory page; and/or, replacing all pixels within the directory entry opening range of the electronic file container directory page; thereby obtaining the blank electronic file container directory page.
In a refinement, the electronic document container is an electronic document; the electronic file container directory page array is a component part of an electronic file; index information for retrieving the storage file is stored in an electronic file container.
In an improved scheme, according to an electronic file container directory page typesetting parameter structure body, opening the electronic file container directory page; and/or, adopting the electronic file container envelope typesetting parameter structure body to open the electronic file container envelope.
In an improved scheme, the directory entry comprises index information of a corresponding storage file; the index information includes a starting physical address of the storage file and/or a storage file word length.
In a modified version, the index addresses of the electronic file containers are all physical addresses; formatted in the directory entry; and/or formatted in an electronic document container master attribute structure.
In an improved scheme, storage files in the electronic file container are stored in a seamless mode; and/or, the storage file covers are stored in a seamless mode.
In a modified version, the parasitic host of the electronic document container further includes electronic documents in GIF, PNG, BMP, JPEG, JSON, XML, OFD format.
The invention provides an operation method for searching a storage file in an electronic file container, which searches the storage file in the electronic file container offline; and the storage files in the electronic file container can be browsed, opened and copied offline.
In an improved scheme, interception obtains the electronic file container directory page and the directory entry; analyzing the catalog entries to obtain index information of the cover of the storage file; obtaining a storage file cover master attribute structure according to the index information of the storage file cover; and analyzing the storage file cover plate attribute structure body to obtain storage file contents.
From the above technical scheme, the invention has the following beneficial effects:
1. acting as a storage device. The electronic file is used as a parasitic host of the electronic file container; the invention stores the container cover, the container catalog page array, the storage file (cover) array, the container examination list array and the like in the container cover, thereby taking the electronic file as a virtual storage device and saving the commercial cost of the electronic file container.
2. Blank container directory page. The empty electronic file container directory page is obtained through processing the opened electronic file container directory page; thereby realizing the two between themClosed loop circulationThe method comprises the steps of carrying out a first treatment on the surface of the No special claim is made.
3. The container operation is independent. Depending on the electronic file catalogue, the container opening operation of the electronic file container, the file containing operation (local electronic file containing) operation, the file deleting operation and the container turning operation are carried out; retrieval operation, opening operation, copy operation, etc. of stored fileIndependent of system servers, networks, databases, etcThe method comprises the steps of carrying out a first treatment on the surface of the The production cost of the electronic file container is reduced, and the application range of the electronic file container is expanded.
4. The container is directly flipped. The electronic file container cover, the electronic file container directory page, the storage file cover, the electronic file container examination list and other bottom plates are defined and encoded according to the general attribute format of the parasitic host; and electronic document container hosting is a mainstream electronic document. Therefore, the electronic file container cover, the electronic file container directory page, the storage file cover, the electronic file container examination list and the like can be browsed without special client software.
5. The physical address is accelerated. The physical address is adopted in the electronic file container, so that the retrieval time is greatly shortened.
Electronic file container features: firstly, the electronic file container catalog page is basically the same as the paper book, the file and the financial account catalog page; the container catalog searching and browsing habit is basically the same as that of paper books and the like; the same is true of the electronic document container web transport. 2. Examples of the type of the electronic document container storage file include a text (including a packet), an image file, an audio file, a video file, and a CAD file. 3. The parasitic host of the electronic document container also includes a format of GIF, PNG, BMP, JPEG, JSON, XML, OFD, etc.
Drawings
FIG. 1 is an electronic file container catalog page.
FIG. 2 is a flow chart of a method for recoding and generating a directory page of an electronic file container.
FIG. 3 is a schematic diagram of an electronic file container directory page code generating apparatus.
5. Detailed description of the preferred embodiments
The present invention will be described in further detail with reference to the following detailed description of the embodiments and the accompanying drawings, wherein like parts in the various embodiments are identified by associated part numbers. Many of the details of the following embodiments are set forth in order to provide a better understanding of the invention; those skilled in the art will readily recognize that some of the features may be omitted or replaced by other components, materials, or methods in different situations. In some instances, specific details of one embodiment of the invention are not shown or described in the specification to avoid obscuring the core portions of the invention, and may not be necessary for one skilled in the art to describe in detail the relevant embodiments based on the description and the general knowledge of one skilled in the art.
The following detailed description is merely exemplary in nature and is not intended to limit the invention. It will be apparent to those skilled in the art that several simple deductions, modifications, combinations and variations can be made according to the idea of the invention without departing from the spirit and scope of the specific embodiments, and are intended to be covered in the scope of the claims of the invention.
The component is numbered itself herein, e.g. "first", "second"; (1), (2) and (3); steps one, step, etc. are only used to distinguish between the described objects and do not have any sequential or technical meaning. The terms "connected," "coupled," and "connected," as used herein, unless specifically indicated otherwise, are all inclusive of direct or indirect connection (coupling).
The terms "comprising," "including," "having," "containing," and the like, as used herein, are open-ended terms, meaning including, but not limited to.
The following is a set of nouns and verbs defined by the present invention to clarify their contents and margins.
"container technology" has a lot of innovative concepts in the computer field, for example, the container technology of cloud computing, which is to understand a computer group as a resource pool, and cloud computing personnel apply for memory, CPU and bandwidth resources as required, and isolate a virtual computer as same as the application resource from the resource pool by using the container technology. You want to dry themselves in the container without affecting the host system and other containers. The invention relates to a container technology for accommodating electronic files, which specifically comprises the following steps: and during production, the blank electronic file container generated by encoding is produced. During the storage operation, the electronic file container cover, the electronic file container directory page array, the storage file cover array and the electronic file examination table array are automatically encoded and generated. And in the future sharing, according to index information in the directory entries of the electronic file container, searching, opening, displaying and copying the electronic file container.
"parasitic hosting" refers herein to an electronic file container "parasitic" in another electronic file (hosting). So-called "hosting", only the electronic file header identification is reserved; the rest are parasites-electronic document containers. Wherein, the header mark standardizes the general attribute structure body of the electronic file container and the member parameters; thus, the electronic document container looks and operates the same as the host. However, the shared information of the whole life cycle of the electronic file container, including the shared information of the container cover, the container directory page (including the index information of the directory entry), the storage file cover, the container examination list and other open information, is a non-universal attribute structure body and its member parameters, and is custom-defined and formatted in the electronic file container, i.e. hidden and stored, for data sharing.
"electronic document container bottom" (electronic document container bottom) is simply referred to as container bottom, or electronic document container bottom attribute structure; the electronic file container cover template attribute structure comprises an electronic file container cover template attribute structure body, an electronic file container catalog page template attribute structure body, a storage file cover template attribute structure body and an electronic file container examination table template attribute structure body; including the display information and shared information of the master. They may also be referred to as electronic file container cover, container cover master, electronic file container catalog page, file cover master, electronic file container examination table, container examination table master, etc., respectively. The electronic file container catalog page, the storage file cover, the electronic file container examination table and the like may be multiple pages.
"storage file" (Admission document) refers to an electronic file stored in an electronic file container; the file types include: files, images, CAD, audio, video, etc.; and various electronic file formats are stored. The electronic document before being stored is referred to herein as an electronic document; electronic documents at the time of storage and thereafter are referred to as storage documents or storage electronic documents.
"container cover" refers to the cover that houses the electronic file container, and if the container is a case, it corresponds to the first kraft cover of the case. Because electronic document containers are used differently, the designations are also different, such as the designations: electronic account book, electronic file electronic file, electronic file clip (box), electronic document clip (box), electronic file electronic folders (boxes), electronic document holders (boxes), electronic case containers, electronic document containers, and the like.
"directory entry" (DirectoryEntry), also referred to as "container directory entry", corresponds to a storage file. Wherein, reference herein to "directory" is a broad concept including all directory-related objects; such as a container directory, container directory page array, directory entry page array, and the like. The term "directory page" as referred to herein is a specific object that includes directory page master generic (display) attributes and master shared information. A "directory entry" is also a specific object, a well-defined, fixed-data-structure data string.
The "Offset" (Offset) is defined in computer assembly language as: the distance between the physical address of a memory location and the segment address of the segment in which it resides is referred to as the intra-segment offset, also referred to as the "effective address or offset". Defining the offset of the first byte of the electronic file container header identification as '1'; the offset of the storage file a (first byte) is stored in the electronic file container, which is the start physical address of the storage file a.
An "index" (index) in a relational database, an index is a collection of data structures that individually define values (fields) of one or more columns in a database table; wherein the values of one or more columns in the database table include at least a logical pointer list of stored data. The indexing function is equivalent to a book catalog, and people can quickly find a retrieval object according to index information in catalog entries. The index is a noun, which refers to the initial physical address of the retrieval object in the electronic file container and the word length thereof. Retrieving stored files in the electronic file container or storing index information such as the covers of the stored files in the electronic file container; the electronic file container is considered to be a storage device.
"retrieval" refers to turning over books, materials, etc., looking for objects that are needed by themselves; this is an apparent behavior. The searching herein refers to searching for a corresponding storage file or the like according to the index information. All kinds and formats of electronic files (electronic files) can be divided into two components of an electronic file full path and electronic file content. The former is used as index information of the operating system, and the latter is used as a search object of the operating system and is respectively stored in two places. The technical scheme of storing and containing the files in the electronic file container is consistent with the technical scheme.
"bubble sort" (BubbleSort) is a simpler sort algorithm in the field of computer science. It repeatedly walks through the sequence of elements to be ordered, compares two adjacent elements in turn, swaps them if the order (e.g., date from early to late, late to early, first pinyin letters from a to Z, etc.) is wrong, until no adjacent elements need to be swabbed; that is, the sequence of elements has been ordered.
"prescribing" (FillInAndPase) refers to prescribing operations on an information carrier, such as a master of an electronic document container; i.e., act of filling out relevant opening parameters on the electronic file container master layout, such as act of filling out directory entries on blank electronic file container directory pages, in accordance with container master layout information.
"resolution" (Analysis) is generally defined as a resolution Analysis, which is a Chinese word. Resolving, herein, refers to resolving data into a set of well-defined member parameters according to its structure.
"encoding" (Code) is the process of converting information from one form or format to another. Well-defined literal, numeric or other object codes are integrated into a new defined number by a predefined method. Coding is widely used in electronic computers, televisions, remote controls, communications, and the like.
"Integration" refers to the canonical joining together of scattered things, ultimately forming a valuable whole. The integration refers to that a plurality of parameters, or data strings, or structures are sequentially connected end to end according to the definition of the data structures or structures to form a new parameter, or data string, or structure; giving it a new name and definition.
"formatting" (formatting) originates from the formatting of the disk, meaning that the operating system marks the disk in advance so that it can access data in a certain Format. Later on, the term computer was extended, namely a standardized data storage method. Data formatting herein refers to operations that are well-defined and stored in accordance with the data structure specification. Formatting a in B as described herein includes at least storing a in B.
Example 1
An electronic file container (referred to herein simply as a container) is a single virtual storage device; is also a digital product. The electronic document container includes two existing forms of an "empty" electronic document container or a "housed" electronic document container. The empty electronic file container content comprises an electronic file container head mark, a blank electronic file container cover page, a blank electronic file container catalog page, a blank storage file cover page, a blank electronic file container examination table and other components. The electronic file container which is stored comprises an electronic file container head mark, an electronic file container cover, an electronic file container catalog page array, a stored file cover array, an electronic file container examination table array and other components; hereinafter, the container component is referred to as "container component". The electronic document container component is understood to be a component stored in the electronic document container. The container cover, the container catalog page and the container examination list are all auxiliary in the use and management process of the electronic file container. Description: an index set, as used herein, includes an array that contains only one element.
Specifically, the electronic document container includes both a narrow electronic document container and a broad electronic document container. The narrow electronic document container refers to electronic document container content (container), hereinafter simply referred to as "container"; the electronic file container comprises a container head identifier, an electronic file container cover, an electronic file container directory page array, a storage file cover array, an electronic file container examination table array and other components; all references herein below refer to a container of knight-errant electronic files. The broad electronic document container includes, in addition to the electronic document container contents, the electronic document container full path (controlerfullpath).
The host of the electronic file container of the present embodiment is an image file in TIFF format; so that they comprise in the mainstream computer operating system: windows, unix, linux, iOS, android, hua are under the environment such as OS, need not special customer end, just can direct the pre-buried control in the operating system and open the show. Specifically, an electronic file container cover, an electronic file container catalog page array, a storage file cover array, an electronic file container examination table array and the like are defined and encoded according to a general attribute format of a TIFF image file to generate display information; as shown for the parasitic host. Specifically, generating hidden information according to the definition and coding of the non-universal attribute format of the TIFF image file; it is the full lifecycle sharing information of the electronic file container that will be formatted in the electronic file container.
Specifically, the electronic file container directory page comprises electronic file container directory page display information obtained according to the definition and coding generation of the general attribute format of the TIFF image file, and electronic file container directory page sharing information obtained according to the custom and coding generation of the non-general attribute format of the TIFF image file. Specifically, the electronic file container directory page display information includes general attributes such as directory page bitmap, directory page bitmap width and high pixel number, color depth, image data compression flag, directory bitmap pixel ordering flag, directory page bitmap horizontal, vertical resolution, and the like. The electronic file container directory page is used for opening or displaying directory entries; and the operations such as file retrieval, open display, file copy and the like are triggered by clicking the directory entry by an operator. Specifically, the electronic file container directory page sharing information includes a directory entry page array, an electronic file container directory page layout parameter structure, and the like, all of which are formatted in the electronic file container directory page.
Specifically, the electronic document container housing operation includes: deleting the stored file in the container, which is called a file deleting operation; storing electronic documents in a container is referred to as a document-holding operation. Specifically, the electronic file container processing software automatically and intelligently completes the bubble ordering of the directory entries by setting a container directory ordering flag and the like by a worker.
Specifically, the group of electronic file container directory pages includes at least one electronic file container directory page. Specifically, the container directory entry includes: directory entry number, storage file name, storage file suffix, interval character string, storage file page number or storage file play time, index information (including storage start physical address and word length of search object), and the like. If the storage file is not provided with the cover, the index information of the storage file comprises a storage file initial physical address and a storage file word length. If the storage file is provided with a cover, the index information of the storage file comprises a cover initial physical address and a cover word length of the storage file; then, the initial physical address of the storage file and the word length (two-layer nested index) of the storage file are taken out from the storage file cover; and further obtaining the storage file. Specifically, according to the storage file, analyzing and obtaining container directory entry parameters, and coding to generate a directory entry corresponding to the storage file one by one; further, an array of directory entries is generated based on the array of storage files (if the array is empty, indicating that the electronic file container is "empty").
Another electronic file container directory design, the electronic file container can be provided with a multi-level directory; such as the primary directory being the type of storage file and the secondary directory being the storage file format, etc. The data structure of the container directory entries is a container directory that supports code generation of multi-level electronic files. However, given that electronic file containers have a personal, exclusive-type feature, they are typically designed as a primary catalog, such as that shown in FIG. 1; it refers to the paper archive file directory and the album directory. The directory entries are all level; if there is a relationship between the storage files, the relationship is expressed by file names, such as the attachment of a certain file. The directory entry array is an opening parameter of the directory page of the electronic file container.
Specifically, the electronic file container is a virtual storage device that is single-shared (only one user at a time). Taking the TIFF format electronic file container as an example, except for the electronic file container header identifier, a continuous storage space for storing container covers, container directory pages, storage files (covers can be set) and container examination sheets has a storage capacity of about 4.2 GB. Specifically, the electronic file container has no File Control Block (FCB) management design; nor disk, track, zone, block management designs; nor is there a segment address design. The file control information (directory entry array of the present invention) is very simple and is formatted in an electronic file container directory page. The access addresses of container parts such as container covers, container catalog pages, storage file covers, storage files, container examination sheets and the like are physical addresses; therefore, the two can be stored in series and seamlessly; no gap space is wasted.
The embodiment provides a method for recoding and generating an electronic file container directory page; the storage file is provided with a container cover. Each time the electronic file container performs file storage operation and file deletion operation, the file storage in the electronic file container is changed; thus, there is a need for simultaneous recoding of electronic file container directory pages. The implementation process of the electronic file container processing software is as follows:
First, an electronic document container storage document cover array (containing storage documents) is encoded. In actual operation, on one hand, the electronic file container is analyzed to obtain the cover array of the original storage file. On the other hand, the worker selects the electronic document to be stored and the deleted stored document from the stored document display sub-window of the electronic document container processing software, clicks the "store" key, and the electronic document container code generates a new stored document cover array and deletes the stored document array. Deleting the storage files to be deleted in the cover array of the original storage files according to the storage file deleting array; and then integrating the new storage file cover array with the deleted original storage file cover array to form a new storage file cover array.
And secondly, opening an electronic file container cover. Specifically, the parameters of the opening of the container covers such as the total number of the storage files, the number of the storage text files, the number of the storage image files, the number of the storage CAD files, the number of the storage audio files, the number of the storage video files, the total number of pages of the container storage files, the total playing time of the container storage files, the volume of the electronic file container, and the like are obtained from the new storage file cover array. Specifically, the electronic file container envelope is processed into a blank container envelope (refer to the following electronic file container directory page method). Specifically, analyzing a blank container cover to obtain a container cover typesetting parameter structure body; and opening the opening parameters in the blank container envelope according to the container envelope typesetting parameter structure. Specifically, encoding the opening parameters of the container cover to generate an electronic file container cover parameter structure; formatted in a container envelope for data sharing.
Thirdly, reordering and storing the cover array of the file. Specifically, according to the electronic file container directory ordering mark, bubble ordering processing is carried out on the storage file cover array, so that the reordering of directory entries is realized. The container directory ordering flag defined by the present invention includes: bubble sorting algorithms for sorting storage dates from early to late, sorting storage dates from late to early, sorting storage file text forming dates from early to late, sorting text forming dates from late to early, sorting storage file name pinyin from A to Z, sorting storage name pinyin from Z to A and the like.
Fourthly, preparing an array of directory pages of the blank electronic file container. Analyzing the container catalog page to obtain a typesetting parameter structure of the bottom edition of the electronic file container catalog page; analyzing the obtained product to obtain: directory entry opening scope, directory page entry limit, directory entry limit byte count. In particular, the empty electronic file container comprises an off-the-shelf page of blank electronic file container directory pages. While there are a number of ways to restore the blank electronic file container catalog page for electronic file containers that hold files: such as a container directory page having a 50020 attribute value of "1", indicating that the bottom color pixel within the directory entry opening range is a single white pixel, replacing all non-white pixels within the scope of the disclosure with white pixels or replacing all pixels within the scope of the disclosure with white pixels; this is equivalent to performing a "trace erase" process on the electronic file container catalog page without affecting the "surrounding" pattern of catalog entries; thus realizing the closed loop circulation of two forms of the electronic file container directory page. Specifically, according to the cover array and the directory page entry limit of the storage file, calculating the number of the directory pages of the blank electronic file container to be copied; the corresponding copy is implemented, and the codes are integrated into an array of blank electronic file container directory pages (at least one blank electronic file container directory page).
Fifthly, encoding to generate an electronic file container directory entry array. Specifically, according to the new cover array of the storage file, the storage file is analyzed one by one to obtain parameters such as directory number, storage file name, storage file suffix, interval character string, storage file page number or storage file playing time, index information and the like. Wherein, the catalog page entry number is the new storage file cover array subscript plus "1". And according to the length limit byte number of the storage file name catalog entry, if the storage file name is overlong, deleting the last part of the storage file name in order to keep the catalog entry regular. And reserving a complete suffix of the storage file for expressing the type and format of the storage file. According to the directory entry limit length, insufficient parts are filled with interval character strings, so that the container directory page is tidy and beautiful, and visual association of parameters at two ends of the interval character strings can be established; the interval character includes: ","; "…", "-", "- ﹡", etc. The playing time of the storage file is usually expressed in time minutes and seconds; but "time" is zero and may be omitted. 8 bytes are reserved for the initial physical address of the cover of the storage file and the word length of the cover of the storage file before the physical address is accumulated. Specifically, the electronic file container processing software codes the parameters to generate an entry in a record in a standardized way; and then encoding the new cover arrays of the storage files one by one to generate an electronic file container directory entry array. According to the storage file array, encoding to generate an electronic file container directory entry array, and encoding to generate a storage file cover array; therefore, there is a one-to-one correspondence between the three.
Sixthly, an electronic file container directory page array is opened. Specifically, the electronic file container directory entry array is split into directory entry page arrays (corresponding to blank electronic file container directory page number sets) according to the directory page entry limit. Specifically, according to the electronic file container directory page typesetting parameter structure body, a plurality of directory entry page arrays (the same as blank electronic file container directory page arrays) are opened one by one on the blank electronic file container directory page arrays corresponding to one, and a new electronic file container directory page array is generated by encoding.
Seventhly, replacing index information of the container bottom plate. Specifically, the word length of the attribute structure of the bottom plate of the electronic file container is stored in the parameter NextBaseLen [4], and the word length can be obtained by storing the file. In this way, the index information is accumulated and replaced one by one according to the sequence of the container cover, the container catalog page array, the storage file cover array and the container examination table array in sequence; finally, the codes are integrated into an electronic file container. Specifically, the initial physical addresses in the bottom plate of all electronic file containers can be sequentially obtained in a cumulative way, namely, the initial physical address of the attribute structure body of the bottom plate of the electronic file container is added with the word length of the initial physical address, namely, the initial physical address of the attribute structure body of the bottom plate of the next electronic file container; the word length of the next master attribute structure of the next electronic file container bottom attribute structure which can be converted to the next electronic file container bottom attribute structure; thereby completing the replacement of the electronic file container master index information. The index information of the container bottom plate is used for the scrolling function of the electronic file container.
And eighth, replacing index information of the directory page of the electronic file container. Specifically, the physical starting address of the front cover of the storage file and the word length code of the front cover of the storage file are used for generating index information of the storage file, and the index information in the corresponding directory entry is replaced; further, the index information of each entry record in the directory entry page array is replaced (enriched) one by one; encoding to generate a new catalog entry page array; replacing the new directory entry page array with the directory page of the electronic file container, wherein the directory page array corresponds to the original directory entry page array; thereby completing the replacement of the directory entry index information of the directory page of the electronic file container. And replacing page by page to finish the replacement of the index information of the directory page of the electronic file container. The index information of the container catalog page catalog items is used for retrieving the cover and the body of the storage file of the electronic file container, and has the functions of opening, displaying and copying the storage file.
And ninety, encoding to generate an electronic file container. Specifically, the file header marks, the container cover, the container directory page array, the storage file cover array, the container examination table array and the like are sequentially encoded and integrated into an electronic file container after storage operation.
The present embodiment is based on the electronic file container in TIFF format, just like electronic files in multi-page TIFF format. The container cover, the container directory page array, the storage file cover array and the container examination list array can be directly opened and turned over.
Specifically, when the blank electronic file container is produced by coding, a manufacturer generates typesetting information of a master version of the electronic file container directory page in advance according to the application requirement of the electronic file container directory page, and formats the typesetting information in the blank electronic file container directory page.
Traditional typesetting refers to arranging together according to manuscript types, graphic plates and the like to form books and newspaper plates for printing; the technical characteristics are that: 1. the layout size is fixed. 2. The typesetting object is a known page layout; but with a greater degree of freedom. 3. Each typeset content occupies a range of the layout as known. 4. Typesetting the content: is a real word and a picture. 5. Typesetting behavior occurs with the evolution behavior. The typesetting referred to herein, firstly, separates typesetting behavior from opening behavior. During production, test data pre-typesetting operation is implemented; when the electronic file container is opened, the opening behavior is implemented according to the typesetting information so as to adapt to the opening requirement of the electronic file container. The pre-composition operation (also called test composition) defined herein is characterized by: 1. the page layout, the layout parameters and the number of the layout parameters are known. 2. Typesetting objects are filling out characters and pasting images. 3. Typesetting the content: for test data (parameters are set for prediction) and the range of the set-up is defined. 4. And innovating a standard published typesetting information for future development. 5. The prescribed composition information is formatted in an electronic file container. 6. Typesetting behavior occurs before the development behavior. The application characteristics of typesetting information are: 1. the opening behavior occurs after the typesetting behavior, and the requirements of opening blank electronic file container directory pages and recoding to generate the electronic file container directory pages are met. 2. The container catalog page typesetting information is formatted in an electronic file container, and the electronic file container catalog page is generated by supporting offline development (coding) with use and fetch.
Specifically, the provisioning parameters are defined herein as two types of filling out characters and pasting images. The prescribed typesetting information of the composition is different and is respectively composed of a group of typesetting parameters. Specifically, the typesetting parameters herein include: parameter type flags, parameter names, data types, parameter contents, parameter word lengths (longest word length), parameter fonts, parameter word sizes (largest word size), parameter colors, thickening flags, alignment flags, word spacing, line spacing, ranges of the flags, character ordering flags, current times of the flags, paste image names, paste image data word lengths, paste image widths, paste image heights, paste image width error absolute values, paste image height error absolute values, paste image source flags, paste image formats, paste mode flags and the like; the design of the opening parameters is to ensure that the display effects of the container covers, the container catalogue pages, the file collection covers, the container examination sheets and the like which are opened (including stamping) in the future can meet the needs of users. Further, the number of the parameters and the layout of the container master are determined by the design of a main management unit.
The full path of the electronic file container can be expressed as a full path structure of the electronic file container (ContainerFullPath)
typedefstructContainerFullPath
{
BYTEContainerFullPathLen [8]; the word length of the full path structure of the electronic file container.
BYTEContainerPath [80]; electronic file container path.
ByteContainerName [80]; electronic file container name.
BYTECreationDate [24]; date of creation: time of year, month, day, minute and second.
};
Electronic file container header identification (FileHead):
TypedefstructFileHead
{
BYTEByteOrder [2]; the value of the/(TIFF flag, which is 0x 4949), indicates that the image is in Intel integer format (low byte on the left, high byte on the right).
ByteVersion [2]; the version number of the/(TIFF file 0x 2A) may check whether the file is a TIFF image file.
BYTEOffsetToIFD [4]; the starting physical address of the container envelope.
};
The electronic file container directory page may be expressed as an electronic file container directory page master attribute structure (ContainerDir [ Contention Total Page-1 ])
typedefstructContainerDir[ContentsTotalPage-1]
{
BYTEContainerDirLen [8]; the electronic file container directory page master attribute structure word length.
BYTEATributeNum [2]; number of container directory attributes (16 attributes).
BYTEImageWidth [12]; number of pixels per image width (number 256=0x0100), data type LONG (0004), number of data (00000001), and value of (4 bytes).
BYTEImageHeight [12]; the number of pixels per image height (number 257=0x0101), the data type LONG (0004), the number of data (00000001), and the value of (4 bytes).
BYTEColorDepth [12]; /(color depth) (number 258=0x102); data type LONG (0004), data number (00000002), color depth value offset pointer. The color depth value (0008000800080008) is defined as 24-bit true color.
ByteCompression [12]; a/(image data compression flag) (number 259=0x0103); data type SHORT (0003), number of data (00000001), value (00000005). 05, defining to adopt LZW lossless compression.
BYTEFillOrder [12]; the bitmap pixel ordering flag (number 266=0x010A), the data type SHORT (0003), the number of data (00000001), and the value (00000001). 1, indicating that the bitmap start pixel is the upper left corner, in the order: from left to right, from top to bottom, and from row to row.
BytebitMapData [12]; the// bitmap (number 273=0x0111), data type Long (0004), data number (bitmapdata len/4), directory page bitmap structure offset pointer.
BYTEXResolution [12]; a/horizontal resolution (number 282=0x011A), data type ratio (0005), data number (00000001), horizontal resolution value offset pointer. The default unit of measure is: pixels/inch. Through a large number of tests and applications, the method is defined as 120DPI, so that the display information of the container catalogue can be ensured to be clear, and the compression volume can meet the application requirements.
Byteyresolution [12]; /(vertical resolution (number 283=0x011B), data type random (0005), number of data (00000001), vertical resolution value offset pointer. At the same level of resolution.
BYTEPageIndex [12]; the/(custom properties (number 50013=0xa 39B), data type Long (0004), data number (pageindex len ≡4), 50013 properties value offset pointer (present page directory entry page array).
BYTEContainerDirTypeset [12]; the/(custom properties (number 50014=0xa 39C), data type Long (0004), data number (controleredirtypesetlen ≡4), 50014 properties value offset pointer (electronic file container directory page layout parameter structure).
Bytedefined3[12]; the// custom attribute (number 50015=0xa 39D), data type Long (0004), number of data (not custom, "0"), 50015 attribute value offset pointer.
Bytedefined4[12]; the// custom attribute (number 50016=0xa 39E), data type Long (0004), number of data (not custom, "0"), 50016 attribute value offset pointer.
Bytedefined5[12]; the// custom attribute (number 50017=0xa 39F), data type Long (0004), number of data (not custom, "0"), 50017 attribute value offset pointer.
Bytedefined6[12]; the// custom attribute (number 50018=0xa 3 A0), data type Long (0004), number of data (not custom, "0"), 50018 attribute value offset pointer.
Bytedefined7[12]; the// custom attribute (number 50019=0xa 3 A1), data type Long (0004), number of data (not custom, "0"), 50019 attribute value offset pointer.
BytedirGenerator method [12]; the method comprises the steps of/(custom property (number 500120 =0XA3A 2), data type Long (0004), data number (0001), 50020 property value (container catalog page base plate format number (DirGenerator nMethod), "1" is an automatically generated monochromatic base plate format, base color pixels are pure white, "2" is an automatically generated monochromatic base plate format, base color pixels are light yellow, "3" is an automatically generated monochromatic base plate format, base color pixels are light green, … … "1FF" is an automatically generated monochromatic base plate format, base color pixels are light blue, and authority users such as national archives office define the base plate format numbers of other container catalog pages.
BYTESuperLong [ ]; the// container directory super long data structure.
BYTEBillPage [6]; number of pages of container directory (ThisDirPageNum same).
BYTENextDEOffset [4]; the/(next master attribute structure (attribute number)) offset pointer (starting physical address).
BYTENextBaseLen [4]; the next master attribute structure word length.
}
The electronic file container contents may be expressed as an electronic file container content parameter structure (ContainerStructure)
TypedefstructContainerStructure
{
ByteFileHead; electronic file container header identification.
ByteContainerCover; the electronic file container cover master attribute structure.
BYTEContainerDir [ ContentisTotalPage-1 ]; the electronic file container directory page master attribute structure array.
BYTEContainerStorageFile [ FolderFileNum-1]; the array of document cover master attribute structures is/are stored.
BYTEContainerR effect [ reference Total Page-1]; the electronic file container prepares an array of table master attribute structures.
};
The super long data information of the electronic file container catalog page can be expressed as a catalog super long data structure body (SuperLong)
TypedefstructSuperLong
{
BYTESuperlongLen [8]; the electronic file container directory is of very long data structure word length.
BYTEColorDepth [8]; /(color depth). The 24-bit RGB bitmap is defined as "08080808".
BYTEBitMapLen [8]; the electronic file container directory page bitmap data word length.
ByteBitMapData [ BitMapLen ]; electronic file container directory page bitmap data.
BYTEXResolution [8]; level resolution. For example: 120DPI is defined as "120/1".
Byteyresolution [8]; vertical resolution. For example: 120DPI is defined as "120/1".
BYTEPageIndex [2]; the/(50013) attribute (the directory entry page array of this page. Illustrate that, at the time of manufacture, it is pre-stored).
ByteContainerDirType [ ] t; the// 50014 attribute (electronic file container directory page layout parameter structure).
Bytedefined3; the/(50015 attribute content (not custom, null).
Bytedefined4; the/(50016) attribute content (not custom, null).
Bytedefined5; the/(50017 attribute content (not custom, null).
Bytedefined6; the/(50018) attribute content (not custom, null).
Bytedefined7; the/(50019) attribute content (not custom, null).
Bytedirgenerationmethod; the/(50020) attribute content (not custom, null).
};
Example two
Recoding to generate an electronic file container directory page is an intermediate link in the process of storing the electronic file container directory page. Taking the TIFF format electronic file container as an example, the electronic file container encoder 10 encodes and generates: new storage file cover array, deletion of electronic file array, and analysis of electronic file container to obtain: the electronic file container full path, the electronic file container head mark, the electronic file container cover master attribute structure, the electronic file container catalog page master attribute structure array, the storage file cover master attribute structure (containing storage files) array and the electronic file container backup list master attribute structure array. Further, the electronic document container encoder 10 generates a new storage document cover array by encoding. Specifically, analyzing an electronic file container directory page array to obtain a first electronic file container directory page (ContainerDir); and further analyzing the electronic file container directory page to obtain the range of the layout parameter structure body of the electronic file container directory page, the maximum number m of the directory entries of the container directory page, the directory entry array, the directory entry page array and the like.
In this embodiment, as shown in a flow chart 2 of the method for generating the recoding of the directory page of the electronic file container, the method of the present invention is described with reference to a structural chart 3 of the device for generating the recoding of the directory page of the electronic file container; the implementation process is as follows:
st1: the process blank electronic file container catalog page program module 11 prepares a blank electronic file container catalog page array; the implementation steps are as follows:
step 100: and directly obtaining a blank electronic file container directory page. Specifically, an electronic file container directory page master attribute structure (contenerdir) is parsed to obtain a page array of the present page directory entries. If it is a full "FF", it is indicated that this is a blank electronic file container directory page. Step 102 is implemented. Otherwise, continuing.
Step 101: a blank electronic file container directory page is obtained by a replacement pixel (erase trace) technique. Specifically, the electronic file container directory page master attribute structure is parsed to obtain the container directory page master layout number in the 50020 attribute value. According to the container directory page master layout number, if it is "1", it corresponds to "white" pixels (FF, FF); replacing all pixels within the scope of the opening in the directory page bitmap of the electronic file container with the pixel; a blank electronic file container directory page is obtained.
Step 102: an array of blank electronic file container directory pages is generated. Specifically, the index number n of the electronic file container directory is obtained by adding 1 to the index array index. If the number n of directory entries is less than or equal to the maximum number m of directory entries of container directory pages, the blank electronic file container directory pages are not copied; otherwise, calculating: the number of directory entries n/container directory pages opens a maximum of directory entry number m=quotient j … … remainder k. If the remainder k is not zero, preparing a blank electronic file container directory page group program module 11 to copy j blank electronic file container directory pages; if the remainder is zero, the prepare blank electronic file container directory page group program module 11 needs to copy (j-1) pages of the blank electronic file container directory page. And further encoding to generate a blank electronic file container directory page array. Wherein n and k are natural numbers greater than or equal to 0, and m and j are natural numbers greater than "0". Specifically, the number of container catalog pages starts from "1" and progresses in natural number order.
St2: the stored file cover array bubbling program module 12 reorders the stored file cover arrays of the electronic file container. Specifically, the storage file cover array bubbling program module 12 includes a storage file display sub-window; the implementation steps are as follows:
Step 200: and acquiring the directory ordering mark of the electronic file container. Specifically, the storage file cover array bubbling program module 12 parses the electronic file container cover, parses and obtains the electronic file container directory ordering flag; and displayed in the container directory ordering flag drop down selection menu. In actual operation, if a worker defaults the original container directory ordering mark, the original container directory ordering mark is not used; if the electronic file container directory ordering mark needs to be changed, a new electronic file container directory ordering mark is selected and determined through a container directory ordering mark drop-down menu, and is stored in a computer memory; and replaces the catalog ordering flag in the container envelope.
Step 201: the storage file cover arrays are reordered. Specifically, according to the electronic file container directory ordering flag, the corresponding bubbling element in the storage file cover array is taken out, such as: the electronic file storage time of the container, the pinyin letters of the names of the storage files, the date of the writing of the storage files, the types of the storage files and the like, and the cover array of the storage files is subjected to bubbling sequencing: and obtaining a new storage file cover array subjected to bubbling sequencing.
St3: the code generation container directory array program module 13 code generates a container directory entry array; firstly, designing a maximum number m of directory entries of an electronic file container directory page to be 30; the container directory entry word length is 88 bytes. And secondly, the directory page entry number is the index of the cover array of the storage file plus "1". Thirdly, designing the name (which can be abbreviated) +the total word length of the suffix of the storage file to be not more than 46 bytes; the file storage suffix enables a user to know the type and format of the storage file. Fourth, the character of the interval string is adopted as "."; the interval character string word length is: container directory entry word length 88 bytes- (storage file name + storage file suffix) word length- (3 space) -storage file page number word length or storage file play time word length. The implementation steps are as follows:
Step 300: preparing composition parameters of container directory entries; specifically, analyzing the storage file cover array to obtain a storage file cover; analyzing the obtained product to obtain: an array element subscript (adding 1, namely a directory entry number), a storage file name, a storage file suffix, a storage file page number or storage file playing time; and calculates the word length of the interval character string, and prepares the interval character string.
Step 301: encoding to generate a container directory entry; specifically, a data structure defining container directory entries: directory entry number + space + (storage file name + storage file suffix) +space + space string + space + storage file page number or storage file play time + storage file cover start physical address + storage file cover master word length. The code generation container directory array program module 14 generates a container directory entry by encoding its constituent parameters according to the container directory entry data structure.
Step 302: encoding to generate a directory entry array; specifically, according to the storage file cover template array, the storage file covers are analyzed one by one, and a container directory entry is generated by encoding; and further encoding to generate an array of container directory entries.
St4: the program module 14 opens an electronic file container directory page array to generate an electronic file directory page array. The implementation steps are as follows:
step 400: generating a plurality of container directory entry page arrays; specifically, according to the maximum opening directory entry number m of the electronic file container directory page, dividing the directory entry number group into a plurality of container directory entry page arrays; wherein the plurality of container directory entry page arrays comprises at least one container directory entry page array; and the number of container directory entries in the final container directory entry page array is less than or equal to m.
Step 401: creating an electronic file directory page array; specifically, according to the electronic file container directory page typesetting parameter structure (container directory page master typesetting information), the electronic file container directory program module 15 opens the container directory entry pages one by one on the blank electronic file container directory page corresponding to the container directory entry pages; until all the page number groups of the container catalogue are sequentially arranged in the corresponding blank electronic file container catalogue page groups; thereby obtaining an array of electronic file container directory pages for which directory entries have been made.
St5: the electronic file container code integrating program module 15 integrates the electronic file container codes into the electronic file container content; the implementation steps are as follows:
Step 500: description of the constituent parts of the electronic document container is implemented. Specifically, the components of the electronic file container include a container cover, a container catalog page array, a storage file cover array, and a container examination table array. Further minimizing component parts to each container catalog page, accommodating file covers, container exam sheets, and the like. The container cover, container cover master, and container base attribute structures herein are all intended to represent the same object; the first two names are emphasized from a human perspective; the container floor attribute structure is emphasized from a computer data sharing perspective. The same expression method is also adopted for the cover of the storage file, the container catalog page and the container examination table. Only the file cover attribute structure body is provided with one more file member parameter, and the data structures are slightly different.
Step 501: the codes are integrated into the "primary" electronic file container content. Specifically, the electronic file container head mark, the electronic file container cover, the electronic file container directory page array, the storage file cover array and the electronic file container backup list code are integrated into one electronic file container content.
Step 502: and accumulating and modifying the member parameters of all the electronic file container templates. Specifically, the container head identifier (FileHead) is as described in embodiment one; wherein OffsetToIFD is the container envelope starting physical address.
Specifically, the electronic file container code integration program module 15 obtains a container cover master attribute structure based on a container cover start physical address (OffsetToIFD) of the container head identifier. Specifically, analyzing a container cover master attribute structure to obtain a word length (ContainerDirLen) thereof; the starting address of the container cover and the attribute structure word length of the container cover master are accumulated as the starting physical address of the next container master of the container cover, and the parameters of the structure are replaced: the next master attribute structure (NextDEOffset, i.e., starting physical address). The method for generating the initial physical address in an accumulated way supports seamless storage among storage files.
Specifically, the starting physical address (NextDEOffset) of the "next-master attribute structure (i)" in the last container-master attribute structure (i-1); thus, the container master attribute structure (i) is obtained. Analyzing the container master attribute structure (i) to obtain the word length (i, containerDirLen) of the container master attribute structure; and accumulating the sum of the initial physical address of the container master attribute structure (i) and the word length of the container master attribute structure (i) to obtain the initial physical address of the next container master attribute structure (i+1). The next container master attribute structure (i+1) start physical address is substituted for the next master attribute structure start physical address (i+1, nextdeoffset) in the present container master attribute structure (i). The replacement of the initial physical address of a container master attribute structure is completed. Description: i is the attribute structure number of the container master. Sequentially accumulating and replacing until the initial physical address of the last container master attribute structure is completely replaced.
Step 503: exchanging member parameters of a master of an electronic file container: "next master attribute structure word length". Specifically, the next master attribute structure (i) word length in the container master attribute structure (i) is obtained and replaced with the next master attribute structure (i-1) word length in the container master attribute structure (i-1). From the last container master attribute structure, the replacement is sequentially from bottom to top until the "next master attribute structure word length" of the container master attribute structure (i=1, container cover) is exchanged.
The index information of the electronic file container bottom plate is replaced, so that the page-by-page turning function of the electronic file container is realized.
Step 504: enriching index information in the replacement directory entries; specifically, the container master start physical address (NextDEOffset) obtained in step 503 and the container master word length (NextBaseLen) code obtained in step 504 are integrated into index information. Specifically, starting from the container cover, sequentially acquiring index information of the container master, and filling the index information into corresponding directory entries of the electronic file container directory page array; until each directory entry index information in the electronic file container directory page array is replaced with a full. Thus realizing the method for recoding and generating the catalog page of the electronic file container as shown in the first embodiment; the number of pages of the directory of the electronic file container is formed as a component of the electronic file container.
Example III
FIG. 3 is a schematic diagram showing the structure of an electronic file container directory page code generating apparatus according to the present embodiment; which includes an electronic file container encoder 10. The electronic-file container encoder 10 is configured to execute the container directory page recoding generation method shown in the second embodiment; the system comprises a blank electronic file container catalog processing module 11, a storage file cover array bubbling processing module 12, a coding generation container catalog array processing module 13, an electronic file container catalog page number array issuing module 14 and an electronic file container coding integration processing module 15. Wherein, the liquid crystal display device comprises a liquid crystal display device,
the process empty electronic file container directory page program module 11 is for preparing an array of empty electronic file container directory pages. Specifically, directly obtaining a blank electronic file container catalog page; or obtaining a blank electronic file container directory page by replacing pixel technology; and further copying the codes to generate a blank electronic file container directory page array.
The stored file cover array bubbling program module 12 is configured to reorder the stored file cover arrays of the electronic file container. Specifically, the storage file cover array bubbling program module 12 includes a storage file display sub-window; a manual selection or default electronic file container directory ordering flag. Then, the corresponding bubbling sequencing is implemented on the cover array of the storage file according to the bubbling sequencing: and obtaining a new storage file cover array subjected to bubbling sequencing.
The code generation container directory array program module 13 is for code generation container directory entry arrays. Specifically, the composition parameters for preparing container directory entries include: the directory entry number, the storage file name, the storage file suffix, the interval character string, the storage file page number, the storage file playing time, the index information and the like are encoded to generate a container directory entry array.
The electronic file container directory page array program module 14 is configured to generate an electronic file directory page array. Specifically, according to the container directory entry array and the maximum prescribed directory entry number m of the electronic file container directory pages, a plurality of container directory entry page arrays are generated by encoding. Then, according to the typesetting parameter structure body of the electronic file container catalog page, the container catalog entry page number groups are arranged on the corresponding blank electronic file container catalog page one by one; and formatted in its corresponding blank electronic file container catalog page; thereby obtaining an array of electronic file container directory pages for which directory entries have been made.
The electronic document container code integrating program module 15 is used for code integrating into the electronic document container content. Specifically, the components of the electronic file container are defined, including container covers, container catalog pages, storage file covers, container examination sheets and the like. The codes are then integrated into the "primary" electronic file container content. Then, coding to generate a container head mark; accumulating and replacing the initial physical address of the next container master in each container bottom plate; exchanging the next container master word length in each container bottom plate; and the replacement of the electronic file container master index information is completed, and the page-by-page turning function of the electronic file container is realized. Finally, the container master starting physical address and the container master length code are integrated into index information. Sequentially replacing the index information of the acquired container master from the container cover into the corresponding directory entry in the directory page array of the electronic file container; until each directory entry in the electronic file container directory page array completes the full replacement of the index information. Thus realizing the method for recoding and generating the catalog page of the electronic file container as shown in the first and second embodiments; the electronic file container catalog page is formatted in an electronic file container. The electronic file container has the functions of page-by-page reading, searching, opening, displaying and copying the storage files by means of the directory pages of the electronic file container. Without the need for storage devices, databases, networks, etc.
Example IV
The present embodiment is a method flow of opening a display container, turning over the container, searching a catalog for a storage file (including a table for a reference), opening a display storage file (including a table for a reference), copying a storage file (including a table for a reference), and the like of an electronic file container. The electronic file container is a single-shared virtual storage device; it has no design File Control Block (FCB), which is a continuous block of memory; its file control information (using directory entry arrays) is very simple and they are formatted in electronic file container directory pages. The precondition for implementing the method is that: first, the user installs the electronic file container processing software (including the electronic file container encoder 10). Next, an electronic document container in which the document has been stored is loaded. Thirdly, the memory of the computer is preferably larger than the volume of the electronic file container, so that the container can be turned over very smoothly; taking the storage file as an example, the implementation process is as follows:
st1: the page electronic document container program module 16 pages the electronic document container; the implementation steps are as follows:
step 100: selecting and opening an electronic file container, and displaying a container cover; during actual operation, a worker clicks the electronic file container processing software; after being activated and opened, the file display sub-window of the electronic file container processing software is popped up; wherein a list of electronic file containers is displayed. The worker clicks on the selected electronic file container in the window, and the electronic file container program module 16 calls an operating system (the main stream operating system has a command for opening TIFF format image files) to open the file command, parses the electronic file container into an electronic file container header identifier, an electronic file container cover master attribute structure, an electronic file container directory page master attribute structure array, a storage file cover master attribute structure array, an electronic file container examination table master attribute structure array, and the like, and presents the electronic file container cover by default. The function of opening and displaying the electronic file container is realized.
Step 101: page by page, browsing the container cover, the container catalog page array, the storage file cover array and each page of the master edition of the container backup list array. In actual operation, a worker turns the electronic file container page by page through a left and right (or front and back) turn key in the file display sub-window of the electronic file container processing software. It is through the container attribute structure in the bottom edition: the index information of the next master starting physical address (NextDEOffset) and the next container master word length (NextBaseLen) implements a page-by-page flip function.
St2: the process storage file index program module 17 searches storage files and the like based on the directory; the implementation steps are as follows:
step 200: the activation process houses the file index program module 17. In actual operation, the user turns through the display window and pages the electronic file container directory to find the directory entry of the target storage file, clicks the target directory entry, and activates the subroutine of the storage file index program module 17. Specifically, the window hook program function: first, the click directory entry location is intercepted, and the target directory entry sequence number is obtained. Next, the container directory page is parsed to obtain an array of container directory entry pages. Thirdly, according to the directory entry serial number, the directory entry selected by the worker is found from the container directory entry page array, and comprises the directory entry for accommodating the file cover and the directory entry of the container reference table.
Step 201: retrieving an acquisition target object such as a storage file; specifically, the directory entry is parsed to obtain index information for accommodating the cover of the file. Further, obtaining a storage file cover master attribute structure according to the storage file cover initial offset and the storage file cover word length of the index information; analyzing the attribute structure of the cover plate of the storage file, and taking out the initial physical address and word length of the content of the storage file from the attribute structure; further searching and obtaining the content of the storage file; and according to the storage file directory entry and the default path of the electronic file container processing software, the storage file full path is generated by encoding, so that the search function of the storage file is realized.
Step 202: the target object is opened and copied. Specifically, the storage file is stored in a full path tree of the operating system by using an operating system file storage command, and the storage file content is stored under a logical address of the full path of the storage file, so that the storage file copying function is realized. And opening the copied storage file by using an operating system file opening command to display the first page of the storage file by default, thereby realizing the function of opening and displaying the storage file.
The method comprises the following steps of opening a display container, page-by-page turning the container, searching a storage file in a directory, opening display, copying the storage file in the storage file and the like of an electronic file container; the "offline", and no database support are realized. The electronic file container is opened for display page by page, and special client software is not needed; the application scene of the electronic file container is enlarged.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the electronic file container encoder 10 described above may be accomplished by a program that instructs associated hardware, which program may be stored on a computer readable storage medium such as a read-only memory, magnetic or optical disk, or the like. Alternatively, each functional module in the above-described embodiments may be implemented in the form of hardware (such as a computer) or may be implemented in the form of a software functional module. The present invention is not limited to any specific form of hardware in combination with software.
Example five
The present embodiment is a processing apparatus including: at least one electrically connected processor;
the processor may be a central processing unit, or other processing unit having data processing capabilities and/or instruction execution capabilities;
At least one memory electrically connected; the memory is used for storing at least one program; when the program is executed by the processor, a method for recoding and generating an electronic file container directory as described in the first to third embodiments can be implemented.

Claims (10)

1. A method for generating directory page code of electronic file container is characterized by that,
after the electronic file container accommodating operation, simultaneously encoding to generate an electronic file container catalog entry array;
obtaining a blank electronic file container catalog page array;
the blank electronic file container catalog page number group at least comprises one blank electronic file container catalog page;
the electronic file container directory entries in the electronic file container directory entry array are opened one by one in the blank electronic file container directory page array, and an electronic file container directory page array is generated by encoding;
formatting the electronic file container directory entry array in an electronic file container.
2. The method for generating a directory page code for a container as claimed in claim 1, wherein,
obtaining a directory entry opening range of the electronic file container directory page;
obtaining the background color pixels of the blank electronic file container catalog page;
Replacing all non-ground color pixels within the directory entry opening range of the electronic file container directory page;
and/or, replacing all pixels within the directory entry opening range of the electronic file container directory page;
thereby obtaining the blank electronic file container directory page.
3. The method for generating a directory page code for a container as claimed in claim 1, wherein,
the electronic file container directory page is a component part of an electronic file;
index information for retrieving the storage file is stored in an electronic file container.
4. The method for generating a directory page code for a container as claimed in claim 1, wherein,
and opening the electronic file container directory page according to the electronic file container directory page typesetting parameter structure body.
5. The method for generating a directory page code for a container as claimed in claim 1, wherein,
the directory entry includes index information corresponding to the storage file.
6. The method for generating a directory page code for a container as claimed in claim 1, wherein,
the index address of the electronic file container is a physical address;
formatted in the directory entry;
and/or formatted in an electronic document container master attribute structure.
7. The method for generating a directory page code for a container as claimed in claim 1, wherein,
the storage files in the electronic file container are stored in a seamless mode;
and/or the storage file covers are stored in a seamless mode.
8. The method for generating a directory page code for a container as claimed in claim 1, wherein,
the parasitic host of the electronic document container also includes electronic documents in GIF, PNG, BMP, JPEG, JSON, XML, OFD format.
9. An operation method for searching the file in the electronic file container is characterized in that,
searching the storage file in the electronic file container offline;
and the electronic file container can be used for offline browsing, opening and copying the stored files.
10. The operation for retrieving documents in an electronic document container as claimed in claim 9, wherein,
intercepting to obtain the directory entry;
analyzing the catalog entries to obtain index information of the cover of the storage file;
obtaining a storage file cover master attribute structure according to the index information of the storage file cover;
and analyzing the storage file cover template attribute structure to obtain the storage file.
CN202211583848.2A 2022-12-10 2022-12-10 Directory code generation method of electronic file container and method for retrieving container storage file Pending CN116719774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211583848.2A CN116719774A (en) 2022-12-10 2022-12-10 Directory code generation method of electronic file container and method for retrieving container storage file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211583848.2A CN116719774A (en) 2022-12-10 2022-12-10 Directory code generation method of electronic file container and method for retrieving container storage file

Publications (1)

Publication Number Publication Date
CN116719774A true CN116719774A (en) 2023-09-08

Family

ID=87868457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211583848.2A Pending CN116719774A (en) 2022-12-10 2022-12-10 Directory code generation method of electronic file container and method for retrieving container storage file

Country Status (1)

Country Link
CN (1) CN116719774A (en)

Similar Documents

Publication Publication Date Title
CN111753499B (en) Method for merging and displaying electronic form and OFD format file and generating directory
US6754668B2 (en) Multilingual system having dynamic language selection
US7469380B2 (en) Dynamic document and template previews
US7493561B2 (en) Storage and utilization of slide presentation slides
EP2041672B1 (en) Methods and apparatus for reusing data access and presentation elements
US5717922A (en) Method and system for management of logical links between document elements during document interchange
US20130055071A1 (en) Systems and methods for creating a customized website
US20110035660A1 (en) System and method for the automated creation of a virtual publication
US20100199166A1 (en) Image Component WEB/PC Repository
WO1991008538A1 (en) Document management and production system
CA2309050A1 (en) Publication file conversion and display
US5813020A (en) Method and system for dynamic presentation parameter override during document interchange
US20060174193A1 (en) Document processing apparatus and method, and document processing system
JP2001337994A (en) Thumbnail display system and method and recording medium with processing program therefor recorded therein
US8578268B2 (en) Rendering electronic documents having linked textboxes
JP2000231505A (en) Automatically naming method for data object group and its storage medium
CN116719774A (en) Directory code generation method of electronic file container and method for retrieving container storage file
US20050262054A1 (en) Item type specific structured search
CN110807298B (en) Method and system for processing marking information
JP2009098829A (en) Frame retrieval device for cartoon
US20130031085A1 (en) Docbase management system and implenting method thereof
CN114372024A (en) Electronic file container, code generation method and device
JP3910680B2 (en) Material allocation device prepared as digital data
JP2007334530A (en) Multiple format business form integration printing method, system and program
JP4258755B2 (en) How to save and view documents and drawings using microfilm and electronic media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication