CN114139506A - Document processing method, apparatus, storage medium, and program product - Google Patents

Document processing method, apparatus, storage medium, and program product Download PDF

Info

Publication number
CN114139506A
CN114139506A CN202111489295.XA CN202111489295A CN114139506A CN 114139506 A CN114139506 A CN 114139506A CN 202111489295 A CN202111489295 A CN 202111489295A CN 114139506 A CN114139506 A CN 114139506A
Authority
CN
China
Prior art keywords
document
processed
editor
version
touch operation
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
CN202111489295.XA
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111489295.XA priority Critical patent/CN114139506A/en
Publication of CN114139506A publication Critical patent/CN114139506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/116Details of conversion of file system types or formats
    • 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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/197Version control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a document processing method, a device, a storage medium and a program product, wherein the method comprises the steps of responding to touch operation of an editing interface acting on a document to be processed in an editor, and adding different version identifications to structural information belonging to different versions in the document to be processed; the document to be processed is in a Darwin information type system structure DITA format, comprises a plurality of structured information, generates a version filtering file of a target version based on a version identifier, responds to touch operation of an editing interface acting on a Gradle project file in an editor, generates a release task based on the name of the document to be processed, the path information of the version filtering file and the target format, compiles and releases the document to be processed based on a document generating tool according to the release task, and generates a release document of the target version in the target format. The method and the device for processing the document structure can reduce the cost of document structured processing and improve the cost performance.

Description

