Document processing method, document processing device and electronic equipment

By obtaining the content blocks, titles and serial numbers in the document, and retype them according to priority, the problem of manual operation of document retypes in the existing technology is solved, automatic and accurate document layout is realized, and processing efficiency and format are improved. Uniformity.

CN111985203BActive Publication Date: 2024-12-10VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010815995.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2024-12-10
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

Re-arrangement of documents in the prior art requires manual operation, and the process is cumbersome and automatic layout cannot be achieved.

Method used

By obtaining the content block and its corresponding content title and serial number, retype it according to the priority of the title and serial number, automatic and accurate retype of the document can be realized.

Benefits of technology

It improves document processing efficiency, saves the tedious process of manually adjusting the format and order of content blocks, and ensures the unified document format and clear logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111985203B_ABST
    Figure CN111985203B_ABST
Patent Text Reader

Abstract

The present application discloses a document processing method, a document processing device and an electronic device, which belong to the field of information processing technology. The document processing method includes: obtaining content blocks and content titles and serial numbers corresponding to each content block; and rearranging the content blocks according to the priorities of the content titles and serial numbers. In an embodiment of the present application, by making each content block correspond to a content title and a serial number, all content blocks in the document can be rearranged according to the established priorities of the content titles and serial numbers, thereby achieving the purpose of automatic and accurate rearrangement of the document, and effectively improving the processing efficiency of the document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing technology, and specifically relates to a document processing method, a document processing device and an electronic device. Background Art

[0002] In daily study and office work, we often need to edit, search and rearrange documents, which contain various pictures, texts, pictures and texts. For example, Word, Power Point, Visio, Excel and Photoshop in the Office series can support content in various formats; however, there is no mature solution on the market to achieve fast and accurate rearrangement of documents. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a document processing method, a document processing device and an electronic device, which can solve the problem in the prior art that document re-formatting requires manual operation, the operation process is cumbersome, and automatic formatting cannot be achieved.

[0004] In order to solve the above technical problems, this application is implemented as follows:

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

[0006] Obtaining content blocks and content titles and serial numbers corresponding to each of the content blocks;

[0007] The content blocks are rearranged according to the priorities of the content titles and the sequence numbers.

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

[0009] An acquisition module, used to acquire content blocks and content titles and serial numbers corresponding to each content block;

[0010] The layout module is used to rearrange the content blocks according to the priorities of the content titles and the sequence numbers.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the document processing method described in the first aspect.

