CN109684613B - Method and device for displaying references in online document, storage medium and electronic equipment - Google Patents

Method and device for displaying references in online document, storage medium and electronic equipment Download PDF

Info

Publication number
CN109684613B
CN109684613B CN201811382919.6A CN201811382919A CN109684613B CN 109684613 B CN109684613 B CN 109684613B CN 201811382919 A CN201811382919 A CN 201811382919A CN 109684613 B CN109684613 B CN 109684613B
Authority
CN
China
Prior art keywords
document
display
display level
value
title
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.)
Active
Application number
CN201811382919.6A
Other languages
Chinese (zh)
Other versions
CN109684613A (en
Inventor
王梓铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811382919.6A priority Critical patent/CN109684613B/en
Publication of CN109684613A publication Critical patent/CN109684613A/en
Application granted granted Critical
Publication of CN109684613B publication Critical patent/CN109684613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Abstract

The present disclosure proposes a reference display method, a device, a storage medium and an electronic apparatus in an online document, the method comprising obtaining information of a reference document referenced in the online document; determining the display level of each reference document according to the information; constructing a reference relation between the online document and each reference document according to the display level; and displaying the reference relation. Through the method and the device, the presentation effect of the reference document can be effectively improved, the retrieval efficiency of the reference document is improved, and the use experience of a user is improved.

Description

Method and device for displaying references in online document, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to a method and a device for displaying references in an online document, a storage medium and electronic equipment.
Background
Users can send documents to other users using online editing tools and give them editing rights, and other users can edit a document at the same time. In addition to editing functions (e.g., bold, title, highlight), the user may reference other documents into a document by way of reference, thereby implementing a document index. Users with reading authority and editing authority can also comment in the document.
In the related art, when a user refers to a document, some documents referencing a large number of documents are encountered. When reading such documents, the reading user cannot quickly locate the required reference document, and the retrieval efficiency of the reference document is low.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
Therefore, the purpose of the present disclosure is to provide a method, a device, a storage medium and an electronic device for displaying a reference in an online document, which can effectively improve the presentation effect of the reference document, improve the retrieval efficiency of the reference document, and improve the user experience.
To achieve the above object, a method for displaying a reference in an online document according to an embodiment of a first aspect of the present disclosure includes: acquiring information of a cited document cited in an online document; determining the display level of each reference document according to the information; constructing a reference relation between the online document and each reference document according to the display level; and displaying the reference relation.
In one embodiment of the present disclosure, the display level includes: a first display level for indicating a display level of a title of each of the reference documents, the constructing a reference relationship between the online document and each of the reference documents according to the display level, comprising:
Determining the display size of each title according to the first display level and combining a first preset rule;
and constructing a reference relation between the online document and each reference document according to the display size of each title.
In one embodiment of the present disclosure, the display level includes: a second display level for indicating a display level of tag content associated with each of the reference documents, the constructing a reference relationship between the online document and each of the reference documents based on the display level, comprising:
determining target tag content associated with each reference document according to the second display level and in combination with a second preset rule;
and constructing a reference relation between the online document and each reference document according to the target tag content associated with each reference document.
In one embodiment of the present disclosure, the information includes at least one of: the number of times of being referred, the context recommended reading parameter, the reading authority, the editing authority and the collection number, wherein,
and determining a first display level of each reference document according to each piece of information and the weight value corresponding to each piece of information.
In one embodiment of the present disclosure, wherein,
and determining a second display level of each reference document according to each piece of information and the weight level corresponding to each piece of information, wherein the weight value is different from the actual value indicated by the weight level.
In one embodiment of the present disclosure, a direct proportional relationship is presented between the first display level and the display size of the title.
In one embodiment of the disclosure, the determining, according to the first display level, a display size of each title in combination with a first preset rule includes:
if the first display level indicates that the reference document has the highest weight value, determining that the display size of the title of the reference document is the maximum value of the default display size;
if the first display level indicates that the reference document has the lowest weight value, determining that the display size of the title of the reference document is the minimum value of the default display size;
if the first display level indicates that the reference document has a first weight value, calculating a scaling ratio, and determining the display size of the title according to the scaling ratio;
wherein the first weight value is between the lowest weight value and the highest weight value, and the scaling ratio is calculated by the following method:
Calculating a difference value between a highest weight value and a first weight value, calculating a ratio value between the difference value and the highest weight value, and taking the ratio value as the scaling ratio.
In one embodiment of the present disclosure, the determining the display size of the title according to the scaling ratio includes:
and taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title.
In one embodiment of the present disclosure, further comprising:
if the product value is greater than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title;
and if the product value is smaller than the minimum value of the default display size, taking the minimum value of the default display size as the display size of the title.
According to the reference display method in the online document, the information of the referenced documents in the online document is obtained, the display level of each referenced document is determined according to the information, the reference relation between the online document and each referenced document is constructed according to the display level, and the reference relation is displayed, so that the presentation effect of the referenced document can be effectively improved, the retrieval efficiency of the referenced document is improved, and the user experience is improved.
To achieve the above object, a reference display device in an online document according to an embodiment of a second aspect of the present disclosure includes: the acquisition module is used for acquiring information of a cited document cited in the online document; a determining module, configured to determine a display level of each of the cited documents according to the information; the construction module is used for constructing the reference relation between the online document and each reference document according to the display level; and the display module is used for displaying the reference relation.
In one embodiment of the present disclosure, the display level includes: the first display level is used for indicating the display level of the title of each reference document, and the construction module is specifically used for:
determining the display size of each title according to the first display level and combining a first preset rule;
and constructing a reference relation between the online document and each reference document according to the display size of each title.
In one embodiment of the present disclosure, the display level includes: the second display level is used for indicating the display level of the tag content associated with each reference document, and the construction module is specifically used for:
Determining target tag content associated with each reference document according to the second display level and in combination with a second preset rule;
and constructing a reference relation between the online document and each reference document according to the target tag content associated with each reference document.
In one embodiment of the present disclosure, the information includes at least one of: the construction module is specifically used for:
and determining a first display level of each reference document according to each piece of information and the weight value corresponding to each piece of information.
In one embodiment of the disclosure, the building block is specifically configured to:
and determining a second display level of each reference document according to each piece of information and the weight level corresponding to each piece of information, wherein the weight value is different from the actual value indicated by the weight level.
In one embodiment of the present disclosure, the first display level and the display size of the title exhibit a proportional relationship.
In one embodiment of the disclosure, the building block is specifically configured to:
If the first display level indicates that the reference document has the highest weight value, determining that the display size of the title of the reference document is the maximum value of the default display size;
if the first display level indicates that the reference document has the lowest weight value, determining that the display size of the title of the reference document is the minimum value of the default display size;
if the first display level indicates that the reference document has a first weight value, calculating a scaling ratio, and determining the display size of the title according to the scaling ratio;
wherein the first weight value is between the lowest weight value and the highest weight value, and the scaling ratio is calculated by the following method:
calculating a difference value between a highest weight value and a first weight value, calculating a ratio value between the difference value and the highest weight value, and taking the ratio value as the scaling ratio.
In one embodiment of the disclosure, the building block is specifically configured to:
and taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title.
In one embodiment of the disclosure, the building block is specifically configured to:
If the product value is greater than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title;
and if the product value is smaller than the minimum value of the default display size, taking the minimum value of the default display size as the display size of the title.
According to the reference display device in the online document, which is provided by the embodiment of the second aspect of the disclosure, by acquiring the information of the reference document which is referenced in the online document, determining the display level of each reference document according to the information, and constructing the reference relation between the online document and each reference document according to the display level, and displaying the reference relation, the presentation effect of the reference document can be effectively improved, the retrieval efficiency of the reference document is improved, and the user experience is improved.
To achieve the above object, a computer-readable storage medium according to an embodiment of a third aspect of the present disclosure, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a reference display method in an online document, the method comprising: a reference display method in an online document is provided in an embodiment of a first aspect of the present disclosure.
According to the computer readable storage medium provided by the embodiment of the third aspect of the disclosure, by acquiring the information of the cited documents in the online documents, determining the display level of each cited document according to the information, and constructing the cited relation between the online documents and each cited document according to the display level, the cited relation is displayed, so that the presentation effect of the cited documents can be effectively improved, the retrieval efficiency of the cited documents is improved, and the user experience is improved.
To achieve the above object, a computer program product according to an embodiment of a fourth aspect of the present disclosure, when instructions in the computer program product are executed by a processor, performs a reference display method in an online document, the method comprising: acquiring information of a cited document cited in an online document; determining the display level of each reference document according to the information; constructing a reference relation between the online document and each reference document according to the display level; and displaying the reference relation.
According to the computer program product provided by the fourth aspect of the embodiment of the present disclosure, by acquiring information of the cited documents in the online document, determining a display level of each cited document according to the information, and constructing a reference relationship between the online document and each cited document according to the display level, the display reference relationship is displayed, so that the presentation effect of the cited document can be effectively improved, the retrieval efficiency of the cited document is improved, and the user experience is improved.
Embodiments of the fifth aspect of the present disclosure also provide an electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform a reference display method in an online document as set forth in an embodiment of the first aspect of the present disclosure.
According to the electronic device provided by the embodiment of the fifth aspect of the disclosure, the information of the cited documents in the online documents is obtained, the display level of each cited document is determined according to the information, the cited relation between the online document and each cited document is constructed according to the display level, and the cited relation is displayed, so that the presentation effect of the cited documents can be effectively improved, the retrieval efficiency of the cited documents is improved, and the user experience is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow diagram of a method for reference display in an online document according to one embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a reference display effect in an online document in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a reference display device in an online document according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present disclosure and are not to be construed as limiting the present disclosure. On the contrary, the embodiments of the disclosure include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
FIG. 1 is a flow diagram of a method for reference display in an online document according to one embodiment of the present disclosure.
The present embodiment is exemplified in a reference display method in an online document configured as a reference display device in an online document.
The reference display method in the online document in the present embodiment may be configured in a reference display device in the online document, and the reference display device in the online document may be provided in a server or may also be provided in an electronic device, which is not limited by the embodiment of the present disclosure.
The present embodiment takes an example in which a reference display method in an online document is configured in an electronic device.
The execution body of the embodiment of the present disclosure may be, for example, a server or a central processing unit (Central Processing Unit, CPU) in an electronic device in hardware, or may be, for example, a server or a related background service in an electronic device in software, which is not limited.
The reference document in the embodiments of the present disclosure is a document referenced in an online editing tool.
The online editing tool may be, for example, a Doc document editing tool, which is not limited.
According to the reference display method in the online document, the information of the referenced documents in the online document is obtained, the display level of each referenced document is determined according to the information, the reference relation between the online document and each referenced document is constructed according to the display level, and the reference relation is displayed, so that the presentation effect of the referenced document can be effectively improved, the retrieval efficiency of the referenced document is improved, and the user experience is improved.
Referring to fig. 1, the method includes:
s101: information of a reference document referenced in the online document is acquired.
Among other things, documents referenced in the online editing tool may be referred to as reference documents.
In an embodiment of the present disclosure, the information includes at least one of: the number of times of being referred, the context recommended reading parameter, the reading authority, the editing authority and the collection number.
In the embodiment of the disclosure, the reading authority refers to the authority that a certain document can be shared to a certain user and the user is given only the authority to read the document, and the editing authority refers to the authority that a certain document can be shared to a certain user and the user is given the authority to edit and read the document.
In the embodiment of the disclosure, each piece of information has a corresponding weight value and a weight level, wherein the weight value is associated with the size of the display size of the title of the reference document, and the weight level is associated with the tag content displayed by the reference document.
In a specific implementation process of the embodiment of the present disclosure, refer to table 2 and table 3, table 2 is a schematic representation of each information and a weight value corresponding thereto in the embodiment of the present disclosure, and table 3 is a schematic representation of each information and a weight level corresponding thereto in the embodiment of the present disclosure, where the actual values indicated by the weight value and the weight level are different.
TABLE 2
TABLE 3 Table 3
S102: a reference display level in each online document is determined from the information.
In a specific implementation process, the display level of the embodiment of the disclosure includes: a first display level indicating a display level of a title of each reference document, and the display level including: and a second display level for indicating a display level of tag content associated with each reference document.
In a specific implementation process, the first display level of each reference document is determined according to each piece of information and the weight value corresponding to each piece of information, and the second display level of each reference document is determined according to each piece of information and the weight level corresponding to each piece of information, wherein the weight value is different from the actual value indicated by the weight level.
The first display level is used for indicating the display level of the title of each reference document, and the second display level is used for indicating the display level of the label content associated with each reference document, so that the multi-layer information of the reference document is displayed, the displayed content is more concrete and diversified, the user can effectively and conveniently lock important information quickly, and the user experience is improved.
As an example, referring to table 4, table 4 illustrates a method for determining a first display level in the embodiment of the present disclosure, where the first display level may be specifically determined in an accumulated manner, that is, if the reference document a includes information A1, information A2, and information A3, and the weight values corresponding to the predicted information A1, information A2, and information A3 are A1, A2, and A3, respectively, the first display level is: a1+a2+a2+a3, each value of the weight value series in table 4 is obtained according to the rule, which is not limited.
TABLE 4 Table 4
Description of the invention Weight value
Unread 2
Unread and referred to N times 2+0.3N
Has been read and referenced N times 1+0.3N
Has been read and referenced N times while the document is collected by N people 1+0.3N+0.4N
Fuzzy matching of the cited document and the original text header is successful and unread 3+2
As an example, referring to table 5, table 5 is an illustration of a method for determining a second display level in an embodiment of the disclosure, where, based on the second display level with different actual values, the displayed tag content is different, if the reference document a includes information A1, information A2, and information A3, and the weights corresponding to the information A1, the information A2, and the information A3 are predicted to be b1, b2, and b3, respectively, and the content described by the information corresponding to the second display level with the largest value is selected from the tag content.
TABLE 5
The first display level of each reference document is determined according to each piece of information and the weight value corresponding to each piece of information, and the second display level of each reference document is determined according to each piece of information and the weight level corresponding to each piece of information, so that the rationality of determining the display level can be effectively improved, the effect displayed according to the level information is more in accordance with the personalized requirements of the user, and the use experience degree of the user is improved.
S103: according to the display level, a reference relationship between the online document and each reference document is constructed.
In the specific implementation process, after the first display level of each reference document is determined, the display size of each title can be determined according to the first display level and in combination with a first preset rule; according to the display size of each title, a reference relationship between the online document and each reference document is constructed.
Wherein the reference relationships between the online document and the reference documents may be presented in a mesh structure.
Optionally, in some embodiments, the first display level and the display size of the title exhibit a proportional relationship.
Optionally, in some embodiments, determining, according to the first display level, a display size of each title in combination with a first preset rule includes: if the first display level indicates that the reference document has the highest weight value, determining that the display size of the title of the reference document is the maximum value of the default display size; if the first display level indicates that the reference document has the lowest weight value, determining that the display size of the title of the reference document is the minimum value of the default display size; if the first display level indicates that the reference document has a first weight value, calculating a scaling ratio, and determining the display size of the title according to the scaling ratio; the first weight value is between the lowest weight value and the highest weight value, and the scaling ratio is calculated by the following method: and calculating a difference value between the highest weight value and the first weight value, calculating a proportion value between the difference value and the highest weight value, and taking the proportion value as a scaling ratio.
Optionally, in some embodiments, determining the display size of the title according to the zoom ratio includes: and taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title.
Optionally, in some embodiments, the method further includes: if the product value is larger than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title; and if the product value is smaller than the minimum value of the default display size, taking the minimum value of the default display size as the display size of the title.
In the embodiment of the disclosure, referring to table 6, table 6 shows that the larger the weight value indicated by the first display level is, the display size of the title, where the title has a minimum display size (the minimum value of the default display size) and a maximum display size (the maximum value of the default display size), in the embodiment of the disclosure, the reference document to which the minimum weight value indicated by the second display level belongs may be set as the minimum value of the default display size, the reference document to which the maximum weight value indicated by the second display level belongs may be set as the maximum value of the default display size, and the reference document has the first weight value (the first weight value is between the minimum weight value and the maximum weight value) indicated by the first display level, and the display size of the title may be determined according to the ratio.
TABLE 6
In the specific execution process, the embodiment of the disclosure may also take a certain abnormal processing measure, that is, if the product value is greater than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title; if the product value is smaller than the minimum value of the default display size, the minimum value of the default display size is used as the display size of the title, so that the display effect can be effectively ensured. In the specific implementation process, after the second display level of each reference document is determined, the target tag content associated with each reference document can be determined according to the second display level and in combination with a second preset rule; and constructing a reference relation between the online document and each reference document according to the target tag content associated with each reference document.
In the embodiment of the present disclosure, the content described by the information corresponding to the second display level with the largest value in the second display level may be a tag content, and the tag content may be referred to as a target tag content.
S104: and displaying the reference relation.
Wherein the reference relationships between the online document and the reference documents may be presented in a mesh structure.
As an example, referring to fig. 2, fig. 2 is a schematic diagram of reference display effects in an online document in an embodiment of the disclosure, where the reference relationships are presented in a mesh structure, and fig. 2 includes: the current document 71 and six reference documents 72 in the online editing tool, each application document 72 is displayed in branches of a network structure, the document titles 73 of the reference documents are correspondingly displayed at each branch, and the target label content 74 corresponding to the reference document, wherein the display sizes of the document titles 73 of different reference documents are different, and the determination mode can be referred to the above and will not be repeated here.
In the embodiment, the information of the quoted citation document in the online document is obtained, the display level of each citation document is determined according to the information, and the citation relation between the online document and each citation document is constructed according to the display level, so that the citation relation is displayed, the presentation effect of the citation document can be effectively improved, the retrieval efficiency of the citation document is improved, and the user experience is improved.
FIG. 3 is a schematic diagram of a reference display device in an online document according to an embodiment of the present disclosure.
The reference document is a document referenced in an online editing tool.
Referring to fig. 3, the apparatus 300 includes:
an acquisition module 301 for acquiring information of a reference document referenced in an online document;
a determining module 302, configured to determine a display level of each reference document according to the information;
a construction module 303, configured to construct a reference relationship between the online document and each reference document according to the display level;
and a display module 304, configured to display the reference relationship.
Optionally, in some embodiments, the display level includes: a first display level, where the first display level is used to indicate a display level of a title of each reference document, and the construction module 303 is specifically configured to:
according to the first display level, determining the display size of each title in combination with a first preset rule;
according to the display size of each title, a reference relationship between the online document and each reference document is constructed.
Optionally, in some embodiments, the display level includes: a second display level, where the second display level is used to indicate a display level of tag content associated with each reference document, and the construction module 303 is specifically configured to:
determining target tag content associated with each reference document according to the second display level and in combination with a second preset rule;
and constructing a reference relation between the online document and each reference document according to the target tag content associated with each reference document.
Optionally, in some embodiments, the information includes at least one of: the construction module 303 is specifically configured to:
and determining a first display level of each reference document according to each piece of information and the weight value corresponding to each piece of information.
Optionally, in some embodiments, the construction module 303 is specifically configured to:
and determining a second display level of each reference document according to each piece of information and the weight level corresponding to each piece of information, wherein the weight value is different from the actual value indicated by the weight level.
Optionally, in some embodiments, the first display level and the display size of the title exhibit a proportional relationship.
Optionally, in some embodiments, the construction module 303 is specifically configured to:
if the first display level indicates that the reference document has the highest weight value, determining that the display size of the title of the reference document is the maximum value of the default display size;
if the first display level indicates that the reference document has the lowest weight value, determining that the display size of the title of the reference document is the minimum value of the default display size;
if the first display level indicates that the reference document has a first weight value, calculating a scaling ratio, and determining the display size of the title according to the scaling ratio;
The first weight value is between the lowest weight value and the highest weight value, and the scaling ratio is calculated by the following method:
and calculating a difference value between the highest weight value and the first weight value, calculating a proportion value between the difference value and the highest weight value, and taking the proportion value as a scaling ratio.
Optionally, in some embodiments, the construction module 303 is specifically configured to:
and taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title.
Optionally, in some embodiments, the construction module 303 is specifically configured to:
if the product value is larger than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title;
and if the product value is smaller than the minimum value of the default display size, taking the minimum value of the default display size as the display size of the title.
It should be noted that, the explanation of the embodiment of the reference display method in the online document in the embodiment of fig. 1-2 is also applicable to the reference display device 300 in the online document in this embodiment, and the implementation principle is similar, and will not be repeated here.
In the embodiment, the information of the quoted citation document in the online document is obtained, the display level of each citation document is determined according to the information, and the citation relation between the online document and each citation document is constructed according to the display level, so that the citation relation is displayed, the presentation effect of the citation document can be effectively improved, the retrieval efficiency of the citation document is improved, and the user experience is improved.
Referring now to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. A schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are 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), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like.
The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary 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 by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the reference display method in an online document shown in a flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. When executed by the processing device 401, the computer program performs the above-described functions defined in the reference display method in the online document of the embodiment of the present disclosure.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring information of a cited document cited in an online document; determining the display level of each reference document according to the information; constructing a reference relation between the online document and each reference document according to the display level; and displaying the reference relation. .
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Where the name of the module does not constitute a limitation on the module itself in some cases, for example, the acquisition module may also be described as "a module for acquiring information of a reference document that is referenced in an online document".
It should be noted that in the description of the present disclosure, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or part of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, where the program when executed includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (10)

