Document processing method, device, storage medium and program product

Through the combination of editor, Gradle tools and document generation tools, the problem of high cost of structured document development is solved, low-cost multi-version document compilation and release is achieved, and cost-effectiveness and development efficiency are improved.

CN114139506BActive Publication Date: 2025-08-05CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111489295.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2025-08-05
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

In the prior art, structured document development tools have high costs, especially for customers with smaller budgets and document scales, which are low in cost performance and difficult to meet the needs of multi-version document development.

Method used

Using a combination of editor, Gradle tools and document generation tools, we use document generation tools to add version identifiers to the editor, generate version filter files, and generate publishing tasks based on Gradle project files, and use document generation tools to compile and publish them to reduce costs.

Benefits of technology

It realizes low-cost multi-version document compilation and release, improves cost-effectiveness, and improves development efficiency and document output quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139506B_ABST
    Figure CN114139506B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a document processing method, device, storage medium and program product, the method including adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor; the document to be processed is in the Darwin Information Typing Architecture DITA format, including multiple structured information, generating a version filter file of the target version based on the version identifier, responding to a touch operation on the editing interface of the Gradle project file in the editor, generating a publishing task based on the name of the document to be processed, the path information of the version filter file, and the target format, compiling and publishing the document to be processed based on the publishing task based on the document generation tool, and generating a publishing document of the target version in the target format. The embodiment of the present application can reduce the cost of document structured processing and improve cost performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a document processing method, device, storage medium, and program product. Background Art

[0002] Structured development is a current trend in document development. It is a document development method that splits a document into multiple information segments and assembles the corresponding information segments for different versions.

[0003] In the existing technology, paid structured development tools can be used to develop and process documents, and the company can also develop and maintain its own tools through its own development team.

[0004] However, in the process of implementing this application, the inventors discovered that there are at least the following problems in the existing technology: whether it is a paid tool or a specially formed team to develop and maintain the development tool, it requires a relatively high cost, especially for those customers whose budget, document scale, and product demands are not very large, the cost-effectiveness is too low. Summary of the Invention

[0005] The embodiments of the present application provide a document processing method, device, storage medium and program product to reduce the cost of developing and processing structured documents, improve cost-effectiveness, and meet the needs of customers with low budgets and smaller document sizes and product demands.

[0006] In a first aspect, an embodiment of the present application provides a document processing method, comprising:

[0007] In response to a touch operation on an editing interface of a document to be processed in an editor, different version identifiers are added to structured information belonging to different versions in the document to be processed; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes multiple structured information;

[0008] In response to a touch operation on an editing interface of a version filter file in the editor, generating a version filter file of a target version based on the version identifier;

[0009] In response to a touch operation on an editing interface of a Gradle project file in the editor, generating a publishing task based on a name of a document to be processed, path information of the version filter file, and a target format;

[0010] According to the publishing task, the document to be processed is compiled and published based on a document generation tool to generate a publishing 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 multiple formats.

[0011] In a possible design, the structured information is concept type information, task type information, or reference type information.

[0012] In one possible design, the editor is Visual Studio Code or Eclipse; and / or the document generation tool is DITA Open Toolkit.

[0013] In one possible design, before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method further includes:

[0014] In response to a touch operation on a document import interface in the editor, the document to be processed is imported.

[0015] In one possible design, before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method further includes:

[0016] In response to a touch operation on a document creation interface in the editor, creating a blank document;

[0017] In response to a touch operation on the editing interface of the document to be processed in the editor, a plurality of the structured information are added to the blank document to obtain the document to be processed.

[0018] In one possible design, the step of adding the plurality of structured information to the blank document in response to a touch operation on the editing interface of the document to be processed in the editor, before obtaining the document to be processed, further includes:

[0019] In response to a touch operation on a plug-in installation interface in the editor, installing an XML language program;

[0020] In response to a touch operation on a setting interface in the editor, a DTD file path is configured; the DTD file includes markup symbols of the DITA structured editing language;

[0021] The step of adding the plurality of structured information to the blank document in response to the touch operation on the editing interface of the document to be processed in the editor to obtain the document to be processed includes:

[0022] In response to a touch operation on the editing interface of the document to be processed in the editor, when adding a plurality of the structured information to the blank document, the DTD file is called to automatically fill in the markup symbols.