[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the document processing method described in the first aspect are implemented.

[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the document processing method as described in the first aspect.

[0014] In an embodiment of the present application, by corresponding each content block to a content title and a serial number, all content blocks in the document can be rearranged according to the established priority of the content title and serial number, thereby achieving the purpose of automatic and accurate rearrangement of the document and effectively improving the document processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of a document processing method provided in an embodiment of the present application;

[0016] Figure 2 A schematic diagram of a content block in an initial document provided in an embodiment of the present application;

[0017] Figure 3 A schematic diagram of a document after being reformatted provided in an embodiment of the present application;

[0018] Figure 4 A schematic diagram of a content block after the privacy option is enabled according to an embodiment of the present application;

[0019] Figure 5 A schematic diagram showing the comparison of the document before and after the reformatting provided in the embodiment of the present application;

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

[0021] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The document processing method, document processing device and electronic device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0026] Please refer to Figure 1 , is a flowchart of a document processing method provided in an embodiment of the present application. Figure 1 As shown, the document processing method in the embodiment of the present application may include the following steps:

[0027] Step 11: Obtain content blocks and the content title and serial number corresponding to each content block.

[0028] Please refer to Figure 2 , is a schematic diagram of a content block in an initial document provided in an embodiment of the present application. Figure 2 As shown, in the embodiment of the present application, the content block can be a text paragraph, a picture, a table, a combination of text and pictures, etc., and each content block is provided with a content title and a serial number. The content title can be a summary of the information expressed by the content block, and the serial number is used to sort the content blocks. The content title and serial number corresponding to each content block can be located in the upper line of each content block.

[0029] like Figure 2 As shown, Figure 2 The first content block in the form of a combination of pictures and text, Figure 2 "Tag = Meow Star People" means that the content title corresponding to the content block is "Meow Star People", and the content title is consistent with the information expressed in the content block; Figure 2 "Level=1.1" means that the sequence number corresponding to the content block is "1.1". Figure 2 The content titles and sequence numbers of other content blocks in the same way.

[0030] Step 12: Rearrange the content blocks according to the priorities of the content titles and the serial numbers.

[0031] Please refer to Figure 3 , is a schematic diagram of a document after being rearranged according to an embodiment of the present application. Figure 3 As shown in FIG. 1 , since each content block is provided with a content title and a serial number, all content blocks of the document can be rearranged and displayed according to the priority of the content title and the serial number. Figure 3 It can be seen that the format of the document after reformatting is unified, and the logical organization between content blocks is more accurate, which eliminates the tedious process of manually adjusting the format and order of content blocks and improves the document processing speed.

[0032] In the embodiment of the present application, the priority of the content title and the serial number can be divided into two situations: the priority of the content title is higher than the priority of the serial number, and the priority of the serial number is higher than the priority of the content title; generally speaking, the situation where the priority of the content title is higher than the priority of the serial number reflects that the user attaches more importance to the content of the content block than to the serial number of the content block itself, while the situation where the priority of the serial number is higher than the priority of the content title is the opposite; the priority of the content title and the serial number can be pre-set, and the order of the priorities can be adjusted according to different needs when processing documents.

[0033] The following introduces two situations of content title and sequence number priority.

[0034] In the embodiment of the present application, the serial numbers are divided into multiple levels, and the step of rearranging the content blocks according to the priorities of the content titles and the serial numbers includes:

[0035] In the case where the priority of the sequence number is higher than the priority of the content title, aggregating the content blocks corresponding to the sequence numbers of the same level to obtain a plurality of aggregation units;

[0036] Sorting the plurality of polymerization units according to the levels of the serial numbers;

[0037] The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks.

[0038] Specifically, the serial numbers of the content blocks can be divided into multiple levels, and the level of the serial number corresponding to each content block is uniquely determined. For example, Figure 2 As shown, the levels of sequence number "1.1" in "Level=1.1" and sequence number "1.2" in "Level=1.2" are the same. Similarly, the levels of sequence number "2.1" in "Level=2.1" and sequence number "2.2" in "Level=2.2" are the same, but the levels of sequence number "1.1" and sequence number "1.2" are higher than the levels of sequence number "2.1" and sequence number "2.2".

[0039] Based on the above-mentioned serial number level grading setting, when the priority of the serial number is higher than the priority of the content title, it indicates that the user attaches less importance to the content of the content block than to the serial number of the content block, that is, the user is more inclined to make the order of each content block more accurate. Therefore, when rearranging the content blocks, first of all, it is necessary to give priority to aggregating the content blocks corresponding to the serial numbers of the same level to obtain several aggregation units. For example, the content block corresponding to the serial number "1.1" and the content block corresponding to the serial number "1.2" are aggregated into one aggregation unit, and the content block corresponding to the serial number "2.1" and the content block corresponding to the serial number "2.2" are aggregated into another aggregation unit. Usually, the number of levels of the serial number corresponds to the number of aggregation units; then, since the serial numbers corresponding to the content blocks in the same aggregation unit have the same level, and the serial numbers corresponding to different aggregation units have naturally different levels, all aggregation units can be sorted according to the serial number level. For example, by Since the levels of sequence numbers “1.1” and “1.2” are higher than those of sequence numbers “2.1” and “2.2”, the aggregation unit formed by the aggregation of the content block corresponding to sequence number “1.1” and the content block corresponding to sequence number “1.2” is arranged in front of the aggregation unit formed by the aggregation of the content block corresponding to sequence number “2.1” and the content block corresponding to sequence number “2.2”, and so on, the order between different aggregation units can be arranged; finally, for the content blocks aggregated into each aggregation unit, they are sorted in ascending order according to the value of the sequence number corresponding to each content block, for example, the value of sequence number “1.1” is smaller than the value of sequence number “1.2”, so the content block corresponding to sequence number “1.1” is arranged in front of the content block corresponding to sequence number “1.2”, and so on, and the order of the content blocks in all aggregation units is finally completed; then, according to the final arrangement order of the content blocks, they are output to the document, that is, the rearranged document is obtained, which can be displayed accordingly. Through the above-mentioned document processing method, the document can be automatically reformatted, eliminating the tedious process of manually adjusting the content blocks; optionally, a unified format can be set for the content blocks corresponding to each level of serial number to avoid the situation where the format of some content blocks is inconsistent, making the layout of the entire document more neat and beautiful, and easy to read.

[0040] In the embodiment of the present application, optionally, the step of aggregating content blocks corresponding to sequence numbers of the same level to obtain a plurality of aggregated units includes:

[0041] When the number of content blocks corresponding to serial numbers of the same level is greater than a preset value, content blocks of a number equal to the preset value are selected from the content blocks corresponding to serial numbers of the same level for aggregation.

[0042] That is to say, in the process of aggregating content blocks corresponding to serial numbers of the same level, if the number of content blocks corresponding to serial numbers of the same level is greater than a preset value, it means that the aggregation unit cannot accommodate all content blocks corresponding to serial numbers of the same level. In this case, content blocks equal to the preset value should be selected from the content blocks corresponding to serial numbers of the same level for aggregation, so that the number of content blocks contained in the aggregated aggregation unit is the corresponding preset value, thereby achieving control of the number of content blocks in the aggregation unit and achieving the purpose of simplifying the document. The preset value of the number of content blocks contained in each aggregation unit can be set by the user according to the number of content blocks in the initial document and other conditions. By setting the preset value of the number of content blocks contained in each aggregation unit, it is possible to select some content blocks from the document when there are many content blocks for re-layout and display, thereby achieving the purpose of simplifying the document.

[0043] In the embodiment of the present application, the step of selecting a number of content blocks equal to the preset value from the content blocks corresponding to the sequence numbers of the same level for aggregation includes:

[0044] When the number of content blocks with the same content title is greater than the preset value, content blocks with the same content title equal to the preset value are selected for aggregation in ascending order of the sequence numbers of the content blocks.

[0045] Specifically, when the number of content blocks corresponding to serial numbers of the same level is greater than the preset value, and the number of content blocks with the same content title is also greater than the preset value, it is only necessary to select content blocks equal to the preset value from the content blocks with the same content title in order of the serial numbers of the content blocks from small to large for aggregation. In this way, it can be ensured that when there are many content blocks corresponding to serial numbers of the same level, a corresponding number of content blocks are preferentially selected from the content blocks with the same content title for aggregation, thereby ensuring that the content relevance of each content block in the aggregated unit obtained by aggregation is high.

[0046] Optionally, when the number of content blocks corresponding to serial numbers of the same level is greater than the preset value, and the number of content blocks with the same content title is less than the preset value, it is only necessary to select content blocks equal to the preset value from the content blocks corresponding to serial numbers of the same level in ascending order of the serial numbers of the content blocks for aggregation. In this way, it can be ensured that when there are fewer content blocks with the same content title, the content blocks are selected in ascending order of the serial numbers of the content blocks for aggregation, thereby ensuring that the serial number sequence of each content block in the aggregated unit is continuous and the arrangement logic between each content block is more prominent.

[0047] In the embodiment of the present application, optionally, the preset value of the number of content blocks included in each aggregation unit may be an upper limit threshold, that is, it may not exceed the preset value at most, but may be less than the preset value.

[0048] In the embodiment of the present application, the step of rearranging the content block according to the priority of the content title and the sequence number includes:

[0049] In the case where the priority of the sequence number is lower than the priority of the content title, aggregating the content blocks corresponding to the same content title to obtain a plurality of aggregation units;

[0050] Sorting the plurality of aggregation units according to a preset order of the content titles;

[0051] The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks.

[0052] Specifically, each content block corresponds to a content title, for example, Figure 2As shown, "Tag = Meow Star People" means that the content title corresponding to the content block is "Meow Star People", and "Tag = Marvel" means that the content title corresponding to the content block is "Marvel"; based on the setting of the content titles of such content blocks, when the priority of the serial number is lower than the priority of the content title, it indicates that the user attaches more importance to the content of the content block than to the serial number of the content block, that is, is more inclined to make the content between adjacent content blocks more similar. Therefore, when re-typesetting the content blocks, first, it is necessary to prioritize aggregating the content blocks corresponding to the same content title to obtain several aggregation units. For example, the content blocks with the same content title of "Meow Star People" are aggregated into one aggregation unit, and the content blocks with the same content title of "Marvel" are aggregated into another aggregation unit. Usually, the number of different content titles corresponds to the number of aggregation units. Through such an aggregation method, it can be ensured that the content relevance of the content blocks in the aggregated aggregation units is relatively high; then, since the content titles corresponding to the content blocks in the same aggregation unit are the same, and the content titles corresponding to different aggregation units are naturally different, thus, all aggregation units can be sorted according to the preset order of the content titles. Optionally, the preset order can be the phonetic order of the first character of the content title or the reverse of the phonetic order. Also, for example, the preset order can be the order of the number of strokes of the first character of the content title from small to large, etc. For example, the phonetic order of "Meow" in the content title "Meow Star People" is after the phonetic order of "Man" in the content title "Marvel". The preset order of the reverse of the phonetic order can be adopted to arrange the aggregation unit with the content title of "Meow Star People" in front of the aggregation unit with the content title of "Marvel". By analogy, the order between different aggregation units can be arranged; finally, for the content blocks aggregated into each aggregation unit, they are sorted in ascending order according to the value of the serial number corresponding to each content block. For example, the value of the serial number "1.1" is less than the value of the serial number "1.2", so the content block corresponding to the serial number "1.1" is arranged in front of the content block corresponding to the serial number "1.2". By analogy, the sorting of the content blocks in all aggregation units is finally completed; then, output to the document according to the arranged order of the content blocks finally obtained, that is, the re-typeset document is obtained, and it can be displayed accordingly. Through the above document processing method, the automatic re-typesetting of the document can be realized, saving the cumbersome process of manually adjusting the content blocks; optionally, a unified format can also be set for the content blocks corresponding to each content title to avoid the situation that the formats of some content blocks are not unified, making the typesetting of the entire document more neat and beautiful and convenient for reading.

[0053] In the embodiment of the present application, the step of aggregating the content blocks corresponding to the same content title to obtain several aggregation units includes:

[0054] When the number of content blocks corresponding to the same content title is greater than a preset value, content blocks equal to the preset value are selected for aggregation in ascending order of the sequence numbers of the content blocks.

[0055] That is to say, in the process of aggregating content blocks corresponding to the same content title, if the number of content blocks corresponding to the same content title is greater than the preset value, it means that the aggregation unit cannot accommodate all content blocks corresponding to the same content title. At this time, content blocks equal to the preset value should be selected from the content blocks corresponding to the same content title for aggregation, so that the number of content blocks contained in the aggregation unit formed by aggregation is the corresponding preset value, thereby realizing the control of the number of content blocks in the aggregation unit and achieving the purpose of simplifying the document. The preset value of the number of content blocks contained in each aggregation unit can be set by the user according to the number of content blocks in the initial document and other conditions. By setting the preset value of the number of content blocks contained in each aggregation unit, it can be allowed to select some content blocks from the document when there are many content blocks for re-layout and display, thereby achieving the purpose of simplifying the document.

[0056] Similarly, in the embodiment of the present application, optionally, the preset value of the number of content blocks included in each aggregation unit may be an upper limit threshold, that is, it may not exceed the preset value at most, but may be less than the preset value.

[0057] Optionally, in the process of selecting a number of content blocks equal to the preset value from content blocks corresponding to the same content title for aggregation, a number of content blocks equal to the preset value can be selected for aggregation in order of the values ​​of the serial numbers of the content blocks from small to large. In this way, it can be ensured that the serial number sequence of each content block in the aggregated unit obtained by aggregation is more organized and the arrangement logic between each content block is more prominent.

[0058] In the embodiment of the present application, after the step of rearranging the content block, the following step is further included:

[0059] Acquire configuration information of rendering options corresponding to each of the content blocks, wherein the rendering options include at least one of a sequence number hiding option and a privacy option;

[0060] The sorted sequence numbers and content blocks are rendered according to the configuration information.

[0061] That is to say, after completing the steps of sorting, formatting and other steps of all content blocks and before finally displaying, it is necessary to further obtain the configuration information of the rendering options corresponding to each content block, and the rendering options may include at least one of the hidden options and the so options. The configuration information of the rendering options corresponding to each content block can be configured for the rendering options of each created content block when creating the content block on the editing page. For example, the hidden option includes two options: hide and do not hide. When hide is selected, the sequence number of the content block can be hidden, and when not hide is selected, the sequence number after sorting is displayed. For example, the privacy option includes two options: open and close. When open is selected, the corresponding content block can be rendered, so that the content block appears mosaic when it is finally displayed, so as to achieve the purpose of privacy protection. When closed is selected, the content block is not rendered, and the content of the content block is displayed normally. Of course, the rendering options can be increased or decreased according to actual needs, so as to enrich the typesetting and display mode of the document and meet the different needs of users. Optionally, a default option can be set, and the rendering is directly performed according to the configuration information of the default option each time the rendering is performed. If the user needs a different rendering effect, the rendering option can be modified.

[0062] Please refer to Figure 4 , is a schematic diagram of a content block after the privacy option is enabled according to an embodiment of the present application. Figure 4 As shown, after turning on the privacy option, the content block will be mosaiced when it is finally displayed, thereby achieving the purpose of privacy protection.

[0063] Please refer to Figure 5 , which is a schematic diagram of the comparison of the document before and after the re-formatting provided in the embodiment of the present application. Figure 5 As shown, the left page is the initial editing page, on which the user can create any content block and the corresponding content title and serial number; and the right page is the document obtained after all the content blocks in the left page are reformatted using the document processing method in the embodiment of the present application. It can be seen that the entire document page becomes unified in format and logically clear, which is easy for users to read.

[0064] In an embodiment of the present application, by corresponding each content block to a content title and a serial number, all content blocks in the document can be rearranged according to the established priority of the content title and serial number, thereby achieving the purpose of automatic and accurate rearrangement of the document and effectively improving the document processing efficiency.

[0065] It should be noted that the document processing method provided in the embodiment of the present application can be executed by a document processing device or a control module used to execute the document processing method in the document processing. In the embodiment of the present application, the document processing device provided in the embodiment of the present application is described by taking the document processing device executing the loading document processing method as an example.

[0066] Please refer to Figure 6 , is a schematic diagram of the structure of a document processing device provided in an embodiment of the present application. Figure 6 As shown, another aspect of the present application further provides a document processing device, and the document processing device 60 may include:

[0067] An acquisition module 61 is used to acquire content blocks and a content title and a serial number corresponding to each content block;

[0068] The layout module 62 is used to rearrange the content blocks according to the priorities of the content titles and the sequence numbers.

[0069] Optionally, the serial numbers are divided into multiple levels, and the typesetting module 62 includes:

[0070] A first classification unit is used to aggregate content blocks corresponding to sequence numbers of the same level to obtain a plurality of aggregation units when the priority of the sequence number is higher than the priority of the content title;

[0071] A first sorting unit, used to sort the plurality of aggregation units according to the levels of the sequence numbers;

[0072] The first layout unit is used to sort the content blocks in each of the aggregation units in ascending order according to the corresponding sequence numbers.

[0073] Optionally, the first classification unit includes:

[0074] The first classification subunit is used to select content blocks of a number equal to the preset value from the content blocks corresponding to the serial numbers of the same level for aggregation when the number of content blocks corresponding to the serial numbers of the same level is greater than the preset value.

[0075] Optionally, the classification subunit includes:

[0076] The first classification micro-unit is used to select and aggregate content blocks with the same content title equal to the preset value in order of the sequence numbers of the content blocks from small to large when the number of content blocks with the same content title is greater than the preset value.

[0077] Optionally, the typesetting module 62 includes:

[0078] a second classification unit, configured to aggregate content blocks corresponding to the same content title to obtain a plurality of aggregation units when the priority of the sequence number is lower than the priority of the content title;

[0079] A second sorting unit, used to sort the plurality of aggregation units according to a preset order of the content titles;

[0080] The second layout unit is used to sort the content blocks in each of the aggregation units in ascending order according to the sequence numbers corresponding to the content blocks.

[0081] Optionally, the second classification unit includes:

[0082] The second classification subunit is used to select and aggregate content blocks of a number equal to the preset value in ascending order of the sequence numbers of the content blocks when the number of content blocks corresponding to the same content title is greater than a preset value.

[0083] Optionally, also include:

[0084] A configuration module, which obtains configuration information of a rendering option corresponding to each of the content blocks, wherein the rendering option includes at least one of a sequence number hiding option and a privacy option;

[0085] A rendering module is used to render the sorted sequence numbers and content blocks according to the configuration information.

[0086] In an embodiment of the present application, by making each content block correspond to a content title and a serial number, all content blocks in the document can be rearranged according to the established priority of the content title and serial number, thereby achieving the purpose of automatic and accurate rearrangement of the document and effectively improving the document processing efficiency.

[0087] The document processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0088] The document processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0089] The document processing device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented in the document processing method embodiment are not described here.

