WEB end text quotation display method and device, equipment and storage medium

By storing and managing citation document information on the WEB side and generating and displaying citation marks, the problem of low editing of citations and references on the WEB side is solved, and automated generation and display is realized, reducing human errors, improving writing efficiency and data consistency sex.

CN119025768APending Publication Date: 2024-11-26TONGFANG KNOWLEDGE NETWORK DIGITAL PUBLISHING TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410933515.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The technology of assisting users in quickly creating citations and reference lists of articles on the WEB side is not mature enough. Manual display and editing of citations and references is time-consuming and prone to human errors such as inconsistent formats and disordered sorting.

Method used

By storing the citation document information in the domain and generating citation marks based on the style format, establishing the association relationship between the insertion point, citation marks and the citation document information, forming the sequence number of the citation marks, adjusting and displaying according to the preset display rules Citation marks, automatically generate references.

Benefits of technology

It realizes automatic generation and display of citations and references during the online writing process of WEB, improves user writing efficiency, reduces human errors, supports data consistency between client and WEB, and supports multi-terminal creation of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025768A_ABST
    Figure CN119025768A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of educational informatization, and provides a WEB end text quotation display method, device and equipment and a storage medium, and the method comprises the steps: receiving quotation document information, and storing the quotation document information in a domain; generating a quotation mark at the insertion point based on the style format, and establishing an association relationship among the insertion point, the quotation mark and quoted quotation document information; forming a serial number of the quotation mark according to the position information of the insertion point and the association relationship; based on a preset display rule, adjusting and displaying the quotation marks forming the serial numbers; and according to the serial number of the citation mark, extracting corresponding citation document information in the domain, splicing the citation document information into a reference document, and displaying the reference document. According to the application, any one of the quotation marks, the quotation document information and the like is modified by adopting a domain mode, so that other parts can be associated for immediate updating; a user is assisted to automatically generate the quotation in the required display form in the writing process, the writing efficiency of the user is improved, and human errors are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of educational information technology, and specifically to a method, device, equipment and storage medium for displaying citations of WEB text. Background Art

[0002] With the rapid development of Internet technology, it has become increasingly common to use Internet tools or services to assist users in quickly creating citation and reference lists for articles.

[0003] At present, there are some optional tools on the desktop that can simplify the management process of citations and references, ensure the accuracy and consistency of citations, and comply with specific citation styles, such as EndNote, Zotero, etc. The basic method of using these tools is to collect documents on the desktop through online search, new creation or import, download the tool plug-in and install it in the word tab to generate citations and references in the required format using the method provided by the tool plug-in.

[0004] However, as the number of web-based application products increases, more and more users prefer to use the web to complete article creation, but the technology that helps users quickly create citations and reference lists for articles on the web is not mature enough. If you manually display and edit citations and references on the web, it is not only very time-consuming, but also prone to human errors such as inconsistent formats and chaotic sorting.

[0005] Therefore, it is of great significance to provide a method for automatically generating citations and references for display on the WEB side. Summary of the invention

[0006] To solve the above problems, the embodiments of the present application provide a method, device, equipment and storage medium for displaying citations of WEB-side texts, which stores information such as titles and documents in a domain, and displays the information in the domain in a user interface through different calculation methods. After switching different styles or performing operations such as insertion, modification, and deletion, the information displayed in the domain in the user interface is refreshed, thereby helping users to automatically generate and display citations and references during online writing on the WEB side, thereby improving users' writing efficiency and reducing human errors.

[0007] The present application embodiment adopts the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a method for displaying citations of a text on a web page, the method comprising:

[0009] receiving citation document information, and storing the citation document information in a domain;

[0010] Generate a citation mark at the insertion point based on the style format, and establish an association relationship between the insertion point, the citation mark and the cited document information;

[0011] According to the position information of the insertion point and the association relationship, the sequence number of the citation mark is formed;

[0012] Based on the preset display rules, the citation marks forming the serial numbers are adjusted and displayed;

[0013] According to the serial number of the citation mark, the corresponding citation document information in the domain is extracted and spliced ​​into references and displayed.

[0014] In a second aspect, an embodiment of the present application provides a device for displaying a citation of a text on a web page, the device comprising:

[0015] A storage unit, used for receiving the citation document information and storing the citation document information in the domain;

[0016] An association relationship establishing unit, used for generating a citation mark at an insertion point based on a style format, and establishing an association relationship between the insertion point, the citation mark and the cited citation document information;

[0017] A sorting unit, used to form a sequence number of the citation mark according to the position information of the insertion point and the association relationship;

[0018] A citation mark display unit, used to adjust and display the citation marks forming the serial number based on a preset display rule;

