CN114356858A - Document merging method, electronic device and storage medium - Google Patents

Document merging method, electronic device and storage medium Download PDF

Info

Publication number
CN114356858A
CN114356858A CN202111619161.5A CN202111619161A CN114356858A CN 114356858 A CN114356858 A CN 114356858A CN 202111619161 A CN202111619161 A CN 202111619161A CN 114356858 A CN114356858 A CN 114356858A
Authority
CN
China
Prior art keywords
document
documents
folder
bit
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111619161.5A
Other languages
Chinese (zh)
Inventor
张恒
刘龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202111619161.5A priority Critical patent/CN114356858A/en
Publication of CN114356858A publication Critical patent/CN114356858A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a document merging method, an electronic device, and a storage medium. The document merging method comprises the following steps: in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text; in response to detecting a document merge operation on a plurality of folders, for each folder, performing: sorting a plurality of documents within a folder; and merging the sorted documents to obtain a target document corresponding to the folder. According to the embodiment of the disclosure, the document merging efficiency can be improved.

Description

Document merging method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a document merging method, an electronic device, and a storage medium.
Background
An electronic text may be split into multiple documents for various reasons. For example, an e-book provider often splits an e-book into a plurality of electronic documents and transmits the electronic documents to an e-book reading platform.
At present, when a plurality of documents need to be merged, for example, when an electronic book reading platform needs to merge a plurality of documents belonging to the same electronic book into a complete electronic book, a plurality of documents of the same electronic book often need to be found from a large number of documents manually and merged manually, so that the merging efficiency is low.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, the present disclosure provides a document merging method, an electronic device, and a storage medium.
In a first aspect, the present disclosure provides a document merging method, including:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on a plurality of folders, for each folder, performing:
sorting a plurality of documents within a folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
In a second aspect, the present disclosure provides an electronic device comprising a processor and a memory, the memory for storing executable instructions that cause the processor to:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on a plurality of folders, for each folder, performing:
sorting a plurality of documents within a folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the document merging method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the document merging method, the electronic device and the storage medium, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sequenced and merged in batch through the target interactive interface, and the respective target documents of the plurality of folders are obtained. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flowchart illustrating a document merging method provided by an embodiment of the present disclosure;
FIG. 2 illustrates an exemplary target interaction interface schematic provided by an embodiment of the present disclosure;
FIG. 3 illustrates another exemplary target interaction interface schematic provided by embodiments of the present disclosure;
FIG. 4 is a flowchart illustrating another document merging method provided by the embodiments of the present disclosure;
FIG. 5 is a flowchart illustrating a further document merging method provided by an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a further document merging method provided by an embodiment of the present disclosure;
FIG. 7 is a flowchart illustrating a further document merging method provided by an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiment of the disclosure provides a document merging method, electronic equipment and a storage medium, which can synthesize target documents of electronic texts in batches by taking folders corresponding to different electronic texts as units.
The document merging method provided by the embodiment of the disclosure is first explained with reference to fig. 1 to 7.
The document merging method provided by the embodiment of the disclosure can be used by electronic equipment capable of providing a document merging function. The electronic device may include, but is not limited to, a mobile terminal such as a smart phone, a notebook computer, a Personal Digital Assistant (PDA), a PAD, a Portable Multimedia Player (PMP), a vehicle-mounted terminal (e.g., a car navigation terminal), a wearable device, and the like, and a fixed terminal such as a digital TV, a desktop computer, a smart home device, and the like.
Fig. 1 shows a flowchart of a document merging method provided by an embodiment of the present disclosure.
As shown in fig. 1, the document merging method may include the following steps.
And S110, responding to the detection of the import operation of the plurality of folders, and displaying the plurality of folders in the target interactive interface.
In the embodiment of the disclosure, when a user wants to merge the imported multiple folders in batches, the multiple folders can be displayed in the target interactive interface.
First, for electronic text. The electronic text may be, for example, an electronic book such as an electronic novel, an electronic book, or the like, or may be an electronic article such as an electronic paper, or may be a complete electronic file or the like, which is presented in an electronic form, without limitation.
Second, with respect to folders, one folder includes a plurality of documents belonging to the same electronic text. Wherein, different folders may correspond to different electronic texts or the same electronic text, which is not particularly limited.
Alternatively, the plurality of documents in one folder may include the entire content or a part of the content in one electronic text, which is not particularly limited. For example, a plurality of documents within one folder may correspond to one electronic book. For example, a folder may include a cover document, a directory document, a copyright page document, a body document, etc. of an electronic book.
Wherein the electronic document may comprise a portion of continuous content in an electronic text. For example, a part of the chapter contents of a novel. In the Document Format, the electronic Document may be a Document Format such as Portable Document Format (PDF), Word, voice Synthesis Markup Language (SSML) supported Document Format, and the like, which is not particularly limited.
Still further, the import operation may include a gesture control operation such as a click, a double click, a long press, and a slide, a voice control operation, or an expression control operation for importing a plurality of folders, which is not limited herein.
In some embodiments, the import operation may be a trigger operation for a folder import control on the file management interface. Specifically, a plurality of selectable folders may be displayed within the file management interface, and a user may freely select a plurality of folders among the plurality of managed folders. After the user triggers the folder import control, the plurality of folders in the selected state can be displayed on the target interactive interface.
In one example, prior to detecting the trigger operation for the folder import control on the file management interface, the document merging method may further include: and responding to the trigger operation of the user on the electronic equipment main interface aiming at the target application, opening the target application, and displaying the application main interface of the target application. The target application may be a document editing application or an application having a document editing function, such as an electronic book management application, an electronic book reading application, an electronic book editing application, and the like. And responding to the triggering operation of the user on the document editing control on the application main interface, and displaying the document management interface.
Second, for the target interactive interface. The target interactive interface may be an interface that provides a user with document editing functionality.
In one example, fig. 2 illustrates an exemplary target interaction interface diagram provided by an embodiment of the present disclosure. As shown in fig. 2, a plurality of folders corresponding to different books may be displayed on the target interactive interface 101.
In another example, multiple documents within a folder may also be displayed on the target interactive interface for ease of user operation and to enhance the user document merging experience.
FIG. 3 illustrates another exemplary target interaction interface schematic provided by embodiments of the present disclosure. For example, when the book list tab is in a selected state, a plurality of folders as shown in fig. 2 may be presented in the display area in the lower side of the tab. For another example, when a certain folder is selected in the book list, for example, when a folder of the book 3 is selected, a plurality of documents in the folder of the book 3 may be displayed in a list form when the book details shown in fig. 3 are in a selected state.
S120, in response to detecting the document merging operation on the plurality of folders, sorting the plurality of documents in the folders aiming at each folder.
First, as for the document merging operation, it may be a gesture control operation such as clicking, double-clicking, long-pressing, sliding, etc., a voice control operation, or an expression control operation, etc., with respect to a plurality of folders, which is not limited herein.
In some embodiments, the document merge operation may be a trigger operation for a document merge control on the target interactive interface. In one example, with continued reference to FIG. 2, when a user clicks on the batch merge control 102 on the target interactive interface 101, a document merge operation for multiple folders may be detected.
In some embodiments, to improve the efficiency of batch merging, a document merge operation may be used to merge documents in all folders in the target interactive interface. That is, after detecting the document merge operation, it may be a batch merge of all folders within the target interaction interface.
In other embodiments, to increase the flexibility of bulk merging, a document merge operation is used to trigger merging of documents in folders with selected tags. That is, multiple folders with selected tabs within the target interaction interface may be merged in batches.
Accordingly, before detecting the document merging operation, the document merging method may further include step a 1.
Step A1, in response to detecting the selected operation on the plurality of folders, adding a selected mark to the folder corresponding to the selected operation. The selection operation may be a gesture control operation, a voice control operation, or an expression control operation, such as clicking, double-clicking, long-pressing, or sliding, for a plurality of folders, which is not limited herein.
The selection mark is used for indicating that the folder is in a selected state. Alternatively, the selected mark may be a background color added to the display area where the folder is located. For example, with continued reference to fig. 2, after detecting a selection operation for a folder of books 3 to 7, a background color may be displayed for a display area of the folder of books 3 to 7.
Then, for the sequencing of multiple documents in the same folder, in order to ensure the readability of the merged target document, the documents may be sequenced sequentially according to the front-back order of the content of each document in the electronic text to which the document belongs. For example, for a certain electronic book, a plurality of documents respectively containing front seal, inner seal, catalog, text and back seal thereof are sequentially ordered.
S130, aiming at each folder, merging the sorted documents to obtain a target document corresponding to the folder.
For example, if the plurality of sorted documents in a certain folder are document 2, document 3, and document 1 in sequence, the contents of document 2, document 3, and document 1 may be sequentially spliced to obtain a target document containing sequentially spliced contents.
In the embodiment of the disclosure, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sorted and batch-merged through the target interactive interface, so as to obtain respective target documents of the plurality of folders. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
In addition, after the document merging operation is detected, the folders are not required to be opened in sequence and the documents in the folders are not required to be opened in sequence, namely the folders are used as units, the plurality of documents in each folder are merged in batch, and the document merging efficiency is improved.
In some embodiments, the document merging method further comprises step B1.
And step B1, after the document merging of any folder is completed, responding to the detection of the display operation of the folder, and displaying the sorted documents corresponding to the folder.
In this embodiment, in order to facilitate the user to intuitively understand the ranking of the documents, the ranked documents may be sequentially displayed according to the ranking result.
Optionally, for the display operation, it may include a gesture control operation such as a click, a double click, a long press, a slide, a voice control operation, or an expression control operation for importing multiple folders, which is not limited herein.
Optionally, the ranked plurality of documents may be displayed on the target interactive interface. For example, the sorted documents may be displayed after the user clicks on the book detail tab. Or, the user jumps to a new interface to display the sorted documents, which is not limited in particular.
Optionally, in order to improve flexibility and accuracy of document merging, the user may adjust the ranking among the ranked documents, and re-synthesize the target document after adjustment.
In some embodiments, after step S120, the document merge method further includes step B21 and step B22.
Step B21, for each document, extracts the content keywords of the document.
Alternatively, the content keywords of the document may be determined according to the specific content or content structure of the document. For example, if a document is determined to be a copyright page based on the content of the document, the content keyword "copyright page" of the document is determined. Note that the cover, the content, the catalog, and the like may be determined according to the method, and are not particularly limited.
Still alternatively, a chapter title or the like may be extracted from the document as the content keyword. For example, the section title may be identified from the document by the characteristics of the section title. For example, the characteristics of the section title may be keywords such as "chapter one, section 1" or the format of the section title different from the text content, such as font format, font size, whether or not to indent the section front, etc. This is not particularly limited.
Step B22, based on the content keyword, generates a document name of the document.
Alternatively, the document name of the document may be generated from the name of the folder to which the document belongs and the content keyword.
In one example, a portion of the content of a document may be split into multiple documents, such as a body portion of an electronic novel, possibly into multiple documents. After the content keyword "text" is obtained, the names "text 1", "text 2", etc. of the plurality of documents can be obtained according to the sequence among the plurality of documents of the text part.
By the embodiment, the document can be renamed according to the document content, so that the electronic text to which the document belongs and the content of the document can be distinguished conveniently from names by users.
In other embodiments, the sorted documents may also be named directly by their ordinal numbers. Such as "document 1", "document 2", etc., and is not particularly limited.
In some embodiments, the document merge method further comprises step B31 and step B32.
And step B31, generating the document name of the electronic text by using the folder name of the folder to which the target document belongs and the document merging identification.
For the folder name, all the characters or a part of the characters in the folder name may be selected, which is not limited.
For document merge identifiers, it is used to distinguish from un-merged documents. Specifically, the document merge identifier may include at least one of a number, a chinese character, an english character, and a symbol. Illustratively, the document name may be "xxxx- # mag", where "xxxx" is the folder name and "- # mag" is the document merge identifier.
Step B32, the target document named by the document name is displayed.
Alternatively, the target document named by the document name may be displayed on the target interactive interface, or the target document named by the document name may be displayed by jumping to a new interface, which is not limited in particular.
In this embodiment, by naming the target document obtained by merging, since the name of the target document includes the document merging flag, the user can directly distinguish whether the document is the merged document from the document name. In addition, the name of the folder is added in the name of the target document, so that a user can conveniently determine the electronic document corresponding to the target document according to the name. The user document merging experience is improved.
In some embodiments, the document merging method further comprises step B4.
And step B4, adding page numbers to the content pages in the target document to obtain the target document.
Alternatively, page numbers may be sequentially added to the content pages of the target document.
Still alternatively, the body part in the target document may be determined, and page numbers may be sequentially added to the content pages of the body part. It should be noted that page numbers may be added to part of or all of the content of the target document according to the actual scene and the specific requirements, which is not limited herein.
By the method and the device, the target document can be perfected by adding page numbers to the generated target document, and the manufacturing precision of the target document is improved.
Fig. 4 is a flowchart illustrating another document merging method provided by the embodiment of the present disclosure. The embodiments of the present disclosure are optimized based on the above embodiments, and may be combined with various alternatives in one or more of the embodiments.
As shown in fig. 4, the document merging method may include the following steps.
And S410, in response to the detection of the import operation of the plurality of folders, displaying the plurality of folders in the target interactive interface. Wherein one folder includes a plurality of documents belonging to the same electronic text.
S410 is similar to S110, and reference may be made to the detailed description of S110, which is not repeated herein.
S420, in response to detecting the document merging operation on the plurality of folders, determining the bit-order characteristic data of the plurality of documents in the folders for each folder.
First, as for the bit-order feature data, it is used to reflect the bit-order of the contents of a plurality of documents in the electronic text. That is, the bit-order feature data may reflect the precedence order of multiple documents in the same electronic text. Such as a catalog document preceding a body document.
In one example, the bit-order feature data may include bit-order keywords in document names of the plurality of documents. For example, the name of the plate to which the document belongs in the electronic text, and/or the corresponding sequence number of the document.
Wherein, the name of the plate belonging to the electronic text is used. Taking an e-book as an example, the tile names may include front cover, back cover, copyright page, introduction, directory, text, etc. Also taking the electronic academic paper as an example, the plate name may include an abstract, a text, a thank you page, and the like. This is not limitative.
Wherein, for the sequence number, it may be a number in the document name. Such as "document 1", "document 2", etc., and further such as "text one", "text two", etc.
In another example, the bit-order characteristic data includes a catalog of electronic text. Since the directory is used for recording the position of the part of the content in the electronic text, the bit sequence of the part of the content in the text can be determined based on the directory.
In yet another example, the bit-order characteristic data includes a range of page numbers corresponding to each document. For example, if a document may include a plurality of content pages, the page number ranges of the plurality of content pages are the page number ranges corresponding to the document.
S430, for each folder, sorting the plurality of documents in the folder by using the bit-order characteristic data.
In this embodiment, the plurality of documents may be sequentially ordered according to the bit order of the content of the plurality of documents in the electronic text reflected by the bit order characteristic data.
In some embodiments, the plurality of documents may be ordered by bit-ordered keywords in the document names of the plurality of documents.
For example, the plurality of documents after ranking are sequentially: cover documents, catalog documents, text documents.
For another example, the ranked documents are, in order: cover document, catalog document, text document 1, text document 2.
For another example, the ranked documents are, in order: document one, document two, document three, etc.; PDF1, PDF2, etc.
In other embodiments, the plurality of documents may be ordered by a catalog of electronic text.
In still other embodiments, the plurality of documents may be ordered by page number range to which the document corresponds.
For example, the plurality of documents after ranking are sequentially: documents corresponding to page numbers 1 to 10, documents corresponding to page numbers 11 to 33, documents corresponding to page numbers 34 to 60, and the like.
In still other embodiments, the bit-order characteristic data with higher priority may be selected for sorting according to the priorities of the plurality of bit-order characteristic data, and when the bit-order characteristic data with higher priority cannot be sorted, the bit-order characteristic data with lower priority may be selected for sorting. For example, the document name may be sorted according to the bit-order keyword in the document name, and when the bit-order keyword in the document name cannot be extracted, the directory may be used for sorting. If the directory cannot be acquired, sorting is performed by using the page number range. It should be noted that the priority of other bit sequence feature data may also be set according to the actual scene and the specific requirements, which is not specifically limited.
In still other embodiments, the ordering may also be done in a variety of combinations of bit-order characteristics. For example, if a portion of a document is associated with a directory, the portion of the document may be ranked using the directory, and then other documents may be ranked using other bit-order characteristic data. For another example, if a part of documents has page numbers, the part of documents may be sorted by using the page number range, and then other documents without page numbers may be sorted by using other bit-order feature data.
S440, aiming at each folder, merging the sorted documents to obtain a target document corresponding to the folder.
S440 is similar to S130, and reference may be made to the detailed description of S130, which is not repeated herein.
In the embodiment of the disclosure, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sorted and batch-merged through the target interactive interface, so as to obtain respective target documents of the plurality of folders. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
In addition, according to the embodiment, the bit order of the contents of the plurality of documents in the electronic text can be accurately determined through the bit order feature data, so that the plurality of documents can be sequenced according to the contents of the plurality of documents, and the sequencing accuracy is improved.
Fig. 5 is a flowchart illustrating another document merging method provided by the embodiment of the present disclosure. The embodiments of the present disclosure are optimized based on the above embodiments, and may be combined with various alternatives in one or more of the embodiments.
As shown in fig. 5, the document merging method may include the following steps.
S510, in response to the detection of the import operation of the plurality of folders, displaying the plurality of folders in the target interactive interface. Wherein one folder includes a plurality of documents belonging to the same electronic text.
S510 is similar to S110, and reference may be made to the detailed description of S110, which is not described herein again.
S520, in response to detecting the document merging operation aiming at the plurality of folders, detecting whether the document names of the plurality of documents in the folders comprise the bit-order keywords.
In this embodiment, the document names of the documents in each folder may be parsed to determine whether the document names of the documents include the bit-order keywords.
In some embodiments, the bit-order key may include a plate name to which the document belongs in the electronic text and/or a sequence number corresponding to the document.
S530, in the case that the document names of the plurality of documents of the folder are detected to include the bit-order keywords, the bit-order keywords of the plurality of documents in each folder are taken as bit-order feature data.
S540, aiming at each folder, sequencing a plurality of documents in the folder based on the first sequencing rule corresponding to the bit-sequence key words.
In some embodiments, if the bit-order key includes a plate name to which the document belongs in the electronic text, the first ordering rule includes ordering by bit-order between plates. For example, the first ordering rule specifies the bit order among cover, envelope, copyright page, directory, and text.
In other embodiments, if the bit-order key includes a sequence number corresponding to the document, the first ordering rule includes ordering according to a sequence number from small to large. Such as "PDF 1, PDF2, PDF 3", "chapter one, chapter two", etc.
In some embodiments, for multiple documents containing the same plate name, the documents may be sorted according to their sequence numbers, resulting in a sorting result for the plate. And then sequencing the plate and other plates to obtain a sequencing result corresponding to the electronic text.
For example, if the electronic document includes a text 3 document, a cover document, a text 1 document, a catalog document, and a text 2 document, the text 3 document, the text 1 document, and the text 2 document may be sorted first to obtain a text sorting result, "text 1 document, text 2 document, and text 3 document", and then the text, the cover, and the catalog may be sorted to obtain a final sorting result, that is, the cover document, the catalog document, the text 1 document, the text 2 document, and the text 3 document.
And S550, merging the sorted documents aiming at each folder to obtain a target document corresponding to the folder.
S550 is similar to S130, and reference may be made to the detailed description of S130, which is not repeated herein.
In the embodiment of the disclosure, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sorted and batch-merged through the target interactive interface, so as to obtain respective target documents of the plurality of folders. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
Fig. 6 is a flowchart illustrating a further document merging method provided by an embodiment of the present disclosure. The embodiments of the present disclosure are optimized based on the above embodiments, and may be combined with various alternatives in one or more of the embodiments.
As shown in fig. 6, the document merging method may include the following steps.
S610, in response to the fact that the importing operation of the plurality of folders is detected, the plurality of folders are displayed in the target interaction interface. Wherein one folder includes a plurality of documents belonging to the same electronic text.
S610 is similar to S110, and reference may be made to the detailed description of S110, which is not described herein again.
S620, in response to detecting the document merging operation aiming at the plurality of folders, detecting whether the document names of the plurality of documents in the folders comprise the bit-order keywords.
S620 is similar to S520, and reference may be made to the detailed description of S520, which is not repeated herein.
S630, in the case that the document names of the plurality of documents of the folder are detected to include the bit-order keywords, the bit-order keywords of the plurality of documents in each folder are taken as bit-order feature data.
S630 is similar to S530, and reference may be made to the detailed description of S530, which is not repeated herein.
And S640, aiming at each folder, sequencing the plurality of documents in the folder based on the first sequencing rule corresponding to the bit-sequence key words.
S640 is similar to S540, and reference may be made to the detailed description of S540, which is not repeated herein.
S650, under the condition that the document names of the plurality of documents in the folder are detected not to include the bit-order keywords, analyzing the plurality of documents in the folder to obtain a directory for each folder.
In some embodiments, S650 may include step C1.
And step C1, carrying out file name analysis on a plurality of documents in the folder, and carrying out content analysis on the documents of which the document names contain the directory keywords to obtain the directory.
Wherein the directory key may be a word associated with the directory. For example, words such as "directory", "document structure", etc. may preset directory keywords according to actual scenes and specific requirements, which are not limited in detail.
In one scenario, if a document including "directory" two words exists among a plurality of documents in a folder, the document content may be taken as a directory. Or extracting the catalog from the document content according to the structural characteristics of the catalog.
In other embodiments, S650 may include step C2.
And step C2, analyzing the content of the plurality of documents in the folder, and obtaining the catalog in the analyzed content according to the content characteristics of the catalog.
Alternatively, the catalog may be searched from the contents of the plurality of documents obtained by parsing according to the content characteristics of the catalog. The content feature of the directory may be a "directory" word in the document content, or a structural feature of the directory, which is not particularly limited.
In still other embodiments, S650 may include step C3.
Step C3, the content of the plurality of documents in the folder is analyzed, the plurality of chapter titles are obtained in the analyzed content by using the title characteristics of the chapter titles, and a catalog is generated by using the chapter titles.
Optionally, the content of the plurality of documents may be analyzed to obtain a plurality of chapter titles in the documents, and then the catalog may be generated correspondingly. The title feature of the chapter title may be the number of the chapter, such as "1.1 xxxx", "first chapter", "section 1", and other keyword features. Or text format features such as bold corresponding to chapter titles and no indentation before a chapter, which are not limited in detail.
And S660, taking the directory as bit-order characteristic data when the directory is obtained through analysis.
And S670, sequencing the documents corresponding to the document keywords according to the sequence corresponding to the document keywords of the catalog.
Optionally, the catalog may include document keywords such as chapter titles, page numbers, and the like, and then each document keyword may be queried in each document, and then the document sequence corresponding to each keyword is determined according to the sequence of each keyword in the catalog.
Alternatively, since the directory does not necessarily contain the document keywords of all the documents in the actual process, for example, for a plurality of documents, it may be divided into a first document in which the document keywords exist in the directory and a second document in which the document keywords do not exist in the directory. Illustratively, the first document may be a document in which the body content of the electronic book is located, and the second document may be a document such as a front cover, a copyright page, or the like.
To improve the document ranking accuracy, S670 may include a step D1.
And D1, sequencing the first document corresponding to each document keyword according to the arrangement sequence corresponding to each document keyword of the catalog.
For example, the directory includes document keywords 1 "first chapter XXXX", document keywords 2 "second chapter XXXX", and if document keywords 1 "first chapter XXXX" correspond to document 3 and document keywords 2 "second chapter XXXX" correspond to document 2, the ranking result may be document 3, document 2.
Optionally, after step D1, the document merging method may further include steps D2 through D4.
And D2, determining the bit-sequence characteristic data of the second documents. And the bit sequence feature data of the second documents are used for reflecting the bit sequence of the contents of the plurality of second documents in the electronic text.
Alternatively, the bit-order feature data of the second document may be a plate to which the document belongs in the electronic text. Such as front cover, copyright pages, preamble, back cover, etc.
Illustratively, the bit-order characteristic data of the second document may be determined according to the content type or text keywords in the second document.
For example, the bit-order feature data may be whether a document is a picture, and if the bit-order feature data of a second document is a picture, the document is a cover page.
For another example, the bit-sequence feature data may be a keyword of a copyright page, and if the bit-sequence keyword of a second document includes a copyright number or specific content of the copyright page, the second document may be characterized as the copyright page.
And D3, sorting the second documents according to the second sorting rule corresponding to the bit-order characteristic data of the second documents.
Optionally, the second sorting rule may be preset according to an actual scenario and specific requirements, which is not particularly limited.
Step D4, the ranked first document and the ranked second document are ranked.
Optionally, if the first document corresponds to a ranking result of the first plate, such as a ranking result of the text, the ranking result of the first plate may include text 1 and text 2. The first tile and the other second documents may be ranked to obtain a ranking result between the tiles. For example, the text, the front cover and the back cover are sorted to obtain a sorting result, and the front cover, the text and the back cover are obtained. And generating a final sorting result according to the sorting structure among the plate blocks and the sorting result in the plate blocks. Such as front cover, text 1, text 2, back cover.
And S680, merging the sorted documents aiming at each folder to obtain a target document corresponding to the folder.
S680 is similar to S130, and reference may be made to the detailed description of S130, which is not repeated herein.
In the embodiment of the disclosure, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sorted and batch-merged through the target interactive interface, so as to obtain respective target documents of the plurality of folders. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
Fig. 7 is a flowchart illustrating a further document merging method provided by an embodiment of the present disclosure. The embodiments of the present disclosure are optimized based on the above embodiments, and may be combined with various alternatives in one or more of the embodiments.
As shown in fig. 7, the document merging method may include the following steps.
S701, responding to the detection of the import operation of the plurality of folders, and displaying the plurality of folders in the target interactive interface. Wherein one folder includes a plurality of documents belonging to the same electronic text.
S701 is similar to S110, and reference may be made to the detailed description of S110, which is not described herein again.
S702, in response to detecting a document merging operation for a plurality of folders, detecting whether document names of the plurality of documents in the folders include a bit-order keyword.
S702 is similar to S520, and reference may be made to the detailed description of S520, which is not repeated herein.
S703, under the condition that the document names of the plurality of documents in the folder are detected to comprise the bit-sequence key words, the bit-sequence key words of the plurality of documents in each folder are used as bit-sequence feature data.
S703 is similar to S530, and reference may be made to the detailed description of S530, which is not repeated herein.
S704, aiming at each folder, sequencing a plurality of documents in the folder based on the first sequencing rule corresponding to the bit-sequence key words.
S704 is similar to S540, and reference may be made to the detailed description of S540, which is not repeated herein.
S705, when it is detected that the document names of the plurality of documents in the folder do not include the bit-order keyword, parsing the plurality of documents in the folder for each folder to obtain a directory.
S705 is similar to S650, and reference may be made to the detailed description of S650, which is not repeated herein.
And S706, under the condition that the directory is obtained through analysis, the directory is used as bit sequence feature data.
S706 is similar to S660, and reference may be made to the detailed description of S660, which is not described herein again.
S707, according to the arrangement sequence corresponding to each document keyword of the catalog, sorting the document corresponding to each document keyword.
S707 is similar to S670, and reference may be made to the specific description of S670, which is not described herein again.
S708, under the condition that the directory is not obtained through analysis, page number ranges of a plurality of documents in the folder are obtained.
Optionally, the page number in each document may be extracted, and the value range of the extracted page number may be used as the page number range of the document.
S709, sets the page number ranges of the plurality of documents in the folder as the bit-order feature data.
S710, a plurality of documents in the folder are sorted by page number range.
Optionally, for any two documents, if the maximum value of the page number range of a certain document is smaller than the minimum value of the page number range of another document, the ranking of the certain document is prior to the ranking of the other document.
Alternatively, since in an actual process, it is possible that a part of the documents does not contain page numbers, accordingly, the plurality of documents may be divided into a third document in which a corresponding page number range exists, and a fourth document in which a corresponding page number range does not exist.
Accordingly, S710 may include step E1 described below.
Step E1, the third document is sorted by page number range.
In one example, after step E1, the document merge method further includes steps E2 through E4.
And step E2, determining the bit-sequence characteristic data of the plurality of fourth documents, wherein the bit-sequence characteristic data is used for reflecting the bit sequence of the contents of the plurality of fourth documents in the electronic text.
And E3, sorting the fourth documents according to the third sorting rule corresponding to the bit-order characteristic data of the fourth documents.
Step E4, the ranked third document and the ranked fourth document are ranked.
The specific implementation of steps E2 to E4 is similar to that of steps D2 to D4, and will not be described herein again.
And S711, merging the sorted documents aiming at each folder to obtain a target document corresponding to the folder.
S711 is similar to S130, and reference may be made to the detailed description of S130, which is not repeated herein.
In the embodiment of the disclosure, after the plurality of folders are imported, the plurality of files in the plurality of folders are respectively sorted and batch-merged through the target interactive interface, so as to obtain respective target documents of the plurality of folders. Because a plurality of documents in each folder belong to the same electronic text, a user can quickly synthesize the documents of each electronic text in batch without complex merging operation after executing the document merging operation on a target interactive interface, and the document merging efficiency is improved.
Fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
The electronic equipment provided by the embodiment of the disclosure can comprise electronic equipment supporting a document merging function. The electronic device may include, but is not limited to, a mobile terminal such as a smart phone, a notebook computer, a Personal Digital Assistant (PDA), a PAD, a Portable Multimedia Player (PMP), a vehicle-mounted terminal (e.g., a car navigation terminal), a wearable device, and the like, and a fixed terminal such as a digital TV, a desktop computer, a smart home device, and the like.
It should be noted that the electronic device 800 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of the embodiments of the present disclosure.
The electronic device 800 conventionally includes a processor 810 and a computer program product or computer-readable medium in the form of a memory 820. The memory 820 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 820 has a storage space 821 of executable instructions (or program code) 8211 for performing any method step in the note processing method described above. For example, the storage space 821 for executable instructions may include respective executable instructions 8211 for implementing various steps in the note processing method above, respectively. The executable instructions may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such computer program products are typically portable or fixed storage units. The storage unit may have a memory segment or a memory space or the like arranged similarly to the memory 820 in the electronic device 800 of fig. 8. The executable instructions may be compressed, for example, in a suitable form. In general, the memory unit includes executable instructions for performing the steps of the note processing method according to the present disclosure, i.e., code that is readable by, for example, a processor such as the processor 810, which when executed by the electronic device 800, causes the electronic device 800 to perform the various steps of the note processing method described above.
Of course, for simplicity, only some of the components of the electronic device 800 relevant to the present disclosure are shown in fig. 8, omitting components such as buses, input/output interfaces, input devices, and output devices, and so forth. In addition, electronic device 800 may include any other suitable components depending on the particular application.
The disclosed embodiments also provide a computer readable storage medium having stored thereon computer program instructions, which, when executed by a processor, cause the processor to execute the note processing method provided by the disclosed embodiments.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
In embodiments of the present disclosure, program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The application discloses:
a1, a document merging method, wherein the method comprises:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on the plurality of folders, for each of the folders, performing:
ranking a plurality of documents within the folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
A2, the method of A1, wherein the ranking the documents within the folder includes:
determining bit-order feature data of a plurality of documents in the folder, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of documents in the electronic text;
and sequencing the plurality of documents in the folder by utilizing the bit sequence characteristic data.
A3, the method according to A2, wherein,
the determining the bit-order characteristic data of the plurality of documents in the folder comprises:
detecting whether the document names of a plurality of documents in the folder comprise bit-order keywords or not;
in the case that the document names of the plurality of documents of the folder are detected to comprise the bit-sequence keywords, taking the bit-sequence keywords of the plurality of documents in the folder as bit-sequence feature data;
the sorting the plurality of documents in the folder by using the bit-order characteristic data includes:
and sequencing the plurality of documents in the folder based on a first sequencing rule corresponding to the bit-sequence keyword.
A4, the method according to A3, wherein the bit-order key includes:
the method comprises the steps that the names of plates of a document in an electronic text belong to, and the first sequencing rule comprises sequencing according to the bit sequence among the plates; and/or the presence of a gas in the gas,
and the first ordering rule comprises ordering according to the sequence number from small to large.
A5, the method according to A3, wherein the bit-order feature data includes a catalog of electronic text;
the determining the bit-order characteristic data of the plurality of documents in the folder further comprises:
under the condition that the document names of the documents in the folder are detected not to include the bit sequence keywords, analyzing the documents in the folder to obtain the directory;
under the condition of analyzing to obtain a directory, taking the directory as the bit sequence characteristic data;
the sorting the plurality of documents in the folder by using the bit-order characteristic data further includes:
and sequencing the documents corresponding to the document keywords according to the corresponding sequence of the document keywords of the catalog.
A6, the method of A5, wherein the plurality of documents includes a first document and a second document, the document keywords of the first document being present in the catalog, the document keywords of the second document not being present in the catalog;
the sorting of the documents corresponding to each document keyword according to the arrangement sequence corresponding to each document keyword of the catalog includes:
and sequencing the first documents corresponding to the keywords of each document according to the sequencing order.
A7, the method according to A6, wherein after the ranking the first document corresponding to each document keyword according to the ranking order, the method further comprises:
determining bit-order feature data of a plurality of second documents, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of second documents in the electronic text;
sequencing the plurality of second documents according to a second sequencing rule corresponding to the bit sequence feature data of the plurality of second documents;
and sequencing the sequenced first document and the sequenced second document.
A8, the method of any one of claims a5-a7, wherein the parsing the plurality of documents within the folder into the directory includes:
performing file name analysis on a plurality of documents in the folder, and performing content analysis on the documents with the document names containing directory keywords to obtain the directory; or,
analyzing the contents of a plurality of documents in the folder, and obtaining a directory in the analyzed contents according to the content characteristics of the directory; or,
and analyzing the content of the plurality of documents in the folder, obtaining a plurality of chapter titles in the analyzed content by using the title characteristics of the chapter titles, and generating the catalog by using the chapter titles.
A9, the method according to A5, wherein the bit-order feature data includes a page number range corresponding to each document;
the determining the bit-order characteristic data of the plurality of documents in the folder further comprises:
under the condition that a directory is not obtained through analysis, page number ranges of a plurality of documents in the folder are obtained;
taking page number ranges of a plurality of documents in the folder as the bit-order characteristic data;
wherein the sorting the plurality of documents in the folder by using the bit-order characteristic data further comprises:
and sorting the plurality of documents in the folder by utilizing the page number range.
A10, the method of A9, wherein the plurality of documents includes a third document in which there is a corresponding range of page numbers and a fourth document in which there is no corresponding range of page numbers,
the sorting the plurality of documents in the folder by using the page number range comprises:
and sorting the third document according to the page number range.
A11, the method of A10, wherein after said sorting the third document by page range, the method further comprises:
determining bit-order feature data of a plurality of fourth documents, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of fourth documents in the electronic text;
sequencing the fourth documents according to a third sequencing rule corresponding to the bit sequence feature data of the fourth documents;
and sequencing the sequenced third document and the sequenced fourth document.
A12, the method according to A1, wherein the method further comprises:
after the document merging of any folder is completed, in response to the detection of the display operation of the folder, displaying the sorted documents corresponding to the folder.
A13, the method of A1, wherein after the sorting the documents within the folder, the method further comprises:
extracting content keywords of the documents aiming at each document;
and generating the document name of the document based on the content keyword.
A14, the method according to A1, wherein after the merging the sorted documents to obtain the target document corresponding to the folder, the method further comprises:
generating a document name of the electronic text by using the folder name of the folder to which the target document belongs and the document merging identifier;
and displaying the target document named by the document name.
A15, the method according to A1, wherein after the merging the sorted documents to obtain the target document corresponding to the folder, the method further comprises:
and adding page numbers to the content pages in the target document to obtain the target document.
A16, the method of A1, wherein, prior to detecting a document merge operation on the plurality of folders, the method further comprises:
in response to detecting the selected operation on the plurality of folders, adding a selected mark to the folder corresponding to the selected operation;
and the document merging operation is used for triggering the merging of the documents in the folder with the selected mark.
B17, an electronic device, comprising a processor and a memory, the memory storing executable instructions that cause the processor to:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on the plurality of folders, for each of the folders, performing:
ranking a plurality of documents within the folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
B18, the electronic device of B17, wherein the executable instructions, when the processor executes the ranking of the plurality of documents within the folder, specifically cause the processor to perform:
determining bit-order feature data of a plurality of documents in the folder, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of documents in the electronic text;
and sequencing the plurality of documents in the folder by utilizing the bit sequence characteristic data.
B19, the electronic device of B18, wherein,
when the processor executes the determining of the bit-order characteristic data of the plurality of documents within the folder, the executable instructions specifically cause the processor to perform:
detecting whether the document names of a plurality of documents in the folder comprise bit-order keywords or not;
in the case that the document names of the plurality of documents of the folder are detected to comprise the bit-sequence keywords, taking the bit-sequence keywords of the plurality of documents in the folder as bit-sequence feature data;
when the processor executes the sorting of the plurality of documents in the folder using the bit order characteristic data, the executable instructions specifically cause the processor to perform:
and sequencing the plurality of documents in the folder based on a first sequencing rule corresponding to the bit-sequence keyword.
B20, the electronic device according to B19, wherein the bit-order key includes:
the method comprises the steps that the names of plates of a document in an electronic text belong to, and the first sequencing rule comprises sequencing according to the bit sequence among the plates; and/or the presence of a gas in the gas,
and the first ordering rule comprises ordering according to the sequence number from small to large.
B21, the electronic device according to B19, wherein the bit-order feature data includes a catalog of electronic texts;
when the processor performs the determining the bit-order characteristic data for the plurality of documents within the folder, the executable instructions further cause the processor to perform:
under the condition that the document names of the documents in the folder are detected not to include the bit sequence keywords, analyzing the documents in the folder to obtain the directory;
under the condition of analyzing to obtain a directory, taking the directory as the bit sequence characteristic data;
when the processor executes the sorting of the plurality of documents within the folder using the bit order characteristic data, the executable instructions further cause the processor to perform:
and sequencing the documents corresponding to the document keywords according to the corresponding sequence of the document keywords of the catalog.
B22, the electronic device according to B21, wherein the plurality of documents includes a first document and a second document, the document keywords of the first document exist in the directory, and the document keywords of the second document do not exist in the directory;
when the processor executes the ranking order corresponding to each document keyword of the directory and ranks the documents corresponding to each document keyword, the executable instruction specifically causes the processor to execute:
and sequencing the first documents corresponding to the keywords of each document according to the sequencing order.
B23, the electronic device according to B22, wherein after the processor performs the sorting of the first document corresponding to each document keyword according to the ranking order, the executable instructions further cause the processor to perform:
determining bit-order feature data of a plurality of second documents, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of second documents in the electronic text;
sequencing the plurality of second documents according to a second sequencing rule corresponding to the bit sequence feature data of the plurality of second documents;
and sequencing the sequenced first document and the sequenced second document.
B24, the electronic device of any of B21-B23, wherein the executable instructions, when the processor executes the parsing the plurality of documents in the folder to obtain the directory, specifically cause the processor to:
performing file name analysis on a plurality of documents in the folder, and performing content analysis on the documents with the document names containing directory keywords to obtain the directory; or,
analyzing the contents of a plurality of documents in the folder, and obtaining a directory in the analyzed contents according to the content characteristics of the directory; or,
and analyzing the content of the plurality of documents in the folder, obtaining a plurality of chapter titles in the analyzed content by using the title characteristics of the chapter titles, and generating the catalog by using the chapter titles.
B25, the electronic device according to B21, wherein the bit-order feature data comprise a page number range corresponding to each document;
when the processor performs the determining the bit-order characteristic data for the plurality of documents within the folder, the executable instructions further cause the processor to perform:
under the condition that a directory is not obtained through analysis, page number ranges of a plurality of documents in the folder are obtained;
taking page number ranges of a plurality of documents in the folder as the bit-order characteristic data;
wherein when the processor executes the sorting of the plurality of documents within the folder using the bit-order characteristic data, the executable instructions further cause the processor to:
and sorting the plurality of documents in the folder by utilizing the page number range.
B26, the electronic device according to B25, wherein the plurality of documents includes a third document in which a corresponding range of page numbers exists and a fourth document in which a corresponding range of page numbers does not exist,
when the processor executes the sorting of the plurality of documents in the folder using the page number range, the executable instructions specifically cause the processor to perform:
and sorting the third document according to the page number range.
B27, the electronic device of B26, wherein after the processor executes the sorting of the third document by page number range, the executable instructions further cause the processor to perform:
determining bit-order feature data of a plurality of fourth documents, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of fourth documents in the electronic text;
sequencing the fourth documents according to a third sequencing rule corresponding to the bit sequence feature data of the fourth documents;
and sequencing the sequenced third document and the sequenced fourth document.
B28, the electronic device of B17, wherein the executable instructions further cause the processor to:
after the document merging of any folder is completed, in response to the detection of the display operation of the folder, displaying the sorted documents corresponding to the folder.
B29, the electronic device of B17, wherein after the processor performs the sorting of the documents within the folder, the executable instructions further cause the processor to perform:
extracting content keywords of the documents aiming at each document;
and generating the document name of the document based on the content keyword.
B30, the electronic device according to B17, wherein after the processor executes the merging of the sorted documents to obtain the target document corresponding to the folder, the executable instructions further cause the processor to execute:
generating a document name of the electronic text by using the folder name of the folder to which the target document belongs and the document merging identifier;
and displaying the target document named by the document name.
B31, the electronic device according to B17, wherein after the processor executes the merging of the sorted documents to obtain the target document corresponding to the folder, the executable instructions further cause the processor to execute:
and adding page numbers to the content pages in the target document to obtain the target document.
B32, the electronic device of B17, wherein prior to the processor performing the detecting the document merge operation on the plurality of folders, the executable instructions further cause the processor to perform:
in response to detecting the selected operation on the plurality of folders, adding a selected mark to the folder corresponding to the selected operation;
and the document merging operation is used for triggering the merging of the documents in the folder with the selected mark.
C33, a computer readable storage medium, wherein the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the document merging method as described in any one of a1-a16 above.
Various component embodiments of the disclosure may be implemented in whole or in part in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an electronic device according to embodiments of the present disclosure. The present disclosure may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present disclosure may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for merging documents, the method comprising:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on the plurality of folders, for each of the folders, performing:
ranking a plurality of documents within the folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
2. The method of claim 1, wherein the ranking the plurality of documents within the folder comprises:
determining bit-order feature data of a plurality of documents in the folder, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of documents in the electronic text;
and sequencing the plurality of documents in the folder by utilizing the bit sequence characteristic data.
3. The method of claim 2,
the determining the bit-order characteristic data of the plurality of documents in the folder comprises:
detecting whether the document names of a plurality of documents in the folder comprise bit-order keywords or not;
in the case that the document names of the plurality of documents of the folder are detected to comprise the bit-sequence keywords, taking the bit-sequence keywords of the plurality of documents in the folder as bit-sequence feature data;
the sorting the plurality of documents in the folder by using the bit-order characteristic data includes:
and sequencing the plurality of documents in the folder based on a first sequencing rule corresponding to the bit-sequence keyword.
4. The method of claim 3, wherein the bit-order key comprises:
the method comprises the steps that the names of plates of a document in an electronic text belong to, and the first sequencing rule comprises sequencing according to the bit sequence among the plates; and/or the presence of a gas in the gas,
and the first ordering rule comprises ordering according to the sequence number from small to large.
5. The method of claim 3, wherein the bit-order characterizing data comprises a catalog of electronic text;
the determining the bit-order characteristic data of the plurality of documents in the folder further comprises:
under the condition that the document names of the documents in the folder are detected not to include the bit sequence keywords, analyzing the documents in the folder to obtain the directory;
under the condition of analyzing to obtain a directory, taking the directory as the bit sequence characteristic data;
the sorting the plurality of documents in the folder by using the bit-order characteristic data further includes:
and sequencing the documents corresponding to the document keywords according to the corresponding sequence of the document keywords of the catalog.
6. The method of claim 5, wherein the plurality of documents includes a first document and a second document, wherein the document keywords of the first document are present in the catalog, and wherein the document keywords of the second document are not present in the catalog;
the sorting of the documents corresponding to each document keyword according to the arrangement sequence corresponding to each document keyword of the catalog includes:
and sequencing the first documents corresponding to the keywords of each document according to the sequencing order.
7. The method of claim 6, wherein after the ranking the first document corresponding to each document keyword according to the ranking order, the method further comprises:
determining bit-order feature data of a plurality of second documents, wherein the bit-order feature data is used for reflecting the bit-order of the contents of the plurality of second documents in the electronic text;
sequencing the plurality of second documents according to a second sequencing rule corresponding to the bit sequence feature data of the plurality of second documents;
and sequencing the sequenced first document and the sequenced second document.
8. The method of claim 5, wherein the bit-order characterizing data includes a range of page numbers corresponding to each document;
the determining the bit-order characteristic data of the plurality of documents in the folder further comprises:
under the condition that a directory is not obtained through analysis, page number ranges of a plurality of documents in the folder are obtained;
taking page number ranges of a plurality of documents in the folder as the bit-order characteristic data;
wherein the sorting the plurality of documents in the folder by using the bit-order characteristic data further comprises:
and sorting the plurality of documents in the folder by utilizing the page number range.
9. An electronic device comprising a processor and a memory, the memory to store executable instructions that cause the processor to:
in response to detecting import operation on a plurality of folders, displaying the plurality of folders in a target interactive interface, wherein one folder comprises a plurality of documents belonging to the same electronic text;
in response to detecting a document merge operation on the plurality of folders, for each of the folders, performing:
ranking a plurality of documents within the folder;
and merging the sorted documents to obtain a target document corresponding to the folder.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement a document merging method as claimed in any one of the preceding claims 1 to 8.
CN202111619161.5A 2021-12-27 2021-12-27 Document merging method, electronic device and storage medium Pending CN114356858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111619161.5A CN114356858A (en) 2021-12-27 2021-12-27 Document merging method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111619161.5A CN114356858A (en) 2021-12-27 2021-12-27 Document merging method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114356858A true CN114356858A (en) 2022-04-15