Document processing method, apparatus, storage medium, and program product
Technical Field
The embodiments of the present application relate to the field of data processing technologies, and in particular, to a document processing method, a document processing apparatus, a storage medium, and a program product.
Background
The structured development mode is a trend of current document development, and is a document development mode which assembles corresponding information segments for different versions by splitting a document into a plurality of information segments.
In the prior art, a paid structured development tool can be adopted for developing and processing documents, and a development team built by an enterprise can be used for developing and maintaining a self-owned tool.
However, in the process of implementing the present application, the inventors found that at least the following problems exist in the prior art: whether the development and maintenance of the development tool are carried out by a payment tool or a special building team, higher cost is required, and particularly, the cost performance is too low for customers with not large budgets, document sizes and product appeal.
Disclosure of Invention
Embodiments of the present application provide a document processing method, a document processing apparatus, a storage medium, and a program product, so as to reduce the cost of structured document development and processing, improve the cost performance, and meet the requirements of clients with low budget and small document scale and product appeal.
In a first aspect, an embodiment of the present application provides a document processing method, including:
responding to touch operation of an editing interface of a document to be processed in an editor, and adding different version identifications to the structured information belonging to different versions in the document to be processed; the document to be processed is in a Darwinian information typing system structure DITA format and comprises a plurality of structured information;
responding to touch operation of an editing interface of the version filtering file in the editor, and generating the version filtering file of the target version based on the version identification;
responding to touch operation of an editing interface of the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and a target format;
compiling and publishing the document to be processed based on a document generation tool according to the publishing task to generate a target version publishing document in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
In one possible design, the structured information is concept type information, task type information, or reference type information.
In one possible design, the editor is Visual Studio Code or Eclipse; and/or the document generation tool is a DITA Open Toolkit.
In a possible design, before adding different version identifiers to structured information belonging to different versions in a document to be processed in response to a touch operation on an editing interface of the document to be processed in the editor, the method further includes:
and responding to touch operation acting on a document import interface in the editor, and importing the document to be processed.
In a possible design, before adding different version identifiers to structured information belonging to different versions in a document to be processed in response to a touch operation on an editing interface of the document to be processed in the editor, the method further includes:
responding to touch operation acting on a file creation interface in the editor to create a blank file;
and responding to touch operation of an editing interface of the document to be processed in the editor, and adding a plurality of pieces of structured information into the blank document to obtain the document to be processed.
In one possible design, before the adding a plurality of pieces of the structured information to the blank document in response to a touch operation on an editing interface of a document to be processed in the editor and obtaining the document to be processed, the method further includes:
responding to touch operation acting on a plug-in installation interface in the editor, and installing an XML language program;
responding to touch operation acting on a setting interface in the editor, and configuring a DTD file path; the DTD file comprises a mark symbol of a DITA structured editing language;
the responding to a touch operation on an editing interface of a document to be processed in the editor, and adding a plurality of pieces of the structured information into the blank document to obtain the document to be processed, including:
and responding to touch operation of an editing interface of a document to be processed in the editor, calling the DTD file when adding a plurality of structured information into the blank document, and automatically supplementing mark symbols.
In one possible design, the documents to be processed include at least one reference document; the response acts on the touch operation of the editing interface of the document to be processed in the editor, and adds different version identifications to the structured information belonging to different versions in the document to be processed, including:
and responding to touch operation of an editing interface of the at least one reference document in the editor, and adding different version identifications to the structural information belonging to different versions in the at least one reference document.
In a second aspect, an embodiment of the present application provides a document processing apparatus, including:
the adding module is used for responding to touch operation of an editing interface of a document to be processed in an editor and adding different version identifications to the structural information belonging to different versions in the document to be processed; the document to be processed is in a Darwinian information typing system structure DITA format and comprises a plurality of structured information;
the filtering file generating module is used for responding to touch operation of an editing interface acting on the version filtering file in the editor and generating the version filtering file of the target version based on the version identification;
the release task generating module is used for responding to touch operation of an editing interface acting on the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and a target format;
the processing module is used for compiling and publishing the document to be processed based on a document generation tool according to the publishing task to obtain the document to be processed of the target version in the target format and publishing the document to be processed of the target version; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
In a third aspect, an embodiment of the present application provides a document processing apparatus, including: a display, at least one processor, and a memory;
the display and the memory are both connected with the at least one processor;
the display is used for displaying an editing interface of the editor and receiving touch operation on the editing interface;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method according to the first aspect and various possible designs of the first aspect are implemented.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program that, when executed by a processor, implements the method as set forth in the first aspect and various possible designs of the first aspect.
In the document processing method, the document processing apparatus, the storage medium, and the program product provided by this embodiment, the method adds different version identifiers to structured information belonging to different versions in a document to be processed by responding to a touch operation acting on an editing interface of the document to be processed in an editor; the document to be processed is in a Darwin information type system architecture DITA format, comprises a plurality of pieces of structured information, responds to touch operation on an editing interface of a version filter file in the editor, generates a version filter file of a target version based on the version identification, responds to touch operation on an editing interface of a Gradle project file in the editor, generates a release task based on the name of the document to be processed, path information of the version filter file and the target format, compiles and releases the document to be processed based on a document generation tool according to the release task, and generates a release document of the target version in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats. According to the document processing method, the editor, the Gradle tool, the document generation tool and the three tools are matched for use, so that the document can be subjected to structured processing, document compiling and publishing of different versions are conveniently completed, and the three tools can adopt open source software, so that the document structured processing cost is reduced, and the cost performance is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic diagram illustrating a document processing method according to an embodiment of the present disclosure;
FIG. 2 is a first flowchart illustrating a document processing method according to an embodiment of the present disclosure;
FIG. 3 is a second flowchart illustrating a document processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a release document of version 1.0 in PDF format according to an embodiment of the present application;
fig. 5 is a schematic diagram of a published document of version 2.0 in PDF format according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of a document processing device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Document processing software such as Microsoft Word and the like cannot meet the requirements of enterprise-level multi-version and unified document development, so that most of enterprises adopt a structured development mode at present, namely, documents are disassembled into different information sections according to product, version and other structured factors, and then the information sections are assembled by a publishing tool to obtain documents of different versions, so that the information is recycled, multi-version management is carried out through the structured development mode, and the efficiency of document development and maintenance can be improved.
In the prior art, a structured development mode can be carried out through a payment tool, and a development team of the self can be established for tool development. However, whether a payment tool is adopted or a cost-invested establishment team is used for tool development, higher cost needs to be invested, and the cost performance is very low. Especially for the team with not large budget, document size and product appeal, the method is not a proper choice. Therefore, how to develop a structural development tool which satisfies a multi-user development mode, can improve development efficiency, ensures consistent document formats, and improves document output quality on the premise of low cost is a problem to be solved urgently at present.
In order to solve the technical problems, the inventor of the present application finds that the open-source software can be effectively combined to realize the function of structured document development, so as to reduce the cost and improve the cost performance. Based on this, the embodiment of the application provides a document processing method, which uses an editor, a Gradle tool, a document generation tool, and three tools in a matching manner, can perform structured processing on a document, and conveniently completes document compiling and publishing of different versions.
FIG. 1 is a schematic diagram illustrating a document processing method according to an embodiment of the present disclosure. As shown in FIG. 1, the document processing device may include an editor 101, a task management tool 102, and a document creation tool 103. In this embodiment, the editor 101 may adopt a Visual Studio Code, the task management tool 102 may adopt a Gradle, and the document generation tool 103 may adopt a ditaon Toolkit.
In a specific implementation process, through the editor 101, different version identifiers may be added to the structured information belonging to different versions in the document to be processed, and based on the version identifiers, a version filter file of a target version is generated. And compiling and publishing the document to be processed based on a document generation tool according to the publishing task through a task management module to generate a target version publishing document in the target format. The document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats. The publishing task is generated by an editor based on the name of the document to be processed, the path information of the version filter file, and the target format. According to the document processing method, the editor, the Gradle tool, the document generation tool and the three tools are matched for use, so that the document can be subjected to structured processing, document compiling and publishing of different versions are conveniently completed, and the three tools can adopt open source software, so that the document structured processing cost is reduced, and the cost performance is improved.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first flowchart of a document processing method according to an embodiment of the present application. As shown in fig. 2, the method includes:
201. responding to touch operation of an editing interface of a document to be processed in an editor, and adding different version identifications to the structured information belonging to different versions in the document to be processed; the document to be processed is in Darwin Information Typing Architecture (DITA) format and comprises a plurality of structured Information.
In this embodiment, the structured information may be concept type information, task type information, or reference type information.
In this embodiment, the editor may adopt free open source software, such as Visual Studio Code or Eclipse. The Visual Studio Code is an open source Code editor, and document editing can be performed by using the software. Before writing, chapters are divided into different types according to contents, and can be classified into concept, task, Reference, and the like. And further, different contents can be marked according to the specific structure of the type and the specific DITA marking language, so that the DITA structured editing and writing can be realized. According to the document processing method, the editor, the Gradle tool, the document generation tool and the three tools are matched for use, so that the document can be subjected to structured processing, document compiling and publishing of different versions are conveniently completed, and the three tools can adopt open source software, so that the document structured processing cost is reduced, and the cost performance is improved.
In this embodiment, a variable may be set in the manner of adding the version identifier, for example, by using audio ═ x ", the content is versioned. If the version is 1.0, it is possible to let audio 1.0, exemplarily, "< audio 1.0" > this is the content of version 1.0. </p > ". If the version is 2.0, it is possible to let audio be 2.0, and exemplarily, "< p audio be" 2.0"> this is the content of version 2.0. </p > ".
In this embodiment, the source of the document to be processed may be various, and in one implementation manner, the document to be processed may be obtained in a manner of importing the document. Specifically, before the responding to the touch operation acting on the editing interface of the document to be processed in the editor and adding different version identifiers to the structured information belonging to different versions in the document to be processed, the method may further include: and responding to touch operation acting on a document import interface in the editor, and importing the document to be processed.
In another implementation, a blank document may be created by an editor, and the blank document may be edited to obtain a document to be processed. Specifically, before the responding to the touch operation acting on the editing interface of the document to be processed in the editor and adding different version identifiers to the structured information belonging to different versions in the document to be processed, the method may further include: responding to touch operation acting on a file creation interface in the editor to create a blank file; and responding to touch operation of an editing interface of the document to be processed in the editor, and adding a plurality of pieces of structured information into the blank document to obtain the document to be processed.
In some embodiments, in order to implement the automatic alignment function of the markup symbols, an XML language program may be installed. Specifically, before the responding to the touch operation acting on the editing interface of the document to be processed in the editor, and adding the plurality of structured information to the blank document to obtain the document to be processed, the method may further include: responding to touch operation acting on a plug-in installation interface in the editor, and installing an XML language program; responding to touch operation acting on a setting interface in the editor, and configuring a DTD file path; the DTD file comprises a mark symbol of a DITA structured editing language; the responding to a touch operation on an editing interface of a document to be processed in the editor, and adding a plurality of pieces of the structured information into the blank document to obtain the document to be processed, including: and responding to touch operation of an editing interface of a document to be processed in the editor, calling the DTD file when adding a plurality of structured information into the blank document, and automatically supplementing mark symbols.
In this embodiment, the XML Language program may use an open-source software tool, such as an XML Language Support.
Specifically, an XML Language program tool, such as an XML Language Support, may be searched and installed in an editor, such as a plug-in installation interface of the Visual Studio Code. After the XML language program tool is installed, a DTD path may be configured on a setup interface of the editor, so that a DTD file under a path of a Document Type Definition (DTD) file is called during the editing process. To achieve automatic completion of the marking symbols. For example, after the letter t is entered, a number of words of a structured language beginning with t, e.g., title, type, task, etc., automatically appear. The document editing efficiency can be improved by the function of automatically filling up the mark symbols.
202. And responding to touch operation of an editing interface of the version filtering file in the editor, and generating the version filtering file of the target version based on the version identification.
Illustratively, the version filter file may define structured information that the target version needs to include and does not need to include by include, include. For example, for the version filter file of version 1.0, all structured information including a version identification value of 1.0 may be included in the distribution document of the target version that may be defined by "< prop action" < aggregate "att ═ audio" val ═ 1.0"> < prop >. The release document of the target version may be defined by "< prop action" < aggregate "att ═ audio" val ═ 2.0"> < prop >" so that all the structured information containing the version identification value of 2.0 is not included. Of course, if there are other version identification values, the process including "include" and the process not including "include" may be performed according to actual needs.
203. Responding to touch operation of an editing interface of the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and the target format.
In this embodiment, a Gradle software tool, for example, a DITA Open Toolkit, may be searched for and installed in a plug-in installation interface of the editor, so as to create a Gradle project file, and create various tasks, for example, release tasks, by editing the Gradle project file. The DITA Open Toolkit is an Open-source document compiling engine and can convert documents in a DITA format into documents in HTML, Markdown, PDF, Word and the like.
Illustratively, the publishing task may include a name of the document to be processed, path information of the version filter file, and a target format.
In practical application, a task can be added in the build. Illustratively, a task name such as pdf _ test, input as the name of the document to be processed, transtype as the target format, which may be set as docx, HTML, pdf2, etc., and filter as the version filter file may be taken. Taking the target format as docx for example, the task may include the following: defining the path and name of the input document, defining the path of the output release document, defining the target format of the release document, and defining the path and name of the version filter file.
204. Compiling and publishing the document to be processed based on a document generation tool according to the publishing task to generate a target version publishing document in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
In this embodiment, the document generation tool is a DITA Open Toolkit. The DITA Open Toolkit format template has no Word format, and the Word template can be added by installing plug-ins. In addition, format templates of different styles can be added in a plurality of ways, for example, according to the customization requirement of the document format, the document format can be designed and exported as required through an official recommendation website, and the format template can be installed locally. The required format template can also be downloaded and exported directly from various format templates on the website, and the format template can be imported through a DITA Open Toolkit.
According to the document processing method provided by the embodiment, the editor, the Gradle tool, the document generation tool and the three tools are matched for use, so that the document can be subjected to structured processing, and document compiling and publishing of different versions are conveniently completed.
Fig. 3 is a flowchart illustrating a document processing method according to an embodiment of the present application. As shown in fig. 3, on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 2, in this embodiment, at least one reference document is included in the to-be-processed document, so that the reference document includes structured information of different versions, and version publishing is performed on the to-be-processed document for example, the method includes:
301. the document to be processed comprises at least one reference document; and responding to touch operation of an editing interface of the at least one reference document in the editor, and adding different version identifications to the structural information belonging to different versions in the at least one reference document. The document to be processed is in a Darwinian information typing architecture DITA format and comprises a plurality of structured information.
For example, it is assumed that a to-be-processed document test.
In the reference document t1.dita document, content can be versioned by using audio ═ x ". For example, the audio ═ 1.0 "represents version 1.0, and < p audio ═ 1.0" > is the content of version 1.0. Where "2.0" represents version 2.0, and "2.0" represents version 2.0. [ p ]
302. And responding to touch operation of an editing interface of the version filtering file in the editor, and generating the version filtering file of the target version based on the version identification.
Illustratively, two filter documents are created under the ditalival directory, e.g., 1.0. ditalival, 2.0. ditalival, facilitating version management. Here, the 1.0. ditalval is a content including only the 1.0 version. Similarly, 2.0. ditalial contains only version 2.0 content.
Assume that only two versions of 1.0 and 2.0 are included in the current t1.dita document. Then, in the version filter file (1.0. ditaliv) of release 1.0 version, it may be defined that all contents whose audio is 1.0, that is, contents necessary for release 1.0 version are included in the release document by < prop action ═ include "att ═ audio" val ═ 1.0 ". It is possible to define that all the contents of which the audio is 2.0 need not be included in the distribution document, that is, the contents of version 2.0 are deleted by < prop action > "att >" audio "val >" 2.0 ". Thus, the version filter file defines that all content of version 1.0 and content common to versions 1.0 and 2.0 (i.e., content of which version is not defined to be 1.0 or 2.0) need only be included in the current publication document.
303. Responding to touch operation of an editing interface of the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and the target format.
In this embodiment, the task may include the following contents: defining the path and name of the input document, defining the path of the output release document, defining the target format of the release document, and defining the path and name of the version filter file.
304. Compiling and publishing the document to be processed based on a document generation tool according to the publishing task to generate a target version publishing document in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
In this embodiment, after the document to be processed is compiled and published, a published document of a target version in a target format can be obtained.
If the version 1.0 is adopted to filter the file, the document in the PDF format as shown in fig. 4 can be obtained. If the version 2.0 is adopted to filter the file, the document in the PDF format as shown in fig. 5 can be obtained. Most of the structured information of the two documents is the same, and only a sentence below the paragraph, "this is the content of version 1.0," this is the content of version 2.0 "is different. As can be seen from this example, the editors, Gradle, and document creation tools described above are used in combination, thereby enabling easy version distribution. And the structured information is effectively and repeatedly utilized, the development efficiency can be improved, the consistency of the document format is ensured, and the document output quality is improved.
According to the document processing method provided by the embodiment, when the citation document cited by the document to be processed changes, different versions of the document to be processed can still be issued through the method provided by the embodiment, so that the development efficiency can be improved, the document format consistency can be ensured, and the document output quality can be improved.
FIG. 6 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present application. As shown in fig. 6, the document processing apparatus 60 includes: an adding module 601, a filter file generating module 602, a publishing task generating module 603 and a processing module 604.
The adding module 601 is configured to add different version identifiers to structured information belonging to different versions in a to-be-processed document in response to a touch operation acting on an editing interface of the to-be-processed document in an editor; the document to be processed is in a Darwinian information typing system structure DITA format and comprises a plurality of structured information;
a filter file generation module 602, configured to generate a version filter file of a target version based on the version identifier in response to a touch operation on an editing interface of the version filter file in the editor;
the release task generating module 603 is configured to generate a release task based on a name of a document to be processed, path information of the version filter file, and a target format in response to a touch operation on an editing interface of the Gradle project file in the editor;
the processing module 604 is configured to compile and publish the to-be-processed document based on a document generation tool according to the publishing task, obtain a to-be-processed document of a target version in the target format, and publish the to-be-processed document of the target version; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
The document processing equipment provided by the embodiment of the application can perform structured processing on the document by matching the editor, the Gradle tool and the document generation tool with the three tools, and conveniently completes document compiling and publishing of different versions.
The document processing device provided in the embodiment of the present application may be configured to execute the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a block diagram of a document processing device according to an embodiment of the present disclosure, where the document processing device may be a computer, a tablet computer, or other data processing device.
The device 70 may include one or more of the following components: processing components 701, memory 702, power components 703, multimedia components 704, audio components 705, input/output (I/O) interfaces 706, sensor components 707, and communication components 708.
The processing component 701 generally controls the overall operation of the device 70, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 701 may include one or more processors 709 to execute instructions to perform all or part of the steps of the methods described above. Further, processing component 701 may include one or more modules that facilitate interaction between processing component 701 and other components. For example, the processing component 701 may include a multimedia module to facilitate interaction between the multimedia component 704 and the processing component 701.
Memory 702 is configured to store various types of data to support operation at device 70. Examples of such data include instructions for any application or method operating on device 70, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 702 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 703 provides power to the various components of the device 70. The power components 703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 70.
The multimedia component 704 includes a screen that provides an output interface between the device 70 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 704 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 70 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 705 is configured to output and/or input audio signals. For example, the audio component 705 includes a Microphone (MIC) configured to receive external audio signals when the device 70 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 702 or transmitted via the communication component 708. In some embodiments, audio component 705 also includes a speaker for outputting audio signals.
The I/O interface 706 provides an interface between the processing component 701 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 707 includes one or more sensors for providing various aspects of status assessment for the device 70. For example, the sensor component 707 may detect an open/closed state of the device 70, the relative positioning of components, such as a display and keypad of the device 70, the sensor component 707 may also detect a change in the position of the device 70 or a component of the device 70, the presence or absence of user contact with the device 70, orientation or acceleration/deceleration of the device 70, and a change in the temperature of the device 70. The sensor assembly 707 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 707 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 708 is configured to facilitate communication between the device 70 and other devices in a wired or wireless manner. The device 70 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 708 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 708 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 70 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 702 including instructions executable by the processor 709 of the device 70 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the document processing method executed by the above document processing device.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method of document processing, comprising:
responding to touch operation of an editing interface of a document to be processed in an editor, and adding different version identifications to the structured information belonging to different versions in the document to be processed; the document to be processed is in a Darwinian information typing system structure DITA format and comprises a plurality of structured information;
responding to touch operation of an editing interface of the version filtering file in the editor, and generating the version filtering file of the target version based on the version identification;
responding to touch operation of an editing interface of the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and a target format;
compiling and publishing the document to be processed based on a document generation tool according to the publishing task to generate a target version publishing document in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
2. The method of claim 1, wherein the structured information is concept type information, task type information, or reference type information.
3. The method of claim 1, wherein the editor is Visual Studio Code or Eclipse; and/or the document generation tool is a DITA Open Toolkit.
4. The method according to any one of claims 1 to 3, wherein before adding different version identifiers to the structured information belonging to different versions in the document to be processed in response to the touch operation acting on the editing interface of the document to be processed in the editor, the method further comprises:
and responding to touch operation acting on a document import interface in the editor, and importing the document to be processed.
5. The method according to any one of claims 1 to 3, wherein before adding different version identifiers to the structured information belonging to different versions in the document to be processed in response to the touch operation acting on the editing interface of the document to be processed in the editor, the method further comprises:
responding to touch operation acting on a file creation interface in the editor to create a blank file;
and responding to touch operation of an editing interface of the document to be processed in the editor, and adding a plurality of pieces of structured information into the blank document to obtain the document to be processed.
6. The method according to claim 5, wherein before adding a plurality of the structured information to the blank document in response to a touch operation on an editing interface of a document to be processed in the editor and obtaining the document to be processed, the method further comprises:
responding to touch operation acting on a plug-in installation interface in the editor, and installing an XML language program;
responding to touch operation acting on a setting interface in the editor, and configuring a DTD file path; the DTD file comprises a mark symbol of a DITA structured editing language;
the responding to a touch operation on an editing interface of a document to be processed in the editor, and adding a plurality of pieces of the structured information into the blank document to obtain the document to be processed, including:
and responding to touch operation of an editing interface of a document to be processed in the editor, calling the DTD file when adding a plurality of structured information into the blank document, and automatically supplementing mark symbols.
7. A method according to any one of claims 1-3, wherein the documents to be processed include at least one reference document; the response acts on the touch operation of the editing interface of the document to be processed in the editor, and adds different version identifications to the structured information belonging to different versions in the document to be processed, including:
and responding to touch operation of an editing interface of the at least one reference document in the editor, and adding different version identifications to the structural information belonging to different versions in the at least one reference document.
8. A document processing apparatus, characterized by comprising:
the adding module is used for responding to touch operation of an editing interface of a document to be processed in an editor and adding different version identifications to the structural information belonging to different versions in the document to be processed; the document to be processed is in a Darwinian information typing system structure DITA format and comprises a plurality of structured information;
the filtering file generating module is used for responding to touch operation of an editing interface acting on the version filtering file in the editor and generating the version filtering file of the target version based on the version identification;
the release task generating module is used for responding to touch operation of an editing interface acting on the Gradle project file in the editor, and generating a release task based on the name of the document to be processed, the path information of the version filtering file and a target format;
the processing module is used for compiling and publishing the document to be processed based on a document generation tool according to the publishing task to obtain the document to be processed of the target version in the target format and publishing the document to be processed of the target version; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in a plurality of formats.
9. A document processing apparatus, characterized by comprising: a display, at least one processor, and a memory;
the display and the memory are both connected with the at least one processor;
the display is used for displaying an editing interface of the editor and receiving touch operation on the editing interface;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the document processing method of any of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored therein which, when executed by a processor, implement the document processing method of any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the document processing method of any one of claims 1 to 7 when executed by a processor.
CN202111489295.XA 2021-12-07 2021-12-07 Document processing method, apparatus, storage medium, and program product Pending CN114139506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111489295.XA CN114139506A (en) 2021-12-07 2021-12-07 Document processing method, apparatus, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111489295.XA CN114139506A (en) 2021-12-07 2021-12-07 Document processing method, apparatus, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN114139506A true CN114139506A (en) 2022-03-04