1. A method of reference display in an online document, the method comprising the steps of:
obtaining information of a reference document referenced in an online document, wherein the information comprises at least one of the following: the number of times of being referred, the context recommended reading parameter, the reading authority, the editing authority and the collection number;
determining a display level of each reference document according to the information, wherein the display level comprises: a first display level for indicating a display level of a title of each of the reference documents, and a second display level for indicating a display level of tag content associated with each of the reference documents, the second display level for determining target tag content associated with each of the reference documents;
constructing a reference relation between the online document and each reference document according to the display level;
Displaying the quotation relationship;
wherein said constructing a reference relationship between said online document and each of said reference documents according to said display level comprises:
determining the display size of each title according to the first display level and combining a first preset rule;
determining target tag content associated with each reference document according to the second display level and in combination with a second preset rule;
and constructing a reference relation between the online document and each reference document according to the display size of each title and the target tag content associated with each reference document.
2. The method for displaying a reference in an online document of claim 1,
and determining a first display level of each reference document according to each piece of information and the weight value corresponding to each piece of information.
3. The method for displaying a reference in an online document of claim 2, wherein,
and determining a second display level of each reference document according to each piece of information and the weight level corresponding to each piece of information, wherein the weight value is different from the actual value indicated by the weight level.
4. The method of reference display in an online document of claim 1, wherein the first display level exhibits a proportional relationship with a display size of the title.
5. The method for displaying references in an online document according to claim 2, wherein said determining a display size of each of said titles in accordance with said first display level in combination with a first preset rule comprises:
if the first display level indicates that the reference document has the highest weight value, determining that the display size of the title of the reference document is the maximum value of the default display size;
if the first display level indicates that the reference document has the lowest weight value, determining that the display size of the title of the reference document is the minimum value of the default display size;
if the first display level indicates that the reference document has a first weight value, calculating a scaling ratio, and determining the display size of the title according to the scaling ratio;
wherein the first weight value is between the lowest weight value and the highest weight value, and the scaling ratio is calculated by the following method:
calculating a difference value between a highest weight value and a first weight value, calculating a ratio value between the difference value and the highest weight value, and taking the ratio value as the scaling ratio.
6. The method for displaying a reference in an online document according to claim 5, wherein the determining a display size of the title according to the scaling ratio comprises:
and taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title.
7. The method for displaying a reference in an online document of claim 6, further comprising:
if the product value is greater than or equal to the minimum value of the default display size, directly taking the product value of the maximum value of the default display size and the scaling ratio as the display size of the title;
and if the product value is smaller than the minimum value of the default display size, taking the minimum value of the default display size as the display size of the title.
8. A reference display apparatus in an online document, the apparatus comprising:
an acquisition module for acquiring information of a reference document referenced in an online document, wherein the information includes at least one of: the number of times of being referred, the context recommended reading parameter, the reading authority, the editing authority and the collection number;
a determining module, configured to determine a display level of each reference document according to the information, where the display level includes: a first display level for indicating a display level of a title of each of the reference documents, and a second display level for indicating a display level of tag content associated with each of the reference documents, the second display level for determining target tag content associated with each of the reference documents;
The construction module is used for constructing the reference relation between the online document and each reference document according to the display level;
a display module for displaying the reference relation
The construction module is specifically configured to determine a display size of each title according to the first display level and in combination with a first preset rule; determining target tag content associated with each reference document according to the second display level and in combination with a second preset rule; and constructing a reference relation between the online document and each reference document according to the display size of each title and the target tag content associated with each reference document.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a reference display method in an online document as claimed in any one of claims 1-7.
10. An electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the reference display method in an online document as claimed in any one of the preceding claims 1-7.
CN201811382919.6A 2018-11-20 2018-11-20 Method and device for displaying references in online document, storage medium and electronic equipment Active CN109684613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811382919.6A CN109684613B (en) 2018-11-20 2018-11-20 Method and device for displaying references in online document, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811382919.6A CN109684613B (en) 2018-11-20 2018-11-20 Method and device for displaying references in online document, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109684613A CN109684613A (en) 2019-04-26
CN109684613B true CN109684613B (en) 2024-04-16

