CN109933766B - File generation method, device and storage medium - Google Patents

File generation method, device and storage medium Download PDF

Info

Publication number
CN109933766B
CN109933766B CN201910190146.XA CN201910190146A CN109933766B CN 109933766 B CN109933766 B CN 109933766B CN 201910190146 A CN201910190146 A CN 201910190146A CN 109933766 B CN109933766 B CN 109933766B
Authority
CN
China
Prior art keywords
file
script
tool
formatted text
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910190146.XA
Other languages
Chinese (zh)
Other versions
CN109933766A (en
Inventor
叶亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910190146.XA priority Critical patent/CN109933766B/en
Publication of CN109933766A publication Critical patent/CN109933766A/en
Application granted granted Critical
Publication of CN109933766B publication Critical patent/CN109933766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a file generation method, a file generation device and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: running a multi-user online file editing tool; generating a first file in a first format through a multi-user online file editing tool; extracting the content in the first file to generate a formatted text; and processing the formatted text through a text processing tool to generate a second file in a second format. According to the embodiment of the application, the content in one file is automatically converted into the other file, the user does not need to manually input the file content, and the operation is simple and efficient. In addition, as the first file is generated by the multi-person online file editing tool, the first file supports multi-person common editing, so that the file content which is edited by the multi-person common editing is converted into another file, and the advantage of multi-person cooperation is fully utilized.

Description

File generation method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a file generation method, a file generation device and a storage medium.
Background
In daily work and generation, documents or forms are typically used to record information such as work plans and work progress of individual members of a team over the week, responsibility people for each task that a team is responsible for, etc.
In the related art, if information recorded in a file of a certain format is not intuitively clear enough in presentation form, the information recorded in the file can be input into a file of another format, and the information can be intuitively and clearly presented through the file of the other format. For example, information in a document or a table is input item by item to a mind map drawing tool, and a mind map containing the information is drawn.
However, the above procedure requires the user to manually input the information recorded in one file into another file, and is complicated and inefficient in operation.
Disclosure of Invention
The embodiment of the application provides a file generation method, a file generation device and a storage medium, which can be used for solving the problems that a user is required to manually input information recorded in one file into another file in the related technology, and the operation is complex and low-efficiency. The technical proposal is as follows:
in one aspect, an embodiment of the present application provides a method for generating a file, where the method includes:
running a multi-user online file editing tool;
generating a first file in a first format through the multi-user online file editing tool;
extracting the content in the first file to generate a formatted text;
and processing the formatted text through a text processing tool to generate a second file in a second format.
In another aspect, an embodiment of the present application provides a file generating apparatus, including:
the tool operation module is used for operating the multi-user online file editing tool;
the first generation module is used for generating a first file in a first format through the multi-user online file editing tool;
the second generation module is used for extracting the content in the first file and generating formatted text;
and the third generation module is used for processing the formatted text through a text processing tool to generate a second file in a second format.
In yet another aspect, embodiments of the present application provide a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by a processor to implement a file generation method as described in the above aspects.
In yet another aspect, embodiments of the present application provide a computer program product for performing the file generation method of the above aspect when the computer program product is executed.
The beneficial effects that technical scheme that this application embodiment provided include at least:
the method has the advantages that the contents in the first file are extracted from the first file in the first format generated by the multi-user online file editing tool, the formatted text is generated, then the formatted text is processed by the text processing tool, and the second file in the second format is generated, so that the contents in one file are automatically converted into the other file, manual input of the file contents by a user is not needed, and the operation is simple and efficient.
In addition, as the first file is generated by the multi-person online file editing tool, the first file supports multi-person common editing, so that the file content which is edited by the multi-person common editing is converted into another file, and the advantage of multi-person cooperation is fully utilized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a file generation method provided by one embodiment of the present application;
FIG. 2 is a schematic diagram of a form creation page provided in one embodiment of the present application;
FIG. 3 is a schematic illustration of a table provided in one embodiment of the present application;
FIG. 4 is a schematic diagram of a sharing page provided by one embodiment of the present application;
FIG. 5 is a schematic illustration of a first document provided in one embodiment of the present application;
FIG. 6 is a schematic diagram of formatted text provided in one embodiment of the present application;
FIG. 7 is a schematic illustration of an initial page of a mind map drawing tool provided in one embodiment of the present application;
FIG. 8 is a schematic illustration of a mind map provided in one embodiment of the present application;
FIG. 9 is a schematic illustration of a table provided in accordance with another embodiment of the present application;
FIGS. 10 and 11 are schematic diagrams of script editor pages provided by embodiments of the present application;
FIG. 12 is a flow chart of creation of Map objects provided by one embodiment of the present application;
FIG. 13 is a flow chart of generation of formatted text provided by one embodiment of the present application;
FIG. 14 is a block diagram of a document generation device provided in one embodiment of the present application;
FIG. 15 is a block diagram of a document generation device provided in another embodiment of the present application;
fig. 16 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a file generation method according to an embodiment of the present application is shown. The method may be performed by a terminal, such as a PC (Personal Computer ), tablet, mobile phone, or other electronic device. The method may comprise the steps of:
step 101, running a multi-user online file editing tool.
The multi-user online file editing tool is a tool for supporting a plurality of users to view and edit online files at the same time. The multi-user online file editing tool may be provided for the user in the form of an application client or provided for the user in the form of a web page, which is not limited in the embodiment of the present application.
Optionally, the multi-user online file editing tool supports online editing of files such as documents, forms, slides, forms, and the like, and the embodiment of the application does not limit the types of the files.
Illustratively, FIG. 2 shows a form creation page 10 provided by a multi-person online file editing tool. The form creation page 10 is provided with a plurality of different forms for selection by a user, for example, a user clicking on the blank form creation control 11 may create a blank form, and a user clicking on the to-do list creation control 12 may create a to-do list.
Step 102, generating a first file in a first format through a multi-user online file editing tool.
The first file refers to a file generated by the multi-person online file editing tool, and the first format refers to a file format of the first file, such as a table, document, or other format.
Still taking the above example as an example, the user may click on the blank form creation control 11 in the form creation page 10 to create a blank form 20, which blank form 20 may be as shown in FIG. 3. The user edits the blank form 20, such as setting the form name "weekly report", and sets the content corresponding to the header 21, such as including member, current job, total job volume, start time, status, progress, etc. The multi-person online file editing tool has file sharing functionality and the user clicks on the sharing control 22 to jump to the sharing page 30 shown in fig. 4. At the sharing page 30, the user may generate a sharing link for the form and send the sharing link to at least one other user so that the other user can view and edit the form based on the sharing link. Illustratively, as shown in fig. 4, when the user clicks the "acquire link for sharing" control 31, generates a sharing link corresponding to the "week report" table, and then selects the "any person who knows this link can edit" option, and inputs the name or email address of the sharing object in the sharing object input box 32, the sharing link corresponding to the "week report" table can be sent to the sharing object. As shown in fig. 5, after receiving the sharing link, the sharing object may open the "week report" form 50 through the sharing link and fill out the form according to the header 21.
And step 103, extracting the content in the first file to generate formatted text.
The formatted text refers to text in which the content is typeset according to a preset format. For example, the formatted text contains several different levels of data, with the same level of data aligned.
The formatted text may include all the content in the first file or may include part of the content in the first file, which is not limited in this embodiment of the present application. The formatted text may be generated by a multi-person online file editing tool or by a third party plug-in, which is not limited in this embodiment of the present application.
Illustratively, referring to fig. 5 and 6, the terminal extracts the content in the "week report" table 50 shown in fig. 5, generating formatted text as shown in fig. 6.
And 104, processing the formatted text through a text processing tool to generate a second file in a second format.
The text processing tool is a tool for processing text, and the text processing tool may be provided for a user in a form of an application program client or provided for the user in a form of a web page, which is not limited in the embodiment of the present application.
The content in the second file includes content of the formatted text. The second format refers to a file format of the second file, e.g., the second file may be a graph, a table, or other format. Alternatively, the first format and the second format are two different file formats, e.g., the first format is a document or a table and the second format is a graph.
The text processing tool determines the position and the presentation form of each data in the second file according to the position and the presentation form of each data in the formatted text.
Illustratively, when the text processing tool is a mind map drawing tool, the formatted text may be processed by the mind map drawing tool to generate a mind map. At this time, the mind map can be obtained by the following sub-steps:
1. running a mind map drawing tool;
the mind map drawing tool refers to a tool for creating a mind map. As shown in FIG. 7, which illustrates a schematic diagram of an initial page 70 of the mind map drawing tool provided in one embodiment of the present application, a user clicks on a "new blank map" control 71 in the initial page 70, which can jump to the graphic creation page.
2. Pasting the formatted text into a graphic creation page provided by a mind map drawing tool;
the graphic creation page refers to a page for generating a mind map. The user copies and pastes the formatted text from the multi-person online file editing tool into the graphic creation page.
3. A mind map is generated at the graphic creation page based on the formatted text.
After the formatted text is pasted onto the graphic creation page, the mind map drawing tool will generate a corresponding mind map from the various data and presentations contained in the formatted text. Illustratively, the user pastes the formatted text as shown in FIG. 6 into a graphic creation page, generating a mind map as shown in FIG. 8.
In summary, in the technical solution provided in the embodiments of the present application, the content in the first file is extracted from the first file in the first format generated by the multi-user online file editing tool, so as to generate the formatted text, and then the formatted text is processed by the text processing tool, so as to generate the second file in the second format, thereby automatically converting the content in one file into another file, without requiring the user to manually input the file content, and the operation is simple and efficient.
In addition, as the first file is generated by the multi-person online file editing tool, the first file supports multi-person common editing, so that the file content which is edited by the multi-person common editing is converted into another file, and the advantage of multi-person cooperation is fully utilized.
In an alternative embodiment provided based on the embodiment of fig. 2, formatted text may be generated by:
first, when a script running instruction is acquired, running a script for generating formatted text.
Script execution instructions refer to instructions for triggering execution of a script. In the embodiment of the present application, the manner of triggering the generation of the script running instruction is not limited, and may be triggered by way of operation control, voice, gesture, and the like. And after acquiring the script running instruction, the terminal runs the script for generating the formatted text. As shown in fig. 9, the user clicks the "generate formatted text" control 91, running a script for generating formatted text.
The script for generating the formatted text can be compiled by a developer in advance and added into a multi-user online file editing tool, and a user only needs to run the script when using the script; alternatively, the script may be written by the user and added to the multi-user online document editing tool, which is not limited in the embodiments of the present application. When the script is pre-written by a developer, the format of the formatted text generated by the script is fixed; when the script is written by the user, the user can write the script in a self-defined manner according to the format of the formatted text to be generated, so that the formatted text to be generated later can better meet the actual requirements.
Alternatively, the script is generated by the following steps:
1. running a script editor of the multi-user online file editing tool;
still taking the above example as an example, under the "tool" control 92 in the multi-user online file editing tool, there is a "script editor" control 93, and when the user clicks on the "script editor" control 93, the script editor may be run, as shown in fig. 10, which shows a schematic diagram of a script editing page 100 of the script editor provided in an embodiment of the present application.
2. The script is generated by a script editor.
The user may generate a script using the script editor. For example, as shown in fig. 10, the user writes a script in a script editing page 100 of the script editor. As shown in fig. 11, after the script is written, the user clicks on the "script generation" control 101 to generate a script.
And secondly, extracting the content in the first file through the script to generate a formatted text.
In one example, the entire content in the first file is extracted by a script to generate formatted text; in another example, the formatted text is generated by extracting a portion of the content in the first file via a script. The script extracts what content from the first file, which can be determined at the time of writing the script, and is programmed into the script.
Optionally, this step comprises the following sub-steps:
2.1, creating Map objects through scripts;
the Map object is used to store key-value pairs. One key may correspond to one or more values.
2.2, extracting the content in the first file through the script, and storing the content into the Map object in a key value pair mode;
taking the first file as the table shown in fig. 5, the key corresponds to the name as an example, and as shown in fig. 12, the Map object creation flow may be as follows:
step 201, creating a new Map object;
step 202, judging whether the content in the first file can be found; if yes, go to step 203; if not, ending the flow;
step 203, finding the name;
step 204, judging whether a key corresponding to the name exists in the Map object; if not, go to step 205; if yes, go to step 206;
step 205, adding a key in the Map object;
and 206, adding a record in the value corresponding to the key.
Optionally, the value corresponding to the key is recorded in an array form.
And 2.3, traversing the Map object through the script, and outputting the formatted text.
Optionally, step 2.3 comprises the following sub-steps:
2.3.1, reading an ith record stored in a key value pair form in the Map object through a script, wherein the initial value of i is 1 and i is a positive integer;
2.3.2, outputting main key data corresponding to keys in the ith record through a script, and outputting a carriage return character after the main key data;
2.3.3, sequentially outputting each secondary key data corresponding to the value in the ith record through the script, and outputting a tab and a carriage return after each secondary key data;
2.3.4, let i=i+1, and start executing again from the step of reading the ith record stored in the Map object in the form of key value pair through the script, until no unread record exists in the Map object, ending the flow, and obtaining the formatted text.
Taking the primary key data as a name and the secondary key data as the current work, state and progress as examples, a flowchart for generating the formatted text shown in fig. 6 is shown in fig. 13:
step 301, judging whether a record in the Map object can be found; if yes, go to step 302; if not, ending the flow;
step 302, outputting a name and a carriage return;
step 303, finding out the current work;
step 304, adding tab and carriage return, and outputting the tab and carriage return to a result;
step 305, find status and progress;
and 306, adding tab and carriage return, and outputting the tab and carriage return to the result.
In summary, in the technical solution provided in the embodiments of the present application, by storing the data in the first file in the Map object in the form of key value pairs, traversing the Map object through the script, and outputting the formatted text, the method achieves the purposes of automatically reading the file content and generating the formatted text by using the script, and is flexible and efficient.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 14, a block diagram of a file generating apparatus according to an embodiment of the present application is shown. The device has the function of realizing the method example, and the function can be realized by hardware or can be realized by executing corresponding software by hardware. The apparatus 1400 may include: a tool run module 1410, a first generation module 1420, a second generation module 1430, and a third generation module 1440.
The tool running module 1410 is configured to run a multi-user online file editing tool.
The first generating module 1420 is configured to generate, by using the multi-person online file editing tool, a first file in a first format.
The second generating module 1430 is configured to extract the content in the first file and generate formatted text.
The third generating module 1440 is configured to process the formatted text by using a text processing tool to generate a second file in a second format.
In summary, in the technical solution provided in the embodiments of the present application, the content in the first file is extracted from the first file in the first format generated by the multi-user online file editing tool, so as to generate the formatted text, and then the formatted text is processed by the text processing tool, so as to generate the second file in the second format, thereby automatically converting the content in one file into another file, without requiring the user to manually input the file content, and the operation is simple and efficient.
Optionally, the third generating module 1440 includes: the guide generation submodule 1441.
The map generation submodule 1441 is configured to process the formatted text through a mind map drawing tool to generate a mind map.
Optionally, the map generation submodule 1441 is configured to:
operating the mind map drawing tool;
pasting the formatted text into a graphic creation page provided by the mind map drawing tool;
and generating the mind map on the image creation page according to the formatted text.
Optionally, the second generating module 1430 includes: a script execution submodule 1431 and a text generation submodule 1432.
The script running submodule 1431 is configured to run a script for generating the formatted text when a script running instruction is acquired.
The text generation submodule 1432 is configured to extract content in the first file through the script and generate the formatted text.
Optionally, the text generation submodule 1432 includes: an object creation unit 1433, a content storage unit 1434, and a text output unit 1435.
The object creating unit 1433 is configured to create a Map object through the script.
The content storage unit 1434 is configured to extract the content in the first file through the script, and store the content in the Map object in a key value pair form.
The text output unit 1435 is configured to traverse the Map object through the script and output the formatted text.
Optionally, the text output unit 1435 is configured to:
reading an ith record stored in the Map object in the form of the key value pair through the script, wherein the initial value of i is 1 and the i is a positive integer;
outputting main key data corresponding to keys in the ith record through the script, and outputting a carriage return character after the main key data;
sequentially outputting each secondary key data corresponding to the value in the ith record through the script, and outputting a tab and the carriage return after each secondary key data;
and (3) enabling i=i+1, starting to execute the step of reading the ith record stored in the Map object in the form of the key value pair through the script again until the Map object has no unread record, ending the flow and obtaining the formatted text.
Optionally, the second generating module 1430 further includes: script generation submodule 1436.
The script generation submodule 1436 is configured to:
running a script editor of the multi-user online file editing tool;
and generating the script through the script editor.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the content structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 16, a block diagram of a terminal 1600 provided in one embodiment of the present application is shown. Such as a PC, a cell phone, etc. The terminal 1600 may be used to implement the file generation method provided in the above-described embodiments.
In general, terminal 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing ), an FPGA (Field Programmable Gate Array, field programmable gate array), a PLA (Programmable Logic Array ). The processor 1601 may also include a host processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit, image processor) for use in responsible for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 1601 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. Memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1602 is used to store at least one instruction for execution by processor 1601 to implement the file generation method provided by the method embodiments in the present application.
In some embodiments, terminal 1600 may also optionally include: a peripheral interface 1603, and at least one peripheral. The processor 1601, memory 1602, and peripheral interface 1603 may be connected by bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 1603 by buses, signal lines, or circuit boards. Specifically, the peripheral device may include: at least one of a display 1604, audio circuitry 1605, a communication interface 1606, and a power supply 1607.
Those skilled in the art will appreciate that the structure shown in fig. 16 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
In an example embodiment, there is also provided a terminal including a processor and a memory having at least one instruction, at least one program, set of codes, or set of instructions stored therein. The at least one instruction, at least one program, set of codes, or set of instructions are configured to be executed by one or more processors to implement the above-described file generation method.
In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which when executed by a processor of a terminal, implements the above-mentioned file generation method.
Alternatively, the above-described computer-readable storage medium may be a ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, or the like.
In an exemplary embodiment, a computer program product is also provided, which, when executed, is adapted to carry out the above-mentioned file generation method.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, the step numbers described herein are merely exemplary of one possible execution sequence among steps, and in some other embodiments, the steps may be executed out of the order of numbers, such as two differently numbered steps being executed simultaneously, or two differently numbered steps being executed in an order opposite to that shown, which is not limited by the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (8)