[0019] The reference display unit is used to extract the corresponding citation document information in the domain according to the serial number of the citation mark, splice it into references and display it.

[0020] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for displaying citations of WEB-side text when executing the computer program.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is instructed by a processor, it implements the steps of the above-mentioned method for displaying citations of WEB-side text.

[0022] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0023] The citation display method of the WEB-side text provided by the present application receives the citation document information and stores the citation document information in the domain; generates a citation mark at the insertion point based on the style format, and establishes an association relationship between the insertion point, the citation mark and the cited citation document information; forms a serial number of the citation mark according to the position information and the association relationship of the insertion point; adjusts and displays the citation mark with the serial number based on the preset display rules; extracts the corresponding citation document information in the domain and splices it into a reference and displays it according to the serial number of the citation mark. The method provided by the present application adopts the domain method so that any modification of the citation mark, citation document information, etc. can be associated with other parts for instant update, avoiding errors caused by manual modification of the citation mark, citation document information, references, etc. due to asynchrony. The citation display method of the WEB-side text provided by the present application supports data consistency between the client and the WEB end, and supports multi-end creation by users. The citation display method of the WEB-side text provided by the present application can assist users in automatically generating citations in the required display form during online writing, thereby improving the efficiency of user writing. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 A schematic diagram showing a flow chart of a method for displaying a citation of a WEB-side text according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram showing a flow chart of a method for displaying a citation of a text on a WEB side according to another embodiment of the present application;

[0027] Figure 3 A schematic diagram showing the structure of a device for displaying a quotation of a WEB-side text according to an embodiment of the present application is shown;

[0028] Figure 4 A schematic structural diagram of a computer device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0030] The idea of ​​the present application is to reference the domain scheme, store citation document information such as titles and documents in a domain, and display the citation document information in the domain in the user interface through different calculation methods; when the user switches to different styles, or performs operations such as insertion, modification, and deletion, the information displayed in the domain of the user interface is refreshed, thereby helping the user to automatically generate and display citations and references during the online writing process on the WEB side, thereby improving the user's writing efficiency and reducing human errors.

[0031] The present application is described in detail below through specific embodiments.

[0032] Figure 1 A flowchart of a method for displaying a citation of a WEB text proposed in the first embodiment of the present application is shown. Figure 1 As shown, this embodiment includes steps S110 to S150:

[0033] Step S110, receiving the cited document information, and storing the cited document information in the domain.

[0034] Citation document information is used to indicate the citation information of other documents that the text needs to cite when the user writes the text. Citations are crucial in the process of writing texts, especially writing papers, because citations provide attribution and link published research together.

[0035] The received citation document information is stored in the domain. When storing, the citation document information can be sorted and stored in the order of the time when it is received, or in other order defined by the user. The domain can be an Object type, supporting domain code Code, domain content Data, domain text Result, etc. The domain code Code can be of String type, and the domain content Data and domain text Result can be of Range type. The domain supports all API interfaces, and can be assigned values ​​through, but not limited to, the Text property or the PastHtml method.

[0036] The citation document information can be obtained by receiving the user's input. The user can input the citation document information in the manner of, but not limited to, direct entry, online search, local import, etc. The direct entry method can be implemented as follows: providing the user with a citation document information entry page, the user directly enters the title related to the citation in the page, thereby forming a citation document information. The online search method can be implemented as follows: providing the user with a citation document information acquisition page, the user enters the citation address link retrieved online in the page, and through the parsing of the citation address link and / or the understanding of the citation pointed to by the citation address link, the title of the citation retrieved online is identified and generated, thereby forming a citation document information. The local import method can be implemented as follows: providing the user with a citation document information acquisition page, the user enters the locally imported citation path in the page, and through the understanding of the citation pointed to by the citation path, the title of the locally imported citation is identified and generated, thereby forming a citation document information.

[0037] Step S120: generating a citation mark at the insertion point based on the style format, and establishing an association relationship between the insertion point, the citation mark and the cited document information.

[0038] The style format is used to indicate the style of the citation mark displayed in the text. The style format is independent of the content displayed by the citation mark. The style format can be initialized by obtaining the style format file configuration information. The style format file configuration information can include a variety of common citation styles, such as APA (American Psychological Association), MLA (Modern Language Association), National Standard 7714-2015, Acta Anthropologica Sinica, etc.

[0039] When the user inserts a quotation at a specified position in the text, a quotation mark is generated at the insertion point based on the style format selected by the user. Then the quotation document information to be cited by the quotation mark at the insertion point is determined. The method for determining the quotation document information to be cited may include, but is not limited to: providing a quotation document information selection page to the user, so that the user can select the quotation document information to be cited from the citation document information that has been entered; providing a citation document information entry page or a citation document information acquisition page to the user, so that if there is no citation document information available for selection stored in the domain, the citation document information is added to the domain based on the user's input and determined as the citation document information to be cited.

