WO2019242164A1 - 文档管理方法、装置、计算机设备及存储介质 - Google Patents

文档管理方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2019242164A1
WO2019242164A1 PCT/CN2018/109492 CN2018109492W WO2019242164A1 WO 2019242164 A1 WO2019242164 A1 WO 2019242164A1 CN 2018109492 W CN2018109492 W CN 2018109492W WO 2019242164 A1 WO2019242164 A1 WO 2019242164A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
edited
content
received
edited document
Prior art date
Application number
PCT/CN2018/109492
Other languages
English (en)
French (fr)
Inventor
黄桂钦
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019242164A1 publication Critical patent/WO2019242164A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a document management method, device, computer device, and storage medium.
  • a document management platform it is generally possible to edit, publish, and view documents.
  • the corresponding document has been edited in another editor before, such as a word document, the content of the corresponding document needs to be copied and pasted again into the corresponding editor of the document management platform.
  • copying and pasting it is easy to miss the document content due to misoperation or add new characters to the document content, such as spaces.
  • the embodiments of the present application provide a document management method, device, computer equipment, and storage medium, which can directly import edited documents without long-term editing in an editor, and can display documents by subject, which can be easily searched Documentation to improve the user experience.
  • an embodiment of the present application provides a document management method.
  • the method includes:
  • the edited document is imported in a preset document editing interface; if a document conversion instruction is received, the edited document is read, and the content in the edited document is converted to conform to Preset the style required by the editor and display it in the preset document editing interface; receive the theme associated with the edited document selected by the user, and set the corresponding association relationship between the edited document and the theme; if After receiving the save instruction, the edited document is saved into a topic data set corresponding to a topic having a corresponding association relationship.
  • an embodiment of the present application provides a document management apparatus, and the apparatus includes a unit corresponding to the document management method described in the first aspect.
  • an embodiment of the present application provides a computer device, where the computer device includes a memory and a processor connected to the memory;
  • the memory is configured to store a computer program
  • the processor is configured to run the computer program stored in the memory to perform the document management method according to the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions are implemented by a processor to implement the foregoing.
  • the document management method described in the first aspect is described in the first aspect.
  • the embodiment of the present application can convert the imported edited document into a style that meets the requirements of a preset editor, and save it in a topic data set corresponding to a topic that has a corresponding relationship with the edited document.
  • the edited document can be directly imported without long-time editing in the editor, and the document can be displayed through the theme, and the document can be easily found, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a document management method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a sub-process of a document management method according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a document management method according to another embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a document management method according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram of a document directory interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a document management method according to another embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a document management apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a document management apparatus according to another embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a document management apparatus according to another embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the terminals described in this application include, but are not limited to, portable devices such as mobile phones, laptop computers, or tablet computers. It should also be understood that, in some embodiments, the terminal also includes a non-portable device, such as a desktop computer or the like.
  • the following method embodiments can be applied to any terminal.
  • the terminal exists in the form of a server.
  • the server includes a document management platform.
  • the document management platform is used to manage documents.
  • the documents may be software documents.
  • FIG. 1 is a schematic flowchart of a document management method according to an embodiment of the present application. The method is applied in a terminal. The method includes the following steps S101-S104.
  • the document may refer to a software document, such as a research document corresponding to middleware such as Nginx, Apache, Tomcat, kafka, and zookeeper.
  • the research document includes the middleware installation process document, the middleware performance tuning document, the middleware corresponding pressure test data document, parameter configuration document, application scenario adaptation document, troubleshooting document, etc.
  • the edited document can be a word document, a txt document, etc.
  • the document import instruction is used for document selection, selecting an edited document to be imported, and importing.
  • obtaining the information of the edited document includes the format of the edited document, the size of the edited document, the content of the edited document, and checking whether the format of the edited document is a preset document format, and checking whether the size of the edited document is larger than the Set the size of the document. If it is not a preset document format, or is larger than the preset document size, a prompt is given, and importing cannot be performed. Among them, when importing an edited document, it is imported as an attachment.
  • the edited document is read, and the content in the edited document is converted into a style that meets the requirements of the preset editor and displayed on the preset document editing interface.
  • the preset editor is an editor in a preset document editing interface.
  • step S102 includes S201-S204.
  • a document conversion interface is displayed in a preset document editing interface
  • the document conversion interface is called to generate a document conversion instruction.
  • a related button of "conversion” is displayed in the preset document editing interface, click the related button of "conversion” to generate a document conversion instruction.
  • the document conversion instruction is used to convert the edited document. It can be understood that when a document is imported, it is imported in the form of an attachment. Therefore, it can be learned from the document conversion instruction that the edited document needs to be converted, instead of being in the form of an attachment.
  • the import path of the edited document is obtained, that is, the import path set in advance.
  • the import path can be understood as a path for saving and importing the document, and the edited document can be obtained through the import path.
  • S202 Read the edited document according to the import path, and obtain the document content.
  • the edited document is obtained by a JavaScript code. Call the JQuery plugin to get the document content.
  • converting the document content into HMTL source code includes: obtaining the first line of data in the document content; converting the obtained first line of data into HTML source code; obtaining the next line of data in the document content; One line of data is converted to HTML source code; then the steps of obtaining the next line of data in the document content are performed until all the data in the document content has been obtained and converted.
  • the converted content can be saved in a special file named as the edited document name.file.
  • the conversion uses Python. Then call the win32com module in Python (to control the word document using Python, you need to import the win32com module first), docx module, docx2html module, etc. to achieve the conversion of the document content into HTML source code.
  • the parsed content includes all the content in the edited document, such as text, pictures, tables, links, and so on. If the document is a word document and the conversion uses Python, then the HTMLParser module is called for parsing.
  • the display may be displayed while being analyzed while being converted. Specifically: Obtain the first line of data in the document content; convert the obtained first line of data into HTML source code; parse the HTML source code to conform to the style required by the preset editor, and display it in the preset document editing interface Parsed content; get the next line of data in the document content; convert the next line of data into HTML source code; parse the HTML source code to conform to the style required by the preset editor, and display it in the preset document editing interface The parsed content; then perform the steps of obtaining the next line of data in the document content until the data in the document content has all been acquired, transformed, parsed, and displayed.
  • the parsed content displayed in the preset document editing interface may not necessarily completely meet the user's requirements, so the method further includes: if an editing instruction is received, editing the preset document according to the editing instruction What is displayed in the editing interface. Then, the edited document refers to the document edited according to the editing instructions.
  • the edited content includes: adding an action to add a link corresponding to the action in the action, etc., and the link will automatically jump to the relevant document corresponding to the text corresponding to the action. If the text corresponding to the action is "parameter”, after detecting that the user clicks on the text "parameter”, it will automatically jump to the relevant document corresponding to the "parameter”, such as the parameter configuration file.
  • the content in the edited document is imported, and the document content is converted into a style that meets the requirements of the preset editor.
  • the document content is converted into a style that meets the requirements of the preset editor.
  • the edited document is saved to a topic data set corresponding to a topic having a corresponding relationship. If the edited document is a software document, the edited software document is stored in a software data set corresponding to the software having a corresponding association relationship. If the content corresponding to the edited software document is about the Nginx middleware installation process, then the software with the corresponding relationship is the Nginx middleware, then save the edited software document to the data set corresponding to Nginx. That is, the edited software document is saved to a software document data set related to Nginx middleware.
  • FIG. 3 it is a schematic flowchart of a document management method according to another embodiment of the present application.
  • the method before receiving a theme associated with the edited document selected by the user, the method further includes: S303-S305.
  • S303-S305 For other steps in the embodiment of FIG. 3, refer to the description in the embodiment of FIG.
  • An edited document generally refers to an imported edited document. However, if an editing instruction is received and the content displayed in the preset document editing interface is edited according to the editing instruction, the edited document refers to the document edited according to the editing instruction. It can be understood that if it is detected that the preset editor is exited or the focus of the mouse is not in the area where the edited document is located, then the document content of the edited document and the title corresponding to the edited document are obtained.
  • S304 Find the related topic in the document content and the title. Which content can be set as a theme by presetting.
  • Finding the relevant subject in the document content and the title includes: finding the involved middleware / software name in the document content and the title, and using the involved middleware / software name as the involved subject.
  • Another example is the recipe document, with the corresponding recipe name as a topic.
  • S305 Display the involved topics for the user to select from them a topic associated with the edited document. There may be one or more topics involved. If there is only one topic involved, the user selects the topic as the topic associated with the edited document; if there are multiple topics involved, the user receives a topic selected from multiple topics As the topic associated with this edited document.
  • the method further includes: viewing the document.
  • the steps of viewing the document include S405-S406.
  • S405-S406 are added.
  • the document is a software document, such as a research document corresponding to middleware such as Nginx, Apache, Tomcat, kafka, zookeeper, etc.
  • software that has a corresponding relationship with the software document is selected according to the software name to enter a document display interface corresponding to the software that has a corresponding relationship with the software document.
  • the document directory interface sorts and displays different software according to the first letter of the software name.
  • FIG. 5 is a schematic diagram of a document directory interface.
  • the software list is sorted and displayed according to the first letter, such as sorted and displayed in English alphabetical order.
  • the first letter such as sorted and displayed in English alphabetical order.
  • Select the middleware with the software name Apache under the first letter A and detect the operation of the user clicking the Apache middleware to enter the document display interface related to Apache middleware.
  • the underlined text portion in FIG. 5 indicates that you can click to further view or perform other operations. Because the number of middleware is limited, after sorting according to the first letter corresponding to the middleware name, all the middleware can still be displayed well.
  • the edited document is found from the document data set. If the edited document is an Nginx document, in the document display interface corresponding to the Nginx middleware, the edited document can be found according to the document name, document publication date, document keywords, and so on.
  • This embodiment enables finding and displaying documents according to the theme.
  • a plurality of documents may be involved in a topic data set corresponding to a topic having a corresponding association relationship with the edited document, and the plurality of documents may be displayed in order according to a certain importance rule.
  • FIG. 6 is a schematic flowchart of a document management method according to another embodiment of the present application. As shown in FIG. 6, steps S601-S609 are included. For steps S601-S604, please refer to the description of the embodiment in FIG. Steps S605-S609 will be described below.
  • classifying all documents in the document data set corresponding to the topic with the corresponding association relationship For example, the software documentation corresponding to Nginx middleware can be classified according to the purpose / purpose involved in the software documentation, such as the installation process document of the middleware, the performance tuning document of the middleware, and the pressure test data document corresponding to the middleware , Parameter configuration documents, application scenario adaptation documents, troubleshooting documents, etc.
  • classifying the documents in the document data set includes: extracting keywords of all documents in the document data set; and classifying all documents in the document data set according to the keywords.
  • the method for extracting keywords can use the current keyword extraction method.
  • one or more keywords of the document may also be determined according to user input or according to keywords selected by the user from a plurality of recommended keywords.
  • a keyword extraction method can be used to recommend multiple keywords of the document to the user.
  • the importance of the document category is determined according to the user's current requirements for the middleware. The importance of the document category needs to be set in advance. If the current understanding of middleware is only in the understanding stage, correspondingly, the importance of middleware installation process documents and introduction documents is higher than that of troubleshooting documents. If the current understanding of middleware is very deep, then the importance of the corresponding troubleshooting documentation is higher than the importance of the middleware installation process documentation. It should be noted that the order of the importance of the documents in the document data set corresponding to different topics at the same time is different.
  • the importance of the corresponding troubleshooting documentation is higher than the importance of the middleware installation process documentation; for kafka middleware, the importance of the corresponding parameter configuration documents and application scenario adaptation documents More important than the middleware installation process documentation.
  • the ordering of the importance of the documents in the document data set corresponding to the same topic at different times may also be different.
  • the importance of the document category is sorted every other time, and then classified according to the importance of the document category Sort out the document categories.
  • S607 Display all the documents in the document data set in the order corresponding to the sorted document categories. All documents in the document data set are sorted and displayed in the order corresponding to the importance of the classified document categories. Among them, multiple documents in each category can be displayed according to preset rules. For example, according to the post time, reading volume, comment volume, like volume and other comprehensive evaluation and then ranking display. Specifically: Get the document publishing time, reading amount, comment amount, like amount; if the interval between the current time and the document publishing time is within a preset time, display the documents according to the document publishing time from the back to the front; if the current time The interval from the publication time of the document is greater than the preset time. The comprehensive score of the document is calculated according to the preset formula.
  • step S608 Detect whether a new document appears in the document data set. If no new document appears in the document data set, step S608 is performed.
  • S610 Display the newly added document according to an order corresponding to the document category. Multiple documents in this category can be displayed according to preset rules.
  • the edited document can be published, and other users can comment after publishing the document.
  • the method further includes: if a publishing instruction is received, publishing the edited document; if it is detected that there is a comment on the published edited document, obtaining comment information; if a user who publishes the edited document is detected Logged in, and sends and displays the review information to the user in the form of a pop-up window for the user to quickly review the review information and reply to the review information.
  • the review information includes review time, reviewer-related information, review content, and information about the document being reviewed.
  • the reviewer-related information includes the reviewer's nickname and corresponding image, etc.
  • the reviewed document information includes the name of the document and / or the document summary, and the document publication time.
  • One comment message corresponds to one popup. The user may reply to the comment directly on the popup window or may not reply.
  • the reviews that have been viewed (the corresponding pop-up window is detected and closed, that is, viewed) will not be displayed in the form of a pop-up window, but will be displayed at the bottom of the page where the corresponding document is located for other users to browse and review And post comments.
  • FIG. 7 is a schematic block diagram of a document management apparatus according to an embodiment of the present application.
  • the device is used in a terminal.
  • the device 70 includes an import unit 701, a conversion unit 702, a setting unit 703, and a posting storage unit 704.
  • the import unit 701 is configured to import an edited document in a preset document editing interface if a document import instruction is received.
  • the conversion unit 702 is configured to read an edited document if a document conversion instruction is received, and convert the content in the edited document into a style that meets the requirements of a preset editor and display the preset document editing interface.
  • the conversion unit 702 includes a path acquisition unit, a content acquisition unit, a content conversion unit, and a parsing display unit.
  • the path obtaining unit is configured to obtain an imported path of the edited document if a document conversion instruction is received.
  • a content obtaining unit configured to read the edited document according to the import path, and obtain the content of the document.
  • Content conversion unit which is used to convert the document content into HTML source code.
  • the content conversion unit is configured to: obtain the first line of data in the document content; convert the obtained first line of data into HTML source code; obtain the next line of data in the document content; convert the obtained next line of data into HTML source code; then get the next line of data in the document content, until the data in the document content has all been obtained and transformed.
  • the parsing display unit is used to parse the HTML source code to conform to the style required by the preset editor, and display the parsed content in the preset document editing interface.
  • the parsed content displayed in the preset document editing interface may not necessarily fully meet the requirements of the user. Therefore, the document management apparatus further includes: an editing unit, where the editing unit is configured to: After receiving the editing instruction, the content displayed in the preset document editing interface is edited according to the editing instruction. Then, the edited document refers to a document edited according to an editing instruction, that is, a document processed by an editing unit.
  • a setting unit 703 is configured to receive a theme selected by the user and associated with the edited document, and set a corresponding association relationship between the edited document and the theme.
  • the posting and saving unit 704 if receiving a save instruction, saves the edited document into a topic data set corresponding to a topic having a corresponding association relationship.
  • the document management apparatus further includes a content title acquisition unit, a topic search unit, and a display selection unit.
  • the content title acquiring unit is configured to acquire the document content content of the edited document and the title corresponding to the edited document.
  • the topic search unit is configured to search for a related topic in the document content and the title.
  • a display selection unit is used to display the related topics for the user to select a topic associated with the edited document. Then the setting unit 703 is triggered.
  • FIG. 8 it is a schematic block diagram of a document management apparatus according to another embodiment of the present application.
  • the device 80 includes an import unit 801, a conversion unit 802, a setting unit 803, a posting storage unit 804, a topic selection unit 805, and a document search unit 806.
  • the import unit 801, the conversion unit 802, the setting unit 803, and the posting storage unit 804 refer to the content described in the embodiment of FIG.
  • the topic selection unit 805 and the document search unit 806 will be described below.
  • the topic selection unit 805 is configured to receive, if a query instruction is received, a selected topic having a corresponding relationship with the edited document in a document directory interface corresponding to all topics, and the documents corresponding to all the topics are received. In the directory interface, different topics are sorted and displayed according to the first letter of the topic name.
  • the document search unit 806 is configured to search for the edited document in a document display interface corresponding to a topic having a corresponding association relationship with the document.
  • FIG. 9 it is a schematic block diagram of a document management apparatus according to another embodiment of the present application.
  • the device 90 includes an import unit 901, a conversion unit 902, a setting unit 903, a posting storage unit 904, a classification unit 905, a sorting unit 906, a document display unit 907, and a document detection unit 908.
  • the import unit 901, the conversion unit 902, the setting unit 903, and the posting storage unit 904 refer to the content described in the embodiment of FIG.
  • the classification unit 905, the sorting unit 906, the document display unit 907, and the document detection unit 908 will be described below.
  • a classification unit 905 is configured to classify all documents in a document data set corresponding to a topic that has a corresponding association relationship.
  • the classification unit 905 includes a keyword extraction unit and a document classification unit.
  • the keyword extraction unit is used to extract keywords of all documents in the document data set.
  • a document classification unit is used to classify all documents in a document data set according to keywords.
  • the sorting unit 906 is configured to sort the classified document categories according to the importance of the document categories.
  • the document display unit 907 is configured to display all documents in the document data set in an order corresponding to the sorted document categories.
  • the document detection unit 908 is configured to detect whether a new document appears in the document data set.
  • the classification unit 905 is further configured to classify the new document to obtain a document category corresponding to the new document if a new document appears in the document data set.
  • the document display unit 907 is further configured to display the newly added document according to an order corresponding to the document category.
  • the edited document can be published, and other users can comment after publishing the document.
  • the device further includes: a publishing unit, a comment acquiring unit, and a comment sending unit.
  • the publishing unit is configured to publish the edited document if a publishing instruction is received.
  • the comment acquiring unit is configured to acquire comment information if a comment on the edited document published is detected.
  • a comment sending unit configured to send and display the comment information to the user in the form of a pop-up window if it is detected that the user who posted the edited document is logged in, so that the user can quickly view the comment information and reply to the comment information .
  • the above apparatus may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG. 10.
  • FIG. 10 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the device 100 includes a processor 102, a memory, and a network interface 103 connected through a system bus 101.
  • the memory may include a non-volatile storage medium 104 and an internal memory 105.
  • the non-volatile storage medium 104 can store an operating system 1041 and a computer program 1042. When the computer program 1042 is executed, it can cause the processor 102 to execute a document management method.
  • the processor 102 is used to provide computing and control capabilities to support the operation of the entire device 100.
  • the internal memory 105 provides an environment for running a computer program in a non-volatile storage medium. When the computer program is executed by the processor 102, the processor 102 can execute a document management method.
  • the network interface 103 is used for network communication, such as receiving messages.
  • FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the device 100 to which the solution of the present application is applied.
  • the specific device 100 may Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
  • the processor 102 is configured to run a computer program stored in a memory to implement any one of the foregoing embodiments of the document management method.
  • the processor 102 may be a central processing unit (CPU), and the processor may also be another general-purpose processor or a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • a storage medium stores a computer program.
  • the computer program includes program instructions, and the program instructions are implemented by a processor to implement the foregoing document. Any embodiment of the management method.
  • the storage medium includes a computer-readable storage medium including a non-volatile computer-readable storage medium.
  • the computer-readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD) card provided on the terminal. Wait.
  • the computer-readable storage medium may further include both an internal storage unit of the terminal and an external storage device.