[0023] In one possible design, the document to be processed includes at least one referenced document; and the step of adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on an editing interface of the document to be processed in an editor includes:

[0024] In response to a touch operation on an editing interface of the at least one referenced document in an editor, different version identifiers are added to structured information belonging to different versions in the at least one referenced document.

[0025] In a second aspect, an embodiment of the present application provides a document processing device, including:

[0026] an adding module configured to add different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on an editing interface of the document to be processed in the editor; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes a plurality of structured information;

[0027] a filter file generating module, configured to respond to a touch operation on an editing interface of a version filter file in the editor and generate a version filter file of a target version based on the version identifier;

[0028] A release task generation module, configured to respond to a touch operation on the editing interface of the Gradle project file in the editor and generate a release task based on the name of the document to be processed, the path information of the version filter file, and the target format;

[0029] A processing module is used to compile and publish the document to be processed based on the publishing task and a document generation tool, obtain the target version of the document to be processed in the target format, and publish the target version of the document to be processed; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in multiple formats.

[0030] In a third aspect, an embodiment of the present application provides a document processing device, comprising: a display, at least one processor, and a memory;

[0031] The display and the memory are both connected to the at least one processor;

[0032] The display is used to display the editing interface of the editor and to receive touch operations on the editing interface;

[0033] The memory stores computer-executable instructions;

[0034] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect is implemented.

[0036] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the method described in the first aspect and various possible designs of the first aspect.

[0037] The document processing method, device, storage medium and program product provided in this embodiment add different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in an editor; the document to be processed is in the Darwin Information Typing Architecture DITA format and includes multiple structured information; in response to a touch operation on the editing interface of the version filter file in the editor, a version filter file of the target version is generated based on the version identifier; in response to a touch operation on the editing interface of the Gradle project file in the editor, a publishing task is generated 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 publishing task, the document to be processed is compiled and published based on a document generation tool to generate a publishing 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 multiple formats. The document processing method provided in the embodiment of the present application can structure documents by using three tools, namely an editor, a Gradle tool, and a document generation tool, and conveniently complete the compilation and release of documents of different versions. Since the above three tools can all use open source software, the cost of document structuring processing is reduced and the cost-effectiveness is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0039] Figure 1A schematic diagram illustrating the principles of the document processing method provided in an embodiment of the present application;

[0040] Figure 2 Schematic diagram of the document processing method provided in this embodiment Figure 1 ;

[0041] Figure 3 Schematic diagram of the document processing method provided in this embodiment Figure 2 ;

[0042] Figure 4 A schematic diagram of the 1.0 version of the release document in PDF format provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of a 2.0 version of the release document in PDF format provided in an embodiment of the present application;

[0044] Figure 6 A schematic diagram of the structure of a document processing device provided in an embodiment of the present application;

[0045] Figure 7 A block diagram of a document processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0047] Document processing software such as Microsoft Word can no longer meet the enterprise-level multi-version, unified document development needs. Therefore, most companies now adopt a structured development method, which is to split documents into different information segments according to structural factors such as products and versions. The publishing tools then assemble the information segments to obtain different versions of documents, thus achieving information reuse. In addition, multi-version management through structured development can also improve the efficiency of document development and maintenance.

[0048] In existing technologies, structured development can be performed using paid tools or by establishing an in-house development team. However, both paid tools and dedicated development teams require high investment and are not cost-effective. This is particularly unsuitable for teams with limited budgets, limited document size, or product requirements. Therefore, developing a structured development tool that can accommodate multi-person development, improve development efficiency, ensure consistent document formats, and enhance document output quality, all at a low cost, is a pressing issue.

[0049] To solve the above technical problems, the inventors of this application have discovered that open source software can be effectively combined to realize the function of structured document development, so as to reduce costs and improve cost-effectiveness. Based on this, the embodiment of this application provides a document processing method that uses three tools, an editor, a Gradle tool, and a document generation tool, to structure documents and conveniently complete the compilation and release of different versions of documents. Since the above three tools can all use open source software, the cost of document structuring is reduced and the cost-effectiveness is improved.

[0050] Figure 1 This is a schematic diagram of the principle of the document processing method provided in the embodiment of this application. Figure 1 As shown, the document processing device may include an editor 101, a task management tool 102, and a document generation tool 103. In this embodiment, the editor 101 may adopt Visual Studio Code, the task management tool 102 may adopt Gradle, and the document generation tool 103 may adopt DITAOpen Toolkit.

