CN111353108A - Information display method and device - Google Patents

Information display method and device Download PDF

Info

Publication number
CN111353108A
CN111353108A CN202010120824.8A CN202010120824A CN111353108A CN 111353108 A CN111353108 A CN 111353108A CN 202010120824 A CN202010120824 A CN 202010120824A CN 111353108 A CN111353108 A CN 111353108A
Authority
CN
China
Prior art keywords
information
key information
target area
identified
displaying
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.)
Pending
Application number
CN202010120824.8A
Other languages
Chinese (zh)
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010120824.8A priority Critical patent/CN111353108A/en
Publication of CN111353108A publication Critical patent/CN111353108A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The embodiment of the disclosure obtains key information of text content corresponding to effective link information under the condition that the to-be-identified information contains the effective link information after obtaining the to-be-identified information in a target area, displays the key information in the target area, and displays the key information in the target area, so that a user can check the key information in the target area before publishing or sending the key information, further can determine the accuracy of the effective link information based on the key information, and modifies the effective link information when the key information is incorrect, thereby improving the accuracy and the input efficiency of link information input.

Description

Information display method and device
Technical Field
The present disclosure relates to the field of internet communication technologies, and in particular, to a method and an apparatus for displaying information.
Background
With the rapid development of the internet, more and more users send information to other users through clients, or the users publish the information through the clients, so that all other users associated with the users can view the published information.
The information input by the user in the target area of the page may include link information, some link information may have a large number of characters, and the user is prone to input errors, or the input process needs to be carefully checked to avoid sending wrong link information, which results in low input efficiency.
Disclosure of Invention
In view of the above, the present disclosure at least provides an information display method and apparatus.
In a first aspect, an embodiment of the present disclosure provides an information display method, where the method includes:
acquiring information to be identified input into a target area of a current page;
judging whether the target area contains effective link information or not;
when the information to be identified contains effective link information, key information of text content corresponding to the effective link information is obtained;
and displaying the key information in the target area.
In some embodiments of the present disclosure, it is determined whether the information to be identified includes valid link information according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
In some embodiments of the present disclosure, the method further comprises:
and responding to target trigger operation aiming at the key information, or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
In some embodiments of the present disclosure, the operation options include an access operation option and/or a restore operation option; the method further comprises the following steps:
responding to the trigger operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying the text content corresponding to the key information in the target area; and/or the presence of a gas in the gas,
and responding to the triggering operation aiming at the reduction operation option, initiating a reduction request aiming at the key information, and displaying the link information obtained after the key information is reduced in the target area.
In some embodiments of the present disclosure, displaying the key information in the target area includes:
and after rich text processing is carried out on the key information, displaying the key information after the rich text processing in the target area.
In some embodiments of the present disclosure, after the target area displays the key information, the method further includes:
and after target operation aiming at any part of content in the key information is detected, executing an operation result corresponding to the target operation aiming at the key information.
In some embodiments of the disclosure, the target operation comprises at least one of:
cursor movement operation, deletion operation.
In a second aspect, an embodiment of the present disclosure further provides an apparatus for displaying information, where the apparatus includes:
the information acquisition module is used for acquiring information to be identified input into a target area of a current page;
the judging module is used for judging whether the target area contains effective link information or not;
the title obtaining module is used for obtaining key information of text content corresponding to effective link information when the information to be identified contains the effective link information;
and the display module is used for displaying the key information in the target area.
In some embodiments of the present disclosure, the title obtaining module determines whether the information to be identified includes valid link information according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
In some embodiments of the present disclosure, the apparatus further comprises:
and the operation option display module is used for responding to target trigger operation aiming at the key information or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
In some embodiments of the present disclosure, the operation options include an access operation option and/or a restore operation option; the device further comprises: an access module and/or a restore module;
the access module is used for responding to the triggering operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying the text content corresponding to the key information in the target area;
and the restoring module is used for responding to the triggering operation aiming at the restoring operation option, initiating a restoring request aiming at the key information, and displaying the link information obtained after restoring the key information in the target area.
In some embodiments of the present disclosure, the display module includes:
and the rich text processing unit is used for displaying the key information after rich text processing in the target area after the rich text processing is carried out on the key information.
In some embodiments of the present disclosure, after the target area displays the key information, the apparatus further includes:
and the target operation execution module is used for executing an operation result corresponding to the target operation on the key information after the target operation on any part of content in the key information is detected.
In some embodiments of the disclosure, the target operation comprises at least one of:
cursor movement operation, deletion operation.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the method of displaying information as set forth in the first aspect above, or any one of the possible implementations of the first aspect.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program, when executed by a processor, performs the steps of the method for displaying information described in the first aspect, or any possible implementation manner of the first aspect.
According to the method and the device for displaying the information, after the information to be recognized in the target area is obtained, under the condition that the information to be recognized contains the effective link information, the key information of the text content corresponding to the effective link information is obtained, the key information is displayed in the target area, so that a user can check the key information in the target area before publishing or sending the key information, the accuracy of the effective link information can be determined based on the key information, and the effective link information is modified when the key information is incorrect, so that the accuracy and the input efficiency of the link information input are improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present disclosure and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings may be obtained from the drawings without inventive effort.
FIG. 1 illustrates a flow chart of a method of information display provided by an embodiment of the present disclosure;
FIG. 2A is a schematic interface diagram of an information distribution box provided by an embodiment of the present disclosure;
FIG. 2B is a schematic interface diagram of an information sending box according to an embodiment of the disclosure;
FIG. 3A is a schematic diagram illustrating an interface for displaying information to be identified in a target area according to an embodiment of the disclosure;
FIG. 3B is a schematic diagram of an interface for displaying key information in a target area according to an embodiment of the disclosure;
fig. 4 is a schematic interface diagram illustrating a target area displaying operation options in a method for displaying information according to an embodiment of the present disclosure;
fig. 5A is a schematic interface diagram illustrating key information displayed in a method for displaying information according to an embodiment of the present disclosure;
fig. 5B is a schematic interface diagram illustrating a text content displayed in a method for displaying information according to an embodiment of the present disclosure;
FIG. 6 illustrates a flow diagram of a method of information display that may be provided by embodiments of the present disclosure;
FIG. 7 is a schematic structural diagram of an information display apparatus provided in an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Considering that a user cannot determine a link display state of link information after the link information is rich in text before sending or publishing, so that the link information is not flexibly displayed, embodiments of the present disclosure provide a method and an apparatus for displaying information, which are described below by embodiments.
For the convenience of understanding the present embodiment, a detailed description will be given to a method for displaying information disclosed in the embodiments of the present disclosure.
Example one
The method provided by the embodiment of the disclosure can be used for displaying key information corresponding to effective link information in a target area of a client before the client does not release a message, so that a user who inputs the effective link information can check the key information corresponding to the effective link information in the target area, and the user can determine whether the link information is accurate according to the key information.
The embodiment of the present disclosure provides an information display method, referring to a flowchart of the information display method shown in fig. 1, the method includes S101-S104, and the specific process is as follows:
s101, obtaining information to be identified input into a target area of a current page.
In specific implementation, the information to be identified may include at least one of the following information: link information, facial expression information, text information, graphic information, and the like. The information to be identified is information input by a user in a target area of the current page, or the information to be identified is information pasted by the user in the target area of the current page, and the target area is an input area of the information, for example, the target area may be an information publishing frame, an information sending frame, and the like. Illustratively, the information publishing frame is used for responding to a publishing operation and sending the information in the information publishing frame to a corresponding display area so that other clients can view the information; the information sending frame is used for responding to the sending operation and sending the information in the information sending frame to a corresponding second client, the second client is a client corresponding to a receiver of the information, and the second client can be any client having an association relation with the client.
Fig. 2A is an interface schematic diagram of an information publishing frame, where in fig. 2A, a menu bar, a target area, a positioning display area, and a keyboard are sequentially arranged from top to bottom, where the menu bar includes cancel and publish, so that a user can cancel and cancel information in a publishing target area by triggering, that is, cancel a user name a, information to be identified a, a picture 1, and a picture 2 in the publishing target area, and the user can publish a message to be identified a, a picture 1, and a picture 2 in the target area by triggering, where the user name a is a user name of a publisher of the message to be identified; the target area comprises information A to be identified and pictures 1 and 2 input by a user; the keyboard is a 26-key display keyboard, a 9-key display keyboard and the like.
FIG. 2B is a schematic diagram of an interface of a message distribution box; in fig. 2B, a menu bar, a message display area, a target area, and a keyboard are sequentially arranged from top to bottom, where the menu bar includes a user name B and a menu, the user name a is a user name of a sender of a message to be identified, the user name B is a user name of a receiver of the message to be identified, and a user can implement a target operation corresponding to the menu by triggering the menu; the message display area is an area for displaying sent or received history messages, the message display area includes a sent message 1 and a sent message 2, the sent message 1 may be a history message sent by the user name B, and the sent message 2 may be a history message sent by the user name a.
S102, judging whether the target area contains effective link information.
In the embodiment of the disclosure, the information to be identified may be analyzed through a regularized expression, at least one link information included in the information to be identified is obtained, and effective link information is determined from the at least one link information obtained through analysis. The valid link information is correct link information that can be accessed, and the link information is a link in which key information is not displayed in the target area. If the identified link information is an inaccessible wrong link and/or the identified link information is a link which is displayed with key information in the target area and is restored, the link information is not valid link information. The link information corresponds to states, and the states comprise non-conversion, conversion in process, conversion success, restoration success and conversion failure. If the state of the link information included in the information to be identified is not converted (namely, the link of the key information is not displayed in the target area), and the link information is correct link information which can be accessed, the link information is effective link information; if the state of the link information included in the information to be identified is in conversion, or conversion is successful, or restoration is successful, or conversion is failed, or the link information is wrong link information which cannot be accessed, the link information is invalid link information.
S103, when the information to be identified contains the effective link information, key information of the text content corresponding to the effective link information is obtained.
In specific implementation, when the information to be identified includes the effective link information, the client may send the effective link information to the server, and the server obtains the key information of the text content corresponding to the effective link information and sends the key information to the client, where before sending the effective link information to the server, the state of the effective link information is set to be in conversion.
In a specific implementation, the key information may be at least one of the following information: title information corresponding to the text content, website information corresponding to the text content, description information corresponding to the text content (the description information is information preset by the website corresponding to the effective link information), and the like. For example, the key information may be title a, title a-website a-description information a, and the like.
As an alternative embodiment, it is determined whether the information to be identified contains valid link information according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
In the embodiment of the disclosure, the regularization expression analyzes the information to be identified in the target area in real time. Specifically, the information to be identified in the target area is input by the user in real time, the information to be identified is updated once the user inputs one character, the update of the information to be identified in the target area is responded, and the regularization expression judges whether the updated information to be identified comprises effective link information. Illustratively, if a user inputs 'www.XXX.co' in a target area, then 'www.XXX.co' is information to be identified, and the regularization expression analyzes 'www.XXX.co', and judges whether the information to be identified contains effective link information; if the user continues to input m in the target area, the "www.XXX.co" is updated, the updated information to be identified is "www.XXX.com", and whether the updated information to be identified, i.e., "www.XXX.com", has link information is determined in response to the update of the information to be identified in the target area. Further, when it is determined that the information to be identified includes correct (i.e., accessible) link information, determining whether the link information is a link in which corresponding key information is not displayed in the target area, if so, the link is valid link information, wherein a state corresponding to the valid link information is an initial state, and the initial state may be an untransformed state; if not, the link is not valid link information. When it is determined that erroneous (i.e., inaccessible) link information is included in the information to be identified, it is determined that the link is not valid link information.
In the embodiment of the present disclosure, it may also be determined whether the text box loses focus, that is, whether the focus is lost in the target area is determined, if yes, it is determined that the information to be identified in the target area is input, the information to be identified in the target area is acquired, and it is determined whether the information to be identified includes valid link information of key information that is not displayed in the target area. Or, an identifier may also be set, and when it is detected that the identifier is input in the target area, it is determined that the information to be identified in the target area has been input, the information to be identified in the target area is acquired, and whether the information to be identified includes valid link information of the key information that is not displayed in the target area is determined. For example, the identifier may be a space character, a line break character, or the like.
And S104, displaying the key information in the target area.
In the embodiment of the present disclosure, the key information may be displayed in the target area, and for example, the key information may replace the effective link information in the information to be identified, and the key information may be displayed in the area of the effective link information in the target area. Alternatively, the key information may be inserted behind the effective link information in the information to be identified, and displayed. Fig. 3A is a schematic interface diagram showing information to be identified in a target area, fig. 3B is a schematic interface diagram showing key information in the target area, fig. 3A includes information to be identified "www.YYY.com" and a cursor, www.YYY.com is effective link information, "|" is a cursor, the key information corresponding to the effective link information is "poetry a", and as shown in fig. 3B, "www.YYY.com" is replaced by the key information "poetry a", and the key information is shown in the target area, that is, "poetry a" is shown in the target area.
In the embodiment of the disclosure, the key information may be used to replace the corresponding effective link information in the information to be identified, or the key information may also be inserted into the corresponding position in the information to be identified; for example, if the key information corresponding to the information to be identified is "hello, www.YYY.com" or "www.YYY.com" may be "poetry a", then when the key information is displayed in the target area, "hello, poetry a" may be displayed in the target area, or "hello, www.YYY.com poetry a" may be displayed in the target area, or "hello, poetry aww.yyy.com" may also be displayed in the target area.
As an alternative embodiment, displaying the key information in the target area includes:
and after the key information is subjected to rich text processing, displaying the key information subjected to rich text processing in the target area.
In the embodiment of the present disclosure, the process of performing rich text processing on the key information may be: generating NSAttributedString according to the key information, wherein the generated NSAttributedString can set the font corresponding to the key information to a preset color, such as blue, and also can set the corresponding font to a preset font size and the like; generating an icon for the key information, and inserting the icon into the foremost part of the generated nsarributedstring, wherein the shape of the icon and the position of the icon may be set according to actual needs, and may be a regular pattern, an irregular pattern, a foremost part of the nsarributedstring, or a rearmost part of the nsarributedstring.
For example, the key information may be title a, the icon may be a star, and the key information after the icon is inserted may be a star title a or a star title a; generating attribute data for the key information, wherein the attribute data can comprise restored link information, content of the key information, overall characteristics and processed state, and associating the generated attribute data with the key information, and the associated key information is the key information after rich text processing. For example, if the key information after the icon is inserted is a four-star title a, the attribute data corresponding to the key information may be the restored link information: www.zzz.com, content of key information: title a, global features: set as integral, post-treatment state: the transformation was successful, wherein the overall characteristics: the setting as a whole is to set the effective link information and the title a as a whole, so that when the cursor in the target area moves, the cursor can move from the front of the "mark" of the title a to the back of the "a", and when the cursor is deleted, the title a as a whole can be deleted.
As an alternative embodiment, the method further comprises:
and responding to target trigger operation aiming at the key information, or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
In the embodiment of the present disclosure, when the user clicks the key information (that is, the user initiates a target trigger operation for the key information), the target trigger operation for the key information is responded, and the operation option corresponding to the key information is displayed in the target area. Alternatively, an interval preset time period may be set, and the operation option corresponding to the key information may be displayed in the target area. For example, the preset time interval may be 30 seconds, and specifically, after the key information is displayed in the target area, the operation option corresponding to the key information is displayed in the target area at an interval of 30 seconds.
As an optional embodiment, the operation option includes an access operation option and/or a restore operation option; the method further comprises the following steps:
responding to the trigger operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying text content corresponding to the key information in a target area; and/or the presence of a gas in the gas,
and responding to the trigger operation aiming at the reduction operation option, initiating a reduction request aiming at the key information, and displaying the link information obtained after the key information is reduced in the target area.
In the embodiment of the disclosure, when a user clicks key information in a target area, operation options corresponding to the key information can be displayed; or displaying operation options corresponding to the key information at preset time intervals; the key information may be displayed, and the operation options corresponding to the key information may be displayed. The operation options include an access operation option and/or a restore operation option.
In specific implementation, after the operation option corresponding to the key information is displayed in the target area, the displayed operation option may be hidden when the user clicks a preset area in the target area (the preset area may be any area set in the target area, or may be a blank area in the target area where information to be identified is not displayed).
Further, when the user clicks on non-key information in the information to be identified, an operation option corresponding to the non-key information may be displayed, and the operation option corresponding to the non-key information may be at least one of the following options: full selection, copying, pasting, sharing, cutting, translating, searching and the like. In specific implementation, a (Key object observation, KOV) Key Value monitoring mechanism may be set to determine a position of a user's click gesture, and determine whether content at the position is Key information or non-Key information. The copying operation option is used for prompting a user to be capable of triggering the copying operation option to copy part of or all of the information in the information to be identified, the full selection operation option is used for prompting the user to be capable of triggering the full selection operation option to select all of the information in the information to be identified, and the deleting operation option is used for prompting the user to be capable of triggering the deleting operation option to delete part of or all of the information in the information to be identified.
Referring to fig. 4, in the information display method, a target area displays an interface schematic diagram of an operation option, where the target area in fig. 4 includes a user name a and key information: title a, operation option: accessing the link, and restoring the link. The access link is an access operation option, and the recovery link is a recovery operation option.
In the embodiment of the disclosure, a restore request for the key information is initiated in response to a trigger operation for the restore operation option, and link information obtained by restoring the key information is displayed in the target area. In specific implementation, the user may access the text content corresponding to the key information by triggering the access link, for example, the user may click the access link, and the client displays the text content corresponding to the key information, so that the user can view the text content. The user may hide the key information by clicking the restore link, that is, displaying link information obtained after restoring the key information in the target area, for example, if the key information is a four-headed title a, after clicking the restore link, the user restores the four-headed title a to www.zzz.com, that is, restores the key information to the link information, and displays the restored link information in the target area, that is, replacing the key information "/headed title a" with the link information "www.zzz.com" in the target area, and sets the state of the restored link information to restored, where the restored link information may carry a preset color. Specifically, after the user triggers the hidden key information of the restored link, the link information after the hidden key information displayed in the target area may be set in the attribute data. Continuing with the example in S104, after the user hides the key information by triggering the restore link, i.e. after the user clicks the restore link, the key information is: after the poetry a is restored to www.YYY.com, the restored link information is displayed in the target area, that is, the interface schematic diagram shown in fig. 3B is restored to the interface schematic diagram of fig. 3A.
In the embodiment of the disclosure, in response to the trigger operation for the access operation option, an access request for the key information is initiated, and text content corresponding to the key information is displayed in the target area. Specifically, when it is detected that the user clicks an access operation option (access link), an access request for text content is initiated, and the text content corresponding to the key information is displayed on the client. Referring to fig. 5A, in the method for displaying information, an interface schematic diagram of key information is displayed, where the key information in the interface schematic diagram is a heading a, after a target trigger operation for the key information is detected, an operation option (an access link and/or a restore link) corresponding to the key information is displayed in a target area, an access request for the key information is initiated in response to the trigger operation for the access operation option, and text content corresponding to the key information is displayed in the target area, and the interface schematic diagram of the text content corresponding to the key information displayed in fig. 5A is shown in fig. 5B, and the interface schematic diagram in fig. 5B is the key information: title a corresponds to text content a.
As an optional embodiment, after the key information is displayed in the target area, the method further includes:
and after the target operation aiming at any part of content in the key information is detected, executing an operation result corresponding to the target operation aiming at the key information.
In an embodiment of the disclosure, the target operation includes at least one of: cursor movement operation, deletion operation.
In the embodiment of the present disclosure, after the overall feature of the key information is set as a whole in the attribute data corresponding to the key information, when a cursor movement operation for any part of the content in the key information is detected, the cursor may be moved directly from the front of the first character to the back of the last character in the key information, for example, if the key information is a title a, from the front of a star of the title a to the back of the a. When a deletion operation for any part of the content in the key information is detected, the key information as a whole may be deleted entirely. For example, if the key information is a title a, when a deletion of a is detected, all the title a as a whole is deleted.
According to the information display method provided by the embodiment of the disclosure, after the user inputs the information to be recognized in the target area, under the condition that the information to be recognized contains the effective link information, the key information of the text content corresponding to the effective link information is acquired from the server, the key information is displayed in the target area, and the key information is displayed in the target area, so that the user can check the key information in the target area before publishing or sending the key information, further, the accuracy of the effective link information can be determined based on the key information, and the effective link information is modified when the key information is incorrect, thereby improving the accuracy and the input efficiency of the link information input.
Referring to fig. 6, the embodiment of the present disclosure describes in detail the process of displaying information, which specifically includes the following steps:
s601, acquiring information to be identified input into a target area of a current page;
s602, analyzing link information in the information to be identified through a regularized expression;
s603, judging whether the state of the link information is not converted;
s604, if not (the link information can be in the states of conversion success, restoration success, conversion failure and conversion), the link information is not processed;
s605, if yes, key information of the text content corresponding to the link information is obtained;
s606, performing rich text processing on the key information of the text content corresponding to the link information;
s607, inserting the key information after rich text processing into the information to be identified;
and S608, displaying the information to be identified containing the key information after the rich text processing in the target area.
In the embodiment of the disclosure, the information to be identified input into the target area of the current page can be acquired in real time, the information to be identified is detected in real time, the link information in the information to be identified can be analyzed in real time through the regular expression, and the state of the link information is judged.
Wherein, if the link information is a link being converted into key information, the state of the link information is in conversion; if the link information is successfully converted into the key information, the state of the link information corresponding to the key information is successfully converted; if the link information is a link which cannot be successfully converted into the key information, the state of the link information is conversion failure; if the link information is converted into the key information, responding to a restoration request of a user, and converting the key information into corresponding link information, wherein the state of the restored link information is successful in restoration; if the link information is not converted into the key information, the state corresponding to the link information is not converted, and/or if the link information does not have the corresponding state, the state of the link information is considered to be converted into the key information.
Further, if it is determined that the state of the link information in the information to be identified is not converted, key information of text content corresponding to the link information may be acquired from the server, rich text processing may be performed on the acquired key information, the key information after rich text processing is inserted into the information to be identified, and the information to be identified including the key information after rich text processing is displayed in the target area. For example, the key information after rich text processing may replace the corresponding link information, or the key information after rich text processing may be inserted into any position in the information to be identified. For example, the key information after rich text processing may be inserted in front of the corresponding link information, or the key information after rich text processing may be inserted behind the corresponding link information.
Based on the same inventive concept, an information display device corresponding to the information display method is also provided in the embodiments of the present disclosure, and as the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the information display method in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Example two
The embodiment of the present disclosure provides an information display device, referring to a schematic structural diagram of an information display device shown in fig. 7, the information display device includes:
an information obtaining module 701, configured to obtain information to be identified input into a target area of a current page;
a determining module 702, configured to determine whether the target area contains valid link information;
a title obtaining module 703, configured to obtain key information of text content corresponding to effective link information when the information to be identified includes the effective link information;
a display module 704, configured to display the key information in the target area.
As an optional embodiment, the title obtaining module 703 determines whether the information to be identified includes valid link information according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
As an alternative embodiment, the apparatus further comprises:
and the operation option display module is used for responding to target trigger operation aiming at the key information or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
As an optional embodiment, the operation options include an access operation option and/or a restore operation option; the device further comprises: an access module and/or a restore module;
the access module is used for responding to the triggering operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying the text content corresponding to the key information in the target area;
and the restoring module is used for responding to the triggering operation aiming at the restoring operation option, initiating a restoring request aiming at the key information, and displaying the link information obtained after restoring the key information in the target area.
As an alternative embodiment, the display module 704 includes:
and the rich text processing unit is used for displaying the key information after rich text processing in the target area after the rich text processing is carried out on the key information.
As an optional embodiment, after the target area displays the key information, the apparatus further includes:
and the target operation execution module is used for executing an operation result corresponding to the target operation on the key information after the target operation on any part of content in the key information is detected.
As an alternative embodiment, the target operation includes at least one of:
cursor movement operation, deletion operation.
The information display device provided by the embodiment of the present disclosure has the same technical features as the information display method provided by the first embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
EXAMPLE III
Based on the same technical concept, the embodiment of the disclosure also provides an electronic device. Referring to fig. 8, a schematic structural diagram of an electronic device 800 provided in the embodiment of the present disclosure includes a processor 801, a memory 802, and a bus 803. The memory 802 is used for storing execution instructions and includes a memory 8021 and an external memory 8022; the memory 8021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 801 and data exchanged with an external memory 8022 such as a hard disk, the processor 801 exchanges data with the external memory 8022 through the memory 8021, and when the electronic device 800 operates, the processor 801 communicates with the memory 802 through the bus 803, so that the processor 801 executes the following instructions:
acquiring information to be identified input into a target area of a current page;
judging whether the target area contains effective link information or not;
when the information to be identified contains effective link information, key information of text content corresponding to the effective link information is obtained;
and displaying the key information in the target area.
In one possible design, the instructions that may be executed by the processor 801 further include: determining whether the information to be identified contains effective link information according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
In one possible design, the instructions that may be executed by the processor 801 further include:
and responding to target trigger operation aiming at the key information, or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
In one possible design, the instructions that may be executed by the processor 801 further include:
responding to the trigger operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying the text content corresponding to the key information in the target area; and/or the presence of a gas in the gas,
and responding to the triggering operation aiming at the reduction operation option, initiating a reduction request aiming at the key information, and displaying the link information obtained after the key information is reduced in the target area.
In one possible design, the instructions that may be executed by the processor 801 further include:
and after rich text processing is carried out on the key information, displaying the key information after the rich text processing in the target area.
In one possible design, the instructions that may be executed by the processor 801 further include:
and after target operation aiming at any part of content in the key information is detected, executing an operation result corresponding to the target operation aiming at the key information.
In one possible design, the instructions that may be executed by the processor 801 further include:
the target operation includes at least one of:
cursor movement operation, deletion operation.
Example four
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method for displaying information described in any of the above embodiments.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the steps of the above-mentioned method for displaying information can be executed, thereby improving the flexibility of information display.
The computer program product of the method for displaying information provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of information display, the method comprising:
acquiring information to be identified input into a target area of a current page;
judging whether the target area contains effective link information or not;
when the information to be identified contains the effective link information, key information of text content corresponding to the effective link information is obtained;
and displaying the key information in the target area.
2. The method of claim 1, wherein determining whether the information to be identified contains valid link information is performed according to the following steps:
and responding to the update of the information to be identified in the target area, and judging whether the updated information to be identified contains effective link information of corresponding key information which is not displayed in the target area.
3. The method of claim 1, further comprising:
and responding to target trigger operation aiming at the key information, or displaying operation options corresponding to the key information in the target area at intervals of preset time periods.
4. The method of claim 3, wherein the operation options include an access operation option and/or a restore operation option; the method further comprises the following steps:
responding to the trigger operation aiming at the access operation option, initiating an access request aiming at the key information, and displaying the text content corresponding to the key information in the target area; and/or the presence of a gas in the gas,
and responding to the triggering operation aiming at the reduction operation option, initiating a reduction request aiming at the key information, and displaying the link information obtained after the key information is reduced in the target area.
5. The method of claim 1, wherein displaying the key information in the target area comprises:
and after rich text processing is carried out on the key information, displaying the key information after the rich text processing in the target area.
6. The method of claim 1, further comprising, after the target area displays the key information:
and after target operation aiming at any part of content in the key information is detected, executing an operation result corresponding to the target operation aiming at the key information.
7. The method of claim 6, wherein the target operation comprises at least one of:
cursor movement operation, deletion operation.
8. An apparatus for displaying information, the apparatus comprising:
the information acquisition module is used for acquiring information to be identified input into a target area of a current page;
the judging module is used for judging whether the target area contains effective link information or not;
the title obtaining module is used for obtaining key information of text content corresponding to effective link information when the information to be identified contains the effective link information;
and the display module is used for displaying the key information in the target area.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of displaying information according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method of displaying information according to any one of claims 1 to 7.
CN202010120824.8A 2020-02-26 2020-02-26 Information display method and device Pending CN111353108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010120824.8A CN111353108A (en) 2020-02-26 2020-02-26 Information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010120824.8A CN111353108A (en) 2020-02-26 2020-02-26 Information display method and device

