Document page number setting method, device, electronic device and storage medium

By automatically identifying the document part and setting page numbers, the problem of manual identification and manual identification symbols are solved in the prior art document page numbers setting, achieving higher convenience of use and user experience.

CN112487759BActive Publication Date: 2024-11-22ZHUHAI KINGSOFT OFFICE SOFTWARE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910785646.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-23
Publication Date
2024-11-22
Estimated Expiration
2039-08-23

AI Technical Summary

Technical Problem

In the prior art, document page number setting requires manual identification of document content and manual addition of identifiers, resulting in low convenience of use and affecting user experience.

Method used

By obtaining document information, the document part is automatically identified and divided into different parts, setting corresponding page numbers, providing an interactive interface for users to select page number formats, and customizing page number settings.

Benefits of technology

It improves user convenience and operation ease, reduces user operation complexity, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112487759B_ABST
    Figure CN112487759B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a document page number setting method, device, electronic device and storage medium, wherein the method comprises: obtaining a document to be processed; determining a target identification document part in the document to be processed according to document information carried by the document to be processed; determining a part of the document to be processed that is located before the target identification document part and a part that is located after the target identification document part as different document parts according to the determined target identification document part; and setting page numbers for each document part in the document to be processed. The embodiment of the present invention can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of office software, and in particular to a document page number setting method, device, electronic equipment and storage medium. Background Art

[0002] With the widespread application of computer technology, office software has become more and more popular. For example, word processing software is used to edit documents. A document usually contains different contents, such as cover content, directory content, and text content.

[0003] In the prior art, if you want to display different page numbers for different contents of a document, for example, display page numbers in different formats, or display page numbers in different page number coding sequences, you need to manually identify the various parts of the document first, then manually add preset identification symbols to each part of the content to divide the various parts of the content, and then set page numbers for the divided parts of the content.

[0004] It can be seen that the existing document page number setting method has the problem of low convenience of use, which affects the user experience, because it requires manual identification of the contents of each part of the document and then manual setting of page numbers for the contents of each part of the document. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a document page number setting method, device, electronic device and storage medium to solve the problem of low usability caused by manually adding preset identification symbols in the prior art. The specific technical solution is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a method for setting document page numbers, the method comprising:

[0007] Obtaining a document to be processed, wherein the document to be processed is an electronic document for which page numbers are to be set;

[0008] Determining a target identification document part in the document to be processed according to document information carried by the document to be processed, wherein the document information includes: a domain code, a format feature, and a page structure; the target identification document part includes: a directory;

[0009] According to the determined target identification document part, determining a part of the to-be-processed document located before the target identification document part and a part located after the target identification document part as different document parts respectively;

[0010] Page numbers are set for each document part in the document to be processed.

[0011] Optionally, the step of determining the target identification document portion in the document to be processed according to the document information carried by the document to be processed includes:

[0012] Reading a domain code in the document to be processed, and determining the target identification document portion in the document to be processed according to the domain code;

[0013] Alternatively, text lines with preset format features in the document to be processed are analyzed, and the text lines with the preset format features are determined as the target identification document part in the document to be processed; the text lines with the preset format features are: text lines with words and numbers located at both ends of the text lines respectively, and containing preset characters.

[0014] Optionally, the step of determining the portion of the to-be-processed document located before the target identified document portion and the portion of the to-be-processed document located after the target identified document portion as different document portions, respectively, includes:

[0015] Adding preset identification symbols to the head and tail of the target identification document part respectively;

[0016] Through the preset identification symbol, the document to be processed is divided into a first document part, a target identification document part, and a second document part, wherein the first document part is the part of the document to be processed that is located before the target identification document part, and the second document part is the part that is located after the target identification document part.

[0017] Optionally, the step of setting page numbers for each document part in the document to be processed includes:

[0018] Display options for different page number formats in the first interactive interface;

[0019] The user's selection result for the page number format option is obtained, and according to the selection result, page numbers of different formats are set for each document part in the document to be processed.

[0020] Optionally, when the user's selection result for the page number format option is not obtained, the method further includes:

[0021] Obtaining the page number format setting result for each document part input by the user in the second interactive interface;

[0022] The step of setting page numbers for each document part in the document to be processed comprises:

[0023] According to the page number format setting result, page numbers of different formats are set for each document part in the document to be processed.

[0024] Optionally, the different document parts include: a cover part, a directory document part, and a body part. When the first document part is the cover part, the step of setting page numbers for each document part in the document to be processed includes:

[0025] The page number of the cover portion is set to a default value, and the default value is used to indicate that no page number is added to the current document portion.

[0026] In a second aspect, an embodiment of the present invention provides a document page number setting device, the device comprising:

[0027] A first acquisition module is used to acquire a document to be processed, wherein the document to be processed is an electronic document for which page numbers are to be set;

[0028] A first determination module is used to determine a target identification document part in the document to be processed according to document information carried by the document to be processed, wherein the document information includes: a domain code, a format feature, and a page structure; the target identification document part includes: a directory;

[0029] A second determination module is used to determine, according to the determined target identification document part, a part of the to-be-processed document located before the target identification document part and a part located after the target identification document part as different document parts respectively;

[0030] The setting module is used to set page numbers for each document part in the document to be processed.

[0031] Optionally, the first determining module is specifically configured to:

[0032] Reading a domain code in the document to be processed, and determining the target identification document portion in the document to be processed according to the domain code;

[0033] Alternatively, text lines with preset format features in the document to be processed are analyzed, and the text lines with the preset format features are determined as the target identification document part in the document to be processed; the text lines with the preset format features are: text lines with words and numbers located at both ends of the text lines respectively, and containing preset characters.

[0034] Optionally, the second determining module includes:

[0035] An adding submodule, used for adding preset identification symbols at the head and tail of the target identification document part respectively;

[0036] The division submodule is used to divide the document to be processed into a first document part, a target identification document part, and a second document part according to the preset identification symbol, wherein the first document part is the part of the document to be processed that is located before the target identification document part, and the second document part is the part that is located after the target identification document part.

[0037] Optionally, the setting module includes:

[0038] A display submodule, used to display options of different page number formats in the first interactive interface;

[0039] A submodule is set up to obtain the user's selection result for the page number format option, and to set page numbers of different formats for each document part in the document to be processed according to the selection result.

[0040] Optionally, the device further comprises:

[0041] A second acquisition module, used to acquire the page number format setting result for each document part input by the user in the second interactive interface;

[0042] The setting module is specifically used for:

[0043] According to the page number format setting result, page numbers of different formats are set for each document part in the document to be processed.

[0044] Optionally, the different document parts include: a cover part, a directory document part, and a body part. When the first document part is the cover part, the setting module is specifically used to:

[0045] The page number of the cover portion is set to a default value, and the default value is used to indicate that no page number is added to the current document portion.

[0046] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the document page number setting method provided in the first aspect of the embodiment of the present invention.

[0047] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. The computer program is executed by a processor to perform the method steps of the document page number setting method provided in the first aspect of the embodiment of the present invention.

[0048] A document page number setting method, device, electronic device and storage medium provided by an embodiment of the present invention can determine the target identification document part in the document to be processed according to the document information carried by the document to be processed after obtaining the document to be processed, and then determine the part of the document to be processed that is located before the target identification document part and the part that is located after the target identification document part as different document parts according to the determined target identification document part, and then set page numbers for each document part in the document to be processed. Since the embodiment of the present invention does not require the user to manually identify the contents of each part of the document, nor does it require the user to manually set page numbers for each part of the document, it can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience. Of course, any product or method implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A schematic diagram of a flow chart of a method for setting document page numbers provided by an embodiment of the present invention;

[0051] Figure 2 A schematic flow chart of step S103 in the document page number setting method provided in an embodiment of the present invention;

[0052] Figure 3 A schematic flow chart of step S104 in the document page number setting method provided in an embodiment of the present invention;

[0053] Figure 4 is a schematic diagram of a first interactive interface in an embodiment of the present invention;

[0054] Figure 5 Another schematic diagram of a flow chart of a method for setting document page numbers provided by an embodiment of the present invention;

[0055] Figure 6 A schematic diagram of the structure of a document page number setting device provided by an embodiment of the present invention;

[0056] Figure 7 A schematic diagram of the structure of a second determination module in the document page number setting device provided by an embodiment of the present invention;

[0057] Figure 8A structural schematic diagram of a setting module in a document page number setting device provided in an embodiment of the present invention;