1. A method of generating a file, the method comprising:
running a multi-user online file editing tool;
generating a first file in a first format through the multi-user online file editing tool;
extracting the content in the first file through a script, and storing the content into a Map object created by the script in a key value pair mode;
reading an ith record stored in the Map object in the form of the key value pair through the script, wherein the initial value of i is 1 and the i is a positive integer;
outputting main key data corresponding to keys in the ith record through the script, and outputting a carriage return character after the main key data;
sequentially outputting each secondary key data corresponding to the value in the ith record through the script, and outputting a tab and the carriage return after each secondary key data;
letting i=i+1, and starting execution again from the step of reading the ith record stored in the Map object in the form of the key value pair through the script until no unread record exists in the Map object, ending the flow, and obtaining a formatted text;
and processing the formatted text through a text processing tool to generate a second file in a second format.
2. The method of claim 1, wherein the processing the formatted text by a text processing tool to generate a second file in a second format comprises:
and processing the formatted text through a mind map drawing tool to generate a mind map.
3. The method of claim 2, wherein the processing the formatted text by a mind map rendering tool to generate a mind map comprises:
operating the mind map drawing tool;
pasting the formatted text into a graphic creation page provided by the mind map drawing tool;
and generating the mind map on the graph creation page according to the formatted text.
4. A method according to any one of claims 1 to 3, further comprising:
when a script running instruction is acquired, running the script;
and creating the Map object through the script.
5. The method of claim 4, wherein prior to running the script, further comprising:
running a script editor of the multi-user online file editing tool;
and generating the script through the script editor.
6. A document generating apparatus, the apparatus comprising:
the tool operation module is used for operating the multi-user online file editing tool;
the first generation module is used for generating a first file in a first format through the multi-user online file editing tool;
the second generation module is used for extracting the content in the first file through a script, and storing the content into a Map object created by the script in a key value pair mode; reading an ith record stored in the Map object in the form of the key value pair through the script, wherein the initial value of i is 1 and the i is a positive integer; outputting main key data corresponding to keys in the ith record through the script, and outputting a carriage return character after the main key data; sequentially outputting each secondary key data corresponding to the value in the ith record through the script, and outputting a tab and the carriage return after each secondary key data; letting i=i+1, and starting execution again from the step of reading the ith record stored in the Map object in the form of the key value pair through the script until no unread record exists in the Map object, ending the flow, and obtaining a formatted text;
and the third generation module is used for processing the formatted text through a text processing tool to generate a second file in a second format.
7. A computer readable storage medium, characterized in that at least one program is stored in the storage medium, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 5.
8. A terminal comprising a processor and a memory, wherein the memory has stored therein at least one program that is executed by the processor to implement the method of any of claims 1 to 5.
CN201910190146.XA 2019-03-13 2019-03-13 File generation method, device and storage medium Active CN109933766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910190146.XA CN109933766B (en) 2019-03-13 2019-03-13 File generation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910190146.XA CN109933766B (en) 2019-03-13 2019-03-13 File generation method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109933766A CN109933766A (en) 2019-06-25
CN109933766B true CN109933766B (en) 2023-07-28