Landscapes

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

Abstract

本申请公开了文档管理方法、装置、计算机设备及存储介质。所述方法包括:若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;若接收到文档转换指令,读取已编辑的文档,并将已编辑的文档中的内容转换为符合预设编辑器要求的样式并在预设文档编辑界面中显示;接收用户所选择的与已编辑的文档关联的主题,并设置已编辑的文档与主题的对应关联关系;若接收到保存指令,将已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。

Description

文档管理方法、装置、计算机设备及存储介质
本申请要求于2018年6月22日提交中国专利局、申请号为201810650172.1、发明名称为“文档管理方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种文档管理方法、装置、计算机设备及存储介质。
背景技术
在文档管理平台中,一般可以实现对文档进行编辑、发表、查看等。在文档进行编辑的时候,需要在文档管理平台提供的编辑器中进行编辑,若在编辑器中直接进行编辑,编辑速度比较慢,若编辑时出现问题如宕机,很可能会导致所编辑的内容丢失。若之前已经在其他的编辑器中编辑好对应的文档,如word文档等,还需要将对应的文档内容再次复制粘贴到文档管理平台对应的编辑器中。一方面在复制粘贴时很容易由于误操作导致文档内容缺失或者在文档内容中添加了新的字符,如空格等。另一方面,在文档编辑器中还需要对粘贴的文档内容再次检查,以在发表之前确认文档内容无误等。如此,降低了用户的体验。
发明内容
本申请实施例提供一种文档管理方法、装置、计算机设备及存储介质,可直接导入已编辑的文档,无需在编辑器中进行长时间的编辑,且可通过主题来展示文档,可方便地查找文档,从而改善了用户体验。
第一方面,本申请实施例提供了一种文档管理方法,该方法包括:
若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容 转换为符合预设编辑器要求的样式并在所述预设文档编辑界面中显示;接收用户选择的与所述已编辑的文档关联的主题,并设置所述已编辑的文档与主题的对应关联关系;若接收到保存指令,将所述已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
第二方面,本申请实施例提供了一种文档管理装置,该装置包括用于执行上述第一方面所述的文档管理方法对应的单元。
第三方面,本申请实施例提供了一种计算机设备,所述计算机设备包括存储器,以及与所述存储器相连的处理器;
所述存储器用于存储计算机程序,所述处理器用于运行所述存储器中存储的计算机程序,以执行上述第一方面所述的文档管理方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,实现上述第一方面所述的文档管理方法。
本申请实施例可将导入的已编辑的文档转换为符合预设编辑器要求的样式,并保存在与所述已编辑的文档有对应关联关系的主题所对应的主题数据集中。如此,可直接导入已编辑的文档,无需在编辑器中进行长时间的编辑,且可通过主题来展示文档,可方便地查找文档,从而改善了用户体验。
附图说明
图1是本申请实施例提供的一种文档管理方法的流程示意图;
图2是本申请实施例提供的一种文档管理方法的子流程示意图;
图3是本申请另一实施例提供的一种文档管理方法的流程示意图;
图4是本申请另一实施例提供的一种文档管理方法的流程示意图;
图5是本申请实施例提供的文档目录界面的示意图;
图6是本申请又一实施例提供的一种文档管理方法的流程示意图;
图7本申请实施例提供的一种文档管理装置的示意性框图;
图8是本申请另一实施例提供的一种文档管理装置的示意性框图;
图9是本申请又一实施例提供的一种文档管理装置的示意性框图;
图10是本申请实施例提供的一种计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请中描述的终端包括但不限于移动电话、膝上型计算机或平板计算机之类的便携式设备。还应当理解的是,在某些实施例中,所述终端还包括非便携式设备,如台式计算机等。以下方法实施例可以应用在任一终端上,该终端以服务器的形式存在,该服务器中包括有文档管理平台,该文档管理平台用于管理文档,该文档可以是软件文档。
图1是本申请实施例提供的一种文档管理方法的流程示意图。该方法应用于终端中。该方法包括以下步骤S101-S104。
S101,若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档。
其中,文档可以指软件文档,如Nginx、Apache、Tomcat、kafka、zookeeper等中间件所对应的调研文档等。其中,调研文档包括中间件的安装流程文档、中间件的性能调优文档、中间件对应的压测数据文档、参数配置文档、应用场景适配文档、故障排查文档等。已编辑的文档可以是word文档、txt文档等。在预设文档编辑界面对应的编辑器中有对应的导入接口,如有相应的“导入”按钮/标签,检测用户点击“导入”按钮/标签的操作,根据点击操作生成文档导入指令,接收该文档导入指令。该文档导入指令用于进行文档选择,选择要导入的已编辑的文档,并进行导入。在导入时,可以调用uploadFile方法,通过即loadFile方法可以实现获取已编辑文档的信息,并对获取的信息进行校验;若未通过校验,则进行提示;若通过校验,则将该已编辑的文档保存在预先设置的导入路径中。如获取已编辑文档的信息包括已编辑文档的格式、已编辑文档的大小、已编辑文档的内容,以及校验已编辑文档的格式是否为预设文档格式、检验已编辑文档的大小是否大于预设文档的大小。若不为预设文档格式,或者大于预设文档的大小,则进行提示,不能进行导入。其中,导入已编辑的文档时,是以附件的形式导入的。
S102,若接收到文档转换指令,读取已编辑的文档,并将该已编辑的文档中的内容转换为符合预设编辑器要求的样式并在预设文档编辑界面中显示。其中,预设编辑器即为预设文档编辑界面中的编辑器。
具体地,如图2所示,步骤S102包括S201-S204。
S201,若接收到文档转换指令,获取该已编辑的文档的导入路径。
如在预设文档编辑界面中显示文档转换接口,调用该文档转换接口以生成文档转换指令。如在预设文档编辑界面中显示“转换”的相关按钮,点击该“转换”的相关按钮以生成文档转化指令。文档转换指令用于将该已编辑的文档进行转换。可以理解为,导入文档时,是以附件的形式导入的,因此,通过文档转换指令可以得知该已编辑的文档需要进行内容转换,而不是以附件的形式存在。若接收到文档转换指令,获取该已编辑的文档的导入路径,即之前预先设置的导入路径。该导入路径可以理解为保存导入该文档的路径,通过该导入路径可以获取该已编辑的文档。
S202,根据导入路径读取已编辑的文档,并获取文档内容。具体地,通过JavaScript代码来获取该已编辑的文档。调用JQuery插件来获取文档内容。
S203,将文档内容转换为HTML源代码。
具体地,将文档内容转换为HMTL源代码,包括:获取文档内容中的第一行数据;将获取的第一行数据转换为HTML源代码;获取文档内容中的下一行数据;将获取的下一行数据转换为HTML源代码;再执行获取文档内容中的下一行数据的步骤,直至文档内容中的数据都已经全部获取并转换。转换后的内容可以保存在一个特殊文件中,命名为该已编辑的文档名称.file。
若该已编辑的文档为word文档,转换使用的是Python语言。那么调用Python中的win32com模块(要使用Python对word文档进行控制,需要先导入win32com模块)、docx模块、docx2html模块等以实现将文档内容转换为HTML源代码。
S204,解析HTML源代码使其符合预设编辑器要求的样式,并在预设文档编辑界面中显示解析后的内容。
可以理解地,解析该已编辑的文档名称.file中的内容,解析后的内容符合预设编辑器要求的样式;将解析后的内容返回到预设编辑器中,如 return_Data=doc_data.paragraphs[0].text;显示解析后的内容。解析后的内容中,包括已编辑的文档中的所有内容,如包括文字、图片、表格、链接等。若文档为word文档,转换使用的是Python语言,那么调用HTMLParser模块来进行解析。
在一实施例中,也可以边转换边解析边显示。具体地:获取文档内容中的第一行数据;将获取的第一行数据转换为HTML源代码;解析HTML源代码使其符合预设编辑器要求的样式,并在预设文档编辑界面中显示解析后的内容;获取文档内容中的下一行数据;将获取的下一行数据转换为HTML源代码;解析HTML源代码使其符合预设编辑器要求的样式,并在预设文档编辑界面中显示解析后的内容;再执行获取文档内容中的下一行数据的步骤,直至文档内容中的数据都已经全部获取、转换、解析和显示。
在一实施例中,在预设文档编辑界面中显示的解析后的内容可能并不一定都完全满足用户的要求,因此所述方法还包括:若接收到编辑指令,根据编辑指令编辑预设文档编辑界面中显示的内容。那么,已编辑的文档指的是根据编辑指令编辑后的文档。其中,编辑的内容包括:添加动作action,以在action中添加动作所对应的链接等,通过该链接将自动跳转到与动作所对应的文字所对应的相关文档中。如若动作action所对应的文字是“参数”,那么检测到用户点击该文字“参数”后,将自动跳转到“参数”所对应的相关文档中,如参数配置文档。
以上实施例中将已编辑的文档中的内容进行导入,并将文档内容转换为符合预设编辑器要求的样式,如此在发表文档前,不必在编辑器中进行长时间、大量的内容编辑,从而避免了在编辑时出现问题如宕机,而导致所编辑内容丢失的问题,另一方面,也避免了在复制粘贴时可能会导致的误操作以及对文档进行多次检查等问题,提高了用户的体验。
S103,接收用户所选择的与该已编辑的文档关联的主题,并设置该已编辑的文档与主题的对应关联关系。
S104,若接收到保存指令,将该已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
如在界面上有对应的“保存”相关按钮,点击该按钮,产生保存指令。接 收到保存指令,将该已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。若该已编辑的文档是软件文档,那么将该已编辑的软件文档保存至有对应关联关系的软件所对应的软件数据集之中。如该已编辑的软件文档对应的内容关于Nginx中间件的安装流程,那么有对应关联关系的软件就是Nginx中间件,那么将该该已编辑的软件文档保存至Nginx所对应的数据集之中。即将该已编辑的软件文档保存至与Nginx中间件相关的软件文档数据集之中。将该已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中,以方便后续根据主题来查看所有与主题相关的文档。由于涉及的软件,尤其是中间件的数量有限,根据中间件名称来查看所有与中间件名称相关的文档,易于实现,而且达到了较好的用户体验。
在一实施例中,如图3所示,为本申请另一实施例提供的一种文档管理方法的流程示意图。该实施例中,在接收用户所选择的与该已编辑的文档关联的主题之前,所述方法还包括:S303-S305。图3实施例中的其他步骤请参看图1实施例中的描述。
S303,获取已编辑的文档中的文档内容和该已编辑的文档所对应的标题。已编辑的文档,一般指的是导入的已编辑的文档。但是若接收到编辑指令,根据编辑指令编辑预设文档编辑界面中显示的内容之后,那么已编辑的文档,指的是根据编辑指令编辑后的文档。可以理解为,若检测到退出了预设编辑器或者检测到鼠标的焦点不在编辑文档所在的区域,那么获取已编辑的文档的文档内容和该已编辑的文档所对应的标题。
S304,在文档内容和所述标题中查找所涉及的主题。其中,哪些内容可以作为主题通过预先设置。如软件文档,将对应的具体软件名称作为一个主题,如Nginx中间件,将Nginx作为一个主题;Apache中间件,将Apache作为一个主题等。在文档内容和所述标题中查找所涉及的主题,包括:在文档内容和所述标题中查找所涉及的中间件/软件名称,将所涉及的中间件/软件名称作为所涉及的主题。再如菜谱文档,将对应的菜谱名称作为一个主题。
S305,显示所涉及的主题以供用户从中选择一个与该已编辑的文档关联的主题。所涉及的主题可能有一个,也可能有多个。若所涉及的主题只有一个,接收用户选择的该主题,将该主题作为与所述已编辑的文档关联的主题;若所 涉及的主题有多个,接收用户从多个主题中选择的一个主题,作为与该已编辑的文档关联的主题。
在该实施例中,根据文档内容和文档标题中涉及的主题,以供用户从涉及的主题中选择一个主题,作为与该已编辑的文档关联的主题。
在保存文档后,所述方法还包括:查看文档。具体地,如图4所示,查看文档的步骤包括S405-S406。图4所示的实施例与图1所示的实施例的区别在于:增加了S405-S406,其他步骤请参看图1实施例的描述。
S405,若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与该已编辑的文档有对应关联关系的主题,其中,该所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示。
如若文档为软件文档,如Nginx、Apache、Tomcat、kafka、zookeeper等中间件所对应的调研文档等。在文档目录界面中,根据软件名称选择与软件文档有对应关联关系的软件,以进入到与软件文档有对应关联关系的软件所对应的文档展示界面中。其中,该文档目录界面中将不同的软件按照软件名称首字母进行排序显示。
图5为文档目录界面的示意图。如图5所示,在文档目录界面中有软件列表,软件列表按照首字母进行排序显示,如按照英文字母的顺序排序显示。如在首字母为A的下面对应有Apache、Ansible中间件,首字母为B的下面对应有Bind中间件,首字母为C的下面目前没有任何中间件。在首字母为A的下面选择软件名称为Apache的中间件,检测用户点击该Apache中间件的操作,以进入与Apache中间件相关的文档展示界面。其中,图5中有下划线的文字部分,表示可以点击以进一步进行查看或者执行其他操作。由于中间件的数量是有限的,按照中间件名称所对应的首字母进行排序后,仍然可以很好的显示所有的中间件。
若随着时间的推移,中间件的数量越来越多,在所有软件所对应的文档目录界面中已经不能很好的显示所有的中间件时,可在所有软件所对应的文档目录界面中只显示首字母、和对应首字母下的部分软件名称。当检测到用户点击该首字母对应区域的“更多”相关按钮时,接收对应的指令,以打开该首字母所对应的更多的中间件页面。
S406,在与该已编辑的文档有对应关联关系的主题所对应的文档展示界面中,查找该已编辑的文档。具体地,从文档数据集中查找该已编辑的文档。如若该已编辑的文档是Nginx文档,在Nginx中间件所对应的文档展示界面中,可根据文档的名称、文档发表日期、文档关键词等查找该已编辑的文档。
该实施例实现了根据主题来查找和展示文档。
在一实施例中,在与该已编辑的文档有对应关联关系的主题所对应的主题数据集中可能会涉及多篇文档,可将多篇文档按照一定的重要性规则进行排序展示。
图6是本申请另一实施例提供的一种文档管理方法的流程示意图。如图6所示,包括了步骤S601-S609。其中,步骤S601-S604请参看图1实施例的描述。下面将介绍步骤S605-S609。
S605,将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类。如对于Nginx中间件所对应的软件文档,可按照软件文档所涉及的目的/用途进行分类,如分为中间件的安装流程文档、中间件的性能调优文档、中间件对应的压测数据文档、参数配置文档、应用场景适配文档、故障排查文档等。具体地,将文档数据集中的文档进行分类包括:提取文档数据集中所有文档的关键词;根据关键词将文档数据集中所有文档进行分类。其中,提取关键词的方法可以使用目前的关键词提取方法。
在其他实施例中,也可以在发表文档的时候,根据用户的输入或者根据用户从推荐的多个关键词中选择的关键词来确定文档的一个或者多个关键词。其中,可用关键词提取方法向用户推荐该文档的多个关键词。
S606,根据文档类别的重要性将分类得出的文档类别进行排序。如对于中间件所对应的软件文档,文档类别的重要性根据用户当前对中间件的需求来决定。文档类别的重要性需预先设定。若当前对中间件只是处于了解阶段,那么对应地,中间件的安装流程文档、介绍文档等的重要性要高于故障排查文档的重要性。若当前对中间件的了解已经非常深入,那么对应的故障排查文档的重要性要高于中间件的安装流程文档的重要性。需要注意的是,同一时间不同主题所对应的文档数据集中的文档的重要性的排序是不同的。如当前阶段,对于Nginx中间件,对应的故障排查文档的重要性要高于中间件的安装流程文档的 重要性;而对于kafka中间件,对应的参数配置文档、应用场景适配文档的重要性要高于中间件的安装流程文档的重要性。不同时间同一主题所对应的文档数据集中的文档的重要性的排序也有可能不同,在其他实施例中,每隔一段时间对文档类别的重要性进行排序,再根据文档类别的重要性将分类得出的文档类别进行排序。
S607,将文档数据集中的所有文档按照排序后的文档类别对应的顺序进行展示。将文档数据集中的所有文档按照分类出的文档类别的重要性对应的顺序进行排序后展示。其中,对于每一个类别中的多个文档,可以按照预设规则进行展示。如按照发表时间、阅读量、评论量、点赞量等综合来评价后进行排序展示。具体地:获取文档发表时间、阅读量、评论量、点赞量;若当前时间与文档发表时间的间隔在预设时间内,按照文档发表时间从后往前的排序来展示文档;若当前时间与文档发表时间的间隔大于预设时间,按照预设公式计算文档的综合评分,预设公式
Figure PCTCN2018109492-appb-000001
其中,r 1、r 2、r 3分别表示分数系数,r 1+r 2+r 3=1 Read表示阅读量归一化值,Com表示评论量归一化值,Pra表示点赞量归一化值;按照综合评分从高到低的顺序来展示文档。
S608,检测文档数据集中是否出现新增文档。若文档数据集中没有出现新增文档,接着执行步骤S608。
S609,若文档数据集中出现新增文档,将该新增文档进行归类以得到该新增文档所对应的文档类别。
S610,将该新增文档根据文档类别对应的顺序进行展示。对于该类别中的多个文档,可以按照预设规则进行展示。
在一实施例中,可以将已编辑的文档进行发表,发表文档后,其他用户可以进行评论。对应的,所述方法还包括:若接收到发表指令,发表该已编辑的文档;若检测到有对发表的已编辑的文档进行评论,获取评论信息;若检测到发表已编辑的文档的用户已登陆,以弹窗的形式向所述用户发送并展示所述评论信息,以供所述用户快速查看评论信息以及回复评论信息。
其中,评论信息包括评论时间、评论人相关信息、评论内容、所评论的文档信息等。其中,评论人相关信息包括评论人的昵称和对应的图像等,所评论 的文档信息包括文档的名称和/或文档摘要、文档发表时间等。一个评论信息对应一个弹窗。所述用户可以在弹窗上直接回复该条评论,也可以不进行回复。查看过的评论(检测到打开所对应的弹窗并关闭,即视为查看)则不会再以弹窗的形式展示,而是展示在对应文档所在页面的底部,以供其他用户浏览、查阅以及发表评论等。
图7是本申请实施例提供的一种文档管理装置的示意性框图。该装置应用于终端中。如图7所示,该装置70包括导入单元701、转换单元702、设置单元703、发表保存单元704。
导入单元701,用于若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档。
转换单元702,用于若接收到文档转换指令,读取已编辑的文档,并将该已编辑的文档中的内容转换为符合预设编辑器要求的样式并在预设文档编辑界面中显示。
具体地,转换单元702包括路径获取单元、内容获取单元、内容转换单元、解析显示单元。其中,路径获取单元,用于若接收到文档转换指令,获取已编辑的文档的导入路径。内容获取单元,用于根据导入路径读取该已编辑的文档,并获取文档内容。内容转换单元,用于将文档内容转换为HTML源代码。具体地,内容转换单元,用于:获取文档内容中的第一行数据;将获取的第一行数据转换为HTML源代码;获取文档内容中的下一行数据;将获取的下一行数据转换为HTML源代码;再获取文档内容中的下一行数据,直至文档内容中的数据都已经全部获取并转换。解析显示单元,用于解析HTML源代码使其符合预设编辑器要求的样式,并在预设文档编辑界面中显示解析后的内容。
在一实施例中,在预设文档编辑界面中显示的解析后的内容可能并不一定都完全满足用户的要求,因此所述文档管理装置还包括:编辑单元,其中,编辑单元,用于若接收到编辑指令,根据编辑指令编辑预设文档编辑界面中显示的内容。那么,已编辑的文档指的是根据编辑指令编辑后的文档,即经过编辑单元处理后的文档。
设置单元703,用于接收用户所选择的与该已编辑的文档关联的主题,并设置该已编辑的文档与主题的对应关联关系。
发表保存单元704,若接收到保存指令,将该已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
在一实施例中,文档管理装置还包括内容标题获取单元、主题查找单元、显示选择单元。其中,内容标题获取单元,用于获取已编辑的文档的文档内容内容和该已编辑的文档所对应的标题。主题查找单元,用于在文档内容和所述标题中查找所涉及的主题。显示选择单元,用于显示所涉及的主题以供用户从中选择一个与该已编辑的文档关联的主题。接着触发设置单元703。
在一实施例中,如图8所示,为本申请另一实施例提供的一种文档管理装置的示意性框图。该装置80包括导入单元801、转换单元802、设置单元803、发表保存单元804、主题选择单元805、文档查找单元806。其中,导入单元801、转换单元802、设置单元803、发表保存单元804请参看图7实施例所描述的内容。下面将介绍主题选择单元805、文档查找单元806。
主题选择单元805,用于若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与该已编辑的文档有对应关联关系的主题,其中,该所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示。
文档查找单元806,用于在与文档有对应关联关系的主题所对应的文档展示界面中,查找该已编辑的文档。
在一实施例中,如图9所示,为本申请另一实施例提供的一种文档管理装置的示意性框图。该装置90包括导入单元901、转换单元902、设置单元903、发表保存单元904、分类单元905、排序单元906、文档展示单元907、文档检测单元908。其中,导入单元901、转换单元902、设置单元903、发表保存单元904请参看图7实施例所描述的内容。下面将介绍分类单元905、排序单元906、文档展示单元907、文档检测单元908。
分类单元905,用于将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类。其中,分类单元905包括:关键词提取单元、文档分类单元。其中,关键词提取单元,用于提取文档数据集中所有文档的关键词。文档分类单元,用于根据关键词将文档数据集中所有文档进行分类。
排序单元906,用于根据文档类别的重要性将分类得出的文档类别进行排 序。
文档展示单元907,用于将文档数据集中的所有文档按照排序后的文档类别对应的顺序进行展示。
文档检测单元908,用于检测文档数据集中是否出现新增文档。
分类单元905,还用于若文档数据集中出现新增文档,将该新增文档进行归类以得到该新增文档所对应的文档类别。
文档展示单元907,还用于将该新增文档根据文档类别对应的顺序进行展示。
在一实施例中,可以将已编辑的文档进行发表,发表文档后,其他用户可以进行评论。对应的,所述装置还包括:发表单元、评论获取单元、评论发送单元。其中,发表单元,用于若接收到发表指令,发表该已编辑的文档。评论获取单元,用于若检测到有对发表的该已编辑的文档进行评论,获取评论信息。评论发送单元,用于若检测到发表该已编辑的文档的用户已登陆,以弹窗的形式向所述用户发送并展示所述评论信息,以供所述用户快速查看评论信息以及回复评论信息。
上述装置可以实现为一种计算机程序的形式,计算机程序可以在如图10所示的计算机设备上运行。
图10为本申请实施例提供的一种计算机设备的示意性框图。该设备100包括通过系统总线101连接的处理器102、存储器和网络接口103,其中,存储器可以包括非易失性存储介质104和内存储器105。
该非易失性存储介质104可存储操作系统1041和计算机程序1042。该计算机程序1042被执行时,可使得处理器102执行文档管理方法。该处理器102用于提供计算和控制能力,支撑整个设备100的运行。该内存储器105为非易失性存储介质中的计算机程序的运行提供环境,该计算机程序被处理器102执行时,可使得处理器102执行文档管理方法。该网络接口103用于进行网络通信,如接收消息等。本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的设备100的限定,具体的设备100可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器102用于运行存储在存储器中的计算机程序,以实现前述文档管理方法的任一实施例。
应当理解,在本申请实施例中,所称处理器102可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,以实现以实现前述文档管理方法的任一实施例。
存储介质包括计算机可读存储介质,该计算机可读存储介质包括非易失性计算机可读存储介质。该计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘或内存。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置、设备、单元、以及存储介质被处理器执行的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种文档管理方法,其包括:
    若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;
    若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示;
    接收用户所选择的与所述已编辑的文档关联的主题,并设置所述已编辑的文档与主题的对应关联关系;
    若接收到保存指令,将所述已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
  2. 根据权利要求1所述的方法,其中,所述若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示,包括:
    若接收到文档转换指令,获取所述已编辑的文档的导入路径;
    根据所述导入路径读取所述已编辑的文档,并获取文档内容;
    将所述文档内容转换为HTML源代码;
    解析HTML源代码使其符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示解析后的内容。
  3. 根据权利要求1所述的方法,其中,所述在接收用户所选择的与所述已编辑的文档关联的主题之前,所述方法还包括:
    获取所述已编辑的文档的文档内容和所述已编辑的文档所对应的标题;
    在所述文档内容和所述标题中查找所涉及的主题;
    显示所涉及的主题以供用户从中选择一个与所述已编辑的文档关联的主题。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与所述已编辑的文档有对应关联关系的主题,其中,所述所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示;
    在与所述已编辑的文档有对应关联关系的主题所对应的文档展示界面中,查找所述已编辑的文档。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类;
    根据文档类别的重要性将分类得出的文档类别进行排序;
    将文档数据集中的所有文档按照排序后的文档类别对应的顺序进行展示;
    若检测到文档数据集中出现新增文档,将所述新增文档进行归类;
    将所述新增文档根据文档类别对应的顺序进行展示。
  6. 根据权利要求5所述的方法,其中,所述将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类,包括:
    提取设置有对应关联关系的主题所对应的文档数据集中所有文档的关键词;
    根据关键词将文档数据集中所有文档进行分类。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    若接收到发表指令,发表所述已编辑的文档;
    若检测到有对发表的所述已编辑的文档进行评论,获取评论信息;
    若检测到发表所述已编辑的文档的用户已登陆,以弹窗的形式向所述用户发送并展示所述评论信息,以供所述用户查看所述评论信息以及回复所述评论信息。
  8. 一种文档管理装置,其包括:
    导入单元,用于若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;
    转换单元,用于若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示;
    设置单元,用于接收用户所选择的与所述已编辑的文档关联的主题,并设置所述已编辑的文档与主题的对应关联关系;
    发表保存单元,用于若接收到保存指令,将所述已编辑的文档保存至有对 应关联关系的主题所对应的主题数据集之中。
  9. 根据权利要求8所述的文档管理装置,其中,所述转换单元包括:
    路径获取单元,用于若接收到文档转换指令,获取所述已编辑的文档的导入路径;
    内容获取单元,用于根据所述导入路径读取所述已编辑的文档,并获取文档内容;
    内容转换单元,用于将所述文档内容转换为HTML源代码;
    解析显示单元,用于解析HTML源代码使其符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示解析后的内容。
  10. 根据权利要求8所述的文档管理装置,其中,所述文档管理装置还包括:
    主题选择单元,用于若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与所述已编辑的文档有对应关联关系的主题,其中,所述所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示;
    文档查找单元,用于在与所述已编辑的文档有对应关联关系的主题所对应的文档展示界面中,查找所述已编辑的文档。
  11. 一种计算机设备,包括存储器,以及与所述存储器相连的处理器;其中,
    所述存储器用于存储计算机程序;所述处理器用于运行所述存储器中存储的计算机程序,以执行如下步骤:
    若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;
    若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示;
    接收用户所选择的与所述已编辑的文档关联的主题,并设置所述已编辑的文档与主题的对应关联关系;
    若接收到保存指令,将所述已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
  12. 根据权利要求11所述的计算机设备,其中,所述处理器在执行所述若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内 容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示的步骤时,具体执行如下步骤:
    若接收到文档转换指令,获取所述已编辑的文档的导入路径;
    根据所述导入路径读取所述已编辑的文档,并获取文档内容;
    将所述文档内容转换为HTML源代码;
    解析HTML源代码使其符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示解析后的内容。
  13. 根据权利要求11所述的计算机设备,其中,所述处理器在执行所述接收用户所选择的与所述已编辑的文档关联的主题的步骤之前,还执行如下步骤:
    获取所述已编辑的文档的文档内容和所述已编辑的文档所对应的标题;
    在所述文档内容和所述标题中查找所涉及的主题;
    显示所涉及的主题以供用户从中选择一个与所述已编辑的文档关联的主题。
  14. 根据权利要求11所述的计算机设备,其中,所述处理器在执行所述将所述已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中的步骤之后,还执行如下步骤:
    若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与所述已编辑的文档有对应关联关系的主题,其中,所述所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示;
    在与所述已编辑的文档有对应关联关系的主题所对应的文档展示界面中,查找所述已编辑的文档。
  15. 根据权利要求11所述的计算机设备,其中,所述处理器还执行如下步骤:
    将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类;
    根据文档类别的重要性将分类得出的文档类别进行排序;
    将文档数据集中的所有文档按照排序后的文档类别对应的顺序进行展示;
    若检测到文档数据集中出现新增文档,将所述新增文档进行归类;
    将所述新增文档根据文档类别对应的顺序进行展示。
  16. 根据权利要求15所述的计算机设备,其中,所述处理器在执行所述将设置有对应关联关系的主题所对应的文档数据集中的所有文档进行分类的步骤时,具体执行如下步骤:
    提取设置有对应关联关系的主题所对应的文档数据集中所有文档的关键词;
    根据关键词将文档数据集中所有文档进行分类。
  17. 根据权利要求11所述的计算机设备,其中,所述处理器还执行如下步骤:
    若接收到发表指令,发表所述已编辑的文档;
    若检测到有对发表的所述已编辑的文档进行评论,获取评论信息;
    若检测到发表所述已编辑的文档的用户已登陆,以弹窗的形式向所述用户发送并展示所述评论信息,以供所述用户查看所述评论信息以及回复所述评论信息。
  18. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,实现如下步骤:
    若接收到文档导入指令,在预设文档编辑界面中导入已编辑的文档;
    若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示;
    接收用户所选择的与所述已编辑的文档关联的主题,并设置所述已编辑的文档与主题的对应关联关系;
    若接收到保存指令,将所述已编辑的文档保存至有对应关联关系的主题所对应的主题数据集之中。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述处理器在执行所述若接收到文档转换指令,读取所述已编辑的文档,并将所述已编辑的文档中的内容转换为符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示的步骤时,具体实现如下步骤:
    若接收到文档转换指令,获取所述已编辑的文档的导入路径;
    根据所述导入路径读取所述已编辑的文档,并获取文档内容;
    将所述文档内容转换为HTML源代码;
    解析HTML源代码使其符合预设编辑器要求的样式,并在所述预设文档编辑界面中显示解析后的内容。
  20. 根据权利要求18所述的计算机可读存储介质,其中,所述处理器还实现如下步骤:
    若接收到查询指令,在所有主题所对应的文档目录界面中,接收所选择的与所述已编辑的文档有对应关联关系的主题,其中,所述所有主题所对应的文档目录界面中将不同的主题按照主题名称首字母进行排序显示;
    在与所述已编辑的文档有对应关联关系的主题所对应的文档展示界面中,查找所述已编辑的文档。