[0058] Fig. 9 Another structural schematic diagram of a device for setting document page numbers provided by an embodiment of the present invention;

[0059] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0061] like Figure 1 As shown, an embodiment of the present invention provides a method for setting document page numbers, and the process may include the following steps:

[0062] S101, obtaining a document to be processed.

[0063] In an embodiment of the present invention, the electronic device can obtain a document to be processed, for example, a document newly created by a user, or a document currently being opened by a user. The document to be processed can refer to an electronic document for which page numbers are to be set, and the electronic document can be, for example, a WPS Office document (an office software developed by Kingsoft Software Company), or a Microsoft Word document (an office software developed by Microsoft Software Company), or, of course, other document editing programs with text editing functions.

[0064] The above-mentioned electronic device may refer to electronic devices such as smart phones and mobile tablets. It is understandable that the above-mentioned electronic devices may run a document editing program, and the document editing program may include but is not limited to document editing functions.

[0065] S102: Determine a target identification document portion in the document to be processed according to the document information carried by the document to be processed.

[0066] It can be understood that the document to be processed can carry document information of the document, such as the domain code, format features, and page structure of the document to be processed, wherein the domain code is a code containing specific commands, and the electronic device can read the domain code of the document after opening a document.

[0067] A document usually has format features, for example, some paragraphs or text lines in the document are arranged in a specific way, for example, the text and numbers in the document are located at both ends of the text line, and are separated by a number of bold symbols in the middle, so that the document editing program in the electronic device can easily recognize the arrangement. Of course, a document usually also has a page structure. For example, the text in the document is usually distinguished by different levels of numbers. The commonly used representation method is: capital "one," "two," ... etc. represent the first-level number, which usually appears at the beginning of a part or a chapter; lowercase "1," "2," ... etc. represent the second-level number, which usually appears in each sub-part under a part or a chapter.

[0068] According to the above examples, the electronic device can identify the target identification document part, that is, the specific content part that needs to be identified in the document to be processed, based on the document information carried by the document to be processed, for example, identify the directory document part, that is, the part of the document where the directory is located. Of course, in addition to the implementation method shown in the example, all methods of implementing this feature belong to the protection scope of the embodiments of the present invention.

[0069] As an optional implementation of an embodiment of the present invention, the electronic device can read the domain code in the document to be processed. Since the domain code can indicate the range of the target identification document part in the document to be processed, the target identification document part in the document to be processed can be determined according to the domain code, for example, the directory document part.

[0070] As another optional implementation of the embodiment of the present invention, the electronic device can also analyze text lines with preset format features in the document to be processed, and determine the text lines with preset format features as the target identification document part in the document to be processed. For example, in the text line, the characters and numbers are respectively located at the two ends of the text line and contain bold symbols. Then, the part composed of the above multiple text lines can be determined as the target identification document part, for example, a directory document part.

[0071] See also Figure 1 , S103, according to the determined target recognition document part, the part of the document to be processed that is located before the target recognition document part and the part that is located after the target recognition document part are respectively determined as different document parts.

[0072] After determining the target recognition document portion, the electronic device can determine the portion of the document to be processed that is located before the target recognition document portion and the portion that is located after the target recognition document portion as different document portions.

[0073] Exemplarily, the portion of the document to be processed that is located before the directory document portion and the portion that is located after the directory document portion may be respectively determined as different document portions.

[0074] As an optional implementation of the embodiment of the present invention, Figure 2 As shown, the above step S103 may specifically include:

[0075] S1031, adding preset identification symbols to the head and tail of the target recognition document part respectively.

[0076] Preset identification symbols may be added to the head and tail of the target identified document part to distinguish the contents before and after the target identified document part in the to-be-processed document. For example, section breaks may be added to the head and tail of the target identified document part. Since section breaks can be used to indicate the end of a section, when the electronic device recognizes a section break, the contents before and after the target identified document part can be distinguished.

[0077] S1032, dividing the document to be processed into a first document part, a target identification document part, and a second document part by using a preset identification symbol.

[0078] For example, through section breaks, the document to be processed can be divided into a first document part, a target identification document part, and a second document part, wherein the first document part is the part of the document to be processed that is located before the target identification document part, for example, the cover part; the second document part is the part that is located after the target identification document part, for example, the body part.