Family

ID=66184927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811382919.6A Active CN109684613B (en) 2018-11-20 2018-11-20 Method and device for displaying references in online document, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109684613B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528595B (en) * 2020-12-15 2023-05-09 北京字跳网络技术有限公司 Document processing method and device and electronic equipment
CN114995692A (en) * 2021-03-01 2022-09-02 北京字跳网络技术有限公司 Document relation query method and device, electronic equipment and storage medium
CN114995690A (en) * 2021-03-01 2022-09-02 北京字跳网络技术有限公司 Document creation method, device, equipment and storage medium
CN114780671A (en) * 2022-03-14 2022-07-22 珠海横琴濠麦科技有限公司 Display method of patent citation relation, computer device and computer readable storage medium
CN114841127B (en) * 2022-06-29 2022-09-23 天津联想协同科技有限公司 Layer stacking method and device based on streaming electronic collaboration document

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718528A (en) * 2016-01-15 2016-06-29 上海交通大学 Academic map display method based on reference relationship among thesises
CN107194466A (en) * 2017-05-23 2017-09-22 广东工业大学 Knowledge Visualization method and system between one conception of species
CN108304531A (en) * 2018-01-26 2018-07-20 北京泰尔英福网络科技有限责任公司 A kind of method for visualizing and device of Digital Object Identifier adduction relationship

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718528A (en) * 2016-01-15 2016-06-29 上海交通大学 Academic map display method based on reference relationship among thesises
CN107194466A (en) * 2017-05-23 2017-09-22 广东工业大学 Knowledge Visualization method and system between one conception of species
CN108304531A (en) * 2018-01-26 2018-07-20 北京泰尔英福网络科技有限责任公司 A kind of method for visualizing and device of Digital Object Identifier adduction relationship

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"面向web的需求工程方法的研究与实践";江星;《中国优秀硕士学位论文全文数据库(电子期刊)》;20131115;第49-50页和图5-8 *