PCT/CN2018/109492 2018-06-22 2018-10-09 文档管理方法、装置、计算机设备及存储介质 WO2019242164A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810650172.1 2018-06-22
CN201810650172.1A CN109002483A (zh) 2018-06-22 2018-06-22 文档管理方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019242164A1 true WO2019242164A1 (zh) 2019-12-26

Family

ID=64602005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109492 WO2019242164A1 (zh) 2018-06-22 2018-10-09 文档管理方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN109002483A (zh)
WO (1) WO2019242164A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115501A (zh) * 2019-06-04 2020-12-22 珠海金山办公软件有限公司 文档中图形形状的保护方法、装置、电子设备及存储介质
CN112395836B (zh) * 2019-08-01 2023-08-08 珠海金山办公软件有限公司 一种编辑文档的方法、装置、计算机存储介质及终端
CN112783957A (zh) * 2019-11-11 2021-05-11 上海遴睿教育科技有限公司 一种英语阅读word文档格式化导入方法及系统
CN111241800A (zh) * 2020-01-17 2020-06-05 深圳震有科技股份有限公司 MySQL数据库表结构文档的生成方法、存储介质及智能终端
CN112328871B (zh) * 2020-10-27 2024-04-26 深圳集智数字科技有限公司 一种基于rpa模块的回复生成方法、装置、设备及存储介质
CN112835860B (zh) * 2021-02-19 2022-03-25 腾讯科技(深圳)有限公司 共享文档的处理方法、装置、设备及计算机可读存储介质
CN116821071B (zh) * 2023-08-29 2023-12-22 北京时代亿信科技股份有限公司 文件的溯源方法及装置、非易失性存储介质、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662928A (zh) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 带文档导入的富文本编辑方法及装置
CN104090969A (zh) * 2014-07-17 2014-10-08 可牛网络技术(北京)有限公司 数据处理方法及装置
CN104520834A (zh) * 2012-06-26 2015-04-15 谷歌公司 用于向第三方应用端到端地暴露原生数据类型的导出的表示的系统和方法
CN105051720A (zh) * 2013-01-30 2015-11-11 微软技术许可有限责任公司 提供内容可访问性而不管内容格式和类型的虚拟库
CN107209771A (zh) * 2015-01-19 2017-09-26 谷歌公司 文档的分类和存储

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732090B2 (en) * 2001-08-13 2004-05-04 Xerox Corporation Meta-document management system with user definable personalities
CN1838111B (zh) * 2006-02-14 2010-10-06 北京北大方正电子有限公司 一种编辑文档并记录修改痕迹的方法
CN104216927B (zh) * 2013-06-05 2019-08-02 北京奇虎科技有限公司 文档展示方法及装置
CN106294493B (zh) * 2015-06-08 2020-05-08 腾讯科技(深圳)有限公司 实现文档格式转换的方法及装置
US10698938B2 (en) * 2016-03-18 2020-06-30 Palantir Technologies Inc. Systems and methods for organizing and identifying documents via hierarchies and dimensions of tags
CN106503266A (zh) * 2016-11-30 2017-03-15 政和科技股份有限公司 文档分类方法及装置
CN106991083A (zh) * 2017-03-20 2017-07-28 珠海格力电器股份有限公司 一种电子文档处理的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662928A (zh) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 带文档导入的富文本编辑方法及装置
CN104520834A (zh) * 2012-06-26 2015-04-15 谷歌公司 用于向第三方应用端到端地暴露原生数据类型的导出的表示的系统和方法
CN105051720A (zh) * 2013-01-30 2015-11-11 微软技术许可有限责任公司 提供内容可访问性而不管内容格式和类型的虚拟库
CN104090969A (zh) * 2014-07-17 2014-10-08 可牛网络技术(北京)有限公司 数据处理方法及装置
CN107209771A (zh) * 2015-01-19 2017-09-26 谷歌公司 文档的分类和存储