[0079] See also Figure 1 , S104, setting page numbers for each document part in the document to be processed.

[0080] After obtaining the document parts of the document to be processed, page numbers can be set for each document part, for example, the page number starting from the first page can be set for the directory document part, and the page number starting from the first page can be set for the body part. Optionally, the page number of the cover part can be set to a default value, which is used to indicate that no page number is added to the current document part.

[0081] As an optional implementation of the embodiment of the present invention, Figure 3 As shown, the above step S104 may specifically include:

[0082] S1041, displaying options of different page number formats in the first interactive interface.

[0083] Options for different page number formats can be displayed in the first interactive interface, such as Figure 4 As shown, Figure 4This is a schematic diagram of the first interactive interface of an embodiment of the present invention. The first interactive interface may include three options, each of which displays different page number formats for different document parts. The user can select one of the three options (for example, by clicking the round button in the lower right corner of the box corresponding to each option). For another example, for the cover part, no page number format is displayed in different options; for the directory part, lowercase Roman numerals, or Arabic numerals with brackets, or uppercase Roman numerals are displayed in different options; for the body part, Arabic numerals, or uppercase Chinese characters, etc. are displayed in different options.

[0084] S1042, obtaining the user's selection result for the page number format option, and setting different types of page numbers for each document part in the document to be processed according to the selection result.

[0085] The electronic device can obtain the user's selection results for the above-mentioned page number format options, thereby setting different types of page numbers for each document part in the document to be processed. For example, the cover part of the document to be processed is set to no page numbers, the table of contents part is set to lowercase Roman numerals, and the body part is set to Arabic numerals.

[0086] As an optional implementation of the embodiment of the present invention, Figure 5 As shown, when the user's selection result for the page number format option is not obtained, the document page number setting method of the embodiment of the present invention may further include:

[0087] S201, obtaining the page number format setting result for each document part input by the user in the second interactive interface.

[0088] When the user wishes to display the page numbers of each document part in other page number formats, that is, when the user wishes to customize the page number formats of different document parts, the user can choose not to select the page number format option in the first display interface, that is, skip the first display interface (this can be achieved by setting the skip option in the first display interface), so that the page number format setting results for each document part can be entered in the second interactive interface, and the electronic device can obtain the setting results.

[0089] Then the above step S104 may specifically be:

[0090] S104', according to the page number format setting result, set page numbers of different formats for each document part in the document to be processed.

[0091] By setting page numbers of different formats for each document part in the document to be processed, users can customize the page number format of each document part, making page number setting more flexible and improving user experience.

[0092] A document page number setting method provided by an embodiment of the present invention can determine a target identification document part in the document to be processed according to document information carried by the document to be processed after obtaining the document to be processed, and then determine the part of the document to be processed that is located before the target identification document part and the part that is located after the target identification document part as different document parts according to the determined target identification document part, and then set page numbers for each document part in the document to be processed. Since the embodiment of the present invention does not require the user to manually identify the contents of each part of the document, nor does it require the user to manually set page numbers for each part of the document, it can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience.

[0093] A specific embodiment of a document page number setting device provided by an embodiment of the present invention is Figure 1 The process shown corresponds to the reference Figure 6 , Figure 6 A schematic diagram of a document page number setting device according to an embodiment of the present invention includes:

[0094] The first acquisition module 301 is used to acquire a document to be processed, where the document to be processed is an electronic document for which page numbers are to be set.

[0095] The first determination module 302 is used to determine the target identification document part in the document to be processed according to the document information carried by the document to be processed. The document information includes: field code, format characteristics, and page structure; the target identification document part includes: directory.

[0096] The second determination module 303 is used to determine the part of the to-be-processed document located before the target identification document part and the part of the to-be-processed document located after the target identification document part as different document parts respectively according to the determined target identification document part.

[0097] The setting module 304 is used to set page numbers for each document part in the document to be processed.

[0098] The first determining module is specifically used for:

[0099] Reading a domain code in the document to be processed, and determining a target identification document portion in the document to be processed according to the domain code;

[0100] Alternatively, text lines with preset format features in the document to be processed are analyzed, and the text lines with preset format features are determined as the target recognition document part in the document to be processed; text lines with preset format features are: text lines with words and numbers located at both ends of the text line, and containing preset characters.