Family

ID=81103455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111619161.5A Pending CN114356858A (en) 2021-12-27 2021-12-27 Document merging method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114356858A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117113933A (en) * 2023-09-07 2023-11-24 中国中金财富证券有限公司 Asset configuration report generation method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117113933A (en) * 2023-09-07 2023-11-24 中国中金财富证券有限公司 Asset configuration report generation method and related device
CN117113933B (en) * 2023-09-07 2024-08-09 中国中金财富证券有限公司 Asset configuration report generation method and related device

Similar Documents

Publication Publication Date Title
US20160342578A1 (en) Systems, Methods, and Media for Generating Structured Documents
US9936022B2 (en) Computer device for reading e-book and server for being connected with the same
US20240143904A1 (en) Human-Computer Interaction Method And Apparatus Thereof
US9342233B1 (en) Dynamic dictionary based on context
US9251130B1 (en) Tagging annotations of electronic books
US20160342449A1 (en) Data exchange across multiple computing devices through a proactive intelligent clipboard
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
Sungur et al. Writing references and using citation management software
CN111897778B (en) Computer file merging method, device and system
US9607105B1 (en) Content searching techniques
US9164970B2 (en) Using structured data for online research
CN114356858A (en) Document merging method, electronic device and storage medium
CN114297143A (en) File searching method, file displaying device and mobile terminal
WO2024156171A1 (en) Annotation content display method, electronic device, and storage medium
US11836197B2 (en) Search processing method and apparatus based on clipboard data
US20150161132A1 (en) Organizing search results using smart tag inferences
CN115687807A (en) Information display method, device, terminal and storage medium
CN116010356B (en) Method, device, network disk and storage medium for quickly previewing file through label
CN113608656A (en) Note processing method, electronic device and storage medium
CN116700567A (en) Bookmark display method, electronic device and storage medium
JP7464462B2 (en) Human-computer interaction method and device
CN114358827A (en) Page display method, electronic equipment and storage medium
CN114841121A (en) Method and device for processing web text and storage medium
EP3062241A1 (en) Search system, search criteria setting device, control method for search criteria setting device, program, and information storage medium
CN104965929A (en) Method and device for data processing

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