[0090] Optional, such as Figure 7 As shown, an embodiment of the present application also provides an electronic device 70, including a processor 71, a memory 72, and a program or instruction stored in the memory 72 and executable on the processor 71. When the program or instruction is executed by the processor 71, each process of the above-mentioned document processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0091] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0092] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0093] The electronic device 80 includes but is not limited to: a radio frequency unit 81, a network module 82, an audio output unit 83, an input unit 84, a sensor 85, a display unit 86, a user input unit 87, an interface unit 88, a memory 89, and a processor 810 and other components.

[0094] Those skilled in the art will appreciate that the electronic device 80 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0095] The user input unit 87 is used to obtain the content blocks and the content title and serial number corresponding to each of the content blocks;

[0096] Processor 810, configured to rearrange the content block according to the priority of the content title and the sequence number;

[0097] The display unit 86 is used to display the rearranged document.

[0098] In an embodiment of the present application, by making each content block correspond to a content title and a serial number, all content blocks in the document can be rearranged according to the established priority of the content title and serial number, thereby achieving the purpose of automatic and accurate rearrangement of the document and effectively improving the document processing efficiency.

[0099] Optionally, the sequence numbers are divided into multiple levels, and the processor 810 is further configured to:

[0100] In the case where the priority of the sequence number is higher than the priority of the content title, aggregating the content blocks corresponding to the sequence numbers of the same level to obtain a plurality of aggregation units;