[0101] Among them, Figure 7 As shown, the second determination module 303 includes:

[0102] The adding submodule 3031 is used to add preset identification symbols to the head and tail of the target recognition document part respectively.

[0103] The division submodule 3032 is used to divide the document to be processed into a first document part, a target identification document part, and a second document part through a preset identification symbol, wherein the first document part is the part of the document to be processed that is located before the target identification document part, and the second document part is the part that is located after the target identification document part.

[0104] Among them, Figure 8 As shown, the above setting module 304 includes:

[0105] The display submodule 3041 is used to display options of different page number formats in the first interactive interface.

[0106] The setting submodule 3042 is used to obtain the user's selection result for the page number format option, and set page numbers of different formats for each document part in the document to be processed according to the selection result.

[0107] Among them, Figure 6 Based on the device structure shown, Fig. 9 As shown, the document page number setting device of the embodiment of the present invention may also include:

[0108] The second acquisition module 401 is used to acquire the page number format setting result for each document part input by the user in the second interactive interface.

[0109] The setting module 304 is specifically used for:

[0110] According to the page number format setting result, set page numbers of different formats for each document part in the document to be processed.

[0111] The different document parts include: a cover part, a directory document part, and a body part. When the first document part is the cover part, a module is set to specifically:

[0112] Set the page number of the cover to the default value. The default value is used to indicate that no page number is added to the current document part.

[0113] A document page number setting device provided by an embodiment of the present invention can determine a target identification document part in the document to be processed according to document information carried by the document to be processed after obtaining the document to be processed, and then determine the part of the document to be processed that is located before the target identification document part and the part that is located after the target identification document part as different document parts according to the determined target identification document part, and then set page numbers for each document part in the document to be processed. Since the embodiment of the present invention does not require the user to manually identify the contents of each part of the document, nor does it require the user to manually set page numbers for each part of the document, it can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience.

[0114] The embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0115] Memory 503, used for storing computer programs;

[0116] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:

[0117] Obtaining a document to be processed, where the document to be processed is an electronic document for which page numbers are to be set;

[0118] Determine the target identification document part in the document to be processed according to the document information carried by the document to be processed, the document information includes: field code, format feature, and page structure; the target identification document part includes: directory;

[0119] According to the determined target identification document part, a part of the to-be-processed document located before the target identification document part and a part located after the target identification document part are respectively determined as different document parts;

[0120] Set page numbers for each document section in the document to be processed.

[0121] An electronic device provided by an embodiment of the present invention can determine a target identification document part in the document to be processed according to document information carried by the document to be processed after acquiring the document to be processed, and then determine the part of the document to be processed that is located before the target identification document part and the part that is located after the target identification document part as different document parts according to the determined target identification document part, and then set page numbers for each document part in the document to be processed. Since the embodiment of the present invention does not require the user to manually identify the contents of each part of the document, nor does it require the user to manually set page numbers for each part of the document, it can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience.

[0122] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0123] The communication interface is used for communication between the above electronic device and other devices.

[0124] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0125] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0126] The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, for executing the following steps:

[0127] Obtaining a document to be processed, where the document to be processed is an electronic document for which page numbers are to be set;

[0128] Determine the target identification document part in the document to be processed according to the document information carried by the document to be processed, the document information includes: field code, format feature, and page structure; the target identification document part includes: directory;

[0129] According to the determined target identification document part, a part of the to-be-processed document located before the target identification document part and a part located after the target identification document part are respectively determined as different document parts;

[0130] Set page numbers for each document section in the document to be processed.

[0131] A computer-readable storage medium provided by an embodiment of the present invention can determine a target identification document part in the document to be processed according to document information carried by the document to be processed after obtaining the document to be processed, and then determine the part of the document to be processed that is located before the target identification document part and the part that is located after the target identification document part as different document parts according to the determined target identification document part, and then set page numbers for each document part in the document to be processed. Since the embodiment of the present invention does not require the user to manually identify the contents of each part of the document, nor does it require the user to manually set page numbers for each part of the document, it can improve the user's convenience of use, reduce the user's operation complexity, and thus improve the user experience.