[0051] During the specific implementation process, different version identifiers can be added to the structured information of different versions in the document to be processed through the editor 101, and based on the version identifier, a version filter file of the target version is generated. Through the task management module, according to the publishing task, the document to be processed is compiled and published based on the document generation tool to generate a publishing document of the target version under the target format. The document generation tool is pre-imported into the editor; the document generation tool includes document templates in multiple formats. The publishing task is generated by the editor based on the name of the document to be processed, the path information of the version filter file, and the target format. The document processing method provided in the embodiment of the present application can structure the document by using the editor, the Gradle tool, and the document generation tool. It can conveniently complete the compilation and publication of documents of different versions. Since the above three tools can all use open source software, the cost of document structuring processing is reduced and the cost performance is improved.

[0052] The following specific embodiments are used to describe the technical solution of the present application in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0053] Figure 2 Schematic diagram of the document processing method provided in this embodiment Figure 1 .like Figure 2 As shown, the method includes:

[0054] 201. In response to a touch operation on an editing interface of a document to be processed in an editor, different version identifiers are added to structured information belonging to different versions in the document to be processed; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes multiple structured information.

[0055] In this embodiment, the structured information may be concept type information, task type information, or reference type information.

[0056] In this embodiment, the editor can adopt free open source software, such as Visual Studio Code or Eclipse. Visual Studio Code is an open source code editor, and document editing can also be performed using this software. Before writing, the chapters are divided into different types according to the content, which can be divided into concepts, tasks, references, etc. Then, different contents can be marked according to the specific structure of the type and the specific DITA markup language to achieve DITA structured editing and writing. The document processing method provided in the embodiment of the present application can structure the document by using the editor, Gradle tool, and document generation tool in combination, and conveniently completes the compilation and release of different versions of documents. Since the above three tools can all adopt open source software, the cost of document structuring is reduced and the cost performance is improved.

[0057] In this embodiment, the version identifier can be added by setting a variable, for example, by setting audience = "x" to identify the version of the content. If the version is 1.0, audience = 1.0 can be set. For example, "<paudience="1.0"> This is the content of version 1.0. If the version is 2.0, you can set audience=2.0, for example, " <p audience="2.0"> This is the content of version 2.0. ”.

[0058] In this embodiment, the source of the document to be processed can be multiple. In one implementation, the document to be processed can be obtained by document import. Specifically, before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method may further include: importing the document to be processed in response to a touch operation on the document import interface in the editor.

[0059] In another embodiment, a blank document can be created in an editor and edited to obtain a document to be processed. Specifically, before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method may further include: creating a blank document in response to a touch operation on the document creation interface in the editor; and adding multiple pieces of structured information to the blank document in response to a touch operation on the editing interface of the document to be processed in the editor to obtain the document to be processed.

[0060] In some embodiments, in order to realize the function of automatic alignment of markup symbols, an XML language program can be installed. Specifically, the step of responding to a touch operation on the editing interface of the document to be processed in the editor, adding a plurality of the structured information to the blank document, and obtaining the document to be processed, may also include: responding to a touch operation on the plug-in installation interface in the editor, installing an XML language program; responding to a touch operation on the setting interface in the editor, configuring a DTD file path; the DTD file includes markup symbols of the DITA structured editing language; responding to a touch operation on the editing interface of the document to be processed in the editor, adding a plurality of the structured information to the blank document, and obtaining the document to be processed, including: responding to a touch operation on the editing interface of the document to be processed in the editor, calling the DTD file to automatically fill in the markup symbols when adding a plurality of the structured information to the blank document.

[0061] In this embodiment, the XML language program may be an open source software tool, such as XML Language Support.

[0062] Specifically, you can search for XML language program tools, such as XML Language Support, and install them in the plugin installation interface of the editor, such as Visual Studio Code. After the XML language program tool is installed, you can configure the DTD path in the settings interface of the editor so that the DTD file under the path of the Document Type Definition (DTD) file is called during the editing process. This is to achieve automatic completion of markup symbols. For example, after entering the letter t, multiple structured language words starting with t automatically appear, such as title, type, task, etc. The function of automatically completing markup symbols can improve document editing efficiency.

[0063] 202 : In response to a touch operation on an editing interface of a version filter file in the editor, generate a version filter file of a target version based on the version identifier.