[0101] Sorting the plurality of polymerization units according to the levels of the serial numbers;

[0102] The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks, and the sorted sequence numbers and content blocks are displayed.

[0103] Optionally, the processor 810 is further configured to select, from the content blocks corresponding to the serial numbers of the same level, a number of content blocks equal to the preset value for aggregation when the number of content blocks corresponding to the serial numbers of the same level is greater than a preset value.

[0104] Optionally, the step of selecting, from content blocks corresponding to sequence numbers of the same level, a number of content blocks equal to the preset value for aggregation includes:

[0105] When the number of content blocks with the same content title is greater than the preset value, content blocks with the same content title equal to the preset value are selected for aggregation in ascending order of the values ​​of the sequence numbers of the content blocks.

[0106] Optionally, the processor 810 is further configured to: when the priority of the sequence number is lower than the priority of the content title, aggregate the content blocks corresponding to the same content title to obtain a plurality of aggregate units;

[0107] Sorting the plurality of aggregation units according to a preset order of the content titles;

[0108] The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks.

[0109] Optionally, the processor 810 is further configured to:

[0110] When the number of content blocks corresponding to the same content title is greater than a preset value, content blocks equal to the preset value are selected for aggregation in ascending order of the sequence numbers of the content blocks.

[0111] Optionally, the processor 810 is further configured to:

[0112] Acquire configuration information of rendering options corresponding to each of the content blocks, wherein the rendering options include at least one of a sequence number hiding option and a privacy option;

[0113] The sorted sequence numbers and content blocks are rendered according to the configuration information.

[0114] It should be understood that in the embodiment of the present application, the input unit 84 may include a graphics processor (GPU) 841 and a microphone 842, and the graphics processor 841 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 86 may include a display panel 861, and the display panel 861 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 87 includes a touch panel 871 and other input devices 872. The touch panel 871 is also called a touch screen. The touch panel 871 may include two parts: a touch detection device and a touch controller. Other input devices 872 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 89 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.

[0115] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned document processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0116] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0117] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned document processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0118] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0119] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0121] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A document processing method, characterized in that: include: Obtaining content blocks and the content title and serial number corresponding to each content block; Rearranging the content blocks according to the priorities of the content titles and the sequence numbers; The serial numbers are divided into multiple levels, and the step of rearranging the content blocks according to the priorities of the content titles and the serial numbers includes: In a case where the priority of the sequence number is higher than the priority of the content title, aggregating the content blocks corresponding to the sequence numbers of the same level to obtain a plurality of aggregation units; Sorting the plurality of polymerization units according to the levels of the serial numbers; The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks.

2. The document processing method according to claim 1, wherein: The step of aggregating content blocks corresponding to serial numbers of the same level to obtain a plurality of aggregated units includes: When the number of content blocks corresponding to serial numbers of the same level is greater than a preset value, content blocks of a number equal to the preset value are selected from the content blocks corresponding to serial numbers of the same level for aggregation.