[0132] As for the device / electronic device / storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0133] It should be noted that the device, electronic device and storage medium of the embodiments of the present invention are respectively the device, electronic device and storage medium to which the above-mentioned document page number setting method is applied. All embodiments of the above-mentioned document page number setting method are applicable to the device, electronic device and storage medium, and can achieve the same or similar beneficial effects.

[0134] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also 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 a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0135] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0136] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A document page number setting method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining a document to be processed, wherein the document to be processed is an electronic document for which page numbers are to be set; Reading a domain code in the document to be processed, and determining a target identification document portion in the document to be processed according to the domain code; or analyzing a text line with a preset format feature in the document to be processed, and determining the text line with the preset format feature as the target identification document portion in the document to be processed; wherein the target identification document portion includes: a directory; According to the determined target identification document part, the document to be processed is divided into a first document part, a target identification document part, and a second document part, wherein the first document part is a part of the document to be processed that is located before the target identification document part, and the second document part is a part that is located after the target identification document part; Page numbers are set for each document part in the document to be processed.

2. The method according to claim 1, characterized in that The text line with the preset format feature is: a text line in which words and numbers are located at both ends of the text line respectively and contains preset characters.

3. The method according to claim 1, characterized in that The step of dividing the to-be-processed document into a first document portion, a target identification document portion, and a second document portion comprises: Adding preset identification symbols to the head and tail of the target identification document part respectively; The to-be-processed document is divided into a first document portion, a target identification document portion, and a second document portion by means of the preset identification symbol.

4. The method according to claim 1, characterized in that: The step of setting page numbers for each document part in the document to be processed comprises: Display options for different page number formats in the first interactive interface; The user's selection result for the page number format option is obtained, and according to the selection result, page numbers of different formats are set for each document part in the document to be processed.

5. The method according to claim 1, characterized in that When the user's selection result for the page number format option is not obtained, the method further includes: Obtaining the page number format setting result for each document part input by the user in the second interactive interface; The step of setting page numbers for each document part in the document to be processed comprises: According to the page number format setting result, page numbers of different formats are set for each document part in the document to be processed.

6. The method according to claim 3, characterized in that The document part includes: a cover part, a directory document part, and a body part. When the first document part is the cover part, the step of setting page numbers for each document part in the document to be processed includes: The page number of the cover portion is set to a default value, and the default value is used to indicate that no page number is added to the current document portion.

7. A document page number setting device, characterized in that: Applied to electronic equipment, the device comprises: A first acquisition module is used to acquire a document to be processed, wherein the document to be processed is an electronic document for which page numbers are to be set; The first determination module is used to read the domain code in the document to be processed, and determine the target identification document part in the document to be processed according to the domain code; or, analyze the text line with the preset format feature in the document to be processed, and determine the text line with the preset format feature as the target identification document part in the document to be processed; wherein the target identification document part includes: a directory; A second determination module is used to divide the to-be-processed document into a first document part, a target identification document part, and a second document part according to the determined target identification document part, wherein the first document part is a part of the to-be-processed document located before the target identification document part, and the second document part is a part located after the target identification document part; The setting module is used to set page numbers for each document part in the document to be processed.

8. The device according to claim 7, characterized in that The text line with the preset format feature is: a text line in which words and numbers are located at both ends of the text line respectively and contains preset characters.

9. The device according to claim 7, characterized in that The second determining module includes: An adding submodule, used for adding preset identification symbols at the head and tail of the target identification document part respectively; The division submodule is used to divide the document to be processed into a first document part, a target identification document part, and a second document part according to the preset identification symbol.

10. The device according to claim 7, characterized in that The setting module includes: A display submodule, used to display options of different page number formats in the first interactive interface; A submodule is set up to obtain the user's selection result for the page number format option, and to set page numbers of different formats for each document part in the document to be processed according to the selection result.

11. The device according to claim 7, characterized in that The device also includes: A second acquisition module, used to acquire the page number format setting result for each document part input by the user in the second interactive interface; The setting module is specifically used for: According to the page number format setting result, page numbers of different formats are set for each document part in the document to be processed.

12. The device according to claim 9, characterized in that The document part includes: a cover part, a directory document part, and a body part. When the first document part is the cover part, the setting module is specifically used to: The page number of the cover portion is set to a default value, and the default value is used to indicate that no page number is added to the current document portion.

13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.