[0040] Once the citation document information to be cited is determined, an association relationship among the insertion point, the citation mark of the insertion point, and the citation document information to be cited is established.

[0041] Step S130, forming a sequence number of the citation mark according to the position information and the association relationship of the insertion point.

[0042] In the text written by the user, multiple citations can be inserted at different positions of the text, and the citations inserted at different positions can point to the same citation document information based on the association relationship. Therefore, when forming the serial number of the citation mark, it is necessary to give the same serial number to different citation marks pointing to the same citation document information based on the position of the insertion point and the association relationship.

[0043] That is, only the citation mark that first points to the insertion point of a citation document information participates in the sorting. Other citation marks have the same serial number as the corresponding citation marks participating in the sorting based on the citation document information they point to.

[0044] According to the position of the insertion point from front to back, the citation marks participating in the sorting are assigned serial numbers from small to large, thereby forming the serial numbers of the citation marks. The serial numbers of the citation marks can be different from the order in which the citation document information is stored in the domain, and the number of citation marks participating in the sorting can also be less than the total number of citation document information stored in the domain. That is, the serial number order and serial number size of the citation marks are not subject to the storage order and storage quantity of the citation document information stored in the domain.

[0045] Step S140, based on a preset display rule, the citation marks forming the serial number are adjusted and displayed.

[0046] The preset display rule is used to indicate the display form of the content displayed by the citation mark. The preset display rule may include, but is not limited to: displaying only the serial number of the citation mark, displaying the serial number of the citation mark and the author and / or year in the corresponding citation document information, not displaying the serial number of the citation mark but displaying the author and / or year in the corresponding citation document information, etc. The preset display rule may also include, but is not limited to: merging adjacent citation marks, adjusting the order of the merged citation marks, etc.

[0047] The adjusted citation mark is displayed in the text, thereby realizing automatic generation and display of citations on the WEB side.

[0048] Step S150, according to the serial number of the citation mark, extract the corresponding citation document information in the domain, splice it into references and display it.

[0049] When writing text, especially papers, in addition to inserting citation marks in the text, it is generally necessary to provide references at the end of the article. References can be automatically generated based on the sequence number and association relationship of the citation marks.

[0050] After the references are generated by splicing, it can be determined whether there is a specified area for displaying the references in the text. If so, the spliced ​​references are displayed in the specified area; if not, the position information of the end of the text is obtained, and the spliced ​​references are displayed at the end of the text based on the position information of the end of the text.

[0051] from Figure 1 It can be seen from the method shown that the citation display method of the WEB-side text provided by the present application first receives the citation document information and stores the citation document information in the domain; then generates a citation mark at the insertion point based on the style format, and establishes the association relationship between the insertion point, the citation mark and the cited citation document information; then forms the serial number of the citation mark according to the position information and the association relationship of the insertion point; finally, based on the preset display rules, the citation mark with the serial number is adjusted and displayed; at the same time, according to the serial number of the citation mark, the corresponding citation document information in the domain is extracted and spliced ​​into a reference and displayed. The method provided by the present application adopts the domain method so that any modification of the citation mark, citation document information, etc. can be associated with other parts for instant update, avoiding errors caused by manual modification of the citation mark, citation document information, references, etc. due to asynchrony. The citation display method of the WEB-side text provided by the present application supports data consistency between the client and the WEB end, and supports multi-end creation by users. The citation display method of the WEB-side text provided by the present application can assist users in automatically generating citations in the required display form during online writing, thereby improving the efficiency of user writing.

[0052] In some embodiments of the present application, in the above method, step S110, receiving citation document information, and storing the citation document information in the domain, includes: based on the provided citation document information entry page, receiving the entered citation document information; and / or, based on the provided citation document information acquisition page, acquiring the citation address; locating the citation according to the citation address, and performing semantic recognition on the citation; based on the result of the semantic recognition, determining and receiving the citation document information; and storing the citation document information in the domain.

[0053] Users can directly enter citation document information through the provided citation document information entry page.

[0054] The citation document information entry page may include, but is not limited to, providing: author control, title control, version control, publication information control, date control, page number control, acquisition address control, etc. The user enters the citation document information in the corresponding control, thereby forming a citation document information.

[0055] The user may also provide an input form that meets the format requirements of the citation document information input page, and the input form may include multiple citation document information. By identifying the input form, multiple citation document information is formed.

[0056] Users can indirectly input citation document information through the provided citation document information acquisition page.

[0057] In some cases, the citation document information that needs to be input is an electronic document stored in the user client. In this case, the user enters the path of the electronic document into the citation document information acquisition page to locate the electronic document according to the path of the electronic document. The content of the electronic document is parsed to extract the title of the electronic document and form a citation document information. During the parsing, it is possible but not limited to determining the publication information of the electronic document by parsing the header of the electronic document; determining the version and page number of the electronic document by parsing the footer of the electronic document; and determining the title and author of the electronic document by parsing the content of the electronic document.

[0058] In some cases, the citation document information to be input is a page document retrieved online. In this case, the user inputs the address link of the page document into the citation document information acquisition page to locate the page document according to the address link of the page document. The address link and / or content of the page document is parsed to extract the title of the page document and form a citation document information. During the parsing, the acquisition address of the page document can be determined based on the parsing of the address link; the title, author, etc. of the page document can be determined by parsing the content.

[0059] In the citation document information obtained through parsing, the bibliographic content may not be comprehensive enough, and a citation document information supplementary page may be provided to the user so that the user can enter the incomplete bibliographic content.

[0060] After receiving the cited document information at least through the above-mentioned means, the cited document information is stored in a domain in a certain order.

[0061] In some embodiments of the present application, in the above method, step S120, generates a citation mark at the insertion point based on the style format, and establishes an association relationship between the insertion point, the citation mark and the cited citation document information, including: generating a citation mark at the insertion point based on the style format; wherein the style format is received based on a provided style format selection page; receiving the cited citation document information based on a provided citation document information selection page; establishing an association relationship based on the insertion point, the citation mark and the cited citation document information.

[0062] The user can select the style format for the citation mark. Once the user selects a style format for a citation mark, all citation marks displayed in the text will adopt the selected style format.

[0063] In some cases, when the user first inserts a citation mark at the first insertion point, a style format selection page can be provided to the user to allow the user to select a style format. When the user subsequently inserts citation marks at other insertion points, the style format selection page provided to the user can lock the selected style format.

[0064] In some cases, users need to change the style format during the text writing process. In this case, when the user inserts a citation mark at the insertion point, the user can unlock the locked style format in the provided style format selection page and select another style format. After the user selects another style format, all citation marks in the text will be changed to the other style format.

[0065] Next, a citation document information selection page is provided to the user. The citation document information selection page may display all citation document information stored in the domain in a list form. The citation document information selection page may display all citation document information stored in the domain based on a chronological order or other order defined by the user to facilitate user selection.

[0066] A citation mark corresponding to an insertion point can only select one cited citation document information, thereby establishing an association relationship between the insertion point, the citation mark, and the cited citation document information.

[0067] In some embodiments of the present application, in the above method, step S130, based on the position information and the association relationship of the insertion point, forms the serial number of the citation mark, including: if more than one citation mark points to a citation document information, the position information of the insertion point corresponding to the first citation mark is used as the sorting position; if there is only one citation mark pointing to a citation document information, the position information of the insertion point corresponding to the citation mark is used as the sorting position; according to the sorting position from front to back, the corresponding citation marks are assigned serial numbers from small to large; if there are citation marks that are not assigned serial numbers, the serial numbers of the citation marks that point to a citation document information and are assigned serial numbers together with the citation marks that are not assigned serial numbers are assigned.

[0068] When multiple citation marks are inserted at different insertion points in the text, the citation marks are sorted. When sorting, the citation marks pointing to the same citation document information need to be assigned the same sequence number.

[0069] Based on the association relationship, when more than one citation mark points to the same citation document information, the position information of the insertion point corresponding to the first citation mark is used as the sorting position. Based on the association relationship, when only one citation mark points to a citation document information, the position information of the insertion point corresponding to the citation mark participates in the sorting, that is, it is used as the sorting position. According to the sorting position from front to back, the corresponding citation marks are assigned serial numbers from small to large. That is, the citation mark in the first sorting position can be assigned serial number 1, the citation mark in the second sorting position can be assigned serial number 2...

[0070] After the citation mark at the sorting position is assigned a serial number, other citation marks pointing to the same citation document information are assigned the same serial number according to the serial number of the corresponding citation mark assigned a serial number.

[0071] It is noteworthy that after the citation marks are assigned serial numbers, the storage order of the citation document information stored in the domain corresponding to the citation marks does not change.

[0072] In some embodiments of the present application, in the above method, step S140, based on preset display rules, adjusts and displays the citation marks that form the serial number, including: judging whether there are more than one adjacent citation marks according to the position information of the insertion point; if so, merging the adjacent citation marks through separators based on the style format, and arranging the serial numbers of the merged citation marks from small to large; judging whether there is a continuous interval in the arranged serial number; if so, replacing the part of the continuous interval except the minimum and maximum values ​​with connectors; and displaying the adjusted citation mark based on the position information of the insertion point.

[0073] In some cases, there are multiple citation marks inserted at consecutive insertion points in the text. In this case, it is necessary to merge the multiple citation marks inserted consecutively and adjust the merged citation marks. In order to make those skilled in the art understand the above solution more clearly, the following example is given.

[0074] For example, five citation marks are inserted at consecutive insertion points, namely [1][2][3][6][4]; according to the style format, the above five adjacent citation marks are merged into [1,2,3,6,4] through the separator ","; the serial numbers of the merged citation marks are arranged from small to large as [1,2,3,4,6]; if the arranged citation marks exist in a continuous interval of "1,2,3,4", the parts except "1" and "4" are replaced with the connector "-" to obtain the adjusted citation marks [1-4,6].

[0075] The adjusted citation mark is displayed in the text based on the position information of the insertion point, thereby realizing automatic generation and display of citations on the WEB side.

[0076] In some embodiments of the present application, in the above method, step S150, according to the serial number of the citation mark, extracts the corresponding citation document information in the domain, splices it into a reference and displays it, including: based on the association relationship, marking the corresponding citation document information according to the serial number of the citation mark; based on the reference format, extracts the citation document information in the domain in order from small to large, and splices the extracted citation document information into a reference; and displays the reference in a preset area.

[0077] When the user needs to display references, a reference format selection page can be provided to the user so that the user can select a reference format based on the page. The reference format can be initialized by obtaining reference format file configuration information, and the reference format file configuration information can include a variety of common reference styles.

[0078] The reference document format file configuration information can also be associated with the style format file configuration information, that is, after the user selects the style format, the associated reference document format is correspondingly locked. When the user needs to display the reference document, the locked associated reference document format is applied.

[0079] Since the citation mark is assigned a serial number, the citation document information pointed to by the citation mark can be marked with the same number as the citation mark serial number based on the association relationship. The citation document information in the domain is extracted in order of the number from small to large, and spliced ​​according to the reference format, so as to automatically generate a reference and display it at the end of the text article.

[0080] Since the citation document information is stored in the domain, the corresponding citation document information in the reference can be associated by modifying the citation document information in the domain, thereby achieving instant update of the reference and avoiding errors caused by manual modification of the reference and the citation document information being out of sync.

[0081] In some embodiments of the present application, in the above method, after step S150, according to the serial number of the citation mark, extracting the corresponding citation document information in the domain and splicing it into a reference and displaying it, the method also includes: receiving a selection operation on the displayed citation mark; based on the provided update page, receiving an update result for the selected citation mark; and refreshing the displayed citation mark and reference according to the update result.

[0082] When the user needs to modify the displayed citation mark, the citation mark that needs to be modified can be selected. After receiving the selection operation, an update page is provided to the user. The update page may include, but is not limited to, a citation document information selection control, a style format control, etc. The user can modify the citation document information referenced by the selected citation mark based on the update page, or modify the style format of the citation mark. After receiving the update result after the selected citation mark is modified, the displayed citation mark and references are refreshed based on the update result.

[0083] During refresh, if an update result of modifying the format style of the citation mark is received, the format style of all displayed citation marks in the text is uniformly refreshed. If an update result of modifying the citation document information referenced by the citation mark is received, based on the position information of the insertion point corresponding to the selected citation mark and the updated association relationship, the sequence number of the citation mark is refreshed and displayed based on the refreshed sequence number.

[0084] After the serial number of the citation mark is updated, the number of the citation document information corresponding to the citation mark is updated according to the updated serial number of the citation mark, so as to splice the updated references from small to large according to the updated number.

[0085] The following describes in more detail the method for displaying citations of WEB-side texts provided by the present application in combination with different scenarios of WEB-side text writing.

[0086] In one scenario, after writing the text, the user inserts citation marks and references uniformly. In this scenario, Figure 2 A flowchart of a method for displaying a citation of a WEB text proposed in the second embodiment of the present application is shown. Figure 2 As shown, this embodiment includes steps S201 to S220:

[0087] Step S201, based on the provided citation document information entry page, receiving the entered citation document information. Go to step S203,

[0088] Step S202, based on the provided citation document information acquisition page, obtain the citation address; locate the citation according to the citation address, and perform semantic recognition on the citation; according to the result of semantic recognition, determine and receive the citation document information. Go to step S203.

[0089] Step S203, store all cited document information in the domain. Go to step S206.

[0090] Step S204, based on the provided style format selection page, receive the style format. Go to step S205.

[0091] Step S205: Generate a quotation mark at the insertion point based on the style format. Go to step S206.

[0092] Step S206, based on the provided citation document information selection page, receiving the cited citation document information. Go to step S207.

[0093] Step S207, establishing an association relationship based on the insertion point, citation mark, and cited document information.

[0094] Repeat steps S205 to S207 until the association relationship among all insertion points, citation marks, and cited document information is established. Go to step S208.

[0095] Step S208, determine whether there are more than one citation mark pointing to a citation document information. If yes, go to step S209; if not, go to step S210.

[0096] Step S209, taking the position information of the insertion point corresponding to the first quotation mark as the sorting position. Go to step S211.

[0097] Step S210, using the position information of the insertion point corresponding to the quotation mark as the sorting position. Go to step S211.

[0098] Step S211, assigning serial numbers from small to large to the corresponding citation marks according to the sorting positions from front to back. Go to step S212 and step S218.

[0099] Step S212: If there is a citation mark without a serial number, a serial number is assigned to the citation mark that points to a citation document information and is assigned a serial number. Then, the process goes to step S213.

[0100] Step S213, judging whether there are more than one adjacent quotation mark according to the position information of the insertion point. If yes, go to step S214; if no, go to step S217.

[0101] Step S214: merge adjacent citation marks through separators based on the style format, and arrange the serial numbers of the merged citation marks from small to large. Then, the process goes to step S215.

[0102] Step S215, determine whether there is a continuous interval of the arranged serial numbers. If yes, go to step S216; if not, go to step S217.

[0103] Step S216: replace the part of the continuous interval except the minimum value and the maximum value with a connector. Go to step S217.

[0104] Step S217, displaying the adjusted citation mark based on the position information of the insertion point.

[0105] Step S218: Based on the association relationship, the corresponding cited document information is labeled according to the serial number of the citation mark. Then, the process goes to step S219.

[0106] Step S219: based on the reference format, extract the cited document information in the domain in ascending order of number, and splice the extracted cited document information into references. Go to step S220.

[0107] Step S220: display the references in a preset area.

[0108] In one scenario, a user adds a new citation mark and updates the reference to a text that has displayed citations and references. In this scenario, the style format and reference format have been selected, and the process of the citation display method for WEB text proposed in the embodiment of the present application can be:

[0109] Generates new citation marks at new insertion points based on style formatting.

[0110] Based on the provided citation document information selection page, it is determined whether the cited citation document information is received.

[0111] If so, an association relationship is established based on the newly added insertion point, the newly added citation mark, and the cited citation document information.

[0112] If not, based on the provided citation document information entry page, receive the entered citation document information; or, based on the provided citation document information acquisition page, obtain the citation address, locate the citation according to the citation address, and perform semantic recognition on the citation, and based on the result of the recognition, determine and receive the citation document information; store the received citation document information in the domain; and establish an association relationship based on the newly added insertion point, the newly added citation mark, and the received citation document information.

[0113] Afterwards, the steps S208-S220 in the second embodiment may be executed to adjust and display the citation marks after adding the citation marks, and adjust the references accordingly.

[0114] In one scenario, a user modifies the citation document information cited by the citation mark and adjusts the references accordingly for the text that has displayed citations and references. In this scenario, the style format and reference format have been selected. The process of the citation display method for WEB-side text proposed in the embodiment of the present application can be:

[0115] Receives a selection on a displayed citation marker.

[0116] Based on the provided update page, an update result of the citation document information of the modified citation of the selected citation mark is received.

[0117] Establish the association between the selected citation mark, insertion point, and modified citation document information.

[0118] Afterwards, the steps S208-S220 in the second embodiment may be executed to adjust and display the re-serial number of the citation mark after modifying the citation document information referenced by the citation mark, and adjust the references accordingly.

[0119] In one scenario, a user deletes a citation mark and adjusts the references accordingly for a text that has displayed citations and references. In this scenario, the style format and reference format have been selected. The process of the method for displaying citations of a WEB text proposed in the embodiment of the present application can be:

[0120] Receives a delete action for a displayed citation marker.

[0121] Remove the association between the deleted citation mark, insertion point, and citation document information.

[0122] Afterwards, the steps S208-S220 in the second embodiment may be executed to achieve the purpose of re-numbering the citation mark after deleting the citation mark, adjusting the display, and adjusting the references accordingly.

[0123] Figure 3 A schematic diagram showing the structure of a device for displaying a text quotation on a web page according to an embodiment of the present invention is shown. Figure 3 As shown, the device 300 includes:

[0124] The storage unit 310 is used to receive the cited document information and store the cited document information in the domain;

[0125] The association relationship establishing unit 320 is used to generate a citation mark at the insertion point based on the style format, and establish an association relationship between the insertion point, the citation mark and the cited document information;

[0126] A sorting unit 330, used to form a sequence number of the citation mark according to the position information and the association relationship of the insertion point;

[0127] The citation mark display unit 340 is used to adjust and display the citation marks forming the serial number based on the preset display rules;

[0128] The reference display unit 350 is used to extract the corresponding citation document information in the domain according to the serial number of the citation mark, splice it into a reference and display it.

[0129] In some embodiments of the present application, in the above-mentioned device 300, the storage unit 310 is specifically used to: based on the provided citation document information entry page, receive the entered citation document information; and / or, based on the provided citation document information acquisition page, obtain the citation address; locate the citation according to the citation address, and perform semantic recognition on the citation; based on the result of the semantic recognition, determine and receive the citation document information; store the citation document information in the domain.

[0130] In some embodiments of the present application, in the above-mentioned device 300, the association relationship establishing unit 320 is specifically used to: generate a citation mark at an insertion point based on a style format; wherein the style format is received based on a provided style format selection page; based on a provided citation document information selection page, receive cited citation document information; establish an association relationship based on the insertion point, the citation mark and the cited citation document information.

[0131] In some embodiments of the present application, in the above-mentioned device 300, the sorting unit 330 is specifically used for: if more than one citation mark points to a citation document information, the position information of the insertion point corresponding to the first citation mark is used as the sorting position; if there is only one citation mark pointing to a citation document information, the position information of the insertion point corresponding to the citation mark is used as the sorting position; according to the sorting position from front to back, the corresponding citation marks are assigned serial numbers from small to large; if there are citation marks that are not assigned serial numbers, the serial numbers of the citation marks that point to a citation document information and are assigned serial numbers are assigned as well as the citation marks that are not assigned serial numbers.

[0132] In some embodiments of the present application, in the above-mentioned device 300, the citation mark display unit 340 is specifically used to: determine whether there are more than one adjacent citation marks based on the position information of the insertion point; if so, merge the adjacent citation marks through separators based on the style format, and arrange the serial numbers of the merged citation marks from small to large; determine whether there is a continuous interval in the arranged serial numbers; if so, replace the part of the continuous interval except the minimum and maximum values ​​with a connector; based on the position information of the insertion point, display the adjusted citation mark.

[0133] In some embodiments of the present application, in the above-mentioned device 300, the reference display unit 350 is specifically used to: based on the association relationship, label the corresponding citation document information according to the serial number of the citation mark; based on the reference format, extract the citation document information in the domain in the order of the number from small to large, and splice the extracted citation document information into a reference; display the reference in a preset area.

[0134] In some embodiments of the present application, the above-mentioned device 300 also includes: an update unit, which is specifically used to: receive a selection operation on a displayed citation mark; based on a provided update page, receive an update result for the selected citation mark; and refresh the displayed citation mark and references according to the update result.

[0135] It should be noted that the above-mentioned WEB-side text quotation display device 300 can implement the above-mentioned WEB-side text quotation display method one by one, which will not be described in detail.

[0136] Figure 4 A schematic diagram showing the structure of a computer device according to an embodiment of the present application is shown. Figure 4 As shown, the internal structure of the computer device may include a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, the functions or steps of the citation display method of the WEB-side text are realized.

[0137] In one embodiment, the computer device provided by the present application includes a memory and a processor, the memory stores a database and a computer program that can be run on the processor, and the processor implements the following steps when executing the computer program:

[0138] receiving citation document information, and storing the citation document information in a domain;

[0139] Generate a citation mark at the insertion point based on the style format, and establish an association relationship between the insertion point, the citation mark and the cited document information;

[0140] According to the position information of the insertion point and the association relationship, the sequence number of the citation mark is formed;

[0141] Based on the preset display rules, the citation marks forming the serial numbers are adjusted and displayed;

[0142] According to the serial number of the citation mark, the corresponding citation document information in the domain is extracted and spliced ​​into references and displayed.

[0143] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0144] receiving citation document information, and storing the citation document information in a domain;

[0145] Generate a citation mark at the insertion point based on the style format, and establish an association relationship between the insertion point, the citation mark and the cited document information;

[0146] According to the position information of the insertion point and the association relationship, the sequence number of the citation mark is formed;

[0147] Based on the preset display rules, the citation marks forming the serial numbers are adjusted and displayed;

[0148] According to the serial number of the citation mark, the corresponding citation document information in the domain is extracted and spliced ​​into references and displayed.

[0149] It should be noted that the above functions or steps that can be implemented by the computer device or computer-readable storage medium can refer to the relevant description in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0150] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0151] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0152] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for displaying citations of WEB text, characterized in that: The method comprises: receiving citation document information, and storing the citation document information in a domain; Generating a citation mark at an insertion point based on a style format, and establishing an association relationship between the insertion point, the citation mark and the cited document information; According to the position information of the insertion point and the association relationship, a sequence number of the quotation mark is formed; Based on a preset display rule, the citation marks forming the serial number are adjusted and displayed; According to the serial number of the citation mark, the corresponding citation document information in the domain is extracted, spliced ​​into references and displayed.

2. The method for displaying a text quotation on a web page according to claim 1, characterized in that: The receiving the citation document information and storing the citation document information in a domain includes: Based on the provided citation document information entry page, receiving the entered citation document information; And / or, based on the provided citation document information acquisition page, obtaining a citation address; locating the citation according to the citation address, and performing semantic recognition on the citation; determining and receiving the citation document information according to the result of the semantic recognition; The citation document information is stored in the domain.

3. The method for displaying a text quotation on a web page according to claim 1, characterized in that: The step of generating a citation mark at an insertion point based on a style format and establishing an association relationship between the insertion point, the citation mark and the cited document information includes: generating the citation mark at the insertion point based on the style format; wherein the style format is received based on a provided style format selection page; Based on the provided citation document information selection page, receiving the cited citation document information; The association relationship is established according to the insertion point, the citation mark and the cited document information.

4. The method for displaying a text quotation on a web page according to claim 1, wherein: The forming of the sequence number of the citation mark according to the position information of the insertion point and the association relationship comprises: If more than one citation mark points to one citation document information, the position information of the insertion point corresponding to the first citation mark is used as the sorting position; If there is only one citation mark pointing to one citation document information, the position information of the insertion point corresponding to the citation mark is used as the sorting position; According to the sorting position from front to back, the corresponding citation marks are assigned serial numbers from small to large; If there is a citation mark not assigned a serial number, the citation mark not assigned a serial number is assigned a serial number that points to the citation document information and the citation mark not assigned a serial number.

5. The method for displaying a citation of a WEB text according to claim 1, characterized in that: The adjusting and displaying of the citation marks forming the serial numbers based on the preset display rules includes: According to the position information of the insertion point, determining whether there are more than one adjacent quotation mark; If so, the adjacent citation marks are merged through separators based on the style format, and the serial numbers of the merged citation marks are arranged from small to large; Determine whether there is a continuous interval in the sequence number after arrangement; If it exists, the part of the continuous interval except the minimum and maximum values ​​is replaced by a connector; Based on the position information of the insertion point, the adjusted quotation mark is displayed.

6. The method for displaying a citation of a WEB text according to claim 1, characterized in that: The extracting, according to the serial number of the citation mark, the corresponding citation document information in the domain, splicing it into references and displaying it, comprises: Based on the association relationship, label the corresponding cited document information according to the serial number of the citation mark; Based on the reference format, extract the cited document information in the domain in the order of the labels from small to large, and splice the extracted cited document information into the reference; The reference is displayed in a preset area.

7. The method for displaying a text quotation on a web page according to claim 1, characterized in that: After the step of extracting the corresponding citation document information in the domain according to the serial number of the citation mark, splicing it into references and displaying it, the method further includes: receiving a selection operation on the displayed citation mark; Based on the provided update page, receiving update results for the selected citation mark; The displayed citation marks and references are refreshed according to the update result.

8. A device for displaying citations of WEB text, characterized in that: The device comprises: A storage unit, used to receive the citation document information and store the citation document information in a domain; An association relationship establishing unit, used for generating a citation mark at an insertion point based on a style format, and establishing an association relationship between the insertion point, the citation mark and the cited document information; A sorting unit, used for forming a sequence number of the citation mark according to the position information of the insertion point and the association relationship; A citation mark display unit, used to adjust and display the citation marks forming the serial numbers based on a preset display rule; The reference display unit is used to extract the corresponding citation document information in the domain according to the serial number of the citation mark, splice it into a reference and display it.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for displaying citations of WEB-side texts as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is instructed by a processor, it implements the steps of the method for displaying citations of WEB-side texts as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for displaying quotation marks in on-line editing process

    CN102033864A

  • Display method and device for reference marks in on-line edit

    CN104063368A

  • Method and device for generating document index tag, computer equipment and storage medium

    CN117034866A

  • System for construction of automatic citation index and method thereof

    KR1020130090192A

  • Battery cell and battery assembly

    KR1020250176351A

Cited By

  • Web-based automatic reference format conversion system

    CN121809406A

  • A web-based automated reference format conversion system

    CN121809406B