CN114296859A - Method and device for displaying text content in webpage, electronic equipment and storage medium - Google Patents

Method and device for displaying text content in webpage, electronic equipment and storage medium Download PDF

Info

Publication number
CN114296859A
CN114296859A CN202111678767.6A CN202111678767A CN114296859A CN 114296859 A CN114296859 A CN 114296859A CN 202111678767 A CN202111678767 A CN 202111678767A CN 114296859 A CN114296859 A CN 114296859A
Authority
CN
China
Prior art keywords
webpage
word
interest
user
current
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
CN202111678767.6A
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu 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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN202111678767.6A priority Critical patent/CN114296859A/en
Publication of CN114296859A publication Critical patent/CN114296859A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for displaying text contents in a webpage, electronic equipment and a storage medium, relates to the technical field of computers, and can improve the reading efficiency of users. The method comprises the following steps: acquiring user interest words in a webpage currently displayed on a screen of local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and performing enhanced display on the acquired interest word in the currently displayed webpage in a preset enhanced display mode. The method and the device are suitable for displaying the text content in the webpage.

Description

Method and device for displaying text content in webpage, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying text contents in a webpage, electronic equipment and a storage medium.
Background
With the gradual popularization of internet applications, people are more and more accustomed to selecting various information from the internet, such as text information like news information. However, at present, the text information on the webpage is very much and dazzling. In addition, at present, people have fast pace of life and short idle time, so how to improve reading efficiency and obtain more effective information in limited time becomes a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying text content in a web page, an electronic device, and a storage medium, which can improve reading efficiency of a user.
In a first aspect, an embodiment of the present invention provides a method for displaying text content in a web page, which is applied to a client, and includes: acquiring user interest words in a webpage currently displayed on a screen of local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and performing enhanced display on the acquired user interest words in the currently displayed webpage in a preset enhanced display mode.
Optionally, the obtaining of the user interest word in the webpage currently displayed on the screen of the local terminal device includes: extracting words appearing in a webpage currently displayed on a screen of local terminal equipment to obtain a current webpage word set; and matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
Optionally, the obtaining of the user interest word in the webpage currently displayed on the screen of the local terminal device includes: sending a current user identification of local terminal equipment, text content of a webpage currently displayed on a screen of the local terminal equipment or a current webpage word set to a server side so that the server side determines an interest word library of a current user according to the current user identification, matching the text content of the webpage or the current webpage word set with interest words in the interest word library of the current user, and determining user interest words in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment; and receiving the user interest words in the webpage sent by the server side.
Optionally, the enhancing display of the obtained user interest word in the currently displayed webpage in a preset enhancing display manner includes: and performing enhanced display on the acquired user interest words in the currently displayed webpage in at least one of the following enhanced display modes: enlarging the font; thickening the font; adding a specified color to the font; adding a specified color to the font background; the font is underlined; the font is italicized.
Optionally, when the acquired user interest word is enhanced and displayed in the currently displayed webpage in a preset enhanced display manner, the method further includes: and adding an extended reading hyperlink to the user interest word.
In a second aspect, an embodiment of the present invention provides another method for displaying text content in a web page, which is applied to a server side, and includes: receiving a current user identification of the terminal equipment, text content of a webpage currently displayed on a screen of the terminal equipment or a current webpage word set, which are sent by the terminal equipment; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment; determining an interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance; matching the text content of the webpage or the current webpage word set with the interest words in the interest word library, and determining the user interest words in the currently displayed webpage; and sending the user interest words to the terminal equipment so that the terminal equipment can perform enhanced display on the user interest words.
Optionally, before receiving the current user identifier of the terminal device, the text content of the webpage currently displayed on the screen of the terminal device, or the current webpage word set sent by the terminal device, the method further includes: receiving a user identification sent by terminal equipment and an interest word of a user corresponding to the user identification; and establishing an interest vocabulary library of the user based on the user identification and the interest words of the user.
In a third aspect, an embodiment of the present invention provides a device for displaying text content in a web page, where the device is disposed at a client, and includes: the acquisition module is used for acquiring user interest words in a webpage currently displayed on a screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and the display module is used for performing enhanced display on the acquired user interest words in the currently displayed webpage in a preset enhanced display mode.
Optionally, the obtaining module includes: the extraction unit is used for extracting words appearing in the webpage currently displayed on the screen of the local terminal equipment to obtain a current webpage word set; and the matching unit is used for matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
Optionally, the obtaining module includes: a sending unit, configured to send a current user identifier of a local terminal device, and text content of a currently displayed webpage or a current webpage word set on a screen of the local terminal device to a server, so that the server determines an interest word bank of a current user according to the current user identifier, matches the text content of the webpage or the current webpage word set with an interest word in the interest word bank of the current user, and determines a user interest word in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment; and the receiving unit is used for receiving the user interest words in the webpage sent by the server side.
Optionally, the display module is specifically configured to: and performing enhanced display on the acquired user interest words in the currently displayed webpage in at least one of the following enhanced display modes: enlarging the font; thickening the font; adding a specified color to the font; adding a specified color to the font background; the font is underlined; the font is italicized.
Optionally, the apparatus further comprises: and the adding module is used for enhancing the acquired user interest words in the currently displayed webpage in a preset enhanced display mode and adding extended reading hyperlinks to the user interest words.
In a fourth aspect, an embodiment of the present invention provides a device for displaying text content in a web page, where the device is disposed at a server side, and the device includes: the first receiving module is used for receiving a current user identification of the terminal equipment, text contents of a webpage currently displayed on a screen of the terminal equipment or a current webpage word set, which are sent by the terminal equipment; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment; the determining module is used for determining an interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance; the matching module is used for matching the text content of the webpage or the current webpage word set with the interest words in the interest word bank and determining the user interest words in the currently displayed webpage; and the sending module is used for sending the user interest words to the terminal equipment so as to enable the terminal equipment to perform enhanced display on the user interest words.
Optionally, the apparatus further comprises: the second receiving module is used for receiving the user identification sent by the terminal equipment and the interest words of the user corresponding to the user identification before receiving the current user identification of the terminal equipment sent by the terminal equipment, the text content of the webpage currently displayed on the screen of the terminal equipment or the current webpage word set; and the establishing module is used for establishing an interest vocabulary library of the user based on the user identification and the interest words of the user.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any display method of the text content in the webpage provided by the embodiment of the invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement any one of the methods for displaying text in a web page provided by the embodiments of the present invention.
The method and the device for displaying the text contents in the webpage, the electronic equipment and the storage medium provided by the embodiment of the invention can acquire the user interest words in the webpage currently displayed on the screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and performing enhanced display on the acquired interest word in the currently displayed webpage in a preset enhanced display mode. Therefore, the embodiment of the invention can acquire the user interest words in the currently displayed webpage of the current user and enhance and display the user interest words in the webpage display interface, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words interested by the user from the webpage, and the user interest words also indicate the positions of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interest words and the content of the positions, and the reading efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for displaying text content in a web page according to an embodiment of the present invention;
FIG. 2 is another flowchart of a method for displaying text content in a web page according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a display device for displaying text content in a web page according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display device for displaying text content in a web page according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, an embodiment of the present invention provides a method for displaying text contents in a web page, which can improve reading efficiency of a user.
As shown in fig. 1, an embodiment of the present invention provides a method for displaying text content in a web page, including:
s11, acquiring user interest words in the webpage currently displayed on the screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment;
the embodiment of the invention can be applied to a client, namely the client is the local terminal device in the step, and can be any electronic device capable of displaying the webpage, such as a computer, a mobile phone and the like. The following description is given by taking a local terminal device as an example of a computer, when a user browses a webpage on a screen of the computer, some text contents in the currently displayed webpage are interesting to the user, and some text contents are not interesting to the user, so that the user needs to screen out the interesting contents in the reading process, and the reading efficiency is low.
Moreover, when different users read the same article, the content of interest may be completely different. For example, in an article describing millet cars, the contents of interest to developers and sellers are completely different, and the technicians pay more attention to the technical contents, while the sellers pay more attention to the marketing contents. The embodiment of the invention can pertinently obtain the user interest words of the current user in the current webpage, for example, if the current user is a technician A, the obtained user interest words are technical words such as 'automobile chip', 'turbo-charging' and the like, and if the current user is a salesperson B, the obtained user interest words are sales words such as 'stock-sales ratio', 'same-ratio growth rate' and the like.
And S12, performing enhanced display on the acquired user interest word in the currently displayed webpage in a preset enhanced display mode.
After the user interest word of the current user is obtained in step S11, the current user is still taken as the technician a for example, the user interest word is a technical word such as "car chip", "turbo boost", and the like, and in this step, the user interest word of the technician a is displayed on the web page in an enhanced manner, so that the user interest word appears very conspicuous on the web page. Therefore, the technical staff A can quickly acquire the interested words from the webpage, and the interested words of the user also indicate the position of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interested words and the content of the position, thereby improving the reading efficiency.
The method for displaying the text content in the webpage can acquire the user interest words in the webpage currently displayed on the screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and performing enhanced display on the acquired interest word in the currently displayed webpage in a preset enhanced display mode. Therefore, the embodiment of the invention can acquire the user interest words in the currently displayed webpage of the current user and enhance and display the user interest words in the webpage display interface, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words interested by the user from the webpage, and the user interest words also indicate the positions of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interest words and the content of the positions, and the reading efficiency is improved.
Optionally, in an embodiment of the present invention, the acquiring a user interest word in a webpage currently displayed on a screen of a local terminal device includes: extracting words appearing in a webpage currently displayed on a screen of local terminal equipment to obtain a current webpage word set; and matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
In the embodiment of the invention, because the interests of the users are different, each user has an own interest vocabulary library, specifically, a user identifier can be established for each user in advance, an identifier can be established for each interest vocabulary library, and a mapping relation can be established for the identifiers of the user identifier and the identifier of the interest vocabulary library. For a specific user, for example, a technician a, may perform word segmentation processing on all the text contents in the history reading record of the technician a in advance according to the history reading record of the technician a, and sort the words obtained by the word segmentation processing according to the occurrence times, where the greater the occurrence times, the higher the interest of the current user in the current user is. In addition, in order to screen invalid words which cannot provide valid information, before the times of the words are sorted, the words can be screened according to a blacklist, for example, some invalid words which are frequently used but cannot provide valid information are screened out, if the words are used, for example, words which can provide valid information are only sorted, words of which the occurrence times reaches a threshold value are intercepted, and therefore an interest word library of each user is formed.
When a technician a browses the text content on the web page, the embodiment of the invention can utilize the word segmentation technology to perform word segmentation processing on the text content in the current web page so as to divide the text content into a plurality of independent words, and the set of all the words is the word set of the current web page. Then, each word in the current webpage word set can be matched with the pre-established interest word library of the current user, if the word is located in the interest word library of the current user, the word is judged to be the interest word of the current user, otherwise, the word is not the interest word of the current user.
Specifically, in an embodiment of the present invention, the obtaining of the user interest word in the webpage currently displayed on the screen of the local terminal device may include: sending a current user identification of local terminal equipment, text content of a webpage currently displayed on a screen of the local terminal equipment or a current webpage word set to a server side so that the server side determines an interest word library of a current user according to the current user identification, matching the text content of the webpage or the current webpage word set with interest words in the interest word library of the current user, and determining user interest words in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment; and receiving the user interest words in the webpage sent by the server side.
In the embodiment of the invention, the local terminal equipment can send the current user identification and the text content in the current webpage to the corresponding server side, and each user has own unique interested content, so that each user has a corresponding interested word bank, specifically, each interested word bank also has an identification, and a mapping relation exists between the interested word bank identification and the user identification. After the server side obtains the current user identification, which interest vocabulary library corresponds to the current user identification can be determined. The server can adopt a word segmentation technology to perform word segmentation processing on the text content after receiving the text content on the webpage, match each word in a current webpage word set obtained through word segmentation processing with an interest word in an interest word library established in advance of a current user to obtain a user interest word of the current user on the current webpage, and then send the user interest word to the local terminal equipment.
It can be understood that the local terminal device may also perform word segmentation processing on the text content in the current webpage, and send the obtained current webpage word set to the server, so that the server does not need to perform word segmentation processing on the text content in the webpage, and can directly use the current webpage word set sent by the local terminal device.
Optionally, in an embodiment of the present invention, the performing, in a preset enhanced display manner, enhanced display on the obtained user interest word in the currently displayed webpage may include: and performing enhanced display on the acquired user interest words in the currently displayed webpage in at least one of the following enhanced display modes: enlarging the font; thickening the font; adding a specified color to the font; adding a specified color to the font background; the font is underlined; the font is italicized.
In the embodiment of the invention, after the interest word of the current user in the current webpage is obtained, the interest word of the user can be displayed in a striking form such as a font enlarging mode, a font thickening mode, a designated color (for example, red), a designated background color (for example, yellow), underlining, italic characters and the like, so that the current user can quickly obtain the corresponding interest word of the user in the current webpage.
Optionally, in an embodiment of the present invention, while the obtained user interest word is displayed in the currently displayed webpage in an enhanced manner in a preset enhanced display manner, the method may further include: and adding an extended reading hyperlink to the user interest word.
In the embodiment of the invention, the user interest word can be set to be in the form of the hyperlink which points to the extended reading content corresponding to the user interest word while the user interest word is displayed in an enhanced manner, for example, if the current user is a technician A, the user interest word is turbo-charged, the four characters of the turbo-charged word can be set to be in the form of the hyperlink which points to the hundred-degree search page corresponding to the turbo-charged word while the four characters of the turbo-charged word are set to be in the form of red characters, and the hyperlink can be directly clicked when the user needs to know the extended content of the turbo-charged word in the reading process, so that the extended content of the turbo-charged word can be conveniently obtained, and the reading experience of the user is improved.
In a second aspect, an embodiment of the present invention provides another method for displaying text content in a web page, which can improve reading efficiency of a user.
As shown in fig. 2, an embodiment of the present invention provides another method for displaying text content in a web page, including:
s21, receiving a current user identification of the terminal device, text content of a webpage currently displayed on a screen of the terminal device or a current webpage word set, which are sent by the terminal device; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment;
s22, determining the interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance;
s23, matching the text content of the webpage or the current webpage word set with the interest words in the interest word library, and determining the user interest words in the webpage which is displayed currently;
s24, sending the user interest word to the terminal device, so that the terminal device can display the user interest word in an enhanced manner.
For convenience of description, the above four steps will be described in combination below.
The embodiment of the invention can be applied to a server side, and each user has own unique interesting content, so each user has a corresponding interesting word stock, specifically, each interesting word stock also has an identifier, and a mapping relation exists between the identifier of the interesting word stock and the identifier of the user. After receiving the current user identifier sent by the terminal device, the server side can determine which interest vocabulary library corresponds to the current user identifier according to the current user identifier. After receiving the text content on the current webpage, the server side can adopt a word segmentation technology to perform word segmentation processing on the text content, matches each word in a word set of the current webpage obtained through word segmentation processing with an interest word in an interest word library established in advance of the current user to obtain a user interest word of the current user on the current webpage, and then sends the user interest word to the terminal equipment. After receiving the user interest words, the terminal equipment can display the user interest words to the current user on the webpage in an enhanced display mode, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words which are interested by the user from the webpage, the user interest words also indicate the positions of the content which is interested by the user, the user can obtain the content which is interested by the user in the text content on the whole webpage by reading the interest words and the content at the positions, and reading efficiency is improved.
It can be understood that the terminal device may also perform word segmentation processing on the text content in the current webpage, and send the obtained current webpage word set to the server, so that the server does not need to perform word segmentation processing on the text content in the webpage, and can directly use the current webpage word set sent by the terminal device.
The method for displaying the text content in the webpage provided by the embodiment of the invention can receive the current user identification of the terminal equipment, the text content of the webpage currently displayed on the screen of the terminal equipment or the current webpage word set, which are sent by the terminal equipment; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment; determining an interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance; matching the text content of the webpage or the current webpage word set with the interest words in the interest word library, and determining the user interest words in the currently displayed webpage; and sending the user interest words to the terminal equipment so that the terminal equipment can perform enhanced display on the user interest words. Therefore, the embodiment of the invention can acquire the user interest words in the currently displayed webpage of the current user and enhance and display the user interest words in the webpage display interface, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words interested by the user from the webpage, and the user interest words also indicate the positions of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interest words and the content of the positions, and the reading efficiency is improved.
Optionally, in an embodiment of the present invention, before step S21, the method may further include: receiving a user identification sent by terminal equipment and an interest word of a user corresponding to the user identification; and establishing an interest vocabulary library of the user based on the user identification and the interest words of the user.
Before the server receives the user identifier sent by the terminal device and the text content of the webpage currently displayed on the screen of the terminal device or the word set of the current webpage, the server may first receive each user identifier sent by the terminal device, and use the user interest word corresponding to each user identifier, so that the server may generate the user interest word library corresponding to the user identifier according to the user identifier and the user interest word corresponding to the user identifier. For example, the interest vocabulary library of the technician a may be generated according to the identifier of the technician a and the interest word of the technician a, the aforementioned manner may be adopted in the embodiment of the present invention, and the terminal device may generate the interest vocabulary library of the technician a according to the history reading record of the technician a.
After the interest vocabulary library of each user is established, if the current user is one of the users, the user interest words of the current user on the current page can be determined by using the pre-established interest vocabulary library.
In a third aspect, an embodiment of the present invention provides a device for displaying text contents in a web page, which can improve reading efficiency of a user.
As shown in fig. 3, an embodiment of the present invention provides a device for displaying text content in a web page, including: the acquiring module 31 is configured to acquire a user interest word in a webpage currently displayed on a screen of the local terminal device; the user interest word is an interest word of a current user of the terminal equipment; and the display module 32 is configured to perform enhanced display on the acquired user interest word in the currently displayed webpage in a preset enhanced display manner.
The display device for the text content in the webpage provided by the embodiment of the invention can acquire the user interest words in the webpage currently displayed on the screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment; and performing enhanced display on the acquired interest word in the currently displayed webpage in a preset enhanced display mode. Therefore, the embodiment of the invention can acquire the user interest words in the currently displayed webpage of the current user and enhance and display the user interest words in the webpage display interface, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words interested by the user from the webpage, and the user interest words also indicate the positions of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interest words and the content of the positions, and the reading efficiency is improved.
Optionally, the obtaining module 31 includes: the extraction unit is used for extracting words appearing in the webpage currently displayed on the screen of the local terminal equipment to obtain a current webpage word set; and the matching unit is used for matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
Optionally, the obtaining module 31 includes: a sending unit, configured to send a current user identifier of a local terminal device, and text content of a currently displayed webpage or a current webpage word set on a screen of the local terminal device to a server, so that the server determines an interest word bank of a current user according to the current user identifier, matches the text content of the webpage or the current webpage word set with an interest word in the interest word bank of the current user, and determines a user interest word in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment; and the receiving unit is used for receiving the user interest words in the webpage sent by the server side.
Optionally, the display module 32 is specifically configured to: and performing enhanced display on the acquired user interest words in the currently displayed webpage in at least one of the following enhanced display modes: enlarging the font; thickening the font; adding a specified color to the font; adding a specified color to the font background; the font is underlined; the font is italicized.
Optionally, the apparatus further comprises: and the adding module is used for enhancing the acquired user interest words in the currently displayed webpage in a preset enhanced display mode and adding extended reading hyperlinks to the user interest words.
In a fourth aspect, an embodiment of the present invention provides another apparatus for displaying text content in a web page, which can improve reading efficiency of a user.
As shown in fig. 4, an embodiment of the present invention provides a device for displaying text content in a web page, including: a first receiving module 41, configured to receive a current user identifier of a terminal device, text content of a currently displayed webpage on a screen of the terminal device, or a current webpage word set, where the current user identifier of the terminal device is sent by the terminal device; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment; a determining module 42, configured to determine, according to the current user identifier, an interest vocabulary library of the current user in the terminal device; the interest vocabulary library is established in advance; a matching module 43, configured to match the text content of the web page or the current web page word set with the interest words in the interest word library, and determine user interest words in the currently displayed web page; a sending module 44, configured to send the user interest word to the terminal device, so that the terminal device performs enhanced display on the user interest word.
The display device for the text content in the webpage provided by the embodiment of the invention can receive the current user identification of the terminal equipment, the text content of the webpage currently displayed on the screen of the terminal equipment or the current webpage word set, which are sent by the terminal equipment; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment; determining an interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance; matching the text content of the webpage or the current webpage word set with the interest words in the interest word library, and determining the user interest words in the currently displayed webpage; and sending the user interest words to the terminal equipment so that the terminal equipment can perform enhanced display on the user interest words. Therefore, the embodiment of the invention can acquire the user interest words in the currently displayed webpage of the current user and enhance and display the user interest words in the webpage display interface, so that the user interest words are very striking in the webpage, the current user can quickly acquire the words interested by the user from the webpage, and the user interest words also indicate the positions of the content interested by the user, so that the user can acquire the content interested by the user in the text content on the whole webpage by reading the interest words and the content of the positions, and the reading efficiency is improved.
Optionally, the apparatus further comprises: the second receiving module is used for receiving the user identification sent by the terminal equipment and the interest words of the user corresponding to the user identification before receiving the current user identification of the terminal equipment sent by the terminal equipment, the text content of the webpage currently displayed on the screen of the terminal equipment or the current webpage word set; and the establishing module is used for establishing an interest vocabulary library of the user based on the user identification and the interest words of the user.
In a fifth aspect, an embodiment of the present invention provides an electronic device, which can improve reading efficiency of a user.
As shown in fig. 5, an electronic device provided by an embodiment of the present invention may include: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 52 reads the executable program code stored in the memory 53 to run a program corresponding to the executable program code, so as to execute the method for displaying text in a web page according to any one of the embodiments.
For specific execution processes of the above steps by the processor 52 and further steps executed by the processor 52 by running the executable program code, reference may be made to the description of the foregoing embodiments, and details are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement any method for displaying text in a webpage provided in the foregoing embodiment, so that corresponding technical effects can also be achieved, which has been described in detail above and will not be described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional divisions into various units/sub-units. Of course, the functionality of the units/sub-units may be implemented in one or more software and/or hardware when implementing the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for displaying text content in a webpage is applied to a client, and comprises the following steps:
acquiring user interest words in a webpage currently displayed on a screen of local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment;
and performing enhanced display on the acquired user interest words in the currently displayed webpage in a preset enhanced display mode.
2. The method for displaying text contents in a web page according to claim 1, wherein the obtaining of the user interest word in the web page currently displayed on the screen of the local terminal device comprises:
extracting words appearing in a webpage currently displayed on a screen of local terminal equipment to obtain a current webpage word set;
and matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
3. The method for displaying text contents in a web page according to claim 1, wherein the obtaining of the user interest word in the web page currently displayed on the screen of the local terminal device comprises:
sending a current user identification of local terminal equipment, text content of a webpage currently displayed on a screen of the local terminal equipment or a current webpage word set to a server side so that the server side determines an interest word library of a current user according to the current user identification, matching the text content of the webpage or the current webpage word set with interest words in the interest word library of the current user, and determining user interest words in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment;
and receiving the user interest words in the webpage sent by the server side.
4. The method for displaying text contents on a webpage according to claim 1, wherein the step of performing enhanced display on the acquired user interest word in the currently displayed webpage in a preset enhanced display manner includes:
and performing enhanced display on the acquired user interest words in the currently displayed webpage in at least one of the following enhanced display modes:
enlarging the font;
thickening the font;
adding a specified color to the font;
adding a specified color to the font background;
the font is underlined;
the font is italicized.
5. The method for displaying text contents on a web page according to claim 1, wherein the method further comprises, while the acquired user interest word is displayed in the web page currently displayed in an enhanced manner in a preset enhanced display manner, the method further comprising:
and adding an extended reading hyperlink to the user interest word.
6. A method for displaying text content in a webpage is applied to a server side, and comprises the following steps:
receiving a current user identification of the terminal equipment, text content of a webpage currently displayed on a screen of the terminal equipment or a current webpage word set, which are sent by the terminal equipment; the current webpage word set is a set of words appearing in a webpage currently displayed on a screen of the terminal equipment;
determining an interest vocabulary library of the current user in the terminal equipment according to the current user identification; the interest vocabulary library is established in advance;
matching the text content of the webpage or the current webpage word set with the interest words in the interest word library, and determining the user interest words in the currently displayed webpage;
and sending the user interest words to the terminal equipment so that the terminal equipment can perform enhanced display on the user interest words.
7. The method for displaying text contents on a web page according to claim 6, wherein before receiving the current user identifier of the terminal device, the text contents of the web page currently displayed on the screen of the terminal device, or the current set of words of the web page sent by the terminal device, the method further comprises:
receiving a user identification sent by terminal equipment and an interest word of a user corresponding to the user identification;
and establishing an interest vocabulary library of the user based on the user identification and the interest words of the user.
8. The utility model provides a display device of text content in webpage which sets up in the customer end, includes:
the acquisition module is used for acquiring user interest words in a webpage currently displayed on a screen of the local terminal equipment; the user interest word is an interest word of a current user of the terminal equipment;
and the display module is used for performing enhanced display on the acquired user interest words in the currently displayed webpage in a preset enhanced display mode.
9. The apparatus for displaying text content on a web page according to claim 8, wherein the obtaining module comprises:
the extraction unit is used for extracting words appearing in the webpage currently displayed on the screen of the local terminal equipment to obtain a current webpage word set;
and the matching unit is used for matching each word in the current webpage word set with an interest word in the interest word library of the current user, which is established in advance locally, and taking the word matched with the interest word in the interest word library in the current webpage word set as the interest word in the webpage displayed on the screen of the local terminal equipment currently.
10. The apparatus for displaying text content on a web page according to claim 8, wherein the obtaining module comprises:
a sending unit, configured to send a current user identifier of a local terminal device, and text content of a currently displayed webpage or a current webpage word set on a screen of the local terminal device to a server, so that the server determines an interest word bank of a current user according to the current user identifier, matches the text content of the webpage or the current webpage word set with an interest word in the interest word bank of the current user, and determines a user interest word in the webpage; the current webpage word set is a word set appearing in a webpage currently displayed on a screen of the local terminal equipment;
and the receiving unit is used for receiving the user interest words in the webpage sent by the server side.
CN202111678767.6A 2021-12-31 2021-12-31 Method and device for displaying text content in webpage, electronic equipment and storage medium Pending CN114296859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111678767.6A CN114296859A (en) 2021-12-31 2021-12-31 Method and device for displaying text content in webpage, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111678767.6A CN114296859A (en) 2021-12-31 2021-12-31 Method and device for displaying text content in webpage, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114296859A true CN114296859A (en) 2022-04-08