3. The document processing method according to claim 2, wherein: The step of selecting a number of content blocks equal to the preset value from the content blocks corresponding to the sequence numbers of the same level for aggregation includes: When the number of content blocks with the same content title is greater than the preset value, content blocks with the same content title equal to the preset value are selected and aggregated in ascending order of the sequence numbers of the content blocks.

4. The document processing method according to claim 1, wherein: The step of rearranging the content blocks according to the priorities of the content titles and the sequence numbers includes: When the priority of the sequence number is lower than the priority of the content title, aggregating the content blocks corresponding to the same content title to obtain a plurality of aggregation units; sorting the plurality of aggregation units according to a preset order of the content titles; The content blocks in each of the aggregation units are sorted in ascending order according to the sequence numbers corresponding to the content blocks.

5. The document processing method according to claim 4, characterized in that: The step of aggregating content blocks corresponding to the same content title to obtain a plurality of aggregated units includes: When the number of content blocks corresponding to the same content title is greater than a preset value, content blocks equal to the preset value are selected and aggregated in ascending order of the sequence numbers of the content blocks.

6. The document processing method according to claim 1, wherein: After the step of rearranging the content block, the method further includes: Obtaining configuration information of rendering options corresponding to each of the content blocks, wherein the rendering options include at least one of a sequence number hiding option and a privacy option; The sorted sequence numbers and content blocks are rendered according to the configuration information.