[0064] For example, the version filter file can define the structured information that the target version needs to include or exclude through include and exclude. For example, for the version filter file of version 1.0, you can use "<propaction="include"att="audience"val="1.0"> "The release document of the target version includes all structured information with a version identifier value of 1.0.<prop action="exclude"att="audience"val="2.0"> "The release document of the limited target version does not include all structured information with a version identifier value of 2.0. Of course, if there are other version identifier values, you can include them or exclude them according to actual needs.

[0065] 203. In response to a touch operation on the editing interface of the Gradle project file in the editor, a publishing task is generated based on the name of the document to be processed, the path information of the version filter file, and the target format.

[0066] In this embodiment, you can search for Gradle software tools, such as the DITA Open Toolkit, and install it in the editor's plugin installation interface to create Gradle project files. You can then edit these Gradle project files to create various tasks, such as publishing tasks. The DITA Open Toolkit is an open-source document compilation engine that can convert DITA-formatted documents into formats such as HTML, Markdown, PDF, and Word.

[0067] Exemplarily, the publishing task may include the name of the document to be processed, the path information of the version filter file, and the target format.

[0068] In practice, you can add a task to the build.gradle file and specify the document and format to be published. For example, you might name the task pdf_test, where input is the name of the document to be processed, transtype is the target format (which can be set to docx, HTML, pdf2, etc.), and filter is the version filter file. For example, using the docx target format, the task might include the following: defining the path and name of the input document, the path of the output published document, the target format of the published document, and the path and name of the version filter file.

[0069] 204. According to the publishing task, the document to be processed is compiled and published based on a document generation tool to generate a publishing 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 multiple formats.

[0070] In this embodiment, the document generation tool is the DITA Open Toolkit. While the DITA Open Toolkit's format templates do not include Word formats, Word templates can be added by installing a plug-in. Furthermore, format templates of different styles can be added in a variety of ways. For example, based on customized document format requirements, you can design and export a document format as required through the official recommended website and then install the format template locally. You can also directly download and export the desired format template from the various format templates on the website and import it into the DITA Open Toolkit.

[0071] The document processing method provided in this embodiment can structure documents by using three tools, namely an editor, a Gradle tool, and a document generation tool, and conveniently complete the compilation and release of different versions of documents. Since the above three tools can all use open source software, the cost of document structuring processing is reduced and the cost-effectiveness is improved.

[0072] Figure 3 Schematic diagram of the document processing method provided in this embodiment Figure 2 .like Figure 3 As shown, based on the above embodiment, for example Figure 2Based on the embodiment shown, in this embodiment, the document to be processed includes at least one reference document, the reference document includes structured information of different versions, and the version of the document to be processed is released as an example. The method includes:

[0073] 301. The document to be processed includes at least one referenced document; in response to a touch operation on the editing interface of the at least one referenced document in an editor, different version identifiers are added to structured information belonging to different versions in the at least one referenced document. The document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes multiple pieces of structured information.

[0074] For example, it is assumed that a document to be processed test.ditamap is created in the test directory, and the document to be processed references the t1.dita document in the test directory as a reference document. The reference document may be a chapter of the document to be processed.

[0075] When writing content in the referenced document t1.dita, you can use audience="x" to identify the version of the content. For example, audience="1.0" represents version 1.0. <p audience="1.0"> This is the content of version 1.0. , audience="2.0" represents version 2.0, <p audience="2.0"> This is the content of version 2.0.

[0076] 302 : In response to a touch operation on an editing interface of a version filter file in the editor, generate a version filter file of a target version based on the version identifier.

[0077] For example, two filter files are created in the ditaval directory, for example, 1.0.ditaval and 2.0.ditaval, to facilitate version management. 1.0.ditaval contains only the content of version 1.0. Similarly, 2.0.ditaval contains only the content of version 2.0.

[0078] Assume that the current t1.dita document only contains the contents of versions 1.0 and 2.0. Then, in the version filter file (1.0.ditaval) for version 1.0, you can use<prop action="include"att="audience"val="1.0"> , defines that the published document must include all the contents of audience 1.0, that is, the contents required by version 1.0.<prop action="exclude"att="audience"val="2.0"> , defining that the published document does not need to include all content with audience 2.0, that is, deleting the content of version 2.0. In this way, the version filter file limits the current published document to only including all content with version 1.0 and content shared by versions 1.0 and 2.0 (that is, content that is not limited to version 1.0 or 2.0).