Family

ID=66986986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910190146.XA Active CN109933766B (en) 2019-03-13 2019-03-13 File generation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109933766B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377910B (en) * 2019-07-22 2024-03-05 北京大学 Processing method, device, equipment and storage medium for table description
CN111506543A (en) * 2020-04-22 2020-08-07 北京奕为汽车科技有限公司 M file generation method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6424978B1 (en) * 1997-12-05 2002-07-23 Siemens Corporate Research, Inc. Formatting card-based hypermedia documents by automatic scripting
KR20080085105A (en) * 2007-01-22 2008-09-23 김영주 On-line collaborative authoring system and method for synchronizing
WO2013032137A2 (en) * 2011-08-29 2013-03-07 (주) 마인드메이플코리아 System and method for jointly editing a mind map
CN106294664A (en) * 2016-08-03 2017-01-04 广州视睿电子科技有限公司 A kind of method and apparatus generating mind map
KR20170042956A (en) * 2015-10-12 2017-04-20 삼성에스디에스 주식회사 Mind map server, system and method for serving mind map of using the same
WO2018134845A1 (en) * 2017-01-18 2018-07-26 Gaurav Goel An improved system and method for handling contents of multiple formats
CN108549664A (en) * 2018-03-20 2018-09-18 北京道至易科技有限公司 A kind of document file management system
CN108595646A (en) * 2018-04-26 2018-09-28 天津字节跳动科技有限公司 The comment method and apparatus of online document
CN108647305A (en) * 2018-05-09 2018-10-12 天津字节跳动科技有限公司 document format conversion method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010103540A2 (en) * 2009-03-09 2010-09-16 Balajee Rajaram Systems and methods to use collaborative mind maps
US9286583B2 (en) * 2011-12-05 2016-03-15 International Business Machines Corporation Integrating mind mapping technology with case modeling
US9552138B2 (en) * 2013-05-10 2017-01-24 Lg Electronics Inc. Mobile terminal and method for controlling the same
US20160342678A1 (en) * 2015-05-21 2016-11-24 Ronald Louis Newman Manipulation of arbitrarily related data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6424978B1 (en) * 1997-12-05 2002-07-23 Siemens Corporate Research, Inc. Formatting card-based hypermedia documents by automatic scripting
KR20080085105A (en) * 2007-01-22 2008-09-23 김영주 On-line collaborative authoring system and method for synchronizing
WO2013032137A2 (en) * 2011-08-29 2013-03-07 (주) 마인드메이플코리아 System and method for jointly editing a mind map
KR20170042956A (en) * 2015-10-12 2017-04-20 삼성에스디에스 주식회사 Mind map server, system and method for serving mind map of using the same
CN106294664A (en) * 2016-08-03 2017-01-04 广州视睿电子科技有限公司 A kind of method and apparatus generating mind map
WO2018134845A1 (en) * 2017-01-18 2018-07-26 Gaurav Goel An improved system and method for handling contents of multiple formats
CN108549664A (en) * 2018-03-20 2018-09-18 北京道至易科技有限公司 A kind of document file management system
CN108595646A (en) * 2018-04-26 2018-09-28 天津字节跳动科技有限公司 The comment method and apparatus of online document
CN108647305A (en) * 2018-05-09 2018-10-12 天津字节跳动科技有限公司 document format conversion method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
应用视角下思维导图软件的比较与选用策略;华晓宇;陈国明;;现代教育技术(第01期);全文 *
思维导图工具集锦;张海燕;刘小霞;;中国信息技术教育(第15期);全文 *