Publications (1)

Publication Number Publication Date
CN111353108A true CN111353108A (en) 2020-06-30

Family

ID=71192495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010120824.8A Pending CN111353108A (en) 2020-02-26 2020-02-26 Information display method and device

Country Status (1)

Country Link
CN (1) CN111353108A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066850A (en) * 2016-05-30 2016-11-02 乐视控股(北京)有限公司 A kind of content processing method and device
CN106254217A (en) * 2016-08-09 2016-12-21 百度在线网络技术(北京)有限公司 Instant messaging comprises the treating method and apparatus of the message of URL address
CN109492210A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 A kind of online document content displaying method, device, storage medium and electronic equipment
CN110459223A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Data tracking processing method, equipment, storage medium and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066850A (en) * 2016-05-30 2016-11-02 乐视控股(北京)有限公司 A kind of content processing method and device
CN106254217A (en) * 2016-08-09 2016-12-21 百度在线网络技术(北京)有限公司 Instant messaging comprises the treating method and apparatus of the message of URL address
CN109492210A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 A kind of online document content displaying method, device, storage medium and electronic equipment
CN110459223A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Data tracking processing method, equipment, storage medium and device

Similar Documents

Publication Publication Date Title
EP3623942B1 (en) Message processing method and apparatus, storage medium, and computer device
CN109873745B (en) Communication control method, communication control device and storage medium
CN107688664B (en) Chart generation method and device, computer equipment and storage medium
US10810698B2 (en) Information processing method and client
CN105871690B (en) Method and device for realizing instant messaging
CN112445579B (en) Zero terminal data processing system and file copying method and device thereof
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN113268261B (en) Page content display method and device and electronic equipment
CN110851209A (en) Data processing method and device, electronic equipment and storage medium
WO2016095502A1 (en) Mathematical formula processing method, device, apparatus and computer storage medium
CN110633116A (en) Screenshot processing method and device
CN111884843B (en) Message processing method and device, electronic equipment and storage medium
CN112702255A (en) Instant messaging message processing method and device and electronic equipment
CN102567048B (en) Change notifications from an updated data representation
CN112905936A (en) Page recording animation generation method, page operation log query method and computer equipment
JP2019101889A (en) Test execution device and program
CN111353108A (en) Information display method and device
CN102662801A (en) Method, client and system for recovering program through instant communication tool
CN105988992A (en) Icon pushing method and device
CN114237560A (en) Data storage method, storage device, electronic equipment and storage medium
CN113485963A (en) Information acquisition method and device and computer storage medium
CN107291698B (en) Information correction method, information correction device, storage medium and electronic equipment
CN112257450A (en) Data processing method, device, readable storage medium and equipment
CN112070587A (en) Information sharing method and device for virtual article, electronic equipment and storage medium
CN112035773A (en) Data processing method and server side equipment

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information