[0079] 303. In response to a touch operation on the editing interface of the Gradle project file in the editor, a publishing task is generated based on the name of the document to be processed, the path information of the version filter file, and the target format.

[0080] 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 published document, defining the target format of the published document, and defining the path and name of the version filter file.

[0081] 304. According to the publishing task, the document to be processed is compiled and published based on a document generation tool to generate a publishing 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 multiple formats.

[0082] 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.

[0083] If you use version 1.0 to filter the file, you can get the following Figure 4 The PDF document shown in the following example is available. If you use version 2.0 to filter the file, you will get the following: Figure 5 The two documents share most of their structured information, with the only difference being the phrases "This is the content of version 1.0" and "This is the content of version 2.0" below the paragraphs. This example demonstrates how the combined use of the editor, Gradle, and document generation tools facilitates version releases. Furthermore, effective reuse of structured information improves development efficiency, ensures consistent document formatting, and enhances document output quality.

[0084] The document processing method provided in this embodiment can still publish different versions of the document to be processed when the referenced document referenced by the document to be processed changes, which can improve development efficiency, ensure consistency of document format, and improve document output quality.

[0085] Figure 6 This is a schematic diagram of the structure of the document processing device provided in the embodiment of the present application. Figure 6 As shown, the document processing device 60 includes: an adding module 601 , a filtering file generating module 602 , a publishing task generating module 603 and a processing module 604 .

[0086] An adding module 601 is configured to add 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 an editor; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes a plurality of structured information;

[0087] A filter file generating module 602 is configured to generate a version filter file of a target version based on the version identifier in response to a touch operation on the editing interface of the version filter file in the editor;

[0088] A release task generation module 603 is configured to generate a release task based on the name of the document to be processed, the path information of the version filter file, and the target format in response to a touch operation on the editing interface of the Gradle project file in the editor;

[0089] Processing module 604 is used to compile and publish the document to be processed based on the document generation tool according to the publishing task, obtain the target version of the document to be processed in the target format, and publish the target version of the document to be processed; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in multiple formats.

[0090] The document processing device provided in the embodiment of the present application can structure documents by using three tools, namely an editor, a Gradle tool, and a document generation tool, and conveniently complete the compilation and release of documents of different versions. Since the above three tools can all use open source software, the cost of document structuring processing is reduced and the cost-effectiveness is improved.

[0091] The document processing device provided in the embodiment of the present application can be used to execute the above-mentioned method embodiment. Its implementation principle and technical effects are similar, and this embodiment will not be repeated here.

[0092] Figure 7This is a block diagram of a document processing device provided in an embodiment of the present application. The device can be a data processing device such as a computer or tablet computer.

[0093] Device 70 may include one or more of the following components: a processing component 701 , a memory 702 , a power component 703 , a multimedia component 704 , an audio component 705 , an input / output (I / O) interface 706 , a sensor component 707 , and a communication component 708 .

[0094] The processing component 701 generally controls the overall operation of the device 70, such as operations associated with display, phone calls, data communications, camera operation, 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 above-described method. In addition, the processing component 701 may include one or more modules to facilitate interaction between the 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.

[0095] The memory 702 is configured to store various types of data to support operations on the device 70. Examples of such data include instructions for any application or method operating on the device 70, contact data, phone book data, messages, pictures, videos, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device, or a 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 disk, or optical disk.

[0096] The power supply component 703 provides power to the various components of the device 70. The power supply component 703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 70.

[0097] 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the 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 camera and / or a rear camera. When the device 70 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0098] The audio component 705 is configured to output and / or input audio signals. For example, the audio component 705 includes a microphone (MIC), which is configured to receive external audio signals when the device 70 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 702 or transmitted via the communication component 708. In some embodiments, the audio component 705 also includes a speaker for outputting audio signals.

[0099] The I / O interface 706 provides an interface between the processing component 701 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0100] The sensor assembly 707 includes one or more sensors for providing various aspects of the status assessment of the device 70. For example, the sensor assembly 707 can detect the open / closed state of the device 70, the relative positioning of components, such as the display and keypad of the device 70. The sensor assembly 707 can also detect changes 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, the orientation or acceleration / deceleration of the device 70, and temperature changes of the device 70. The sensor assembly 707 may include a proximity sensor configured to detect the presence of nearby objects without 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0101] The communication component 708 is configured to facilitate wired or wireless communication between the device 70 and other devices. The device 70 can 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 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0102] 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, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.

[0103] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 702 including instructions, which can be executed by a processor 709 of the device 70 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0104] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile memory device or a 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 disk, or optical disk. The computer-readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0105] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0106] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0107] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the document processing method performed by the document processing device as described above is implemented.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A document processing method, characterized in that: include: In response to a touch operation on an editing interface of a document to be processed in an editor, different version identifiers are added to structured information belonging to different versions in the document to be processed; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes multiple structured information; In response to a touch operation on an editing interface of a version filter file in the editor, generating a version filter file of a target version based on the version identifier; In response to a touch operation on an editing interface of a Gradle project file in the editor, generating a publishing task based on a name of a document to be processed, path information of the version filter file, and a target format; According to the publishing task, the document to be processed is compiled and published based on a document generation tool to generate a publishing document of a target version in the target format; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in multiple formats; The editor, the task management tool, and the document generation tool are used in conjunction to complete the structuring of the document, the task management tool is a Gradle tool, and the editor is Visual Studio Code or Eclipse; and / or the document generation tool is a DITA Open Toolkit.

2. The method according to claim 1, characterized in that The structured information is concept type information, task type information or reference type information.

3. The method according to claim 1 or 2, characterized in that Before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method further includes: In response to a touch operation on a document import interface in the editor, the document to be processed is imported.

4. The method according to claim 1 or 2, characterized in that Before adding different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on the editing interface of the document to be processed in the editor, the method further includes: In response to a touch operation on a document creation interface in the editor, creating a blank document; In response to a touch operation on the editing interface of the document to be processed in the editor, a plurality of the structured information are added to the blank document to obtain the document to be processed.

5. The method according to claim 4, characterized in that The step of adding the plurality of structured information to the blank document in response to a touch operation on the editing interface of the document to be processed in the editor, and obtaining the document to be processed, further comprises: In response to a touch operation on a plug-in installation interface in the editor, installing an XML language program; In response to a touch operation on a setting interface in the editor, a DTD file path is configured; the DTD file includes markup symbols of the DITA structured editing language; The step of adding the plurality of structured information to the blank document in response to the touch operation on the editing interface of the document to be processed in the editor to obtain the document to be processed includes: In response to a touch operation on the editing interface of the document to be processed in the editor, when adding a plurality of the structured information to the blank document, the DTD file is called to automatically fill in the markup symbols.

6. The method according to claim 1 or 2, characterized in that The document to be processed includes at least one referenced document; and the step of adding different version identifiers to structured information of different versions in the document to be processed in response to a touch operation on an editing interface of the document to be processed in an editor comprises: In response to a touch operation on an editing interface of the at least one referenced document in an editor, different version identifiers are added to structured information belonging to different versions in the at least one referenced document.

7. A document processing device, characterized in that: include: an adding module configured to add different version identifiers to structured information belonging to different versions in the document to be processed in response to a touch operation on an editing interface of the document to be processed in the editor; the document to be processed is in the Darwin Information Typing Architecture (DITA) format and includes a plurality of structured information; a filter file generating module, configured to respond to a touch operation on an editing interface of a version filter file in the editor and generate a version filter file of a target version based on the version identifier; A release task generation module, configured to respond to a touch operation on the editing interface of the Gradle project file in the editor and generate a release task based on the name of the document to be processed, the path information of the version filter file, and the target format; a processing module, configured to compile and publish the document to be processed based on the publishing task and a document generation tool, obtain the document to be processed in the target version under the target format, and publish the document to be processed in the target version; the document generation tool is pre-imported into the editor; the document generation tool includes document templates in multiple formats; The editor, the task management tool, and the document generation tool are used in conjunction to complete the structuring of the document, the task management tool is a Gradle tool, and the editor is Visual Studio Code or Eclipse; and / or the document generation tool is a DITA Open Toolkit.

8. A document processing device, characterized in that: include: a display, at least one processor, and memory; The display and the memory are both connected to the at least one processor; The display is used to display the editing interface of the editor and to receive touch operations on the editing interface; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the document processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the document processing method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the document processing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Interface document integration method and device, server and computer storage medium

    CN112230891A

  • Document editing method and device, electronic equipment and computer readable medium

    CN113486635A