Also Published As

Publication number Publication date
CN109933766A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN108369578B (en) Automatic template generation method and system based on previous document and computer readable storage device
CN111539188B (en) Note generation method, computing device, and computer storage medium
US10325015B2 (en) Conversion of data ranges to table objects
US8745581B2 (en) Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste
CN104520843A (en) Providing note based annotation of content in e-reader
CN109933766B (en) File generation method, device and storage medium
TW201525730A (en) Annotation hint display
CN113285868A (en) Task generation method, device and computer readable medium
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
CN104932774A (en) Information processing method and electronic equipment
CN110889266A (en) Conference record integration method and device
CN107562710B (en) Chart processing device and method
WO2024002051A1 (en) Document editing method and apparatus, and electronic device and storage medium
CN105718434A (en) Natural language formula editing method and system
CN110990006A (en) Form management system and form generation device
CN113835835B (en) Method, device and computer readable storage medium for creating consistency group
CN115952771A (en) Picture editing method and device, electronic equipment and storage medium
CN115034181A (en) Method and device for converting text into video, electronic equipment and readable storage medium
CN113705178A (en) Document processing method, document processing device, electronic equipment and medium
CN113011148A (en) Method, device, equipment and medium for automatically outputting file with specified format
CN113110829A (en) Multi-UI component library data processing method and device
KR20180090415A (en) Device and method for generating or viewing design guide file
KR102442510B1 (en) Document editing apparatus that automatically specifies the storage file format for documents and the operating method thereof
CN115134317B (en) Message display method, device, storage medium and electronic device
KR20190033749A (en) Document editor and method using the same

Legal Events

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