7. A document processing device, characterized in that: include: An acquisition module for content blocks and a content title and serial number corresponding to each content block; a layout module, configured to rearrange the content blocks according to the priorities of the content titles and the sequence numbers; The serial numbers are divided into multiple levels, and the typesetting module includes: a first classification unit, configured to aggregate content blocks corresponding to sequence numbers of the same level to obtain a plurality of aggregation units when the priority of the sequence number is higher than the priority of the content title; A first sorting unit, configured to sort the plurality of aggregation units according to the levels of the sequence numbers; The first layout unit is used to sort the content blocks in each aggregation unit in ascending order according to the sequence numbers corresponding to the content blocks.

8. The document processing device according to claim 7, wherein: The first classification unit includes: The first classification subunit is configured to select content blocks of a number equal to the preset value from the content blocks corresponding to the serial numbers of the same level for aggregation when the number of content blocks corresponding to the serial numbers of the same level is greater than a preset value.

9. The document processing device according to claim 8, wherein: The classification subunit includes: The first classification micro-unit is used to select and aggregate content blocks with the same content title equal to the preset value in ascending order of the sequence numbers of the content blocks when the number of content blocks with the same content title is greater than the preset value.

10. The document processing device according to claim 7, wherein: The typesetting module includes: a second classification unit, configured to aggregate content blocks corresponding to the same content title to obtain a plurality of aggregation units when the priority of the sequence number is lower than the priority of the content title; a second sorting unit, configured to sort the plurality of aggregation units according to a preset order of the content titles; The second layout unit is used to sort the content blocks in each of the aggregation units in ascending order according to the sequence numbers corresponding to the content blocks.

11. The document processing device according to claim 10, wherein: The second classification unit includes: The second classification subunit is used to select and aggregate content blocks of a number equal to the preset value in ascending order of the sequence numbers of the content blocks when the number of content blocks corresponding to the same content title is greater than a preset value.

12. The document processing device according to claim 7, wherein: Also includes: a configuration module, configured to obtain configuration information of a rendering option corresponding to each of the content blocks, wherein the rendering option includes at least one of a sequence number hiding option and a privacy option; A rendering module is used to render the sorted sequence numbers and content blocks according to the configuration information.

13. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the document processing method according to any one of claims 1 to 6.

14. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the document processing method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Content-aware energy savings for web browsing utilizing selective loading priority

    CN110235123A

  • Document hierarchy division method, document hierarchy division device and readable storage medium

    CN111079402A