Document information display method, device, terminal and storage medium
By displaying the number and type information of the document in the document identification, the problem that document identification cannot be effectively managed and searched in the prior art is solved, and more efficient document information acquisition and management is achieved.
Patent Information
- Application Number
- CN202110232006.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-02
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-03-02
AI Technical Summary
Existing document identifiers only display format information and cannot effectively help users manage and find documents, especially when documents are in the same format.
By determining the number of blocks and block types in the document, the corresponding information is displayed in the document identification based on this information, thereby increasing the display value of the document identification, so that users can understand its information structure without previewing or clicking to enter the document.
This improves the display value of document identification, so users can more easily determine whether a document is an object to be found, improving the efficiency of document management and search.
Smart Images

Figure CN114997106B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information technology, and in particular to a method and device for displaying document information, a terminal, and a storage medium. Background Art
[0002] When users manage document pages, they usually display the document title and its identifier and other related information so that users can better search and manage. The current document identifier usually reflects the format of the corresponding document, such as PDF or Word, or directly displays the document homepage as the identifier. This document identifier does not provide enough helpful information to help users manage and search for documents, and further improvements are expected. Summary of the invention
[0003] In order to solve the existing problems, the present disclosure provides a method and device for displaying document information, a terminal and a storage medium.
[0004] The present disclosure adopts the following technical solutions.
[0005] An embodiment of the present disclosure provides a method for displaying document information, the method comprising: determining the number of blocks and block types of blocks in a document; and based on the number of blocks and block types of the blocks, displaying information corresponding to the number of blocks and the block type in a document identifier.
[0006] Another embodiment of the present disclosure provides a device for displaying document information, the display device comprising: a block quantity and type determination module, configured to determine the block quantity and block type of blocks in a document; an information display module, configured to display information corresponding to the block quantity and block type in a document identifier based on the block quantity and block type of the blocks.
[0007] In some embodiments, the present disclosure provides a terminal, including: at least one memory and at least one processor; wherein the memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above-mentioned document information display method.
[0008] In some embodiments, the present disclosure provides a storage medium, wherein the storage medium is used to store program code, and the program code is used to execute the above-mentioned document information display method.
[0009] In some embodiments of the present disclosure, the display style of the document identifier is determined based on the number of blocks and the block type of the block, thereby improving the display value of the document identifier. The user can know the corresponding information of the document in advance without previewing or clicking to enter the document page, and then judge the information structure of the document page and determine whether the document is the object to be found, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0011] Figure 1 The following is a flowchart of a method for displaying document information according to an embodiment of the present disclosure.
[0012] Figure 2 A flowchart of a method for displaying document information according to another embodiment of the present disclosure is shown.
[0013] Figure 3 It is a partial module of a device for displaying document information according to another embodiment of the present disclosure.
[0014] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0016] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in sequence and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0017] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0019] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that it should be understood as “one or more” unless otherwise clearly indicated in the context.
[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0021] Current document identifiers usually display format information, for example, PDF or Word can be seen from the identifier. Users can only know what format the document is from this type of identifier, and cannot help users quickly manage and find documents, especially when all documents are in the same format.
[0022] like Figure 1 As shown, an embodiment of the present disclosure provides a flow chart of a method for displaying document information. The method for displaying document information of the present disclosure may include step S101, determining the number of blocks and block types of blocks in a document. In an embodiment of the present disclosure, a document may be a document in various formats, including but not limited to PDF documents, word documents, and online documents. In an embodiment of the present disclosure, a block refers to a unit in a document for carrying content, and a block may refer to one or more paragraphs of content. In an embodiment of the present disclosure, a block type includes any suitable block type, including but not limited to a text block, a title block, a project list block, a sequence list block, a target list block, a to-do list block, an image block, and a quote block.
[0023] In some embodiments, a text block may be a block including an entire paragraph of text. In some embodiments, a title block may be a block including a text title. In some embodiments, a project list block may be a text presenting project content. In some embodiments, a sequence list block may refer to a text embodying sequential steps. In some embodiments, a target list block may refer to a text presenting multiple target projects. In some embodiments, a to-do list block may refer to a list stating multiple to-do items. In some embodiments, an image block may be a block displaying an image. In some embodiments, a quote block may refer to a text presenting the content. It should be understood that this is merely exemplary, and block types may be divided into other suitable types according to other rules.
[0024] In some embodiments, the method for displaying document information of the present disclosure may further include step S102, displaying information corresponding to the number of blocks and the type of blocks in the document identifier based on the number of blocks and the type of blocks in the block. In some embodiments, the document identifier refers to the icon of the document. In some embodiments, the information corresponding to the number of blocks and the type of blocks is displayed in the document identifier, and generally, the document identifier displays the format of the document. The embodiments of the present disclosure enable the document identifier to reflect more information of the document by displaying information corresponding to the number of blocks and the type of blocks in the document identifier, which provides users with reference and helps to find and manage corresponding documents. In some embodiments, the display style of the document identifier is determined according to the number of blocks and the type of blocks in the block, thereby improving the display value of the document identifier. The user does not need to preview or click to enter the document page to know the corresponding information of the document in advance, and then judge the information structure of the document page, determine whether the document is the object to be found, and improve the user experience.
[0025] In some embodiments, the method for displaying document information of the present disclosure further includes: determining whether there is a picture in the document, and when there is a picture, displaying the associated information of the picture in the document identifier. In some embodiments, the picture refers to a picture in a predetermined position picture component of the document, and the picture component is used to insert pictures. For example, the component can be located at the top, middle, bottom or any position where a picture can be inserted in the document. Therefore, when a picture is inserted into the picture component in the document, the associated information of the picture is displayed in the document identifier. In some embodiments, the associated information of the picture includes a scaled-down picture. The picture is easy for the user to identify. By displaying the picture at the top of the document in the document identifier, it is easier for the user to know the content of the document inside, thereby providing the user with more reference information.
[0026] In some embodiments, determining whether there is a picture in a document includes: determining whether there is a picture in a preset component at a predetermined position in the document. In some embodiments, the predetermined position may include the top of the document, in particular, the central position at the top of the document. In some embodiments, the preset component may include a picture component. In some embodiments, when there is a picture, displaying the associated information of the picture in the document identification includes: displaying the associated information of the picture at a position corresponding to the predetermined position in the document identification. In this way, information corresponding to the position of the picture of the document can also be displayed in the document identification, providing users with more document information and facilitating users' search and management of documents.
[0027] In some embodiments, the image in the image component of the document can change the width of the image according to the corresponding adjustment instructions. In response to the change in the width of the image in the image component, the display ratio of the associated information of the image in the document identification can be adjusted. For example, the width and height of the associated information can be adjusted or the associated information can be scaled as a whole.
[0028] In some embodiments, determining whether there is a picture in the document includes: determining whether there is a picture with predetermined attribute information in the document. In some embodiments, the predetermined attribute information is similar to file information, and may include creator, creation time, and / or content information, etc. In some embodiments, when there is a picture, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture matching the predetermined attribute information in the document identifier. In this way, the pictures of the document can be filtered and displayed, and only the pictures with predetermined attribute information are displayed, which facilitates the search and filtering of the document.
[0029] In some embodiments, the method for displaying document information of the present disclosure further includes: in response to detecting a change in the number of blocks and the type of blocks in the document, updating the information displayed by the document identifier based on the changed number of blocks and the type of blocks. In some embodiments, as the document content is modified or updated, it is necessary to update the document identifier information based on the modified content so that the document identifier information remains consistent with the document content. In some embodiments, the document may include an online document with an online collaborative nature, and after the document is updated by another authorized user, the local document page will undergo corresponding changes. In some embodiments, after the document changes due to collaboration or other reasons, the document identifier also changes accordingly, so that it can maintain a high degree of consistency with the document content and improve the accuracy of the document identifier content.
[0030] In some embodiments, determining the number of blocks and the block type of blocks in the document includes determining the block type of the block with the largest number of blocks, that is, determining the number of blocks corresponding to each block type in the document, and determining the type of the block with the largest number of blocks as the required block type. Optionally, the block type of the block with the largest number of blocks can also be determined from the first N blocks of the document. In some embodiments, N is a positive integer greater than or equal to 3.
[0031] In some embodiments, determining the block number and block type of the blocks in the document includes determining the block type of the blocks whose block number is greater than a preset value, that is, determining the block number corresponding to each block type in the document, and determining the type whose block number is greater than the preset value as the required block type. In some embodiments, the preset value can be set by the system by default and can be changed by the user. In some embodiments, when there are more than two block types that meet the conditions, the more than two block types are determined as the required block types.
[0032] In some embodiments, determining the number of blocks and the block type of blocks in the document includes determining the block type of blocks whose number of blocks is greater than a preset value in the first N blocks, that is, determining the number of blocks corresponding to each block type in the first N blocks, and determining the type whose number of blocks is greater than the preset value as the required block type. In some embodiments, N is greater than the preset value. In some embodiments, N is a positive integer greater than or equal to 3. In some embodiments, N is an integer from 3 to 20.
[0033] In some embodiments, based on the block number and block type of the block, information corresponding to the block number and block type is displayed in the document identifier, including: based on the determined block type of the block, information corresponding to the block type is displayed in the document identifier. After the corresponding block type is determined, the information corresponding to the block type is displayed in the document identifier, so that the document identifier provides corresponding reference information for the user. For example, when the largest number of block types is a text block, the block information of the corresponding text block can be displayed in the document identifier. In this way, the corresponding block information of the largest number of block types in the document is displayed on the identifier, which can more fully reflect the content of the document, so that more information about the document can be obtained without previewing or entering the document, which is convenient for managing and searching the document.
[0034] In some embodiments, when there are more than two block types that meet the condition, the two or more block types are determined as the required block types. At this time, information corresponding to the two or more block types can be displayed in the document identifier.
[0035] In some embodiments, based on the block quantity and block type of the block, displaying information corresponding to the block quantity and block type in the document identifier includes: when it is determined that the block type of the block does not exist, displaying preset information in the document identifier.
[0036] In some embodiments, when there is no block type with the largest number, the block information corresponding to the preset block type is displayed in the document identifier. For example, assuming that N is 10, when both block types are 5, the number of the two block types is the same, and the block information corresponding to the preset block type can be displayed. In some embodiments, the preset block type can be one of the block types with the same number, or it can be a default block type. For example, a text block can be set as the default block type, and the user can preset it in the corresponding application or system.
[0037] Therefore, the display style of the document identifier is determined according to the different types of blocks, which improves the display value of the document identifier. Users can know the main block types of the document in advance without previewing or clicking to enter the document page, and then judge the information structure of the document page and determine whether the document is the object to be found, thereby improving the efficiency of users in finding and managing documents.
[0038] In some embodiments, before determining the number of blocks and block types of the document, it is determined whether there is a picture in the document, and when there is a picture, the associated information of the picture is displayed in the document identifier. Figure 2 , the method for displaying document information of an embodiment of the present disclosure includes the following steps. In step S201, determine whether there is a picture in the document. In step S202, when there is a picture, display the associated information of the picture in the document identifier. In step S203, when there is no picture in the document, determine the number of blocks and block types of the document. In step S204, based on the determined block type of the block, display information corresponding to the block type in the document identifier. In step S205, when it is determined that the block type of the block does not exist, display preset information in the document identifier. Figure 2 For more information, please refer to Figure 1 The execution order of S201 and S203 is not limited here, and the two can be executed successively or simultaneously; when they are executed successively, S201 can be executed first and S203 can be executed later, or S203 can be executed first and S201 can be executed later.
[0039] In some embodiments, the block information includes block type information and block content information. In this way, through the block information, the corresponding block type and the content of the corresponding block in the document can be known, which is convenient for providing users with more reference information, such as the length of the block content. In some embodiments, the length information of the corresponding block content is reflected by the length of the horizontal columnar bar or the vertical columnar bar. For example, a longer length indicates that the content of the block is longer. In some embodiments, the block type information is characterized by an identifier. For example, the project list block and the target list block are reflected by "·". At this time, if there is an identifier "·" before the block, the block type that meets the corresponding conditions in the document can be known. For example, a sequential number can be used to reflect the sequential list block. Similarly, the corresponding identifier can be used to correspond to the corresponding block type, so that when the user sees the identifier on the identifier and the length of the columnar bar, the block type with the largest number and the length of the corresponding block content in the document are known, which is convenient for the user to know whether the document is a document that needs to be found or managed.
[0040] In some embodiments, when the document is a blank document, the document identifier is a blank identifier. In this way, when the user sees that the document identifier is blank, the user can intuitively know that the document is a blank document without having to enter the document to confirm.
[0041] The embodiment of the present disclosure also provides a display device 300 for document information. The display device 300 for document information includes a block number and type determination module 301 and an information display module 302. In some embodiments, the block number and type determination module 301 is configured to determine the block number and block type of a block in a document. In some embodiments, the information display module 302 is configured to display information corresponding to the block number and block type in a document identifier based on the block number and block type of the block.
[0042] It should be understood that the contents described about the method for displaying document information are also applicable to the device 300 for displaying document information herein, and for the sake of simplicity, a detailed description is not given here.
[0043] In some embodiments, the method for displaying document information further includes: determining whether there is a picture in the document, and when there is a picture, displaying the associated information of the picture in the document identifier. In some embodiments, the determining whether there is a picture in the document includes: determining whether there is a picture in a preset component at a predetermined position in the document; when there is a picture, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture at a position corresponding to the predetermined position in the document identifier. In some embodiments, determining whether there is a picture in the document includes: determining whether there is a picture with predetermined attribute information in the document; when there is a picture, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture matching the predetermined attribute information in the document identifier. In some embodiments, the display method further includes: in response to detecting a change in the number of blocks and the type of blocks in the document, updating the information displayed by the document identifier based on the changed number of blocks and the type of blocks. In some embodiments, determining the number of blocks and the type of blocks in a document includes: determining the type of blocks with the largest number of blocks; or determining the type of blocks with a number of blocks greater than a preset value; or determining the type of blocks with a number of blocks greater than a preset value among the first N blocks. In some embodiments, based on the number of blocks and the type of blocks, displaying information corresponding to the number of blocks and the type of blocks in the document identifier includes: based on the determined type of blocks, displaying information corresponding to the type of blocks in the document identifier. In some embodiments, based on the number of blocks and the type of blocks, displaying information corresponding to the number of blocks and the type of blocks in the document identifier includes: when it is determined that the type of blocks does not exist, displaying preset information in the document identifier. In some embodiments, the information includes block type information and information about the content of the blocks. In some embodiments, the block type information is characterized by an identifier. In some embodiments, when the document is a blank document, the document identifier is a blank identifier.
[0044] In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; wherein the memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above-mentioned document information display method.
[0045] In addition, the present disclosure also provides a computer storage medium, which stores program codes, and the program codes are used to execute the above-mentioned document information display method.
[0046] The document information display method and device of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
[0047] Reference below Figure 4, which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 400 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0048] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0049] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0050] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0051] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0052] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0053] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0054] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.
[0055] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0056] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0057] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.
[0058] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0059] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0060] According to one or more embodiments of the present disclosure, a method for displaying document information is provided, the method comprising: determining the number of blocks and block types of blocks in a document; and based on the number of blocks and block types of the blocks, displaying information corresponding to the number of blocks and the block type in a document identifier.
[0061] According to one or more embodiments of the present disclosure, the method further includes: determining whether there is a picture in the document, and when there is a picture, displaying the associated information of the picture in the document identifier.
[0062] According to one or more embodiments of the present disclosure, determining whether there is a picture in the document includes: determining whether there is a picture in a preset component at a predetermined position in the document; when the picture exists, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture at a position in the document identifier corresponding to the predetermined position.
[0063] According to one or more embodiments of the present disclosure, determining whether there is a picture in the document includes: determining whether there is a picture with predetermined attribute information in the document; when the picture exists, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture matching the predetermined attribute information in the document identifier.
[0064] According to one or more embodiments of the present disclosure, the display method further includes: in response to detecting a change in the number of blocks and the type of blocks in the document, updating the information displayed by the document identifier based on the changed number of blocks and the type of blocks.
[0065] According to one or more embodiments of the present disclosure, determining the block number and block type of the blocks in the document includes: determining the block type of the block with the largest number of blocks; or, determining the block type of the block with a number of blocks greater than a preset value; or, determining the block type of the block with a number of blocks greater than a preset value among the first N blocks.
[0066] According to one or more embodiments of the present disclosure, based on the block quantity and block type of the block, displaying information corresponding to the block quantity and block type in the document identifier includes: based on the determined block type of the block, displaying information corresponding to the block type in the document identifier.
[0067] According to one or more embodiments of the present disclosure, based on the block quantity and block type of the block, displaying information corresponding to the block quantity and block type in the document identifier includes: when it is determined that the block type of the block does not exist, displaying preset information in the document identifier.
[0068] According to one or more embodiments of the present disclosure, the information includes block type information and block content information.
[0069] According to one or more embodiments of the present disclosure, the block type information is represented by an identifier.
[0070] According to one or more embodiments of the present disclosure, when the document is a blank document, the document identifier is a blank identifier.
[0071] According to one or more embodiments of the present disclosure, a device for displaying document information is provided, the device comprising: a block quantity and type determination module, configured to determine the block quantity and block type of blocks in a document; and an information display module, configured to display information corresponding to the block quantity and block type in a document identifier based on the block quantity and block type of the blocks.
[0072] According to one or more embodiments of the present disclosure, a terminal is provided, comprising: at least one memory and at least one processor; wherein the at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the methods described above.
[0073] According to one or more embodiments of the present disclosure, a storage medium is provided, wherein the storage medium is used to store program code, and the program code is used to execute the above method.
[0074] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0075] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0076] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for displaying document information, characterized in that: The display method comprises: Determining the number of blocks and the block types of the blocks in the document, wherein determining the number of blocks and the block types of the blocks in the document includes: determining the block type of a block with the largest number of blocks; or determining the block type of a block with a number of blocks greater than a preset value; or determining the block type of a block with a number of blocks greater than a preset value among the first N blocks; Based on the block number and the block type of the block, information corresponding to the block number and the block type is displayed in the document identifier.
2. The method for displaying document information according to claim 1, characterized in that: Also includes: Determine whether there is a picture in the document, and if there is a picture, display the associated information of the picture in the document identifier.
3. The method for displaying document information according to claim 2, characterized in that: Determining whether there is a picture in the document includes: Determining whether there is an image in a preset component at a predetermined position in the document; When the picture exists, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture at a position corresponding to the predetermined position in the document identifier.
4. The method for displaying document information according to claim 2, characterized in that: Determining whether there is a picture in the document includes: Determining whether there is a picture with predetermined attribute information in the document; When the picture exists, displaying the associated information of the picture in the document identifier includes: displaying the associated information of the picture matching the predetermined attribute information in the document identifier.
5. The method for displaying document information according to claim 1, characterized in that: The display method further includes: In response to detecting a change in the number of blocks and the type of blocks in the document, the information displayed by the document identifier is updated based on the changed number of blocks and the type of blocks.
6. The method for displaying document information according to claim 1, characterized in that: Based on the block number and block type of the block, information corresponding to the block number and block type displayed in the document identifier includes: Based on the determined block type of the block, information corresponding to the block type is displayed in the document identifier.
7. The method for displaying document information according to claim 1, characterized in that: Based on the block number and block type of the block, information corresponding to the block number and block type displayed in the document identifier includes: When it is determined that the block type of the block does not exist, preset information is displayed in the document identifier.
8. The method for displaying document information according to claim 1, characterized in that: The information includes block type information and block content information.
9. The method for displaying document information according to claim 8, characterized in that: The block type information is represented by an identifier.
10. The method for displaying document information according to claim 1, characterized in that: When the document is a blank document, the document identifier is a blank identifier.
11. A document information display device, characterized in that: The display device comprises: A block number and type determination module is configured to determine the block number and block type of blocks in a document, wherein determining the block number and block type of the blocks in the document includes: determining the block type of a block with the largest number of blocks; or determining the block type of a block with a number of blocks greater than a preset value; or determining the block type of a block with a number of blocks greater than a preset value among the first N blocks; The information display module is configured to display information corresponding to the block number and block type in the document identifier based on the block number and block type of the block.
12. A terminal, comprising: at least one memory and at least one processor; The at least one memory is used to store program codes, and the at least one processor is used to call the program codes stored in the at least one memory to execute the method for displaying document information according to any one of claims 1 to 10.
13. A storage medium, the storage medium being used to store program codes, the program codes being used to execute the method for displaying document information according to any one of claims 1 to 10.
Citation Information
Patent Citations
File resource display method and apparatus, and corresponding intelligent device
CN107451139A