Family

ID=80384720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111489295.XA Pending CN114139506A (en) 2021-12-07 2021-12-07 Document processing method, apparatus, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN114139506A (en)

Similar Documents

Publication Publication Date Title
CN106569800B (en) Front-end interface generation method and device
CN110442822B (en) Method, device, equipment and storage medium for displaying small program content
CN109032606B (en) Native application compiling method and device and terminal
CN106339384B (en) Storage process conversion method and device
CN109542417B (en) Method, device, terminal and storage medium for rendering webpage through DOM
CN113238752B (en) Code generation method, device, electronic equipment and storage medium
CN111554382B (en) Medical image processing method and device, electronic equipment and storage medium
CN110851240B (en) Function calling method, device and storage medium
CN113568621A (en) Data processing method and device for page embedded point
CN110704053A (en) Method and device for processing style information
CN113110829A (en) Multi-UI component library data processing method and device
CN114691115A (en) Business process system generation method and device, electronic equipment and storage medium
CN110865864B (en) Interface display method, device and equipment for quick application and storage medium
CN113420531A (en) Code text conversion method and device and storage medium
CN113010157A (en) Code generation method and device
CN111008050B (en) Page task execution method, device, terminal and storage medium
CN105630486B (en) Typesetting method and device for desktop of intelligent terminal equipment
CN113391804B (en) Page generation method and device, electronic equipment and storage medium
CN114139506A (en) Document processing method, apparatus, storage medium, and program product
CN114218235A (en) Page text updating method and device, electronic equipment and storage medium
CN113128181B (en) Information processing method and device
CN114546436A (en) Micro front-end service updating method and device, electronic equipment and storage medium
CN113486281A (en) Page display method and device, electronic equipment and storage medium
CN113536180A (en) Item processing method, item processing device, electronic equipment, storage medium and program product
CN111596949B (en) Method and device for developing application program

Legal Events

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