Also Published As

Publication number Publication date
CN109684613A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN109684613B (en) Method and device for displaying references in online document, storage medium and electronic equipment
CN110704751B (en) Data processing method and device, electronic equipment and storage medium
CN110634047B (en) Method and device for recommending house resources, electronic equipment and storage medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111738316B (en) Zero sample learning image classification method and device and electronic equipment
CN111291244A (en) House resource information display method, device, terminal and storage medium
CN111813465B (en) Information acquisition method, device, medium and equipment
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN115145560A (en) Business orchestration method, device, equipment, computer readable medium and program product
CN111241823A (en) Dependency configuration management method and device, electronic equipment and storage medium
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN116188622B (en) Power index information display method and device, electronic equipment and computer medium
CN111857518A (en) Method and device for canceling image editing operation, electronic equipment and medium
CN109558408B (en) Method and device for updating list, electronic equipment and readable storage medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN115359663B (en) Mountain road disaster section disaster-resistant toughness calculation method and device and electronic equipment
CN110727558A (en) Information prompting method and device, storage medium and electronic equipment
CN113204557B (en) Electronic form importing method, device, equipment and medium
CN111143355B (en) Data processing method and device
CN111241368B (en) Data processing method, device, medium and equipment
CN109284350B (en) Method and device for updating search content, storage medium and electronic equipment
CN113660699A (en) Intelligent cluster networking method and device and electronic equipment
CN114997120B (en) Method, device, terminal and storage medium for generating document tag
CN115221178B (en) Data table binding method, device, electronic equipment and computer readable medium
CN115422131B (en) Business audit knowledge base retrieval method, device, equipment and computer readable medium

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