Family

ID=80974976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111678767.6A Pending CN114296859A (en) 2021-12-31 2021-12-31 Method and device for displaying text content in webpage, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114296859A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
CN103154949A (en) * 2010-08-11 2013-06-12 耐克国际有限公司 Intelligent display of information in a user interface
CN106156259A (en) * 2015-04-28 2016-11-23 天脉聚源(北京)科技有限公司 A kind of user behavior information displaying method and system
CN107797646A (en) * 2017-11-07 2018-03-13 广东欧珀移动通信有限公司 Method, device, terminal device and storage medium
CN111800492A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Method and device for marking characters in web page, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103154949A (en) * 2010-08-11 2013-06-12 耐克国际有限公司 Intelligent display of information in a user interface
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
CN106156259A (en) * 2015-04-28 2016-11-23 天脉聚源(北京)科技有限公司 A kind of user behavior information displaying method and system
CN107797646A (en) * 2017-11-07 2018-03-13 广东欧珀移动通信有限公司 Method, device, terminal device and storage medium
CN111800492A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Method and device for marking characters in web page, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11036820B2 (en) Page loading method and electronic device
CN105808685B (en) Promotion information pushing method and device
CN105389722B (en) Malicious order identification method and device
CN109145204B (en) Portrait label generation and use method and system
CN106095453B (en) Information display method and device and electronic equipment
CN108038398B (en) Two-dimensional code analysis capability test method and device and electronic equipment
CN105809471B (en) Method and device for acquiring user attribute and electronic equipment
CN109656385B (en) Input prediction method and device based on knowledge graph and electronic equipment
CN111178056A (en) Deep learning based file generation method and device and electronic equipment
US20180349580A1 (en) Information processing method and device, and electronic equipment
CN109600638B (en) Live broadcast method and device, electronic equipment and computer readable storage medium
CN107562432B (en) Information processing method and related product
CN105320641B (en) Text verification method and user terminal
US11294964B2 (en) Method and system for searching new media information
CN115374793B (en) Voice data processing method based on service scene recognition and related device
CN110751510A (en) Method and device for determining promotion list
CN114296859A (en) Method and device for displaying text content in webpage, electronic equipment and storage medium
CN106779844B (en) Method and device for acquiring value added service information and electronic equipment
CN115048908A (en) Method and device for generating text directory
CN114338102A (en) Security detection method and device, electronic equipment and storage medium
CN114065005A (en) System configuration optimization parameter method and device, electronic equipment and storage medium
CN109376298B (en) Data processing method and device, terminal equipment and computer storage medium
CN110176227B (en) Voice recognition method and related device
CN107194004B (en) Data processing method and electronic equipment
CN106776857B (en) Method and device for acquiring weather data and electronic 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