Also Published As

Publication number Publication date
CN109002483A (zh) 2018-12-14

Similar Documents

Publication Publication Date Title
WO2019242164A1 (zh) 文档管理方法、装置、计算机设备及存储介质
US10909868B2 (en) Guiding creation of an electronic survey
US8688690B2 (en) Method for calculating semantic similarities between messages and conversations based on enhanced entity extraction
US9230257B2 (en) Systems and methods for customer relationship management
US8762375B2 (en) Method for calculating entity similarities
US20150067476A1 (en) Title and body extraction from web page
US20150081824A1 (en) Forgotten Attachment Detection
US10210211B2 (en) Code searching and ranking
US9852217B2 (en) Searching and ranking of code in videos
CN105631393A (zh) 信息识别方法及装置
KR20090122953A (ko) 애플리케이션 프로그램들 사이에서 정보를 공유하기 위한 기술
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
US20210092084A1 (en) Surfacing attachments in email search suggestion dropdown
US10999230B2 (en) Relevant content surfacing in computer productivity platforms
US20230359827A1 (en) Representing Confidence in Natural Language Processing
CN113656737A (zh) 网页内容展示方法、装置、电子设备以及存储介质
JP2017215714A (ja) 情報処理装置及び情報処理プログラム
CN112559368A (zh) 接口自动化测试方法及其用例生成方法、设备及存储介质
CN111460152A (zh) 一种公告文本内容的提取方法、提取装置以及提取设备
Li et al. A Need-finding Study for Understanding Text Entry in Smartphone App Usage
US10878005B2 (en) Context aware document advising
CN109840320B (zh) 文本的定制化处理
CN117407586A (zh) 一种职位推荐方法、装置、电子设备及存储介质
CN117896373A (zh) 一种文件的上传方法、装置、设备及介质
CN117851575A (zh) 一种大语言模型问答优化方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18923402

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18923402

Country of ref document: EP

Kind code of ref document: A1