CN110956016A - Document content format adjusting method and device and electronic equipment - Google Patents
Document content format adjusting method and device and electronic equipment Download PDFInfo
- Publication number
- CN110956016A CN110956016A CN201811113240.7A CN201811113240A CN110956016A CN 110956016 A CN110956016 A CN 110956016A CN 201811113240 A CN201811113240 A CN 201811113240A CN 110956016 A CN110956016 A CN 110956016A
- Authority
- CN
- China
- Prior art keywords
- format
- document
- content
- document content
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012790 confirmation Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 12
- 230000001960 triggered effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention provides a method for adjusting a document content format, which can acquire the document content of a target document, determine the document content type of the target document based on the acquired document content, determine the content format corresponding to the document content type of the target document according to the corresponding relation between the preset document content type and the content format, serve as the target content format, and adjust the format of the document content according to the target content format, so that a user does not need to manually adjust the content format of the target document or specially search a related document template, directly use the provided document content format, simplify the process of adjusting the document content format by the user, and improve the efficiency of adjusting the document content format.
Description
Technical Field
The present invention relates to the field of document editing technologies, and in particular, to a method and an apparatus for adjusting a document content format, and an electronic device.
Background
In daily work and learning processes, a user often needs to edit a document, and in some cases, when the user edits a specific type of document for the first time, the user does not know how to set a proper font format or layout format due to lack of knowledge about the specific type of document.
The inventor finds that the prior art at least has the following problems in the process of implementing the invention:
the process of manually adjusting the document format of the document or searching the document template for document editing by the user is complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method for adjusting a document content format, so as to simplify the document editing process of a user and improve the document editing efficiency. The specific technical scheme is as follows:
the invention provides a method for adjusting a document content format, which comprises the following steps:
acquiring document content of a target document;
determining the document content type of the target document based on the acquired document content;
determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
and adjusting the format of the document content according to the target content format.
Further, the determining the document content type of the target document based on the obtained document content includes:
extracting target characteristic words existing in a preset word bank from the obtained document content;
determining the document content type corresponding to the target characteristic word according to the corresponding relation between each characteristic word in the preset word bank and the document content type;
and determining the document content type of the target document based on the document content type corresponding to the target characteristic word.
Further, the method further comprises:
when receiving an operation of adding a custom characteristic word, displaying first prompt information, wherein the first prompt information is used for prompting selection of a document content type corresponding to the custom characteristic word;
when the document content type corresponding to the user-defined characteristic word is confirmed, popping up a characteristic word adding box;
acquiring a phrase input in the feature word adding frame;
and adding the obtained word group as a user-defined characteristic word into a preset word stock.
Further, the extracting target feature words existing in a preset word bank from the obtained document content includes:
extracting each characteristic word existing in a preset word stock from the document content based on the document content;
counting the quantity of each feature word extracted from the document content;
and determining the feature word with the largest quantity in all the feature words extracted from the document content as a target feature word.
Further, the determining the document content type of the target document based on the obtained document content includes:
sending the obtained document content to a server;
and receiving the document content type of the document content sent by the server as the document content type of the target document.
Further, before the adjusting the format of the document content according to the target content format, the method further includes:
displaying prompt information, wherein the prompt information is used for describing the target content format and prompting whether the target content format is selected;
and after receiving the confirmation operation of selecting the target content format, executing the step of adjusting the format of the document content according to the target content format.
Further, the method further comprises:
when receiving an operation of adding a custom content format, displaying second prompt information, wherein the second prompt information is used for prompting to select a document content type corresponding to the custom content format;
when the document content type corresponding to the self-defined content format is confirmed, showing each format setting option of the content format;
and when the displayed format setting options are determined, taking the content format with the format setting completed as the self-defined content format.
The implementation of the invention also provides a device for adjusting the document content format, which comprises:
the content acquisition module is used for acquiring the document content of the target document;
the type determining module is used for determining the document content type of the target document based on the acquired document content;
the format determining module is used for determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
and the format adjusting module is used for adjusting the format of the document content according to the target content format.
Further, the type determining module is specifically configured to extract target feature words existing in a preset word bank from the acquired document content, determine a document content type corresponding to the target feature words according to a correspondence between each feature word in the preset word bank and the document content type, and determine the document content type of the target document based on the document content type corresponding to the target feature words.
Further, the device for adjusting the document content format further includes:
the first display module is used for displaying first prompt information when receiving an operation of adding a custom characteristic word, wherein the first prompt information is used for prompting to select a document content type corresponding to the custom characteristic word;
the added frame popup module is used for popping up a characteristic word added frame when the document content type corresponding to the self-defined characteristic word is confirmed;
the phrase acquisition module is used for acquiring the phrases input in the characteristic word adding frame;
and the phrase adding module is used for adding the obtained phrases as the user-defined characteristic words into a preset word stock.
Further, the type determining module is specifically configured to extract, based on the document content, each feature word existing in a preset word bank from the document content, count the number of each feature word extracted from the document content, and determine, as a target feature word, a feature word with the largest number among the feature words extracted from the document content.
Further, the type determining module is specifically configured to send the obtained document content to a server, and receive a document content type of the document content sent by the server as a document content type of the target document.
Further, before the format adjustment module, the apparatus further includes: the second display module is used for displaying prompt information, wherein the prompt information is used for describing the target content format and prompting whether the target content format is selected or not;
the format adjusting module is specifically configured to execute the step of adjusting the format of the document content according to the target content format after receiving a confirmation operation of selecting the target content format.
Further, the device for adjusting the document content format further includes:
the third display module is used for displaying second prompt information when receiving an operation of adding a custom content format, wherein the second prompt information is used for prompting to select a document content type corresponding to the custom content format;
the fourth display module is used for displaying each format setting option of the content format when the document content type corresponding to the self-defined content format is confirmed;
and the custom format determining module is used for taking the content format with the format setting completed as the custom content format when each displayed format setting option is determined.
The implementation of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for completing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the method for adjusting the content format of a document according to any one of the preceding claims when executing the program stored in the memory.
The present invention also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above methods for adjusting a document content format are implemented.
The embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above adjusting methods for the document content format.
The method for adjusting the document content format provided by the embodiment of the invention obtains the document content of the target document, determines the document content type of the target document based on the obtained document content, determines the content format corresponding to the document content type of the target document according to the corresponding relation between the preset document content type and the content format, and adjusts the format of the document content as the target content format according to the target content format, so that a user does not need to manually adjust the content format of the target document or specially search a related document template, the provided document content format is directly used, the process of adjusting the document content format by the user is simplified, and the efficiency of adjusting the document content format is improved.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart of a method for adjusting a document content format according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an apparatus for adjusting a document content format according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for simplifying a document editing process of a user and improving document editing efficiency, embodiments of the present invention provide a method, an apparatus, and an electronic device for adjusting a document content format, and a preferred embodiment of the present invention is described below with reference to the drawings in the specification. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In an embodiment of the present invention, there is provided a method for adjusting a document content format, as shown in fig. 1, the method including:
s101: acquiring document content of a target document;
in this step, the document content of the target document is obtained, and the document content may be the document content of the target document, such as the document name, the document title, and the document body.
S102: determining the document content type of the target document based on the acquired document content;
in this step, the document content type of the target document may be a lecture manuscript, a description, a presentation document, a magazine, or a test question, and specifically, the following two ways may be adopted to extract target feature words existing in a preset lexicon from the obtained document content:
the first mode is as follows: in an embodiment of the present invention, after the document content is obtained, each feature word included in the document content is obtained through matching between each character in the document content and each feature word in the preset lexicon, and the number of occurrences of each feature word in the document content is counted, and the feature word with the highest number of occurrences is used as the target feature word of the document content, for example, when a "presentation" phrase appears in the document title of the target document, determining the target characteristic word as 'demonstration', for example, when a 'speech' phrase appears in the document content of the target document for multiple times, determining the target characteristic word of the document content as 'speech';
determining the document content type corresponding to the target characteristic word according to the corresponding relation between each characteristic word in the preset word bank and the document content type, for example, when the target characteristic word is 'speech', the document content type corresponding to the characteristic word 'speech' is a speech manuscript according to the corresponding relation between each characteristic word in the preset word bank and the document content type;
and determining the document content type of the target document based on the document content type corresponding to the target characteristic word, for example, when the document content type corresponding to the characteristic word "lecture" is determined as a lecture manuscript, determining the document content type of the target document as the lecture manuscript.
In the second mode, the acquired document content may be sent to a server, and the document content type of the document content sent by the server is received as the document content type of the target document, it should be noted that the server may be an AI (Artificial Intelligence) server, and the document content type of the document content of the target document may be determined quickly and accurately by identifying the document content by the AI server.
S103: determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
in this step, a one-to-one correspondence relationship has been established in advance for a document content type and a content format, one document content type corresponds to one content format, for example, when it is determined that the document content type is "thesis", the format of the first-level title of the corresponding content format is "third song body, centered, thickened", and the format of the second-level title is "small fourth, song body, thickened", and the content style is the target content format, preferably, in this step, the content format includes some line rules of a specific document or templates providing corresponding line rules, for example, when it is determined that the document content type is "notification", the corresponding content format includes a "XXX notification" word sample centered and darkened at the title, which is convenient for a user to modify the "XXX" position.
S104: and displaying prompt information, wherein the prompt information is used for describing the target content format and prompting whether the target content format is selected.
In this step, a prompt message may be presented in a pop-up dialog selection box manner, where the prompt message may be used to describe a description of the target content format, and may also be used to prompt whether to select the target content format, so as to ensure that the target content format is required by the user, and after receiving a confirmation operation of selecting the target content format, step S105 is performed.
S105: and adjusting the format of the document content according to the target content format.
In this step, the document content is adjusted according to the determined target content format, for example, if the target content format is the format of the first-level title "three-size song body, centered, thickened", and the format of the second-level title "small four-size song body, bold", the first-level title and the second-level title corresponding to the document content are adjusted according to the corresponding format, and when the target content format is the line text rule of a specific document or a template providing the line text rule, the document content is correspondingly modified or added.
After the steps S101 to S105 are executed, the following steps may be executed to add the user-defined feature word:
s106: and when receiving an operation of adding the custom characteristic words, displaying first prompt information, wherein the first prompt information is used for prompting selection of the document content types corresponding to the custom characteristic words.
In this step, an operation of adding the user-defined feature word may be received by generating a feature word adding button, and when the feature word adding button is triggered, a first information display frame may be generated for displaying information for prompting selection of a document content type corresponding to the user-defined feature word.
S107: and when the document content type corresponding to the self-defined characteristic word is confirmed, popping up a characteristic word adding box.
In this step, after the document content type corresponding to the feature word to be added is determined, a feature word adding frame can be popped up, and the feature word adding frame can also have a prompt message for prompting to input the user-defined feature word.
S108: and acquiring the phrases input in the characteristic word adding frame.
In this step, a determination button may be generated, and when the determination button is triggered, the phrase input in the feature word addition box is acquired.
S109: and adding the obtained word group as a user-defined characteristic word into a preset word stock.
In this step, the obtained phrase may be added to a preset lexicon, and a corresponding relationship is generated between the phrase and the document content type determined in step S106. And/or the presence of a gas in the gas,
after the above steps S101 to S105 are performed, the following steps may be performed to add a custom content format:
s110: and when receiving the operation of adding the custom content format, displaying second prompt information, wherein the second prompt information is used for prompting to select the document content type corresponding to the custom content format.
In this step, the operation of adding the content format may be received by generating a content format adding button, and when the content format adding button is triggered, a second information display frame may be generated for displaying information for prompting selection of the document content type corresponding to the custom content format.
S111: when the document content type corresponding to the custom content format is confirmed, various format setting options of the content format are presented.
In this step, a dialog selection box may be popped up, and the dialog selection box may include selection buttons of various levels of title formats and main content formats.
S112: and when the displayed format setting options are determined, taking the content format with the format setting completed as the self-defined content format.
In this step, a determination button may be generated, and when the determination button is triggered, formats set in the selection buttons of the title formats and the main content formats at each level are recorded, and the content format in which the format setting is completed is used as a custom content format.
The method for adjusting the document content format provided by the embodiment of the invention can acquire the document content of the target document, determine the document content type of the target document based on the acquired document content, determine the content format corresponding to the document content type of the target document according to the corresponding relation between the preset document content type and the content format, serve as the target content format, and adjust the format of the document content according to the target content format, so that a user does not need to manually adjust the content format of the target document or specially search a related document template, directly use the provided document content format, simplify the process of adjusting the document content format by the user, and improve the efficiency of adjusting the document content format.
In addition, when receiving the operation of adding the self-defined characteristic words, displaying first prompt information which is used for prompting to select the document content types corresponding to the self-defined characteristic words, popping up the characteristic word adding frame when the document content types corresponding to the self-defined characteristic words are confirmed, acquiring the word groups input in the characteristic word adding frame, adding the acquired word groups as the self-defined characteristic words into a preset word stock, and/or when receiving the operation of adding the self-defined content format, displaying second prompt information which is used for prompting to select the document content types corresponding to the self-defined content format, and displaying each format setting option of the content format when the document content types corresponding to the self-defined content format are confirmed, so that a user can self-define the required characteristic words or content formats, the efficiency of adjusting the content format of the document is improved.
Based on the same inventive concept, according to the adjusting method of the document content format provided by the embodiment of the present invention, the embodiment of the present invention further provides an adjusting apparatus of the document content format, as shown in fig. 2, the apparatus includes:
a content obtaining module 201, configured to obtain document content of a target document;
a type determining module 202, configured to determine a document content type of the target document based on the obtained document content;
a format determining module 203, configured to determine, according to a preset correspondence between a document content type and a content format, a content format corresponding to the document content type of the target document, as a target content format;
and a format adjusting module 205, configured to adjust a format of the document content according to the target content format.
Further, the type determining module 202 is specifically configured to extract target feature words existing in a preset word bank from the acquired document content, determine a document content type corresponding to the target feature words according to a correspondence between each feature word in the preset word bank and the document content type, and determine the document content type of the target document based on the document content type corresponding to the target feature words.
Further, the device for adjusting the document content format further includes:
the first presentation module 206 is configured to, when receiving an operation of adding a custom feature word, present first prompt information, where the first prompt information is used to prompt a user to select a document content type corresponding to the custom feature word;
an add box pop-up module 207, configured to pop up a feature word add box when the type of the document content corresponding to the custom feature word is confirmed;
a phrase obtaining module 208, configured to obtain a phrase input in the feature word adding box;
and a phrase adding module 209, configured to add the obtained phrase as a custom feature word into a preset lexicon.
Further, the type determining module 202 is specifically configured to extract, based on the document content, each feature word existing in a preset word bank from the document content, count the number of each feature word extracted from the document content, and determine, as the target feature word, the feature word with the largest number of the feature words extracted from the document content.
Further, the type determining module 202 is specifically configured to send the obtained document content to a server, and receive a document content type of the document content sent by the server as a document content type of the target document.
Further, before the format adjusting module 205, the apparatus further includes: a second display module 204, configured to display a prompt message, where the prompt message is used to describe the target content format and prompt whether to select the target content format;
the format adjusting module 205 is specifically configured to, after receiving the confirmation operation of selecting the target content format, execute the step of adjusting the format of the document content according to the target content format.
Further, the device for adjusting the document content format further includes:
a third display module 210, configured to display second prompt information when an operation of adding a custom content format is received, where the second prompt information is used to prompt a user to select a document content type corresponding to the custom content format;
a fourth presentation module 211, configured to present each format setting option of the content format when the document content type corresponding to the custom content format is confirmed;
and a custom format determining module 212, configured to, when the presented format setting options are determined, take the content format with the format setting completed as a custom content format.
The embodiment of the present invention further provides an electronic device, as shown in fig. 3, which includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301, when executing the program stored in the memory 303, implements the following steps:
acquiring document content of a target document;
determining the document content type of the target document based on the acquired document content;
determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
and adjusting the format of the document content according to the target content format.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above methods for adjusting a document content format.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for adjusting the content format of any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (15)
1. A method for adjusting the content format of a document, the method comprising:
acquiring document content of a target document;
determining the document content type of the target document based on the acquired document content;
determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
and adjusting the format of the document content according to the target content format.
2. The method of claim 1, wherein the determining the document content type of the target document based on the obtained document content comprises:
extracting target characteristic words existing in a preset word bank from the obtained document content;
determining the document content type corresponding to the target characteristic word according to the corresponding relation between each characteristic word in the preset word bank and the document content type;
and determining the document content type of the target document based on the document content type corresponding to the target characteristic word.
3. The method of claim 2, further comprising:
when receiving an operation of adding a custom characteristic word, displaying first prompt information, wherein the first prompt information is used for prompting selection of a document content type corresponding to the custom characteristic word;
when the document content type corresponding to the user-defined characteristic word is confirmed, popping up a characteristic word adding box;
acquiring a phrase input in the feature word adding frame;
and adding the obtained word group as a user-defined characteristic word into a preset word stock.
4. The method according to claim 2, wherein the extracting target feature words existing in a preset lexicon from the obtained document content comprises:
extracting each characteristic word existing in a preset word stock from the document content based on the document content;
counting the quantity of each feature word extracted from the document content;
and determining the feature word with the largest quantity in all the feature words extracted from the document content as a target feature word.
5. The method of claim 1, wherein the determining the document content type of the target document based on the obtained document content comprises:
sending the obtained document content to a server;
and receiving the document content type of the document content sent by the server as the document content type of the target document.
6. The method of claim 1, prior to said adjusting the format of the document content in accordance with the target content format, further comprising:
displaying prompt information, wherein the prompt information is used for describing the target content format and prompting whether the target content format is selected;
and after receiving the confirmation operation of selecting the target content format, executing the step of adjusting the format of the document content according to the target content format.
7. The method of claim 1, further comprising:
when receiving an operation of adding a custom content format, displaying second prompt information, wherein the second prompt information is used for prompting to select a document content type corresponding to the custom content format;
when the document content type corresponding to the self-defined content format is confirmed, showing each format setting option of the content format;
and when the displayed format setting options are determined, taking the content format with the format setting completed as the self-defined content format.
8. An apparatus for adjusting a document content format, the apparatus comprising:
the content acquisition module is used for acquiring the document content of the target document;
the type determining module is used for determining the document content type of the target document based on the acquired document content;
the format determining module is used for determining a content format corresponding to the document content type of the target document as a target content format according to a preset corresponding relation between the document content type and the content format;
and the format adjusting module is used for adjusting the format of the document content according to the target content format.
9. The apparatus according to claim 8, wherein the type determining module is specifically configured to extract a target feature word existing in a preset lexicon from the obtained document content, determine a document content type corresponding to the target feature word according to a correspondence between each feature word in the preset lexicon and the document content type, and determine the document content type of the target document based on the document content type corresponding to the target feature word.
10. The apparatus of claim 9, further comprising:
the first display module is used for displaying first prompt information when receiving an operation of adding a custom characteristic word, wherein the first prompt information is used for prompting to select a document content type corresponding to the custom characteristic word;
the added frame popup module is used for popping up a characteristic word added frame when the document content type corresponding to the self-defined characteristic word is confirmed;
the phrase acquisition module is used for acquiring the phrases input in the characteristic word adding frame;
and the phrase adding module is used for adding the obtained phrases as the user-defined characteristic words into a preset word stock.
11. The apparatus according to claim 9, wherein the type determining module is specifically configured to extract, based on the document content, each feature word existing in a preset lexicon from the document content, count the number of each feature word extracted from the document content, and determine, as the target feature word, a feature word with a largest number of feature words extracted from the document content.
12. The apparatus according to claim 8, wherein the type determining module is specifically configured to send the obtained document content to a server, and receive a document content type of the document content sent by the server as the document content type of the target document.
13. The apparatus of claim 8, wherein the format adjustment module is preceded by: the second display module is used for displaying prompt information, wherein the prompt information is used for describing the target content format and prompting whether the target content format is selected or not;
the format adjusting module is specifically configured to execute the step of adjusting the format of the document content according to the target content format after receiving a confirmation operation of selecting the target content format.
14. The apparatus of claim 8, further comprising:
the third display module is used for displaying second prompt information when receiving an operation of adding a custom content format, wherein the second prompt information is used for prompting to select a document content type corresponding to the custom content format;
the fourth display module is used for displaying each format setting option of the content format when the document content type corresponding to the self-defined content format is confirmed;
and the custom format determining module is used for taking the content format with the format setting completed as the custom content format when each displayed format setting option is determined.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811113240.7A CN110956016B (en) | 2018-09-25 | 2018-09-25 | Document content format adjusting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811113240.7A CN110956016B (en) | 2018-09-25 | 2018-09-25 | Document content format adjusting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110956016A true CN110956016A (en) | 2020-04-03 |
CN110956016B CN110956016B (en) | 2024-03-22 |
Family
ID=69962147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811113240.7A Active CN110956016B (en) | 2018-09-25 | 2018-09-25 | Document content format adjusting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110956016B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111831460A (en) * | 2020-06-30 | 2020-10-27 | 江西科技学院 | Text copying and pasting method and system and readable storage medium |
CN111984589A (en) * | 2020-08-14 | 2020-11-24 | 维沃移动通信有限公司 | Document processing method, document processing device and electronic equipment |
CN112464907A (en) * | 2020-12-17 | 2021-03-09 | 广东电网有限责任公司 | Document processing system and method |
CN112861470A (en) * | 2020-05-09 | 2021-05-28 | 珠海金山办公软件有限公司 | Method, device, equipment and storage medium for setting official document title format |
CN113221515A (en) * | 2021-05-31 | 2021-08-06 | 工银科技有限公司 | Online document editing method, device and system |
CN113515918A (en) * | 2021-06-30 | 2021-10-19 | 珠海金山办公软件有限公司 | Data specification method and device of electronic document, electronic equipment and storage medium |
CN113935281A (en) * | 2021-10-08 | 2022-01-14 | 珠海金山办公软件有限公司 | Typesetting method, typesetting device, electronic equipment and computer-readable storage medium |
CN114048712A (en) * | 2021-10-29 | 2022-02-15 | 珠海金山办公软件有限公司 | Method and device for generating official document |
CN117829116A (en) * | 2023-12-27 | 2024-04-05 | 青矩技术股份有限公司 | Document adjustment method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622437A (en) * | 2012-03-01 | 2012-08-01 | 深圳市同洲电子股份有限公司 | Method and system for supporting remote document conversion by browsers |
CN104765717A (en) * | 2014-01-08 | 2015-07-08 | 北大方正集团有限公司 | Method and device for mass document format conversion |
CN105701082A (en) * | 2016-01-13 | 2016-06-22 | 刘敏 | Automatic typesetting method and system for presentation document |
CN105824786A (en) * | 2015-01-05 | 2016-08-03 | 珠海金山办公软件有限公司 | Electronic document generating method and device |
CN106202005A (en) * | 2015-05-08 | 2016-12-07 | 珠海金山办公软件有限公司 | A kind of web page conversion method and device |
CN107256234A (en) * | 2017-05-18 | 2017-10-17 | 腾讯科技(深圳)有限公司 | A kind of web page text method of adjustment and its equipment |
CN107918602A (en) * | 2017-09-30 | 2018-04-17 | 江苏睿泰数字产业园有限公司 | Method for the typesetting of digital publication pattern and with automatic adaptation |
CN108572944A (en) * | 2017-11-24 | 2018-09-25 | 北京金山云网络技术有限公司 | A kind of document structure tree method, apparatus, electronic equipment and storage medium |
-
2018
- 2018-09-25 CN CN201811113240.7A patent/CN110956016B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622437A (en) * | 2012-03-01 | 2012-08-01 | 深圳市同洲电子股份有限公司 | Method and system for supporting remote document conversion by browsers |
CN104765717A (en) * | 2014-01-08 | 2015-07-08 | 北大方正集团有限公司 | Method and device for mass document format conversion |
CN105824786A (en) * | 2015-01-05 | 2016-08-03 | 珠海金山办公软件有限公司 | Electronic document generating method and device |
CN106202005A (en) * | 2015-05-08 | 2016-12-07 | 珠海金山办公软件有限公司 | A kind of web page conversion method and device |
CN105701082A (en) * | 2016-01-13 | 2016-06-22 | 刘敏 | Automatic typesetting method and system for presentation document |
CN107256234A (en) * | 2017-05-18 | 2017-10-17 | 腾讯科技(深圳)有限公司 | A kind of web page text method of adjustment and its equipment |
CN107918602A (en) * | 2017-09-30 | 2018-04-17 | 江苏睿泰数字产业园有限公司 | Method for the typesetting of digital publication pattern and with automatic adaptation |
CN108572944A (en) * | 2017-11-24 | 2018-09-25 | 北京金山云网络技术有限公司 | A kind of document structure tree method, apparatus, electronic equipment and storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112861470A (en) * | 2020-05-09 | 2021-05-28 | 珠海金山办公软件有限公司 | Method, device, equipment and storage medium for setting official document title format |
CN112861470B (en) * | 2020-05-09 | 2024-06-25 | 珠海金山办公软件有限公司 | Setting method, device, equipment and storage medium for document title format |
CN111831460A (en) * | 2020-06-30 | 2020-10-27 | 江西科技学院 | Text copying and pasting method and system and readable storage medium |
CN111831460B (en) * | 2020-06-30 | 2023-06-16 | 江西科技学院 | Text copying and pasting method, system and readable storage medium |
CN111984589A (en) * | 2020-08-14 | 2020-11-24 | 维沃移动通信有限公司 | Document processing method, document processing device and electronic equipment |
CN112464907A (en) * | 2020-12-17 | 2021-03-09 | 广东电网有限责任公司 | Document processing system and method |
CN113221515A (en) * | 2021-05-31 | 2021-08-06 | 工银科技有限公司 | Online document editing method, device and system |
CN113515918A (en) * | 2021-06-30 | 2021-10-19 | 珠海金山办公软件有限公司 | Data specification method and device of electronic document, electronic equipment and storage medium |
CN113935281A (en) * | 2021-10-08 | 2022-01-14 | 珠海金山办公软件有限公司 | Typesetting method, typesetting device, electronic equipment and computer-readable storage medium |
CN114048712A (en) * | 2021-10-29 | 2022-02-15 | 珠海金山办公软件有限公司 | Method and device for generating official document |
CN117829116A (en) * | 2023-12-27 | 2024-04-05 | 青矩技术股份有限公司 | Document adjustment method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110956016B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110956016B (en) | Document content format adjusting method and device and electronic equipment | |
CN107766482B (en) | Information pushing and sending method, device, electronic equipment and storage medium | |
US20160117405A1 (en) | Information Processing Method and Apparatus | |
CN112233669B (en) | Lecture content prompting method and system | |
CN110187780B (en) | Long text prediction method, long text prediction device, long text prediction equipment and storage medium | |
CN106959976B (en) | Search processing method and device | |
CN109979450B (en) | Information processing method and device and electronic equipment | |
CN108664471B (en) | Character recognition error correction method, device, equipment and computer readable storage medium | |
US10242033B2 (en) | Extrapolative search techniques | |
CN109326284B (en) | Voice search method, apparatus and storage medium | |
WO2014205232A1 (en) | Language input method editor to disambiguate ambiguous phrases via diacriticization | |
US9773038B2 (en) | Apparatus and method for starting up software | |
CN111124925B (en) | Scene extraction method, device, equipment and storage medium based on big data | |
CN111046627B (en) | Chinese character display method and system | |
WO2022166962A1 (en) | Method and apparatus for processing minutes, device, and storage medium | |
CN108052686A (en) | A kind of abstract extraction method and relevant device | |
US20180032500A1 (en) | Defluffing and fluffing of phrases during communication between individuals | |
CN112487138A (en) | Information extraction method and device for formatted text | |
JP2022511139A (en) | Information processing methods, devices and storage media | |
CN113360127B (en) | Audio playing method and electronic equipment | |
CN112784527B (en) | Document merging method and device and electronic equipment | |
CN111831823B (en) | Corpus generation and model training method | |
CN114155841A (en) | Voice recognition method, device, equipment and storage medium | |
CN114547059A (en) | Platform data updating method and device and computer equipment | |
US9292624B2 (en) | String generation tool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |